Product Chat / Autosave - Is it going to happen in this version?

Author
Message
Cylo
Game Guru Backer
14
Years of Service
User Offline
Joined: 2nd Jun 2010
Location:
Posted: 19th Feb 2018 22:11
Or is there a script already?
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 20th Feb 2018 06:20
There's a script for autosave on smallg's thread.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 20th Feb 2018 06:24
I believe its just SaveGame()

I'd trigger it with how far the player gets into the map. You could do it with a timer too. Many different methods.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 20th Feb 2018 08:32
Quote: "I believe its just SaveGame()"


I think it's a bit more than that, there's a variable in it somewhere to choose the slot that the game is saved under.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 20th Feb 2018 11:13
I think it should be added to the Checkpoint script if it isn't already in there.
Julian - increasingly disillusioned and jaded
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Feb 2018 23:06
A most emphatic NO. Whether or not a checkpoint does an autosave is entirely the responsibility of the game creator not the engine!

If you are creating a game you are responsible for how that game functions in regard to the flow of the action for the player, this include whether or not the game is saved at specific trigger points or on a time played basis or even whether to allow the player to decide when to save their progress, the engine should remain completely agnostic in this regard.

Maybe one of the parameters available to the checkpoint 'zone' should be an 'autosave' parameter, but even if it were how does the engine know what exactly to save? Only the game creator knows what needs to be saved at any point in the game!
Been there, done that, got all the T-Shirts!
PM
Cylo
Game Guru Backer
14
Years of Service
User Offline
Joined: 2nd Jun 2010
Location:
Posted: 22nd Feb 2018 00:25
@AmenMoses
Of course. I mean the “possibility” of AutoSave, not a forced one.

I’m looking for a Lua command or a Checkpoint parameter for that.
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 22nd Feb 2018 00:43
The problem still remains of what to save, the engine can't know what is important and what is not.

I've been toying with the idea of a save-game Lua module for a while now but haven't started it yet (got distracted by the GitHub revolution ). The basic idea is to have scripts register their persistent data with the module and specify save triggers, either periodically or on player death/level change etc. The module would then save the registered data and reload it at the appropriate point. For example my pickuppables script would register the data structure it uses to store details about what the player has previously carried and which objects can no longer be carried (because they have served their purpose already) then if the player saves the game and reloads later this data is restored by the module prior to the pickuppables script initialisation.

Well that's the idea anyhow, not quite worked out all the implementation details yet though.
Been there, done that, got all the T-Shirts!
PM
Cylo
Game Guru Backer
14
Years of Service
User Offline
Joined: 2nd Jun 2010
Location:
Posted: 22nd Feb 2018 01:04 Edited at: 22nd Feb 2018 01:07
“What to save”?

Well, the entire game just like it was a manual save, obviously.
Something like reserving a slot for auosaved games.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd Feb 2018 10:24 Edited at: 22nd Feb 2018 10:24
GG already has a save system so just save the same as it does... I.e. anything with g_
Otherwise you will just cause more confusion when your checkpoints save more than the actual save system.

It would be nice to see parameters in the win zone and checkpoint zone markers for saving though... Maybe in a future update.

P.s. it's really quite simple to convert my auto save winzone script to a checkpoint too, just exchange the command to finish the level with the checkpoint command.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 23rd Feb 2018 01:13 Edited at: 23rd Feb 2018 01:14
a global variable needs to be created that defines what map you are on. When you "auto-save" it saves all global variables. When you load an auto save it check the global variable for what map you should be on then loads a fresh one. Enemies and all that may reappear but not if you have them all checking for various global variables you may have created.

I might poke at this someday. Might require a bit of a load/save menu rehaul, or addition of an auto save/load.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960

Login to post a reply

Server time is: 2024-11-24 07:54:28
Your offset time is: 2024-11-24 07:54:28