New way to filter P2P tunnels through the search bar via "tags". A tag
starts with '@' and filters based off some set of criteria. Tags are
space separated. You can still search based on the name, but the name
search is based off of string tokens rather than a complete match. If
for whatever reason a tunnel is named '@...', you can wrap the query
in double quotes '"' to force it to search as a name.
Tags added: '@in', '@out', '@b', '@u'.
Changes how the advanced memory card internally stores P2P Tunnel information:
- Now uses its own custom class. No more sortedInfos/infos discrepency; you
can now access the sorted and filtered fields only. The master map cannot
be accessed directly.
- P2PInfo now uses a hash, which removes AE2 P2P tunnel dupes. It depends
on the coordinates, facing, and dimension information.
- Corresponding equals() function implemented for P2PInfo.
- Send the entire P2P list when binding. A new packet type is likely in order, though.
- The rest of the changes is to fit this new data structure into the existing
infrastructure.
Hopefully this makes the mod more resilient to crashes.
GuiAdvancedMemoryCard: When the rename field is used, it filters out
every P2P tunnel that does not match the name, including the currently
selected P2P tunnel, from an internal list. This internal list is used
to determine whether the bind button should be shown, and if there is
no selected P2P tunnel, they are not shown. Since we removed the P2P
tunnel from the internal list, they are not shown. :(
Fix by using the master list instead of the filtered list.
Remove dupe P2P tunnel entries caused by P2P tunnels adding itself to
the list of P2P machine set twice if on the same network.
Some small optimizations too.
Currently, after receiving a refresh response from the server, the GUI for the advanced memory card resets and does not respect the current search term.
Commit fixes it.
1.click record to rename P2P Tunnel (Help player to build large ae network)
2.shift click record. Well be transport player to P2P Tunnel position (OP only)