![]() |
Read from graal Directory
I'm new to savelines/loadlines so an example of such would be nice, few other forum posts Ive looked at aren't helping. But is it possible to read from the Graal Directory, eg, loading the readme.txt file?
|
The root/default folder is:
graaldir/scriptfiles/yourservername/ You can also load/save files in the levels folder: levels/path/to/file But no you can't read things in the root of the graaldir with the functions available. |
would I be able to read the files in tileobjects/
this doesn't seem to work. loadlines( "graaldir/tileobjects/objectsHouse Inside.txt"); |
Quote:
|
This works just fine (in V6):
PHP Code:
objectscastle.txt size: 2862 objectshouse inside.txt size: 2742 objectssnow.txt size: 5679 objectsstandard.txt size: 11183 objectsvolcano.txt size: 5345 |
Access to tileobjects folder has been added in v6 to make it easier to write a scripted level editor.
|
Does fileexist(str) read from scriptfiles/ or levels/? cant seem to get it to work for either of them as its always returning false.
edit: nevermind i realized i apparently pulled a ravej and lost any knowledge of the english language. I was using fileexist instead of fileexists and did not realize it until i checked /scripthelp |
| All times are GMT +2. The time now is 09:02 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.