Zripss 1 Report post Posted November 18, 2020 https://github.com/GcGoat/DU-OreMonitor Some basic Ore Monitor script to show your current stock in one or multiple screens by utilizing only one PB while having option to change what it shows on screens by simply clicking on them. Vertical or horizontal view can be picked and in case you need you can click on any tier to only show it. Multiple colors can be picked from given list while mix matching what you want, as seen from example. Databank will help out in keeping saved options next time you activate PB, so once set it will run without any need to reset it Requirements: Programable Board Screen (M sized recommended) DataBank Usage: While screens are showing information you have option to click on any tier to only show that one. Additionally you have button on side of screen marked as (>) which will open settings tab like You will see 5 numeric fields, one with sign "+" and one as "R", on another side button labeled as "Reset" Numeric fields will change colors for specific areas. First field changes progress bar colorization, first 7 options uses gradient from one color to another which will change depending on stock amount you currently have, while rest of them are static colors. Second will define background color of progress bar Third field will define color of text inside of progress bars. Fourth defines main text, like ore name or tier Fifth defines main background color Field labeled as "+" will apply same settings on all screens connected to same PB, this is useful if you are too lazy to go trough all of them and change them to match main theme each time you adjust something Field labeled as "R" will rotate view On oposite side you will have "Reset" button which resets color values to default ones. This will not reset orientation or set tier which needs to be shown PB Setup: Connect Databank and Core unit to ProgramableBoard. In what order you do that doesn't mater. Connect to screen Copy script code from HERE (ctrl+a and then ctrl+c) go back into game, right click PB -> Advanced -> Paste Lua Configuration from Clipboard Container setup: For containers to be properly recognized you will need to rename them. Ore containers can only contain one type of ore and its name should reflect its contents, for example bauxite container needs to have name as Bauxite Ore and gold one should be as Gold nuggets Ore NOTE! If you have container hub, name it in same way as you would a regular container and then you will need to set correct value in lue variable editor to match its size, as we have no way to determine how big it is throw code. Names of ore containers: Bauxite Ore Coal Ore Hematite Ore Quartz Ore Chromite Ore Malachite Ore Limestone Ore Natron Ore Garnierite Ore Petalite Ore Acanthite Ore Pyrite Ore Cobaltite Ore Cryolite Ore Gold nuggets Ore Kolbeckite Ore Rhodonite Ore Columbite Ore Illmenite Ore Vanadinite Ore Names of pure containers: Pure Aluminium Pure Carbon Pure Iron Pure Silicon Pure Chromium Pure Copper Pure Calcium Pure Sodium Pure Nickel Pure Lithium Pure Silver Pure Sulfur Pure Cobalt Pure Fluorine Pure Gold Pure Scandium Pure Manganese Pure Niobium Pure Titanium Pure Vanadium Pure Oxygen Pure Hydrogen Additionally you might want to check lua variables and modify couple main ones which are responsible for calculating container sizes. Right click PB -> Advanced -> Edit Lua parameters Known issues: In case you have max amount of screens connected to one PB you might encounter issue with it using to much of CPU for initialization. This is only issue if all of them shows maximum amount of information. Work around would be to start by using only couple screens, set them to your needs and then connect rest of them 1 Hiturn reacted to this Share this post Link to post Share on other sites
Sinclair 1 Report post Posted November 22, 2020 Great script, I really like what you did here. Share this post Link to post Share on other sites
KuntChopsMcFrontButt 2 Report post Posted December 23, 2020 This is fantastic, kudos. Share this post Link to post Share on other sites
DystopianSnowman 2 Report post Posted yesterday at 06:50 AM Data bank and core linked to PB. Screen linked to PB after. Test container renamed Quartz Ore, script copy pasted. 10 ore placed in container. PB and screen turned on, but screen is blank. What am I doing wrong? Share this post Link to post Share on other sites
Zripss 1 Report post Posted yesterday at 10:07 AM 3 hours ago, DystopianSnowman said: Data bank and core linked to PB. Screen linked to PB after. Test container renamed Quartz Ore, script copy pasted. 10 ore placed in container. PB and screen turned on, but screen is blank. What am I doing wrong? You might simply stop and start again PB if you renamed container after you started PB, as container detection will be done only once on startup for efficiency sake. Everything else seam to work properly as of basic testing i just did. Share this post Link to post Share on other sites