Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

xilni

Members
  • Content Count

    5
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Upvote
    xilni reacted to Nexarius in Tank Display Program | now with energy and essentia too !   
    Update 1.8.5:
    -added 7 new liquids
  2. Upvote
    xilni reacted to Nexarius in Tank Display Program | now with energy and essentia too !   
    That makes sense.
    What you gave me are the localized names -> "label" but the program uses the internal liquid name -> "name".
    I tweaked the display in 1.8.5 to show that better because labels change depending on the selected language for minecraft.
    Update 1.8.6:
    -fixed Thermal Foundation liquids
     
  3. Upvote
    xilni reacted to Nexarius in Tank Display Program | now with energy and essentia too !   
    The translation looks pretty good.
    hier: is easy it checks whether or not the event.pull() reached the timeout or got a message. On timeout it skips everything and displays a message that there is no available data to display.
    dazu: It first checks if the id is already known and then replaces all the information with the new message and then sets dazu = false to prevent adding it at L56. (If you get the second message from the same computer you have to deal with the fact that you still have the first message and it has to be overwritten or deleted.)
    If you get infromation only from the me system then you don't need update() at all. You only need if component.isAvailabe("MeSomething") then dostuff() else nodata() end
    I don't think that amount > capacity would be a big problem. It will just display percent > 100% and the bar will be filled completly.
    idk
  4. Upvote
    xilni got a reaction from Nexarius in Tank Display Program | now with energy and essentia too !   
    Thank you for the help, so first thing I've done is attempted to translate the variable, method and parameter names in anzeige.lua to english passing each word I didn't understand through Google Translate. The result is here: https://pastebin.com/x7E2ySm1
    I appreciate you helping me decipher the data structure, I was having problems figure out what dazu and hier did in the multiple assignment on line 42 and whether they were important given I'm replacing the entire networking section that uses event.pull.
    I see what you mean, there's a shorter message for when the board starts to get crowded. I'm more concerned with how one would even represent three values on a bar given that the actual amount has to surpass the upper threshold before the system shuts down production (see the logic here for how it decides when to turn on and off the production). It's not as simple as current amount over capacity where 0 ≤ amount ≤ capacity which makes sense in the context of a bar.
    EDIT: Does this forum have an inline code block formatting? Sometimes I don't want to create a large paragraph block for a few random code words.
  5. Upvote
    xilni reacted to Nexarius in Tank Display Program | now with energy and essentia too !   
    This program can display the contents of tanks on a big screen with a colored bar that can dynamically change its size.
    It can show up to 256 128 64 different liquids which are sorted from highest amount to lowest.
    5x8 is the optimal size for the screen.
    Multiple tanks with the same liquids are automatically added together and empty tanks are ignored.
    This display is split into 2 programs.
    1) Server - this receives the tank information and displays it
    2) Client - this has the adapter with the tank controller (you can have as many as you like)

    optimal screen sizes: 8x5; 8x2; 4x1
    pastebin run -f cyF0yhXZ installation guide:
    https://www.youtube.com/watch?v=avvYO2xSxGw
    github: https://github.com/Nex4rius/Nex4rius-Programme/tree/master/Tank#start
    server / display components:
    Internet Card (to install) Network Card Graphics Card T3 Screen T3 client / adapter + tank components:
    Internet Card (to install) (Wireless-) Network Card It supports now the following blocks:
    Adapter + Tank Controller Upgrade Transposer Batbox CESU MFE MFSU Gregtech Batterybuffer Capacitor Bank ALL RF storage blocks ME Interface ME Controller Warded Jar Void Jar  
    Big Update version 2
    The screen scales better to utilize the "room" to the fullest.
    Thaumcraft:
    I've added support for jars and essentia (Thaumcraft 6 needs the Thaumic Computers mod)
    ExtraCells:
    It's now possible to connect this to the ME System and read all liquids from it.
    Thaumic Energistics:
    Additionally it can read essentia from the system if you have Thaumic Energistics installed.
    Energy EU:
    You can connect EU storage devices and it will show it on the screen.
    Energy RF:
    Furthermore you can also connect any RF storage block and it will work too.
     
    The version 2 is not compatible with the version 1. You will have to update the server and all clients.
     



    I've double the limit from 64 to 128 and doubled it again to 256!

  6. Upvote
    xilni reacted to Nexarius in Tank Display Program | now with energy and essentia too !   
    I guess you could start from L135 anzeigen(tankneu). tankneu is all the information about all liquids already added together and anzeigen is looping through the table and decides the position on the display and on L177-L185 it is giving it to zeigeHier([...stuff...]) label (visible liquid name), name (hidden liquid name, this will be used to check with the color table), menge (amount), maxmenge (max amount), prozent (percent, this is calculated and not in tankneu).
    zeigeHier combines the variables into the message for the screen, changes the color and then writes to the screen.
    You could probably start by making a table like this for anzeigen(tankneu)
    tankneu = {
    {name="water", label="water", menge=1000, maxmenge=2000, somethingnewhere=500},
    {name="lava", label="lava", menge=4000, maxmenge=5000, somethingnewhere=1000},
    }
    After that add somethingnewhere to L185 into zeigeHier and then change zeigeHier in L205 to include somethingnewhere and then change the table.inserts to have it too. There are two different messages shown if breite==40 (It means width==40) because there isn't enough space left and I decided to not show max amouint anymore on a width of 40 otherwise its too big and doesn't fit.
    You will have to add anything new to farben.lua to get the colors. https://github.com/Nex4rius/Nex4rius-Programme/blob/master/Tank/server/tank/farben.lua
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.