Author Topic: serverDirectSaveFileLoad() arguments  (Read 2098 times)

What are the arguments to this function and what do they mean?

serverDirectSaveFileLoad(%fileName, 3, "", %ownership);

I believe one of the arguments is for the colour set.

I believe one of the arguments is for the colour set.

The second argument is color mode. It's a feature that Badspot never really finished. You can play around with it though. Try different integers from 0-3.

The second argument is color mode. It's a feature that Badspot never really finished. You can play around with it though. Try different integers from 0-3.
Is that what LoadBricksColorGui is for?



btw badspot, it's than**

Yep. By default it finds the nearest match.

You may want to look into $Pref::Server::AllowColorLoading if you want to mess around with the above GUI.

How do you use %ownership? Or is it a boolean variable?

How do you use %ownership? Or is it a boolean variable?
1 - load as host's (i think)
2 - load as public
3 - load as owner's (i think, again)

1 - load as host's (i think)
Confirmed.
  • serverDirectSaveFileLoad(%fileName, 3, "", %ownership) - For loading bricks in scripts, %fileName is where your save is, %ownership can be 0 for load as host, or 2 load as public

1 - load as host's (i think)
2 - load as public
3 - load as owner's (i think, again)
No, 0=host, 1=original, 2=public