Jump to content




Dead Simple Railcraft Tank Monitoring


  • You cannot reply to this topic
83 replies to this topic

#61 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 31 January 2014 - 12:56 PM

Sorry Zyme, not sure what to tell you! Your error seems uniquely weird (is this your first comp running it or your second? At a monitor or a valve?) so I'd check all your mod versions (CC, OpenP, Railcraft) first and try some of the earlier debug methods that Drexic is using (go to the Lua prompt and make sure you can see *anything* at your tank valve) as you may find the problem soon. The solution, maybe not so easy!

Drexic: good luck! Hope you find the answer and we can update the program!

#62 Drexic

  • Members
  • 6 posts

Posted 31 January 2014 - 07:07 PM

(I edited this because the original did not make sense)

Alright folks it seems to be true.

Direwolf20 FTB launcher pack uses openperipheral 2.1. In this version when you use the getTankInfo() method the result is a string instead of a readable table.
This is a known issue and is solved in the most recent openperipherals 3.0. I will do the modifications to the code for the updated version of Openperipherals and upload it somewhere, the old way of quarrying information is not going to work (I.E. getTanks()).

Sited Source
https://github.com/O...heral/issues/83

Updated version
http://openmods.info:8080/

its going to take a me a while (busy with real life... sadly...)

Edited by Drexic, 31 January 2014 - 09:14 PM.


#63 RikuSS4

  • New Members
  • 2 posts

Posted 08 February 2014 - 05:55 PM

I modified this program to work with terminal glasses. I only used the latest version of Open Peripheral for testing though. I will add ability to change which tanks are displayed in the HUD using the chat box later.
Here is the pastebin:
http://pastebin.com/ENkHsHjH

#64 ShadowWarrior979

  • Members
  • 4 posts

Posted 09 March 2014 - 07:02 PM

Hi mate sick program :) is there away to make the writing on each bar bigger or a different colour because its hard to see what each bar represents

#65 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 09 March 2014 - 08:41 PM

If you search the program there is a line:
monitor.setTextScale(.5)
If you change that to something like
monitor.setTextScale(2)  
the text will become much bigger but will cause other display problems.

There's no easy way get things exactly right for everyone. For the most part, you shouldn't have so many liquids on one screen that you get confused - after a while you should remember the locations and the bar heights give you the eyeball accuracy you need. To really know, you'll have to walk up to the screen - or try the HUD addition that RikuSS4 added above.

Edited by Forgotten_Boy, 09 March 2014 - 08:41 PM.


#66 kwstoudt

  • Members
  • 18 posts
  • LocationProvo, Utah

Posted 13 March 2014 - 09:04 PM

Would there be any chance you could make this program work for OpenBlocks tanks?

#67 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 14 March 2014 - 05:17 AM

Well, I can't at the moment but other people keep advancing this further...

#68 XLT_Frank

  • Members
  • 6 posts

Posted 09 May 2014 - 08:48 PM

View PostRikuSS4, on 08 February 2014 - 05:55 PM, said:

I modified this program to work with terminal glasses. I only used the latest version of Open Peripheral for testing though. I will add ability to change which tanks are displayed in the HUD using the chat box later.
Here is the pastebin:
http://pastebin.com/ENkHsHjH

So I cannot seem to get this to work. The program does not detect any tanks. However if I run some sample code, it sees the tanks, no problem. Suggestions?

#69 XLT_Frank

  • Members
  • 6 posts

Posted 10 May 2014 - 03:22 AM

I was able to fix the issue by changing:
local tankTypes = {"iron_tank_valve", "steel_tank_valve", "openblocks_tank", "drum", "ender_tank", "cofh_thermalexpansion_tank", "net_minecraft_src_buildcraft_factory_tiletank", "tileentitycertustank", "tconstruct_lavatank"};
to
local tankTypes = {"rcirontankvalvetile","rcsteeltankvalvetile","iron_tank_valve", "steel_tank_valve", "openblocks_tank", "drum", "ender_tank", "cofh_thermalexpansion_tank", "net_minecraft_src_buildcraft_factory_tiletank", "tileentitycertustank", "tconstruct_lavatank"};


#70 MrEmielH

  • Members
  • 70 posts

