Author Topic: How to load a bls save  (Read 784 times)

How do you load a .bls save in your game?

I tried this:

schedule(10, 0, serverDirectSaveFileLoad,  %filepath, 3, "", 0, 1);

It gives the error 'File "" not found'

btw %filepath = "save.bls"

This is part of a script called server.cs.

both the script file and the save file are in the same folder.



You need a direct path to the file. So %filepath should be saves/save.bls and not save.bls.

You can remove the 1 at the end, the function doesn't have so many arguments.

You can remove the 1 at the end, the function doesn't have so many arguments.
No - the last arg is for silently loading a file. The 1 means that it will be silent, whereas 0 will display "Loading Bricks. Please wait.", and play the sound.

Huh. Seems I was looking at the wrong function, it does indeed have so many arguments:

function serverDirectSaveFileLoad(%filename, %colorMethod, %dirName, %ownership, %silent)

Huh. Seems I was looking at the wrong function, it does indeed have so many arguments:

function serverDirectSaveFileLoad(%filename, %colorMethod, %dirName, %ownership, %silent)
What is %dirName for? I've always seen it sent as "" or something similar, I'm curious.

You don't need the full file path, and %dirName was for map.