Questions tagged [file-format]
The structure of data files and how they are stored.
108 questions
0
votes
1
answer
167
views
Open model file format that supports skeletal animation
I'm looking for a file format to store and load 3D models with skeletal animation data, which is free to use and distribute without licence restrictions.
I've evaluated formats like glTF and Collada (....
1
vote
1
answer
129
views
When performing bulk operations on DDS images, is there a safe intermediary format I can use for operations with ImageMagick?
I would like to perform bulk operations of a large number of .DDS files (over 100,000) which may appear in any variety of different BCn formats. I would normally use the ImageMagick command line tools ...
2
votes
2
answers
98
views
Moving "theme" file to a different folder - is it possible to update the resource paths within the "theme"?
Assume the following: One theme is created via the Godot Editor (version 3.5) and saved under res://themes/my-theme.theme. Due to changes in the project's file ...
0
votes
0
answers
180
views
How to pack files to .dta format for Hidden & Dangerous 2?
How can I pack files back into a DTA file from the game "Hidden & Dangerous 2"?
I want to change several sounds in the game in the file Sounds.dta.
I ...
1
vote
0
answers
3k
views
RGBA32 and ARGB32: what are they? what's the difference?
Unity has both TextureFormat.ARGB32 and TextureFormat.RGBA32.The document says it's 8bit each channel in [0..1] range. But what are these formats exactly? 8bit is usually [0..255]. Do they just ...
0
votes
1
answer
80
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 ...
0
votes
1
answer
771
views
How would I save texture along with other data in binary file in Unity?
So I have a save method that can save data to a binary file and another function that saves just the texture. I would like to save both of them in a same file. I guess I would need to create a ...
0
votes
2
answers
2k
views
Is there a standard format to store game asset data as a binary archive?
I am building a prototype for a 2D tile based game and I have several sprite sheets in separate image files that in want to use for animation as well as game logic attributes associated each sprite ...
0
votes
0
answers
131
views
file format and animation in unity
I've been following this awesome course from udemy for unity, and it's content are in depth. But, on Lesson 12, the author mentions a .unity package which is absent ...
2
votes
2
answers
730
views
How would a turn based RPG game store move information in a reusable way?
Suppose I create a turn based RPG in the veins of Pokémon, with a lot of moves and abilities, that would have elements of hand made code, in cases for special effects after a successful attack or ...
2
votes
1
answer
104
views
Tilemaps are loading differently each time
Tilemap data is stored in a 2D array.
It is saved using the following code
...
1
vote
0
answers
582
views
Is there any way to convert .unr file?
I'd like to examine a Harry Potter game for study purposes.
All of resources are fine except map file.
The maps are in a .unr file format. I know it is unreal map ...
1
vote
0
answers
225
views
How do I make Unity use UTF-8 and LF characters for new script files? [duplicate]
By default, when you make a new script in Unity on Windows, it will use UTF-8 with BOM and CRLF. How do I change this to be regular UTF-8 without BOM, and LF (Unix-style)?
0
votes
1
answer
169
views
Easy way to generate colour-per-vertex models for input to Blender
I procedurally generate 3D planet models that I would like to import into Blender.
I use colour per vertex rendering in my shaders (In practice, I use the same colour for all vertices of a face, but ...
4
votes
2
answers
127
views
Solutions for maintaining importers and exporters when chaning file formats
After having a very short discussion with Delix on youtube (see link below) on custom data storage formats, I started thinking. What are some useful ways of maintaining importers / exporters when you ...
0
votes
0
answers
572
views
Creating own archive file format for levels? (.wad like)
I know there are similar questions but my question but my question is about taking some files (like png spritesheets, txt data) and put them in one archive file in general.
If I'm correct then I just ...
0
votes
1
answer
238
views
Why is there no standard 3d file format that saves models as (collections of) primitives?
I have been looking around for a file format that saves models as a collection of primitives (Boxes, Spheres, Cones, Cylinders, etc.). After some research, I came to the conclusion that pretty much ...
0
votes
1
answer
1k
views
C# JSONs not formatting array of objects stored inside another object.
I know the title is a bit confusing because I don't really know how to phrase this. This is what I have:
...
0
votes
1
answer
2k
views
unity & c# - File.ReadAllLines() vs TextAsset Split('\n')
I switched from one approach to the other in my code and I noticed that File.ReadAllLines() has a string length of equal to the alpha-numeric chars in the string, with exception of the last line of ...
22
votes
3
answers
5k
views
How to avoid hard coding in game engines
My question isn't a coding question; it applies to all of game engine design in general.
How do you avoid hard coding?
This question is a lot deeper than it seems. Say, if you want to run a game ...
1
vote
1
answer
928
views
Importing levels at runtime
I know that the Unity editor can import/export packages which could contains Scenes (levels), but is it possible to import a Scene into a game at runtime without the Unity Editor?
What I am trying to ...
1
vote
1
answer
614
views
Way to deserialized or load last save state scene with GameObject and other classes instead of storing normal fields via binary format?
I humbly ask for help in order to solve this problem. I successfully take a quick guide to learn more about save and load state of the game. Basically first, I know how to use ...
1
vote
0
answers
54
views
Text tool for designing gameplay elements [closed]
I'm still in the design phase of my game and I'm realizing that there are too many elements to keep track of and it just looks like a mess in the plain text that I created it in. My notes are ...
1
vote
1
answer
3k
views
What is an example of a binary 3d file format? [closed]
I'm new to GD so if this is too broad I apologize. I'm looking for some quick information.
What binary file format supports the basic game rendering information?
raw position vertices
Texture/UV
(or) ...
1
vote
0
answers
47
views
Facet file that contains face coloring inside the file [closed]
I'm looking for a few example facet file types that allow applying face materials in the same file. At the moment I know of COLLADA (.dae) but I'm looking for others due to the difficulty on manually ...
3
votes
1
answer
1k
views
What record stores the inventory in a Skyrim savegame file?
For The Elder Scrolls V: Skyrim, I'm looking for a way to read the player's inventory without having to go into the game to do it.
I've scoured the pages from the UESP wiki on save file format but I ...
0
votes
1
answer
1k
views
Minecraft chunk file decompresssion
First of all, hello everyone,
I'm currently making a program to read Minecraft region files (r.#.#.mca) for a server.
The problem I have is that I can't decompress them, I tried GZip and ZLib ...
2
votes
1
answer
122
views
How to save one color channel, taking only 1 byte per pixel?
How can I save only one color channel, such that it would only take 1 byte per pixel?
I only want to save the alpha channel and apply colors later using a custom shader. But all the formats I tried ...
4
votes
3
answers
992
views
How can I implement a file format that allows for random access to varying-sized sub-files?
I need to store and update collections of serialized data (of varying sizes) into a single file that is compact and allows for efficient random access to the stored data.
Some real world examples:
...
1
vote
0
answers
386
views
Edit bone transforms for each key frame to fix mixamo animation
I have downloaded FBX animations from Mixamo.com for use in game.
But seems like the "root" skeleton bone does not have translations in Z axis; which makes animations like climbing a ladder or ledge ...
2
votes
1
answer
570
views
Chunk/Region Compression/Decompression
Reading this article here, the author writes about chunk saving and using a lookup table and then saving each chunk in a region file, each region file having 4096 chunks and each chunk having 4096 ...
1
vote
0
answers
285
views
What is the most efficient way to store world data for a 2D tile game? [closed]
I'm working on a 2D tile based survival game for my programming class and as I was working on GUIs I realized that I would need an efficient way of storing and recalling not only the tile data and ...
0
votes
2
answers
1k
views
How are animations specified by an artist but implicitly understood by the game engine?
I'm trying to understand the relationships between 3D models (files) and the games that load and use them. As a software engineer, I'm willing to make the few following assumptions:
I would assume ...
1
vote
0
answers
655
views
Storing game resources in the *.dat file format to reduce file size [closed]
How can I store sprites(png) or audio files(wav) in the *.dat file format?
2
votes
1
answer
868
views
In Unity, how can I register a custom file type that is always opened with my game?
I want my players to be able to create their own scenes as custom levels, save them as files (say custom1.gamelevel), and open them directly in my game program by ...
0
votes
0
answers
235
views
Unreal Engine Ubuntu: Failed to import video, unknown file extension
I've been reading tutorials and guides on getting video file playback in Unreal. I have media player materials created and textures. I'm having issues importing video files to Content/Movies directory....
4
votes
2
answers
223
views
What format should I choose? [closed]
I am making models in blender to export them then in unity, and unity can import .blend formats as well as .fbx, so which one is better, is there even any difference.
0
votes
2
answers
591
views
Pygame.display.set_icon unable to show transparecy
On Python 3.2.5 32 bit, I installed pygame. I made some code with it. It included pygame.display.set_icon(image). The image file is .png and I loaded it by using <...
1
vote
0
answers
97
views
File Path conflicts on GitHub with Unity
I am getting file path errors when a contributor is making commitments to GitHub. All of these errors are file path related or extra white space on the same lines.
This should be something in the ....
2
votes
1
answer
3k
views
How do I convert an image into a tile map?
I am working on a game in Pygame/Python, and I'd like to turn an image into a map.
The idea is simple: Pixels in the image are colored by tile type. When the program loads the image, I want the color ...
1
vote
1
answer
6k
views
Parsing Blender exported collada file in c++
Since I could not find any libraries that can help me parse collada files in my c++/opengl project, I decided to write my own. (I did find assimp, but binaries for Visual Studio 2013 were't available, ...
0
votes
2
answers
1k
views
Storing a block world
I've gotten a basic Minecraft clone working (thanks to gamedev.stackexchange's help! ^_^), but know I have no idea how to save the file.
Minecraft itself uses a naive list of block ids as far as I ...
-1
votes
2
answers
121
views
How to make a proper cache on user computer?
Currently when launching the client of the game, it connects to the server and loads all the cachedata in a normal form (= folders, .txt files and .png files). However I don't like that the players ...
0
votes
3
answers
852
views
How do I convert a greyscale height map to .3ds format? [closed]
I was given some height maps to use for game development, but they are in grayscale PNG format. How can I convert them to 3DS format?
0
votes
1
answer
508
views
How can I store tile maps as PNG images?
I want to let players of my top-down game save, load and share worlds as PNG images. How do I read the colors in a PNG file or change them?
I imagine something like this:
...
1
vote
1
answer
505
views
Question about save games format
my question is about save-games format.
Look at this screenshot:
On the left I made a "simple" fake savegame (Ini format) and on the right there is a "complex" TR2 save game.
I'm wondering how does ...
2
votes
2
answers
853
views
Format for storing quest data
Are there any format for storing quest data that can be processed independently by third-party tools? I don't want to code quests in code, because it will be hard to update and extend them, so I just ...
0
votes
1
answer
371
views
Why does RGB order differ between color formats?
On the reference page for SurfaceFormat, it indicates that the Bgra4444 format is an unsigned format which is 16-bits long, with 4 bits per color with alpha. ...
0
votes
1
answer
570
views
minecraft mapping from tibia OTBM file
I am new to minecraft modding but i program for a living and it looks quite simple to get around. I have this fantasy and a quick internet search shows im not the only one. For those of you who do not ...
2
votes
1
answer
554
views
How does the Maya ASCII FBX format store positions within animation?
I want to understand Maya's ASCII FBX format so I can convert animations in it to OSG (OpenSceneGraph) format.
I have a simple sphere, with a translation in one direction for 30 frames baked into an ...