I am trying to start the game on a saved map. I tried this and it didnt work.
[CODE]
function GM:Initialize(ply)
gmsave.LoadMap( 'gm_construct 2016-6-18 00-39-37.gms', ply )
end
[/CODE]
try "saves/gm_construct 2016-6-18 00-39-37.gms" instead, I think it was using the GAME path.
No it said: gm_load: Couldn't decode from json!
The first argument is not the file location, its the JSON of the save information, I have never worked with gms's before but I assume you just read the file like a text file and then pass the JSON string in as the argument. look at the file.Open and file.Read on the wiki.
Its just ALOT of weird code like numbers and letters like: 2j8d 9a7d 2f1w
If anyone can help then please do.
Use sbox_persist "whatevr" and mark props to be saved by right clicking them > Make Persistent.
They will be automatically saved and loaded.
Sorry, you need to Log In to post a reply to this thread.