Skip to main content

Questions tagged [data]

Values of qualitative or quantitative variables, belonging to a set of items.

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

How to save data the most efficient [duplicate]

If I have a lot of data to save, say 500 ints for how many stars a user has collected, some text for user created levels, settings, etc. What would be the best method to save all of this? Should I use ...
CheckerT's user avatar
  • 154
0 votes
1 answer
224 views

How to serialize data from C# in a non-human-readable way?

How can I serialize a C# object (class, struct, etc) to a file without that file being easy to read? Binary Formatter First I used the Binary Formatter, which worked really well, but there were a lot ...
Pow's user avatar
  • 414
0 votes
0 answers
77 views

How do I make a cross scene data save in Unity?

I am trying to find a way to keep my "key" data from 1 scene to another. While removing the key from the first scene, and keeping the information of the coin being collected onto my next ...
Mic flamey tee's user avatar
8 votes
3 answers
594 views

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

Question inspired by the accepted answer to another question: Wondering if there is a more efficient way to store level data in my game? The answer, by @Evorlor, says: You should have the data for ...
gaazkam's user avatar
  • 977
2 votes
1 answer
544 views

How to store localized text data in Unity?

I need to create a lot of read-only text data. As far as I know storing a lot of data directly in the script is not good, so I need to create a separate json file with ready-made data to load in the ...
Silz's user avatar
  • 37
0 votes
0 answers
133 views

How to export a Unity terrain to a DEM or other 3d data for external use?

I have found numerous examples of exporting Unity terrain to programs like Blender or just importing digital elevation files (DEMs) into Unity. But can a terrain generated in Unity be exported into ...
ten's user avatar
  • 1
0 votes
1 answer
52 views

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

I have a problem which I'm sure can be abstracted to some larger concept but I don't really have the knowledge to know what to google. I'll just explain what im trying to do and if you can please tell ...
iamconfusion's user avatar
1 vote
2 answers
155 views

What dynamic range of numbers do games typically use?

Most of the numeric quantities used in games (aside from integers for counting or indexing objects) are single-precision floating point. This is IEEE format, which allows for numbers as big as 1e38 ...
rwallace's user avatar
  • 125
0 votes
1 answer
54 views

'Partial data load' terminology

I am writing up my work and I'm trying to think of a word, or phrase, that better describes a 'partial load' of data. In my case, I have one very large file that is "environment A". To ...
James the Flooded Roads Guy's user avatar
0 votes
1 answer
52 views

Instantiate only specific objects in Unity

Here is the situation: I have 10 weapons in my game, in main menu player may choose only two weapons that could take to the game, and this information about two weapons will save in a kind of "...
Silz's user avatar
  • 37
2 votes
3 answers
444 views

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

In mobile game development there are types of data that are not user save-data but are necessary for the game, we call it GM files. In my specific case, the GM files include text data such as "...
cr001's user avatar
  • 153
4 votes
1 answer
911 views

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

I recently read this answer on this site, which says the following: making sure no allocation/deallocation is being done while the game is running is a golden rule of thumb. I interpret this as ...
JensB's user avatar
  • 157
1 vote
1 answer
78 views

How do I handle a non-hierarchical, referential network of game data?

I've been using JSON to store a lot of my game's data. I love it compared to my previous workflow. Having a human-readable hierarchy of arbitrary information is a godsend. My needs have grown more ...
Loospie's user avatar
  • 191
2 votes
1 answer
672 views

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

I am currently practicing game design and development by implementing singular (or a small set) of mechanics in Unity. For example, -- and this is relevant towards the end -- I've just finished a ...
MightyOwl's user avatar
1 vote
1 answer
244 views

Storing 2D animation frames and sharing them between objects

I store 2D animation frames in some class. But the problem is that when I want to create multiple objects for example I want to spawn explosion or enemy ...
Eminiox PL's user avatar
0 votes
1 answer
323 views

Scrolling the map in a 2D a tiled game

I am making a small game where I store information about the world around the player (like tiles) using a small 2d array of integers. In the game you can scroll the screen to the left or right. I also ...
da123's user avatar
  • 1
1 vote
1 answer
80 views

How to manage in-game factions, alliances, federations, etc

So this question is code or engine agnostic but, I’m looking for ideas on how a game can keep track of a pre-determined number of factions or alliances. For example, say I made a space game that has 2 ...
ACour008's user avatar
0 votes
0 answers
74 views

