Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/siebn.de/wiki/inc/parserutils.php on line 530

Deprecated: Function split() is deprecated in /var/www/siebn.de/wiki/inc/auth.php on line 154
bs2_codinghelp_load_save [Burning Sand Wiki]
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/siebn.de/wiki/inc/template.php on line 242
 

Help Main Menu

Load/Save

This is about sandbox loading and saving.

SAVE SAND filename

This will save the Sandbox to the filename you provide. This will be in BS2 folder. The name must not contain spaces.

LOAD SAND filename

This will load the Sandbox from the filename you provide. Same as above.

SAVE QUICKSAND quicksandid

This will save the Sandbox to RAM. This is more than 100 times faster than saving to file.

LOAD QUICKSAND quicksandid

This will load the Sandbox from ROM.

Files

This is about opening a file and loading or saving variable or a message into a file.

File access functions

These functions operate directly on the file.

FILE OPEN filename

This will make the given filename as the current opened file.

FILE CLOSE

This will close the currently opened file.

FILE DELETE filename

This will simply delete the given filename.

Save & Load functions

Very simple to use.

SAVE VAR varname value

This will add “SET varname value” to the currently open file. So if you have previously opened a file, if i execute this to save the variable 'MyVAR' (MyVAR=100):

SAVE VAR MyVAR MyVAR

The currently opened file will have this line written to it: SET MyVAR 100

Dont forget to close a file after writing to it. Then if you want to load the file you simply use this:

INCLUDE filename

The filename being the file you previously write your data to. Since the file contain SET command it will execute every line, so after this it would set MyVAR to 100.

 

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/siebn.de/wiki/inc/template.php on line 785
bs2_codinghelp_load_save.txt · Last modified: 2008/10/03 21:32 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki