This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Friedensfurz's profile picture

CC Extra Utilities Trading Post Automation

Started by Friedensfurz, 01 November 2015 - 10:44 AM
Friedensfurz #1
Posted 01 November 2015 - 11:44 AM
Hey guys! First of all, I'm completely new to this forum!

I want to automate a villager farm for trading certus quartz in exchange for emeralds.
I found a program for mystcraft pages and tried to modify it (cutting check parts out), but i only get errors.

I hope anyone knows how this works :)/>

The files:

http://pastebin.com/wx1dkLCp

http://imgur.com/RWKVzbF
Bomb Bloke #2
Posted 01 November 2015 - 12:08 PM
Seems you've linked to the original copy of the script, but not the copy you're actually having trouble with.

"<eof> (End Of File) expected" errors indicate that the Lua interpreter has read too many "end"s - you've tried to finish a code block you didn't open in the first place.
Friedensfurz #3
Posted 07 November 2015 - 07:35 AM
First of all, thanks for your response!

I uploaded the fail scripts to pastebin.
Maybe they help ;)/>

pastebin.com/iGjvjJwX

This is the link.
Now i get "attempt to call nil" error.
I hope you (or somebody else) can help me out :)/>
HPWebcamAble #4
Posted 07 November 2015 - 05:22 PM
Now i get "attempt to call nil" error.
I hope you (or somebody else) can help me out :)/>

What line number was the error on?
Friedensfurz #5
Posted 07 November 2015 - 08:31 PM
I think it's line 14 as there is no other number given:

emeralde:14: attempt to call nil
Bomb Bloke #6
Posted 07 November 2015 - 10:11 PM
Line 14:

loadPages()

You've deleted the lines where the function was defined, but not the line where it's called.
Friedensfurz #7
Posted 15 November 2015 - 08:19 PM
Next error incoming:

.temp:5: attempt to index ? (a nil value)

Does it mean line 5 here? Cause I can't see any index in line 5…
KingofGamesYami #8
Posted 15 November 2015 - 09:00 PM
attempt to index means you are trying to access a variable that isn't a table as if it were a table. Line 5 does indeed index the variable 'trade', and would give that error if there wasn't a peripheral to the right side of the computer.
Friedensfurz #9
Posted 20 December 2015 - 02:30 PM
As I was searching for more information, I found out, that the support to the Trading Post has been removed ==> This program is no more possible. People playing in Minecaft 1.6 can still use this feature, but others like me playing 1.7.10 won't be allowed to do that anymore :(/>

But nevertheless, thank you all for your constructive ideas and assistance ;)/>

And btw, I think this post can now be closed (I don't know how to do it myself xD)