Do developers watch player match recordings for their online games?

When developers plan and decide on new buffs and nerfs, do they gather information from online game matches, recorded secretly from their servers' data feeds and reconstructed / analyzed offline - for ...
ivan866's user avatar
  • 141
0 votes
0 answers
76 views

Looking for the best way to store game data that is meant to be user editable at runtime

I have a broad question, hopefully I'll synthesize it well. I've been looking for the best way to store the standard data of my project. So far, I've found 4 possible answers to my problem: Binary ...
Gabriel Minosso's user avatar
0 votes
1 answer
423 views

Unity - Handling external data files

I'm moving from an old game dev tool to Unity, and wondering how to go about handling external data files. In my previous program I'd set up external (txt/ini) files like this: ...
Muckington's user avatar
2 votes
1 answer
197 views

How to version control game balance data stored in spreadsheets

Is there any good workflow/tooling for having good version control on spreadsheets for game data? Ideally something that supports branching or merging. Google spreadsheets allow people to edit data ...
nialna2's user avatar
  • 930
1 vote
1 answer
442 views

How to handle data for a competitive multiplayer games

I am kinda new to Multiplayer Games and I am really wondering how I should handle my data Should each player send and update their data to the database (server) everytime one of their essential ...
Fvnex's user avatar
  • 13
0 votes
0 answers
275 views

Workflow for a data-heavy, almost spreadsheet-like management game

I'm absolutely fascinated by the management games, such as Football Manager, with dozens of spreadsheets and thousand of pieces of data. Coding it all in Unity, especially for a prototype, feels like ...
Valentin Golev's user avatar
0 votes
1 answer
631 views

Good data structure for storing graph-like map

I'm creating a strategy-based kingdom expansion game, where you start with one city and try to expand as far as possible from there. All the cities fit on a hexagon-grid and are connected by the edges ...
Sarah's user avatar
  • 59
1 vote
1 answer
2k views

How to use open dota api?

OpenDota, A community driven platform for DotA 2 matches and players data is the best open-access API in gaming scene. I found no casual tutorial for using its API, So, I decided to make a one. Your ...
user avatar
3 votes
1 answer
112 views

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

I am making a text turn based RPG fighting game in which you create your own spells. You also share them as JSON files with your friends. Sharing is required to win. The game is designed so that it ...
Spowmtom's user avatar
1 vote
1 answer
455 views

reading from texture2d resource in directx11

Hi^^ i am trying to read data in resource, which i used to do well without any problems. but suddenly it is not working. first i made immutable resource that has data in it, which is ...
KIM CHANGJUN's user avatar
6 votes
3 answers
1k views

How to store relations between NPCs?

For an RPG I want to generate a world with lots of NPCs, and the NPCs all have relations to eachother. They can be eachothers parents, children, siblings, friends, bosses, lovers, lieges, vassals, etc....
PaulMag's user avatar
  • 163
2 votes
1 answer
5k views

Reading a Binary File in Unity

I am trying to display the first two bytes of a binary file as a test. I have the following code. ...
StackingofOverflows's user avatar
0 votes
0 answers
108 views

what is the sequence in using the "send" and "read" commands on the game client and server? boost asio

I have a voxel game in which you can run on blocks (chunks), jump and set/delete blocks. I want to write an asynchronous TCP server for it and choose boost asio as the network library. I have two ...
Dre4msNoEvil's user avatar
0 votes
1 answer
29 views

simple data source on hard disk for android game

i have a big library on my game. its word library. there is no need of it to be on ram.any moment some part of it can be searched so there is no need to make a list or dictionary for it. is there any ...
virtouso's user avatar
  • 2,660
1 vote
3 answers
1k views

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

I want to make a game where everything is supposed to be a surprise. Everything from the maps to the enemies, no guides what so ever. For a normal player it may not be a big deal but some people may ...
Orbital's user avatar
  • 113
0 votes
2 answers
54 views

Transfer Codes between OS

I'm making a mobile game and had the idea of using transfer codes for taking one account to another device. Lately, I've seen this function being used in a lot of mobile games, you go to the game ...
JMorales's user avatar
1 vote
0 answers
228 views

Other methods to save data than PlayerPrefs?

