Skip to main content

Questions tagged [file]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
148 views

I'm in the process of writing saving/loading function for my little game. I'm willing to save the shaders as resource as I did for texture and meshes. I have a _SHADER struct that contains the VS/PS ...
philB's user avatar
  • 333
0 votes
0 answers
31 views

I have build a simple 2D game with unity. When build for android, the build size is around 32 MB. However when I install and run the app, we're looking about double the size. (App - 60.22 MB, Data - ...
CheckerT's user avatar
  • 176
0 votes
0 answers
86 views

I want to check whether the files exist, as in the window that opens when importing asset from Package Manager, and copy them into the ...
Atlas's user avatar
  • 13
0 votes
0 answers
73 views

I'm trying to make a map using a text file, but it only does the first line / column and not the rest. I know the problem is in getTileImage. ...
Nobodyis_here's user avatar
0 votes
1 answer
110 views

Now, I now the title is really obscure, but I have tried to solve the following problem for so long and most of it is integrated into my game so far that I can't just copy & paste it here, so this ...
DemonicTree's user avatar
2 votes
1 answer
788 views

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
71 views

I have a state machine that the controls the flows and transitions of the states, the thing is that I have a script that requires textures to transition to in-between scripts, what I want to do is to ...
koogel's user avatar
  • 79
-2 votes
2 answers
843 views

I am making 2D games. I noticed that PNG files are always much smaller in size than a second-long sound effect file. Why are sound files always larger in size than an image file?
Đạt Phạm's user avatar
0 votes
0 answers
145 views

