| View previous topic :: View next topic |
| Author |
Message |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Sat Jan 21, 2006 7:05 pm Post subject: dofile("") |
|
|
I'm having a problem with this function. When you press cross on the Open Icon to select a file to open and press cross again to select a file, the fileselector.lua script seems to start over again. how can I return to the original script? The fileselector quits normally to lowser when running it stand-alone.
I did it like this:
dofile("fileselector.lua") _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
soulphalanx
Joined: 22 Aug 2005 Posts: 35
|
Posted: Sun Jan 22, 2006 2:11 am Post subject: |
|
|
| in fileselector.lua, create a function, and in the main script, when you want to file select, refer back to that function and it should work |
|
| Back to top |
|
 |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Sun Jan 22, 2006 6:05 pm Post subject: |
|
|
thnx I fixed it already _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
Mechanical
Joined: 06 Feb 2006 Posts: 4
|
Posted: Mon Feb 06, 2006 9:28 am Post subject: |
|
|
Hi. I need help. I have a problem with "dofile"...
Dofile starts new file script, how to break previous script? |
|
| Back to top |
|
 |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Mon Feb 06, 2006 9:35 pm Post subject: |
|
|
There is no command to terminate a script.
You use to exit loops. When luaplayer has gone trough all the loops and reached the end of the script, it exits the script and goes back to the script you started it from _________________ Behold! The Underminer got hold of a PSP |
|
| Back to top |
|
 |
Mechanical
Joined: 06 Feb 2006 Posts: 4
|
Posted: Mon Feb 06, 2006 11:11 pm Post subject: |
|
|
yeah, i know, but it's not a solution :/
in my game one level = one file. When You reach 20th level then will be 20 opened files. :/ |
|
| Back to top |
|
 |
KawaGeo
Joined: 27 Aug 2005 Posts: 191 Location: Calif Mountains
|
Posted: Tue Feb 07, 2006 2:35 am Post subject: |
|
|
What about levelfile:close()? _________________ Geo Massar
Retired Engineer |
|
| Back to top |
|
 |
|