6 posts
Location
France
Posted 07 August 2015 - 05:10 PM
Hello ! I've just get a new program to use with an XP farm. I'm using the following mods :
- ComputerCraft
- OpenPeripheral
- OpenCCSensors
- Soul Shards Reborn
There is an "attempt to call nil" error at line 25
I know there is other errors so if you can find them, you will help me a lot.
Soory, I'm french, I don't speak a perfect english.
Here is the program :
http://pastebin.com/r8BkhSJJ
13 posts
Location
In front of my Computer @LocalHost - France
Posted 07 August 2015 - 08:38 PM
Salut, tu utilise quelle version de OpenPeripheral ?
"getStringWidth" n'existe plus avec OpenP 0.3.1, tu peux utiliser
text = "50 niveaux"
w = text:len()
à la place.
__________________________________
Hello, what version of OpenPeriphral did you use ?
"getStringWidth" doesn't exist anymore in OpenPeripheral 0.3.1, so you can use :
text = "50 niveaux"
w = text:len()
Edited on 07 August 2015 - 08:30 PM
8543 posts
Posted 07 August 2015 - 09:19 PM
Please provide an English translation of anything posted in another language.
656 posts
Posted 07 August 2015 - 09:26 PM
text = "50 niveaux"
w = text:len()
That won't work at all, getStringWidth used to return the width of the string in
pixels, not the character count. You'll have to calculate the width yourself instead. Example code can be found
here.
13 posts
Location
In front of my Computer @LocalHost - France
Posted 07 August 2015 - 10:30 PM
Yeah, I forgot this point again :s
Please provide an English translation of anything posted in another language.
Done, sorry :x.
6 posts
Location
France
Posted 08 August 2015 - 10:46 AM
Hello. Thank every one. If i get other errors, i will tell you again.
656 posts
Posted 08 August 2015 - 12:33 PM
Yeah, I forgot this point again :s
Please provide an English translation of anything posted in another language.
Done, sorry :x.
If you rewrite your answer anyway, maybe you could mention that what you're suggesting is wrong?