firenoo f5a23d1a3b Completely overhaul the Advanced Memory Card (#29)
* Move mode change button to the side.

- Mode change now on the side w/ resize button
- Some code cleanup
- New description (en only for now), texture.

* Update ae2 to beta-204

* Add OC/Pneumaticraft support

* Create a proxy for client/server

Mostly for convenience of getting icons and other GUI elements.

* Large refactor to make way for "refresh" functionality

Features:
- New "refresh" capability (no button available yet) so the
client can have an updated GUI.
- The player can now control which types to be queried/displayed.

A great number of changes were made to allow this to happen to the mod
internally, as started from the last commit.

- P2PCache has been revisited. Instead of being a one-time instantiation,
the cache can now be queried from the client many times.

- Network has changed. Instead of sending an ItemStack (as previously), we
keep that info locally and send a byte only instead, so that should save
some network traffic.

- New packet for sending the refresh signal has been made. Other packets
send a "type" discriminator to make way for the typing feature.

Because I was lazy and didn't separate the commits, here are some other
changes made:
- Cleaned up a bit of the code to make it easier to read. This includes
code I've written before...
- Some name refactors. Some of the names were (mine) were quite frankly,
bad.

Signed-off-by: Firenoo <49818773+firenoo@users.noreply.github.com>

* More cleanup + texture for type change

Some more code cleanup (spacing and labels)

* Disable ability to use copy outputs when output selected

Because it doesn't work, and has strange behavior, this is being disabled
for now (possibly forever).

* Remove unused method + remove unused imports

* Add unbinding mode

+ tooltip explanation

* Add type to filter options

* Add enUS localization

* Add refresh button, and prevent excessive packet spam.

Packets are sent only once every 250 ms to avoid DDOSing someone.
Accomplishes this by adding a new scheduled executor.

* Add the ability to change P2P types from the GUI

* tooltip was actually lying, now it's lying less

* Fix CME from resizing GUI, and add patterns to drops when changing P2P interface type

CME caused by iterating over the button list. Clicking on resize button forces
the GUI to reset, so the button list changes and causes the CME.

P2P interfaces now drop their items if changing their type from the GUI.

* Make the refresh icon look a little less like MSPaint

Also minor change to tooltip when changing types.

---------

Signed-off-by: Firenoo <49818773+firenoo@users.noreply.github.com>
2023-05-15 17:29:14 +02:00
2022-01-30 14:36:19 +08:00
2022-01-30 14:36:19 +08:00
2023-01-29 09:19:22 -08:00
2022-02-03 14:29:03 -06:00
2022-01-30 14:36:19 +08:00
2022-02-11 16:50:55 -06:00
2023-05-06 08:40:23 +02:00
2022-02-03 14:29:03 -06:00
2022-02-03 14:52:50 -06:00
2022-01-30 14:36:19 +08:00
2022-01-30 14:36:19 +08:00
2022-01-30 14:36:19 +08:00
2023-01-29 09:19:22 -08:00

BetterP2P

License: GPL v3

logo

Better P2P and memory card for Applied Energistics 2, requires Forgelin.

Documentation is now available to read: https://lasmgratel.github.io/BetterP2P-Manual/

Features

Obtain a Better Memory Card.

Right-click on a P2P device or any ME attached device to inspect all P2P devices in your ME Network.

Select one of the P2P devices and pair it with other P2P, you can choose the binding mode. Once you have P2P devices paired, devices with same frequency will be highlighted in aqua color.

Input P2P will always be on the top.

A wrong setup (usually P2P devices without input) will be in red color, and devices with no channel will be in yellow.

Version 1.1 update:

P2P location is shown.

When you select one of the P2P device, outlines will render at other devices with same frequency.

You can Shift-click better memory card to clean this outline.

TODOs

  • Documentation
  • Sort modes
  • Better predicate to reduce crashes
  • Backport to 1.7.10
  • A border show in the world to identify the selected P2P device
  • Optimize cache
  • A minimap shows all P2P devices

Credits

Cyclic for its block outline code

S
Description
No description provided
Readme GPL-3.0
5.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
Kotlin 71.1%
Java 28.4%
Shell 0.4%