I've been saving data using the playerPrefs option in Unity till now. Is there any better/secure way of saving data for developing mobile games. Somes sites have mentioned encryption of data - how do ...
Sudeep Kandregula's user avatar
1 vote
1 answer
122 views

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

Recently I had to transfer my Unity game project to another computer and downloaded the same version of Unity I was using for my 3D project and checked that all the files and folders were in the same ...
CraftyMaelyss's user avatar
0 votes
1 answer
532 views

How can I parse different types of objects from JSON?

I'm trying to save the player's inventory as a JSON data but I'm having a problem. I have a class Sword which extends an abstract class ...
Irakli Chkuaseli's user avatar
0 votes
1 answer
136 views

How do I keep Text[] values alive and reuse in the script [duplicate]

I'm building a bowling game in which I am trying to save the number of pins fallen on every turn to a UI text box, taken as an array (public Text[] Count). I'm able ...
Salar Muhammad's user avatar
0 votes
1 answer
243 views

How to Store Design Data in Unity including Formulas?

My team is switching to Unity 3D for an upcoming project. I'm tasked with converting our game data system into Unity. Our existing games use spreadsheet documents (Google Docs) for designers to set ...
Nick Gotch's user avatar
0 votes
3 answers
101 views

Disc based storage medium

I am only just dipping my toe in the water of game development, so forgive my ignorance if you will: Regarding console AAA titles with massive open-world settings: How do all of the art assets and ...
JimSocks's user avatar
0 votes
1 answer
210 views

Only first vertex of data used in shader OpenGL

I'm making a voxel game like Minecraft which was working fine until I added water. Then I realized that whatever the texture was for the first visible block was applied to the rest of the blocks in ...
Ben Beazley's user avatar
0 votes
3 answers
332 views

Unity - Where should downloaded level data be stored?

I've been looking around and it appears suggestions are only to store data to UserPrefs, or PersistentDataPath. I intend to have map files streamed to the client on demand, and saved for reuse. ...
Dean's user avatar
  • 1
2 votes
3 answers
2k views

Protecting game assets through archiving

I'm writing a game in C++ (with OpenGL) and am getting quite far into development. Currently I'm loading the data directly from different directories. (E.G. I load textures from a /Data/Textures/......
Morgan Frary's user avatar
0 votes
2 answers
851 views

The best way to store and protect game data [duplicate]

I'm writing a sandbox-type game and i'm looking for a good way to store game data. I tryed Lua and plain text files, but the have a big minus - player can edit them his self! So how do I protect data ...
user avatar
0 votes
1 answer
217 views

How flat-file and databases compare in games development? [closed]

Typically games built with a goal of being easily modded often store data in plain text documents, such as Rimworld. I can't see why an entire database system would be implemented just to read a few ...
Mana Bat's user avatar
25 votes
3 answers
4k views

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

I'm writing a custom engine for a game. I started this game well before I understood why I should use middleware, instead, and it's too far along to rewrite. The vast majority of my data comes from ...
JesseTG's user avatar
  • 1,077
1 vote
2 answers
3k views

Most Efficient Way to Store player stats/data in Unity C#?

I am looking at storing player data in Unity from a script that I'm writing in C# and I would like to get an opinion on the best way to store the player's stats/data about the player like hours played,...
Trey50Daniel's user avatar
2 votes
2 answers
3k views

Backend for data-driven multiplayer game

I am working on a match-based (5v5) multiplayer steam game that is similar to TF2, LoL, Dota 2, etc. I am planning a data-driven approach where character/abilities/items/etc are defined in data (JSON)...
erebel55's user avatar
  • 343
4 votes
2 answers
514 views

RPG Data (Skills, Monsters, Items, Equippables)

I'm creating a simple RPG type game. I've dabbled with the idea of just loading all the skills, monsters, items and so on at once. However, to do that seems horrible wasteful since I would have ...
JBiggs's user avatar
  • 41
1 vote
0 answers
92 views

How does this work? Data catching without displaying client [closed]

Alright so this is about a game, but more generally this can probably be done for all games, I just want to figure out how the application accomplishes it. So it's for a game called League of Legends,...
Reece's user avatar
  • 11
1 vote
1 answer
331 views

C++ : Library for creating 3d view picture [closed]

I've got a numerical simulation, where I have as an output 3d matrix of billion elements - the visualisation of data is 2d flat image: When I was starting I was just outputting 2d data to gnuplot, ...
Cheshire Cat's user avatar