The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Help
/
dofile() not working?
«
1
2
»
dofile() not working?
PotcFdk
14th Aug 2011
Member
0
Permalink
Hey.
I tried to open a LUA script (the example script shown on the wiki) using dofile("example.lua")...
When I pressed ENTER absolutely NOTHING happened.
No error message, no crash. Nothing.
Can somebody help me with this please?
Thanks,
~PotcFdk
cctvdude99
14th Aug 2011
Member
0
Permalink
@PotcFdk
Did you unpause the game?
PotcFdk
14th Aug 2011
Member
0
Permalink
@cctvdude99
(View Post)
Yes I did.
cctvdude99
14th Aug 2011
Member
0
Permalink
@PotcFdk
Then I have no idea.
Dave-it
14th Aug 2011
Member
0
Permalink
I have the same Problem, but I have an error message:
test.lua:1: unexpected symbol near ' '
and between the apostrophes is a thermometer symbol
lookitsan00b
14th Aug 2011
Member
0
Permalink
@Dave-it
lua probably doesn't understand those symbols you're trying to use :P
@PotcFdk
can you post the script? that is most likely where the problem is.
PotcFdk
14th Aug 2011
Member
0
Permalink
@lookitsan00b
(View Post)
It's the example script from the wiki. It worked before and I didn't modify the file since then.
lookitsan00b
14th Aug 2011
Member
0
Permalink
0.o that's weird.
MasterMind555
14th Aug 2011
Member
0
Permalink
@PotcFdk
(View Post)
Is the file in the folder of TPT?
Is the file supposed to do something?
Is the file in .lua and not .txt ?
Dave-it
14th Aug 2011
Member
0
Permalink
@lookitsan00b
It's the example script from the wiki:
https://powdertoy.co.uk/Wiki.html?id=lua#simple_example_code
«
1
2
»