Jump to content




help with paintutils

computer lua help

6 replies to this topic

#1 joshgreat

  • Members
  • 33 posts

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

#2 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

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.


#3 joshgreat

  • Members
  • 33 posts

Posted 21 January 2017 - 11:20 AM

doesnt load the desktop u like it should i have checked all files

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.

#5 joshgreat

  • Members
  • 33 posts

Posted 21 January 2017 - 02:50 PM

nope still not working
startup:5: attempt to call nil
-joshgreatuk

#6 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

Posted 21 January 2017 - 03:24 PM

 joshgreat, on 21 January 2017 - 02:50 PM, said:

nope still not working
startup:5: attempt to call nil
-joshgreatuk

its nil as that file doesnt exist.

#7 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users