Conversation
notable issues: - TankWidget not rendering fluid - Contents of virtual tanks not saved to world data
fixes TankWidget "issue"
also sort list of virtual tanks in app
fix bug with rendering extremely large amounts of fluid in a TankWidget
i really should have designed around these from the beginning lol
# Conflicts: # src/main/java/gregtech/api/metatileentity/MetaTileEntity.java # src/main/java/gregtech/api/pipenet/tile/PipeCoverableImplementation.java # src/main/java/gregtech/api/terminal/TerminalRegistry.java
|
Some things that should be discussed: Known issues currently: |
ALongStringOfNumbers
left a comment
There was a problem hiding this comment.
Could we get hovering text over the lock, to say it switches from private to public?
In addition, can there be an option to assign a name or a note to the various tanks in the manager app, so it can be recorded what they are being used for?
In the case of entering a custom hex into the identifier, can we have the text being written highlighted in red if an incomplete hex has been entered and the checkerboard is showing? This would also be useful to skip drawing the checkerboard background in some cases where it can be seen through the entry, such as with AAAAAAAA
The Cover itself needs to override getCapability so that it can mark itself as having the Controllable capability so that it can be picked up by the machine controller and be controlled via the machine controller. Not sure if you would also want to return the fluid handler capability for the FluidTankSwitchShim.
Do we want the default capacity to be Max_int, or something like 64 buckets?
too much trouble for what it was worth
change default tank size to 64B
and enable tooltips on ImageWidget
|
Default size has been changed to 64 buckets, I feel like having it be MAX_INT would make full block tanks significantly worse To address a couple other things: The checkerboard background is meant to see how transparent the selected color is, it showing on incomplete colors was a byproduct of those having at most 15/255 alpha, making them almost fully transparent. Since dynamically changing text color in a TextFieldWidget is not possible without a lot of work, I instead added an icon that only shows up when the color is incomplete. As for the notes on tanks, I have no idea how to even start implementing the data storage for that |
you mean TankWidget? |
|
No, the thing alson suggested above - being able to assign a note to a virtual tank in the app to record what they are used for |
|
Would it be possible to have a button that either spits out a coordinate set, or highlights the position of the cover (or all covers on the frequency) in world in the viewing app? |
currently unused
|
Not easily. The virtual tanks are not inherently linked to anything about the world, all the registry knows about is the name of the tank. I tried to make the system as general as possible, so it could be easily used for anything else that requires virtual tanks. Doing this would also require the positions of every cover to be tracked, which wouldn't be too difficult, just annoying could definitely be done though, i will see how annoying it actually is |
# Conflicts: # src/main/java/gregtech/api/render/Textures.java
|
I tried it briefly, and everything was fine. But I am a little curious, the channels created are always save for ever? Even if there's no fluid in it, there's no cover in the world which use this channel. Even if i accidentally type in the wrong channel. I'm worried about displaying too long lists in Terminal. |
|
Also, I recommend adding a searching Component to the app to filter the channel according to the fluid when there are too many channels. If you don't mind, I can finish this work and push code |
|
The virtual tanks are not saved forever, they are only actually saved to world data if they have a non-default capacity (which is not currently possible to have) or contain fluid in them, so exiting and re-entering the world should remove unused ones. The tanks are already sorted alphabetically, but I do agree that having a search filter would be helpful. |
|
I have simply fixed the sync issue, assuming that your world data does not need to be synced. |
searching component
rename a couple things to be more accurate
# Conflicts: # src/main/java/gregtech/api/terminal/TerminalRegistry.java
|
nice job! |





What:
Adds Ender Fluid Link Covers (ported/re-implemented from TecTech)
How solved:
Added a system for registering and accessing virtual fluid tanks
Outcome:
Implemented:
VirtualTankRegistry, a way to manage virtual fluid tanksFluidTankSwitchShim, mainly for gettingTankWidgetto switch which tank it displays without too much hackeryNot implemented (yet?):
Additional info:



