Jump to content

Save / Load System?


SqHd

Recommended Posts

Hello. I'm wondering if anyone has an updated version of Steve's "Simplistic Save and Load Game System":

http://www.garagegames.com/community/resources/view/21450

I got stuck on which file to place these functions in: function StorePlayerObject(), function SimplisticSaveGame(%missionName), and function SimplisticLoadGame(%missionName)


Or is there another T3D MIT compatible save / load resource?

Thanks.

Link to comment
Share on other sites

Well, I have some progress. I put the functions in default.bind.cs (bc I'm not sure how to call them via a keybind if they are in another file). When I'm in a mission and I press the key to save, it creates 2 save files. Odd...

When trying to load (via the console), I get this console error:

getSubStr(...): error, starting position and desired length must be >= 0: (-3, 3)


And the screen is just black with an ammo counter for the pistol and the chat HUD welcoming me.

If I open the save file via the world editor it works great.

Link to comment
Share on other sites

Finally had a chance to do some more investigation.

When I load the game and end up in the black screen mission, I'm being loaded into the "RootGroup" of the scene.

I opened the World Editor and that is what shows up scene tree view (instead of the MissionGroup from the save file).

If I open the saved .mis file from the World Editor, it loads correctly.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...