Posted 10 May 2014 - 03:07 PM

for those who are looking for a more advanced program that can do more then only railcrafttanks, and can also monitor energy-storage, ae-storage, nuclear information and machine information
all liquids are suported
http://www.computerc...achine-monitor/

Edited by MrEmielH, 10 May 2014 - 03:10 PM.


#71 XLT_Frank

  • Members
  • 6 posts

Posted 10 May 2014 - 05:33 PM

View PostMrEmielH, on 10 May 2014 - 03:07 PM, said:

for those who are looking for a more advanced program that can do more then only railcrafttanks, and can also monitor energy-storage, ae-storage, nuclear information and machine information
all liquids are suported
http://www.computerc...achine-monitor/

There were multiple pastebin's in there. Which one should I go with? I would love to incorporate this.

#72 MrEmielH

  • Members
  • 70 posts

Posted 11 May 2014 - 10:22 AM

View PostXLT_Frank, on 10 May 2014 - 05:33 PM, said:

View PostMrEmielH, on 10 May 2014 - 03:07 PM, said:

for those who are looking for a more advanced program that can do more then only railcrafttanks, and can also monitor energy-storage, ae-storage, nuclear information and machine information
all liquids are suported
http://www.computerc...achine-monitor/

There were multiple pastebin's in there. Which one should I go with? I would love to incorporate this.
these should work
boot_prior_1: 1X0azEEB
safe_mode: s0sAYjnc
startup xEk0csb7

#73 juicetyven

  • New Members
  • 1 posts

Posted 15 July 2014 - 03:47 PM

Might've missed someone else doing the same, but my tanks were named rcsteeltankvalvetile and my methodname was getTanksInfo.

Incase anyone wonders how you can read the table outputted by tank.getTanksInfo("tank") you can stick it in a variable and read var[1].amount, like so;

http://pastebin.com/qWEb0bYh - text-based monitoring with no scaling whatsoever - quick-and-dirty hookup with wired modems, so your program was quite the catch. :)

Also a shameless pastebin of the version i ended up using to monitor my tanks, with the two changed words needed to fix it for me. You might have to change the irontanks-name yourself. http://pastebin.com/9gnJZdWg

Thanks for the awesome program!

#74 BaRF

  • Members
  • 8 posts
  • LocationNetherlands

Posted 28 July 2014 - 12:23 PM

Wow this is a great program! Never have to visit my basement again :) It's also easy to add liquids and colors so MobEssence and Liquid Essence are also monitored :) Maybe an option to have an in-game menu for adding stuff? (For people who don't like editing programs ;))

#75 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 31 July 2014 - 06:13 PM

Great to see people are still discovering it! Post a screenshot in use if you can, I always love seeing it in action.

#76 Fyrhtu

  • New Members
  • 1 posts

Posted 02 January 2015 - 03:17 AM

Updated to make compatible with the Direwolf20 Minecraft 1.7 modpack, ver 1.3 (ComputerCraft 1.65, Open Peripherals Addons 0.2.0-snapshot-139, Open Peripheral Core 0.5.0-snapshot-172, Open Peripheral Integration 0.1.0-snapshot-17.)
Also added Life Essence
http://pastebin.com/AEs0eGaG

#77 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 13 April 2015 - 02:02 AM

Added to the first post:
UPDATED: April 12th, 2015
- Now updated for Minecraft 1.7.10, ComputerCraft 1.73 and OpenPeripherals 0.7.1

#78 iceman11a

  • Members
  • 68 posts
  • LocationUSA

Posted 19 May 2015 - 05:34 AM

Thanks for the lua code. It seems to be working fine. A note. The code crashes when the tanks are empty. and the 2nd questions is. What happens when a tank gets too low on what ever it's holding. Do you have a way to send a signal threw bundled cable. Or some thing when the tank gets too low.

#79 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 19 May 2015 - 03:42 PM

Yes, the latest version doesn't work with an empty tank :/. If you set the redstone level (see the first post for instructions) it should emit a redstone signal on the side you specify at the tank level you specify.

#80 iceman11a

  • Members
  • 68 posts
  • LocationUSA

Posted 19 May 2015 - 05:49 PM

Thanks, I really need this to work with bundled cable like other machines work.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users