Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Seiryu33 on June 25, 2019, 07:12:48 AM

Title: Create game file system
Post by: Seiryu33 on June 25, 2019, 07:12:48 AM
I don't know if I asked about this before, but it was something that I never really got a handle on: how do I create a game file system that records game data like in Zelda or Shantae Half-Genie hero? I use EasySave2, which I used to do a simple auto-save function but my next project uses a more complex system. I haven't seen any tutorials on it. So far the only thing that comes close is character selection, which isn't what I need. Any pointers is greatly appreciated.
Title: Re: Create game file system
Post by: djaydino on June 25, 2019, 08:49:55 AM
Hi.
For saving inventories i usually use a xml for item data and use id numbers to reference and retrieve the data using DataMaker (Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181))

Then for the inventory i use 'array list' as build in arrays are not so good for this purpose.
and in the list, i use the id numbers and save the array in easysave.

For equipped i do the same thing.

Also lately i tend to use HashTables to build item lists @runtime and use the id as Reference.