5 posts
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/wx1dkLCphttp://imgur.com/RWKVzbF
7083 posts
Location
Tasmania (AU)
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.
5 posts
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/iGjvjJwXThis is the link.
Now i get "attempt to call nil" error.
I hope you (or somebody else) can help me out :)/>
957 posts
Location
Web Development
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?
5 posts
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
7083 posts
Location
Tasmania (AU)
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.
5 posts
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…
3057 posts
Location
United States of America
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.
5 posts
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)