My game handles all file access through PhysicsFS. (N.B.: PhysicsFS (sometimes called PhysFS) is a file access library, and has nothing to do with game physics; it just handles opening, reading, and ...
Trevor Powell's user avatar
2 votes
4 answers
18k views

I accidentally deleted my game. I had been working on it for about 2 months and I accidentally deleted it while cleaning up my files. I am so smh. I have a ton of builds of the game though and since ...
Object's user avatar
  • 289
0 votes
0 answers
95 views

I'm making a game, and I'm adding a screenshots feature. Currently I save screenshot files to <Home Directory>/Pictures/MyGame/. However, I'm not sure if ...
user avatar
0 votes
2 answers
734 views

I got a new computer and on it I installed unity and signed in etc. when I load it up however and try adding scripts to objects in the scene it doesn't add them and has this error: "cant add ...
Object's user avatar
  • 289
2 votes
3 answers
2k views

I had to make a change in the existing Universal Rendering Pipeline's ShadowCaster2D.cs to suit my needs. But every time I reload the project, the file gets reset. ...
CraftedGaming's user avatar
0 votes
0 answers
61 views

I've been getting reports from my users that sometimes the game isn't saving. I've recently been provided with the game save files from one of these reports and found all the XML files were completely ...
mr-matt's user avatar
  • 2,779
0 votes
1 answer
1k views

Currently, we have a project that runs on Windows and uses an Excel spreadsheet to save/retrive some data/information. Now we want to build that project for WebGL. The problem is that file reading ...
Muhammad Faizan Khan's user avatar
2 votes
1 answer
1k views

I am trying to open a dialog to select files under UE4, using OpenFileDialog. I added this to my build.cs ...
formatc2013's user avatar
0 votes
1 answer
220 views

I want to start a new 2D top-down project in Unity and want to figure out how to organize my background (one big file or a lot of files joined together). So how big can a background file get in Unity?...
Gener4tor's user avatar
  • 176
0 votes
1 answer
620 views

I am using Unity 2019.2.14f1 to build a game. As I am working with a team, we have decided to use Unity Teams for the collaboration. The project escalated and we ended up having to architecture a ...
Gonçalo Peres's user avatar
0 votes
0 answers
158 views

I need to know how to extract all data from a resource compiler script to a folder or the desktop. the .res files are compiled and added to an exe file. .res is the file extension. and if that is ...
easyanswer's user avatar
0 votes
1 answer
93 views

I'm currently trying to load a simple text file and filter it by a certain string. In the text file I'm using a new line for each value and sometimes use a "--" to make things easier to read for me ...
iQew's user avatar
  • 470
0 votes
1 answer
334 views

I'm using this line of code to delete a file: if(Gdx.files.local("/files/ids.json").exists()) { Gdx.files.local("/files/ids.json").delete(); } The same code ...
xmac's user avatar
  • 27
0 votes
1 answer
106 views

I am writing data to a file every two seconds. I used InvokeRepeating and everything is Ok except that every record is saved 3 times in the file: ...
J. Dois's user avatar
2 votes
1 answer
5k views

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
1 answer
2k views

I am currently creating a game in SFML using C++ and I'm wondering: what is good practise for a location for textures? Should I store it with my project? Or my executable? Or even in something like ...
Lorago's user avatar
  • 103
0 votes
2 answers
725 views

Whenever I run my game from my IntelIJ IDEA the game runs fine. It finds every folder and every asset in there. But whenever I build my game with :desktop:dist and ...
Martacus's user avatar
  • 113
0 votes
1 answer
60 views

I am working on a game where the user has the possibility to import custom audio tracks that can be listened to during the game. For this I am making use of System.IO.File.Copy method. This works, ...
ploopploop's user avatar
1 vote
0 answers
421 views

I have a need to disable the resolution dialogue when the game launches, but have a config file that will have all of the dialogue options (resolution, quality, monitor (monitor is most important, ...
Paul Vinogradov's user avatar
0 votes
1 answer
1k views

I want my game to be user-translated friendly.I put .text file to Data folder from where strings will be read. What is Editor alternative for data folder ? Also i know compiler ignore some files, how ...
Jacob's user avatar
  • 105
0 votes
1 answer
2k views

I'm right now looking for alternative ways to read text files on a line-by-line basis, for cross-platform compatibility (Windows / Linux). My current solution is to go look for (or seek out) the ...
tom_mai78101's user avatar
1 vote
1 answer
2k views

How would I create a button for the user to click and be able to upload a text file from his desktop let's say? I'd like to know about both, computer and mobiles.
John Smith's user avatar
  • 1,255
1 vote
1 answer
1k views

I have .txt file containing all the English words separated by line breaks. I want to turn them to a string[] so I can easily pick a random one from them. The way I would do that in normal C# is ...
xuwenbuwer's user avatar
1 vote
0 answers
74 views

I am working with a GameMaker: Studio project that outputs a file called "playerachievementcache.dat". It isn't used for anything, and I can't seem to remove it from my project. Is it possible that ...
Mr. Mendelli's user avatar
3 votes
1 answer
4k views

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
0 votes
1 answer
55 views

When I try something like File.Delete("Assets/a.txt"); it gives me a error saying Unknown identifier: 'File'. In Unity Documentation https://docs.unity3d.com/...
coder_86's user avatar
  • 175
3 votes
1 answer
5k views

I'm trying a solution in MonoGame to create levels from a .txt file, but the pipeline tool fails when trying to build the Content.mgcb correctly: ❌ Skipping HighResolutionContent\Backgrounds\Layer1_0....
Salinator's user avatar
0 votes
1 answer
374 views

I'm building a system that allows users to upload files to LibGDX's local directory to play them in the game. How can I search recursively through the local file system for a specific file type and ...
Tessa Painter's user avatar
0 votes
1 answer
100 views

I have recently been working on a small game project and decided to implement settings loading at game startup. The problem is that my method seems to be too hard coded and not scalable without having ...
user avatar
6 votes
1 answer
215 views

Say I have a bunch of images that I want to use with my game; I want the image files to be external, so overall I have the game's executable and a directory full of images. Let's say there are 100+ ...
SmileyNZ's user avatar
0 votes
1 answer
291 views

Im currently using LibGDX and drawing a tiledmap with the OrthogonalTiledMapRenderer. Is there a way to save one rendering and put it into some file as an image? If you know of a method that doesnt ...
zebleckDAMM's user avatar
0 votes
3 answers
380 views

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
0 votes
1 answer
156 views

I'm trying to load and play an wav file that exists in my Application.dataPath but when the game gets to the line ...
Raphael Rosa's user avatar
1 vote
0 answers
88 views

So I'm building an application in unity which I hope to use at a market day coming up soon at my school (it's not a game, it's basically like a checkout app, kind of...) Anyway, I'd like to be able to ...
mr-matt's user avatar
  • 2,779
0 votes
0 answers
334 views

I am making a COLLADA parser in Java, and I have made a loader that reads a .dae file, and saves it's content in a string. But, when I load a specific file, it doesn't get read correctly. Specifically ...
J22o's user avatar
  • 482
0 votes
1 answer
224 views

I'm reading a text file from Gdx.files.internal in LibGdx. This is essentially streaming a file from a compressed Jar file so random access is not possible. I want ...
codeulike's user avatar
  • 101
0 votes
1 answer
5k views

I've wanted to save progress of my game (i don't have the code , sorry) without using PlayerPrefs. If it's possible ; with UnityEngine.
DynamicField's user avatar
0 votes
1 answer
647 views

I have a custom data file from a project that was authored in actionscript some years ago by another developer. I am porting parts of the project over to Unity 3D. I don't have any documentation for ...
M. Bedi's user avatar
  • 101
6 votes
3 answers
18k views

I am making a game in Unity in which the player can select music files in their hard drive to use them in-game. I use the WWW class to load the sound files, but this only works for OGG, WAV and ...
TheBITLINK's user avatar
-1 votes
1 answer
2k views

I'm reading from this text file called beatSheet.txt. A: 100 A: 101 A: 102 A: 103 A: 104 A: 105 A: 117 A: 120 A: 122 A: 126 A: 128 A: 129 A: 130 A: 131 A: 133 A: 138 ...
Matthew Farstad's user avatar
2 votes
1 answer
373 views

I want to import an .obj file in my Engine or open some files. To do that I write a link or direction of that file in my computer. Like this ...
harut9's user avatar
  • 157
2 votes
1 answer
3k views

I'm using CaptureScreentshot() to get an image. But when I try to access it on an Android device it's giving me: ...
Pat's user avatar
  • 209