Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: abstauber on Tue 11/05/2010 08:31:12

Title: Saving structs to files
Post by: abstauber on Tue 11/05/2010 08:31:12
Sorry if this has already been answered.

Has anyone already made a module for this?

My current approach would to use Monkey's stacks module for converting and saving the struct. But maybe one of you already has a way better idea ;)
Title: Re: Saving structs to files
Post by: Khris on Tue 11/05/2010 08:50:04
I don't think there's a short, elegant way here. Either use monkey's module or do it manually. I'd convert all data to strings and write those to a file.
Title: Re: Saving structs to files
Post by: abstauber on Tue 11/05/2010 18:26:13
Just wanted to let you know that it works perfectly with Monkey's stacks.

It's terribly slow by the way, so expect a nice loading screen... even in the 21th century ;)
Title: Re: Saving structs to files
Post by: Wonkyth on Wed 12/05/2010 12:29:59
That's a good thing.
If the loading screen is too short, it might be better to have a long pause, which is still bad.