General > Off-Topic
Loading Saved Games?
Timmy:
The save files that are generated when you click "Save Game" in the "Saves" tab?
I attached an addon to my post with a function that can load these files on a dedicated server.
Instructions:
1. Add the addon to your server by extracting the archive in your server’s addons/ directory.
2. Upload saves (with .gms file extension) to the data/ directory of your dedicated server. (You can find save files in the saves/ directory of your local Garry's Mod installation.)
3. (Re)start your server.
4. Run the following command from your server console: lua_run LoadSaveFile("awesome_save.gms")
Technical information for developers
Save files are binary files with the following data structure:
1. File signature "GMS3" (0x47 0x4D 0x53 0x33).
2. Map name as a null-terminated string.
3. Duplication info in JSON, compressed with LZMA.
Entities can be restored by passing the duplication info to duplicator.Paste.
JavaScript-based web app that shows duplication data: https://timmy.ws/demos/gms-parser/index.html
Small save file for testing purposes: https://timmy.ws/demos/gms-parser/sample.gms
2016-10-15 Update: Added information about the Garry's Mod save file data structure.
2017-01-07 Update: Attached a refactored and optimized version of the addon.
The Asian Aimbot:
:D Thanks so much! I'll try it when I have the time.
The Asian Aimbot:
I've actually had the chance to try it recently, and it works beautifully! Thanks again!
Edit: Apologies for that necro bump....
Ghost114455:
@Timmy,
So I am trying to do your list to use the saves in my GMod server, but I cannot obtain the addon you have posted for some odd reason.
Timmy:
Perhaps a mirror will help?
https://send.firefox.com/download/278f26b95d2ecb9a/#AwxKIUZc5IIvlUYVKv9dYQ (link valid for 1 week)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version