Author Topic: Server_PositionSaver  (Read 4021 times)

It should be pretty obvious to figure out what this does based on the name.
But anyway, it saves the transforms of players before they leave and puts them back there when they reconnect.
There's no real way to take pictures of it, you'll just have to see for your self.
It saves each players transform in their own typeless file in config/server/positions/<name>
I have tested it and it works for me.

Download:
http://www.filefront.com/17151654/Server_PositionSaver.zip

Feel free to post problems or questions on this thread, thanks.

New features:
Now saves positions as Prefs in one file, not a numbers in hundreds (depending) of files.
New /clearpositions command.
Now saves by BL_ID instead of name.
« Last Edit: July 27, 2010, 07:42:30 PM by DrenDran »


interesting, what if you change the build/minigame?

You can do transforms after they spawn immediately.

interesting, what if you change the build/minigame?
Hmm, well it should work fine if you switch maps whiten the same save type.
AKA: Switching from map_slate to map_desert_slate will be fine, but obviously switching from RTB Isles to WWII overcast shoreline will screw things up.

For that reason I'll add a clear positions command which will clear all the past saves.

that and maybe clear it on server restart?

Would it at all be possible to save the transforms of players across various maps, i.e., it saves individual transforms for each map.  Slate, bedroom, etc.

Would it at all be possible to save the transforms of players across various maps, i.e., it saves individual transforms for each map.  Slate, bedroom, etc.
Not a bad idea.....

Not a bad idea.....
Thanks.

Just to clarify/expand this idea further:
If the map gets changed, the script doesn't utilize the transform for the previous map, but instead creates a separate save for the new map and spawns the player at the default area (assuming the person hasn't been on that map before.)  If they have, it loads the save file for that specific map.

Also, I rather like this Add-On.  Nice work..,
« Last Edit: July 27, 2010, 04:24:41 PM by Xerces »

Thanks.

Just to clarify/expand this idea further:
If the map gets changed, the script doesn't utilize the transform for the previous map, but instead creates a separate save for the new map and spawns the player at the default area (assuming the person hasn't been on that map before.)  If they have, it loads the save file for that specific map.

Also, I rather like this Add-On.  Nice work..,

It now puts the position saves like this:
<your blockland folder>/config/server/positions/<map name>/<your name>
So that if you were playing on an RP server that used Slate_Desert your save would look like this:
Blockland/config/server/positions/slate/xerces
It's not by map name but rather by "save name" which means for example, that RTB Isles Night uses the same folder as RTB Isles Day, and Slate Cosmic uses the same folder as Slate Desert, but RTB Isles doesn't use the same folder as Slate.

It now puts the position saves like this:
<your blockland folder>/config/server/positions/<map name>/<your name>
So that if you were playing on an RP server that used Slate_Desert your save would look like this:
Blockland/config/server/positions/slate/xerces
It's not by map name but rather by "save name" which means for example, that RTB Isles Night uses the same folder as RTB Isles Day, and Slate Cosmic uses the same folder as Slate Desert, but RTB Isles doesn't use the same folder as Slate.

I see, well done.  I'm not a scripter, but I get how that works nonetheless, haha.



Filefront doesn't work for me :o

What happens if they leave the server while they are waiting to respawn?