ULX

Author Topic: Loading Saved Games?  (Read 18776 times)

0 Members and 3 Guests are viewing this topic.

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Loading Saved Games?
« on: October 07, 2016, 04:42:34 PM »
Not really sure where to put this, but is there some way to load saves on a dedicated server? I am listed as a superadmin in the server config and in ULX.
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Loading Saved Games?
« Reply #1 on: October 07, 2016, 07:02:42 PM »
Google found this.
https://steamcommunity.com/app/4000/discussions/1/558746089748738658/

And, since I really doubt Gmod would work that way,
there's always this, 100% designed to allow HL2 MP.
http://store.steampowered.com/app/17520/
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Loading Saved Games?
« Reply #2 on: October 08, 2016, 08:35:18 AM »
Thank you, but I already tried that before even posting and it put me in a singleplayer game without changing the server.
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Loading Saved Games?
« Reply #3 on: October 08, 2016, 10:33:20 AM »
I'm pretty sure Gmod wasn't meant to do what you're asking.
Not saying it's not possible - I just can't imagine that it is.
Extreme technical challenges.

I found a Workshop gamemode meant for HL2 MP, but, it was last updated 2-3 years ago, and even with its good intention, listed many known bugs.
I only imagine it may be even more out of date.

Every discussion I found of it made it seem as though no one kept servers going for it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Loading Saved Games?
« Reply #4 on: October 08, 2016, 11:23:25 AM »
Well, thanks anyways.
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Loading Saved Games?
« Reply #5 on: October 08, 2016, 05:41:30 PM »
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.
« Last Edit: January 06, 2017, 04:21:53 PM by Timmy »

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Loading Saved Games?
« Reply #6 on: October 08, 2016, 08:57:37 PM »
:D Thanks so much! I'll try it when I have the time.
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline The Asian Aimbot

  • Jr. Member
  • **
  • Posts: 74
  • Karma: 2
  • Rise and shine, Mr. Freeman, rise... and shine...
    • Asian Domain GMod Sandbox Server
Re: Loading Saved Games?
« Reply #7 on: January 05, 2017, 09:34:32 AM »
I've actually had the chance to try it recently, and it works beautifully! Thanks again!

Edit: Apologies for that necro bump....
The Asian Toaster man who escaped the Great Martian Coup of '69, hid in Beijing for 9 months, and was cast away by the FSM. Flew away w/ GoombasTasteGood and hid in Addis Ababa after fleeing to Botswana, then to Canada.

http://www.downloadmorewam.com

Offline Ghost114455

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Loading Saved Games?
« Reply #8 on: June 19, 2019, 09:48:52 PM »
@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.

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Loading Saved Games?
« Reply #9 on: June 20, 2019, 01:48:58 AM »
Perhaps a mirror will help?

https://send.firefox.com/download/278f26b95d2ecb9a/#AwxKIUZc5IIvlUYVKv9dYQ (link valid for 1 week)

Offline Ghost114455

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Loading Saved Games?
« Reply #10 on: June 20, 2019, 09:11:39 AM »
It works! Thank you very much!!

Offline feelsbatata

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Loading Saved Games?
« Reply #11 on: July 26, 2019, 12:14:15 PM »
Can you update the url?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Loading Saved Games?
« Reply #12 on: July 26, 2019, 12:26:41 PM »
Did you try to download it from his post. It is an attachment. The link he posted before was just for that person who was having trouble downloading the attachment.


Offline Meowlan |NC|RP|

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Loading Saved Games?
« Reply #13 on: August 20, 2021, 07:26:57 PM »
I cant find the download either