Skip to main content
3 votes

How is data regarding items in RPGs and other loot-based games stored and implemented?

We can't answer questions like "how do they do it" because, well, we don't know, and they won't tell us. We can help you figure out a few things, though. In software development in general, ...
Vaillancourt's user avatar
  • 16.3k
2 votes
Accepted

How to securely store xml/json information about actors in a game?

You could use JSON and zip it with a password (encrypt), then use a runtime zip library like DotNetZip to extract it for inspection by the game only, no-one else. Or you could access it on a secured ...
Engineer's user avatar
  • 30.2k
2 votes

Relational Databases vs XML vs public static finals: Pros and Cons

1: TOTAL overhead. Like driving a 40 ton truck to your weekly shopping for you and your spouse. Adds a lot of memory eating high end functionality into what is essentially a configuration file. If you ...
TomTom's user avatar
  • 155
2 votes

Tower Defence stat storing system

Firstly, I see no issue (in principle) with the first approach, the XML file. Easily editable, easily extendable. Secondly, I would still recommend not using XML, and using JSON instead, since it's ...
sh code's user avatar
  • 196
1 vote
Accepted

`System.Xml.XmlDocument.Load(Path)` doesn't work on Android

Thanks to DMGregory. TextAsset is a great solution. If anyone is interested, here is what the SetLanguage method looks like now: ...
Iakov Lutsevich's user avatar
1 vote

How to create a re-usable layout of text fields that can be bound to in world space?

One very easy way is to only use one text renderer (e.g. TextMeshPro) in each place that you want to display text, and format all the text you want to display into a single multi-line string. ...
Kevin's user avatar
  • 6,564
1 vote

Unable to select MonoDevelop to open XML file from Unity project

MonoDevelop was phased out in version 2018.1. You now need to use something different, like Visual Studio.
blizzo's user avatar
  • 11
1 vote

XML, how to have two variables under the same node?

It's hard to avoid "ugly and inefficient" when serializing data as XML, but space- or comma- separated strings for coordinate data is okay. Alternatively, you can use two attributes or make position a ...
Jimmy's user avatar
  • 9,029
1 vote
Accepted

Relational Databases vs XML vs public static finals: Pros and Cons

This is definitely overkill. I'm going to liken this to drinking a glass of water out of 5 gallon bucket. Because I think unlike TomTom's answer, although apt, I'd like to get the point across that ...
Joshua Hedges's user avatar
1 vote
Accepted

Way to deserialized or load last save state scene with GameObject and other classes instead of storing normal fields via binary format?

Unfortunately, after several experiments to find the easy way to store GameObjects effectively without hassle, there is no shortcut in preserving files + game ...
David Dimalanta's user avatar
1 vote
Accepted

Data Driven Design and Game Screen Resolution

I think you want to put them in world coordinate position instead of screen coordinates; instead of the values relating to a position on the screen and thus changing; make, it say the position x=30 y=...
Adam Dunmars's user avatar
1 vote

Updating an XML Document to Match New Save Data?

You could use a datacontract. So below is how to use a datacontract with two versions of FileData ( v1 & v2 ). Comment in filedata version 1 and call testV1(). This will cause filedata version 1 ...
RobM's user avatar
  • 422
1 vote
Accepted

Should I use SAX or DOM to parse Game dialogue/text events in XML?

Typically, if you just want to retrieve one specific datum in an XML file (such as, e.g., the text of one specific dialog) a SAX parser will give you faster access times because it does not have to ...
Thomas's user avatar
  • 1,219
1 vote

Tower Defence stat storing system

Although I think @sh code 's answer is the correct way to go, I wanted to add that Unity's new prefab variant workflow is really useful for making related objects have slightly different properties. ...
Adam B's user avatar
  • 800

Only top scored, non community-wiki answers of a minimum length are eligible