Questions tagged [file]

Files are a common resource for storing information on computers and electronic devices.

Filter by
Sorted by
Tagged with
38 votes
6 answers
23k views

What is a good file format for saving game data? [closed]

I need to save some custom game data. Map, player, etc. All of them will have "sub objects". For example, a map and map will have an "array" of tiles. ie, hierarchical data. Hopefully nothing ...
user697111's user avatar
7 votes
1 answer
5k views

How to create a game save file format in c++ using STL

Hey so i just learned about the i/o part of the STL, more specifically fstream. Although I can now save binary info and classes i've made to the hard drive, i am not sure how to define how the info ...
Griffin's user avatar
  • 630
5 votes
2 answers
6k views

How do I store level-data in Android?

I'm building a game where enemies come in waves. I want to create a file where I can define data about the waves (# of enemies, spawn times, speeds, etc.). I come from a background in iOS and would ...
Slayter's user avatar
  • 185
3 votes
3 answers
2k views

Directory paths for resources and assets

If I have a file stucture for my final, released game something like: Main folder Media Images Other assets Sounds Executable List item And a different one for my 'in development' project, with ...
PrettyPrincessKitty FS's user avatar
18 votes
5 answers
101k views

How to read a data from text file in unity

Can anybody help me out with giving the steps needed for reading data from the text file in unity and how can the script be added.
user1509674's user avatar
9 votes
6 answers
2k views

Why can't I read .ttf file when running Android configuration?

When running or debugging my game on Android device, I get this error in the logcat: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: data/fonts/myFont.ttf (Internal) Which is ...
Davide Cattani's user avatar
4 votes
2 answers
2k views

Writing a custom model file format

I am using Ogre for my rendering engine, and I planned on just using the .mesh format that is setup by default with Ogre. However, I recently purchased a large number of 3d assets from a company, only ...
Aidan Knight's user avatar
3 votes
4 answers
3k views

Good map file structure?

I need a map file structure for my game but does anyone know a good way to map it out? I was thinking something like this: ...
LiquidFeline's user avatar
  • 1,381
3 votes
1 answer
4k views

Import Unity Package Into Specific Folder

Everytime i do import custom unity package file, I alwasy get Messy Folder and files in root of Asset Folder. Any Idea how to solve this ? Many Thanks in advance.....
questionasker's user avatar
2 votes
2 answers
2k views

How to pack the game files into one without using any file compressor?

Well, one example is this file of the game The Sims 2 for PS2: quickdat.arc. The file contains this .arc extension, but it's no one an archive file and it contains some data of the game inside. How ...
zinx's user avatar
  • 21
0 votes
1 answer
259 views

Problem with JSON ScriptableObject saving using NewtonSoft JSON

I am saving a list of ScriptableObjects in a JSON file using NewtonSoft JSON, the problem being that the following error message is thrown when it tries to save: <...
Felix193's user avatar