42 votes
Accepted

For a custom game engines, what should I do if my core data is malformed or missing?

Log an error and gracefully exit. Ideally, display a human readable error on screen as well. There should be a core pipeline of hard coded functionality that operates without these data files. It's ...
House's user avatar
  • 73.2k
11 votes

For a custom game engines, what should I do if my core data is malformed or missing?

Byte56 mentioned one option. There is at least one other: Assume default values and display a Warning. Depending on the nature of your data, it might be perfectly acceptable to assume some default ...
Octopus's user avatar
  • 269
6 votes

For a custom game engines, what should I do if my core data is malformed or missing?

It depends on whether this happens during development or release. During development, you will have all kinds missing things, errors, and mess-ups, constantly, all the time, and you may even want to &...
Damon's user avatar
  • 1,384
4 votes

Unity - Where should downloaded level data be stored?

I don't think placing game related files in My Documents/My Games/ annoys users, it's pretty much standard to put it there so why don't you do it? Each user can ...
Madmenyo's user avatar
  • 1,979
4 votes
Accepted

Project transfer, will re-importing all my models damage my project at all?

You need to transfer the asset metadata as well as the asset files themselves. The metadata files might be invisible depending on your settings. On the old computer, go to ...
vrostu's user avatar
  • 211
4 votes

Should game data be encoded in configuration files, given that it will almost always contain logic?

A game or an engine If you were making a game, then you write the code for each case in your game. Then the configuration only needs to specify which of the possibilities it uses. Which seems to be ...
Theraot's user avatar
  • 26.6k
3 votes
Accepted

Should you avoid memory allocation and deallocation while the game is running?

I interpret this as meaning that you should do all the necessary heap allocation while the game is booting up, and arrange it in object pools that you then manage when the game is running. Is this ...
Philipp's user avatar
  • 119k
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
3 votes

Disc based storage medium

Many games get bought on the internet. Stuff like the Call of Duty Infinite Warfare and Modern Warfare bundle simply won't fit on a CD (They take up together around 200Gb), or the new version of GTA ...
Bálint's user avatar
  • 14.9k
3 votes
Accepted

Is it possible to store ALL game data on the sever side

It's not an approach worth to use. For a normal player it may not be a big deal but some people may try looking into the game files to find various information. Even if you download the content at ...
Ferreira da Selva's user avatar
3 votes
Accepted

Backend for data-driven multiplayer game

You probably do want to communicate to this information to the client so that they are able to view it. You can treat the client as a dummy terminal though with sparkly representation and have a "...
user3730788's user avatar
3 votes
Accepted

Confused about how specific bools or flags are actually accessed and used by other scripts

For saving the state of multiple objects like this, there's a lot of different techniques you can use depending on just how extensible you'd like this to be. I'd of course recommend storing all of ...
domportera's user avatar
2 votes

Backend for data-driven multiplayer game

I wouldn't store them on clients, or even ship that information with game. If security is your main concern, fetch all informations required at the beginning of the game (from a database), store them ...
starikcetin's user avatar
  • 5,275
2 votes

RPG Data (Skills, Monsters, Items, Equippables)

Hundreds of items is really not much for today's hardware. The mechanics-relevant information about items, enemies etc. is likely not going to be more than a few hundred bytes per entity. So keeping ...
Philipp's user avatar
  • 119k
2 votes
Accepted

Reading a Binary File in Unity

Your file is not a binary file. It contains ASCII text, starting "1e"... The value of which is 65 31 in Hex (Little endian encoded), Or 25905 in Decimal. 1e44(ascii)= 34 34 65 31 (hex) = 875849009 (...
JeffUK's user avatar
  • 220
2 votes
Accepted

simple data source on hard disk for android game

I'm not sure how your library is organised, but it seems it's just a data library with some interface to access such data. You can have a separate file with all the data you need (the words) which ...
Tom Tsagkatos's user avatar
2 votes
Accepted

Disc based storage medium

I'm sure there are any number of approaches, these are some of them: Compression: reduce the space need on the disc at the cost of retrieval+decompression later which costs cpu usage and time ...
Jeremy Harton's user avatar
2 votes

How to make the player unable to change some of the game elements?

You can use cryptography. But doing that in a way that actually prevents people from creating spells requires that you do not ship the private key to users, which implies either an internet server, or ...
Ryan1729's user avatar
  • 714
2 votes
Accepted

GM files in online mobile games: what type of GM file should I keep a local copy and how does it synchronize with server?

(1) Are text info such as names and descriptions generally considered data that need to be pulled from server every request or something that can be accessed from the local file? "General ...
DMGregory's user avatar
  • 134k
2 votes
Accepted

How to store localized text data in Unity?

Unity has built-in support for storing localization data. Import the localization package from Unity's package manager, and check out the Quick Start Guide. It supports localization for ...
Evorlor's user avatar
  • 5,793
1 vote

Unity - Handling external data files

It's generally better to use ScriptableObject assets rather than text files. For example, ...
Kevin's user avatar
  • 5,734
1 vote

How to version control game balance data stored in spreadsheets

You can store in (any) VCS text-only version of your spreadsheets (CSV, f.e.), but work only with original (binary XLSX) presentation of data (edit/update|export|commit) You can use non-default tools, ...
Lazy Badger's user avatar
1 vote

Good data structure for storing graph-like map

Your first problem can be solved by implementing a custom list object or (as you only need three items) a custom tuple object instead of the default List<>. This way when you insert tiles you can ...
andrew zuo's user avatar
1 vote
Accepted

reading from texture2d resource in directx11

i have found the solution. it looks even so pretty. testV.push_back(outputArr[idx]) should have been edited like ...
KIM CHANGJUN's user avatar
1 vote
Accepted

How to store relations between NPCs?

Mostly it comes down to how you expect people to interact with your data. Database approach The database approach is best suited to situations with an emphasis on querying. Will the DM often want to ...
Pikalek's user avatar
  • 12.4k
1 vote

How to store relations between NPCs?

I'd say this is very similar to some old (non-game related) projects in which I worked. What worked there, and I'd say is a sensible solution, is to code the logic in your programming language of ...
TGonzo's user avatar
  • 46
1 vote

How to store relations between NPCs?

First of all im not very versed in Database structures. I know how they work, what they are there for, and since Uni never had to touch them again. As a DnD player myself, i see some problems with ...
PSquall's user avatar
  • 1,332
1 vote

Transfer Codes between OS

Why is due to platform provide rules. Transfering certain content, is not allowed by Apple in app purchase guidelines: 3.1 Payments 3.1.1 In-App Purchase: If you want to unlock features or ...
Pikalek's user avatar
  • 12.4k
1 vote

Transfer Codes between OS

It is generally not allowed to transfer currency between payment systems. If the price of Gold is lower on Android by a bit and you can transfer to iOS, Apple loses their 30% cut of any sales made on ...
Almo's user avatar
  • 6,678

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