Jump to content




Help with displaying thaumcraft jars on screen


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

#1 meat113

  • Members
  • 4 posts

Posted 17 August 2014 - 11:57 PM

So I did some googling and ended up here, I found this thread: http://www.computerc...haumcraft-jars/

I was trying to use his code here: http://pastebin.com/S3Na2m3q

Basically I just want to have jars around my altar and have a computer screen displaying what I have in what jar.

I have a wired modem conncted to an advanced computer, with networking cables that go out to all the modems that are connected to open peripherals proxies which are connected to jars.

I have made sure all the modems are connected, it'll say tt_aspectcontainer_(number) connected.

When I try to run the program it gives the error: line 31: bad argument: string expected, got nil

any help would be much appreciated :)

ps: using minecraft version 1.6.4 with FTB Monster 1.1.1

edit: also, 90% of my jars have labels... I have a few jars that are not labelled yet and some are empty, not sure if this is a problem

Edited by meat113, 18 August 2014 - 12:15 AM.


#2 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 18 August 2014 - 01:14 AM

Looking at the ORIGINAL coder of that block he's updated since then, so i'll give you his current code for it.
Spoiler

However you should adapt it into your code, just replace the function retrieveData() with this one and change any variables to the ones in the program. Here's the link to the full code.

#3 meat113

  • Members
  • 4 posts

Posted 18 August 2014 - 01:40 AM

Okay so here's what I have so far: http://pastebin.com/PC70kK0X

I am using the function from the updated link you gave me and I have replaced the variable jarData with peripheralData.
Now it gives the error on line 23: bad argument #1 value expected

Keep in mind I'm a complete newb, I'm not sure if there are variables I havn't replaced, I think it's just the array variable I needed to replace





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users