I’m creating a rather basic role-playing game with a friend of mine that requires a bit of data storage and looking at some of the options (PlayerRefs, XML, Database, Text Files) I’m not entirely sure which will fill my needs and I don’t want to spend a lot of time doing trial and error here. Hoping for some advice and suggestions.
Basically we are going to be storing role-playing characters, forming a party of 6 characters each with their own statistics (Str, IQ, Agility etc…) various skills and various equipment (pretty basic inventory).
The hiearachy is.
Party : There can be multiple characters in any given party
Characters: There are multiple statistics, skills and equipment for each character.
PlayerRef was the first one I looked at but that seems to be more of a pretty direct system, I think given that there will be multiple parties of multiple characters with multiple additional attributes this doesn’t seem capable of handling that diversity. In particular since I will need to query this information on a pretty regular basis and updated it everytime their is a change.
XML seems like it might be a good choice but Im kind of a SQL guy and I find XML to be … harder to grasp.
Databases was my first choice and its the first thing I tried but their doesn’t seem to be any compatibility with SQL at all. Some people have had some success but so far I’m finding getting any of the reference libraries to place nicely with Unity scripts hard to acomplish. Im getting a lot of internal compiler errors after adding reference libraries, even when adding .dll’s directly to asset folders and various other advice I got on the topic. Has anyone had any success for example just getting straight SQLcompact to play with Unity? SQL is my bread and butter, if I could get that to work it would be extremly simple for me to use it in games.
Text files, again, seems like a lot of people have had a lot of trouble in this areas (system.IO) seems to have the same types of problems as SQL oriented libraries.
Anywho, any advice, suggestions, tutorials or links would be greatly appriciated.