ComputerCraft/OpenPeripherals Terminal Glasses Ideas/Programs

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Bloquemaster

New Member
Jul 29, 2019
49
0
0
I changed the code to what you told me to and whenever I try to run it, it gives me this error:
bios:337: [string "startup"]:3: '=' expected

Thank you for all of your guys' help!
 

Luckdemon

New Member
Jul 29, 2019
25
0
1
Maybe you missed the equals sign on line 3 of the code. Won't work without that ;)
FYI diagnosing the errors it gives you...
[string "startup"] means it's when you're running the startup file. and the ":3:" means its on line 3. '=' expected means that the code expected to have an equals sign in there, but it's missing.
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
Continuing on from what Luckdemon correctly said, sometimes the error message gives the wrong line. If you are absolutely sure that the line it is flagging is fine check the line above and below. Also, one equals sign when you are declaring a value, two equals signs when you are checking a variable
 

Bloquemaster

New Member
Jul 29, 2019
49
0
0
Alright, thanks. I'll try to fix it. I'll post again if it still doesn't work and I have no clue at all.

[EDIT] It's working now! Thank you everyone! If anyone else has any cool, original ideas for the glasses let me know! :D
 

Luckdemon

New Member
Jul 29, 2019
25
0
1
Glad to see you got it working :)

I have my glasses wired into a central computer which is also wired up to all of my redstone energy cells and mfsus, so on command it tells me the power storage of my base.
I made it mode-based. So I can see my log/plank supply in my ae system (for the boilers) and current stocks of other important items as well.
Another mode is more simple, just my "do nothing" mode, tells me time of day with a simple clock.

The possibilities are endless, many thanks to mikeemoo for coming up with this excellent mod!
 

Luckdemon

New Member
Jul 29, 2019
25
0
1
He used getTanks() which you can use with almost any internal tank. It returns a lot of information such as:
rawName (item.railcraft.liquid.creosote.liquid)
pressure (0)
amount (20000)
capacity (20736000)
name (Creosote Oil)
id (7790)

Note: tests done in Unleashed 1.1.3 with railcraft steel tank, filled 20k/20mil with creosote oil.
From these results it shouldn't be hard at all to make it into a simple bar graph displaying current amount out of capacity.