Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: theretrodrisk on Wed 13/05/2020 15:50:57

Title: [Solved] Handling save and load in games using verb coin template.
Post by: theretrodrisk on Wed 13/05/2020 15:50:57
First of all, what an amazing editor tool... I have only just started using it and already got some amazing stuff happening... Most of the things I have been able to work out from the brilliant forum and vids out there...  I am however genuinely  stuck on a couple items and this is the first...

On Verb Coin template how does the player save or load a game like they can in the other template styles?

I wanted to do the verb coin style, but for the life of me I can work it out ( I promise I have been looking. ).  Apologies if I missed it.

Thanks again for all your help.

Title: Re: Handling save and load in games using verb coin template.
Post by: Khris on Wed 13/05/2020 16:33:09
I checked the template and it indeed doesn't have any savegame functionality. No GUIs, no keyboard commands, nothing.
No idea how that happened. Looks like the VerbCoin template remains cursed :-D
Title: Re: Handling save and load in games using verb coin template.
Post by: Crimson Wizard on Wed 13/05/2020 16:42:50
Which template is it (what version)?

Since 3.5.0 we have a new simplier template, and source is here in case someone wants to do/suggest an update: https://github.com/adventuregamestudio/ags-template-source/tree/master/Verb%20Coin

EDIT: oh shoot, it actually does not have any save/load :p

Well, you may script save/loading yourself too :) Which way you prefer it to be?
Title: Re: Handling save and load in games using verb coin template.
Post by: morganw on Wed 13/05/2020 21:55:00
It was/is on the todo list to separate the parts from  the 'sierra' template and re-use them in the other templates.
Title: Re: Handling save and load in games using verb coin template.
Post by: theretrodrisk on Wed 13/05/2020 22:27:06
Thanks for the update... I thought I was being daft.. but glad glad it wasn't me being stupid... the reason I chose verb coin is I felt my puzzles wouldn't use half the verbs of the scumm style an was never personally a fan of the  Sierra UI (sorry)... So does this mean its best to restart my game on a different template?
Title: Re: Handling save and load in games using verb coin template.
Post by: Crimson Wizard on Wed 13/05/2020 22:28:52
Quote from: theretrodrisk on Wed 13/05/2020 22:27:06
Thanks for the update... I thought I was being daft.. but glad glad it wasn't me being stupid... the reason I chose verb coin is I felt my puzzles wouldn't use half the verbs of the scumm style an was never personally a fan of the  Sierra UI (sorry)... So does this mean its best to restart my game on a different template?

No, of course not. Template is nothing but a starting set of assets. You may remove/remake it all or chosen parts of it. You may, for example, copy save/load code from Sierra template into your game (only have to create necessary GUI/menus of your liking)

Here's global script from Sierra template, for the reference: https://github.com/adventuregamestudio/ags-template-source/blob/master/Sierra-style/GlobalScript.asc
Title: Re: Handling save and load in games using verb coin template.
Post by: theretrodrisk on Wed 13/05/2020 22:56:08
Thanks,  I will read through how best to do it.  Thanks for your help.
Title: Re: Handling save and load in games using verb coin template.
Post by: Danvzare on Thu 14/05/2020 12:27:58
Quote from: Khris on Wed 13/05/2020 16:33:09
I checked the template and it indeed doesn't have any savegame functionality. No GUIs, no keyboard commands, nothing.
No idea how that happened. Looks like the VerbCoin template remains cursed :-D
What? Really?  8-0
Holy crap, it looks like Babar was onto something.

One of these days I'm going to have to try and design what I consider the best possible VerbCoin template. One with savegame functionality.  (laugh)
Title: Re: Handling save and load in games using verb coin template.
Post by: Khris on Thu 14/05/2020 12:51:38
I added the Sierra GUIs back in: VerbCoin Template (https://drive.google.com/file/d/1QHYd579A68mmWqWwioNlctLBvgLTBuv9/view?usp=sharing)

Since there's no icon bar, just press F5 to save, F7 to restore.
Title: Re: Handling save and load in games using verb coin template.
Post by: morganw on Thu 14/05/2020 18:16:42
If you are happy to supply patches them I'll apply them. Or if you have a GitHub account you could submit the changes directly.
https://github.com/adventuregamestudio/ags-template-source
Title: Re: Handling save and load in games using verb coin template.
Post by: Khris on Thu 14/05/2020 19:09:12
Great, I created a pull request: https://github.com/adventuregamestudio/ags-template-source/pull/20
Title: Re: Handling save and load in games using verb coin template.
Post by: theretrodrisk on Sat 16/05/2020 00:01:58
Thank you everyone... That's amazing.  What a great community here   :-D
Title: Re: [Solved] Handling save and load in games using verb coin template.
Post by: Khris on Sun 17/05/2020 12:51:16
I added some minor fixes to the template; if anybody likes to test it, here's the link again:
https://drive.google.com/file/d/1QHYd579A68mmWqWwioNlctLBvgLTBuv9/view?usp=sharing