Questions tagged [file-format]

The structure of data files and how they are stored.

Filter by
Sorted by
Tagged with
0
votes
0answers
28 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
0answers
13 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
1answer
18 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 ...
3
votes
2answers
63 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
0answers
116 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
1answer
93 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
1answer
387 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
1answer
754 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
3answers
4k 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
1answer
288 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
1answer
371 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
0answers
47 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
1answer
984 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
0answers
31 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 ...
4
votes
1answer
391 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
1answer
359 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
1answer
73 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
3answers
382 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
0answers
261 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
1answer
202 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
0answers
165 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
2answers
367 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
0answers
312 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
1answer
372 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
0answers
67 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
2answers
196 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
1answer
283 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
0answers
86 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
1answer
1k 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
1answer
4k 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
2answers
992 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
2answers
93 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
3answers
690 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
1answer
397 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
1answer
313 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 ...
0
votes
2answers
509 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
1answer
255 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
1answer
426 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
1answer
455 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 ...
-1
votes
1answer
669 views

Using multiple strings within the path to Write to Text File [closed]

In Unity3D, How would I use something like this: path = "C:\Users\Jonathan\Documents\FileData" + fileName + ".txt"; so I can make a for loop and create several text ...
1
vote
1answer
675 views

Data structures for territories in a 2D map

I am diving into game development with a 2D game. The game will display a territorial map (borders, capitals, etc.). What is a common data structure to use for storing and manipulating the data in ...
3
votes
1answer
617 views

In Slick2D, how can I generate a 2D platformer map from an image?

I'm fairly new to game development. I've been messing around with Slick2D. My map consists of rectangular objects. I want to use an image to represent my map, similar to this: How could I generate a ...
5
votes
1answer
3k views

How do I convert a .dds texture to .png bitmap in C#?

This question is from someone who has not written a line of code for games, but several Game Save editors and other game tools. I'm working on a Save Editor and would like to display icons of some of ...
208
votes
4answers
17k views

How can I store game metadata in a .png file?

Spore allows player-created creatures to be shared by exporting a .png file. That .png is a photo of the creature, but if it's ...
1
vote
1answer
2k views

How can I have human-readable key names in a configuration file?

Given a file mapping keys to controls, such as this: up w down s left a right d jump space run shift crouch ctrl The values need ...
1
vote
1answer
216 views

How to define data for an input sequence game?

I'm starting to program my very first game, it's a clone of DDR/Stepmania done for research purposes and learning. I (at this early stage) get most of the UI/Music/input work that should be done, but ...
-3
votes
1answer
2k views

How do I export a .tmx file into a custom format?

I just created a map in tiled software. The problem is that it has created a .tmx file. But I need a different format than that, something I can easily store in 2D ...
1
vote
2answers
10k views

Can GMod/SFM models be converted to Unity GameObjects?

Someone made a suite of GMod/SFM models available for free for people making games and videos in GMod and SFM. These are of type .dmx, ...
6
votes
1answer
396 views

Can SFML load anything other than RGBA8888? (RGBA4444, RGB565, etc.)

I can't see this mentioned in the documentation. Am I missing something obvious? Or does SFML really give you no option, forcing everything to be loaded as RGBA8888? Searches on Google and the SFML ...
0
votes
1answer
92 views

What does this FVF value in the FVFData block of an .X file equate to?

I'm trying to read and ultimately write a mesh from/to file. This mesh has 2 sets of texture coordinates. The second set I know are held within the FVFData{} block of the .x file. The second set of ...