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, ...
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 ...
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 ...
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 ...
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:
...
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.
...
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.
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 ...
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 ...
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 ...
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=...
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 ...
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 ...
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. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xml × 100c# × 36
xna × 31
unity × 21
java × 11
android × 9
xna-content-pipeline × 9
data × 7
serialization × 7
databases × 6
xna-4.0 × 5
file × 5
component-based × 4
data-driven × 4
game-design × 3
rpg × 3
data-structure × 3
scripting × 3
savegame × 3
file-format × 3
storage × 3
npc × 3
sql × 3
configuration × 3
c++ × 2