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

help with paintutils

Started by joshgreat, 20 January 2017 - 04:36 PM
joshgreat #1
Posted 20 January 2017 - 05:36 PM
need more help. i can do everything else
developing new OS called Xdows so ye
-joshgreatuk
http://pastebin.com/Pg9SfafV
CrazedProgrammer #2
Posted 20 January 2017 - 06:22 PM
This is not how ask a pro works.
You need to specify your problem, and what you want the outcome to be.
joshgreat #3
Posted 21 January 2017 - 11:20 AM
doesnt load the desktop u like it should i have checked all files
Bomb Bloke #4
Posted 21 January 2017 - 12:18 PM
At a glance, on line 7 you're using a comma where you appear to've intended to concatenate. In Lua, strings are joined by using two consecutive periods, eg:

"/xdows/localdrive/users/1/settings/wallpapers/" .. ub

If you're still having problems we're going to need a bit more information than that. Heck, just a bit of punctuation from you would be nice.
joshgreat #5
Posted 21 January 2017 - 02:50 PM
nope still not working
startup:5: attempt to call nil
-joshgreatuk
TheRockettek #6
Posted 21 January 2017 - 03:24 PM
nope still not working
startup:5: attempt to call nil
-joshgreatuk

its nil as that file doesnt exist.
Bomb Bloke #7
Posted 21 January 2017 - 11:32 PM
Truth be told, that'd result in an attempt to index nil. The "read" function is only available to file handles opened in binary mode - since you're working with text mode here, "readLine" is what you're after.