Questions tagged [loading]
Generally getting assets off disk and into memory.
173
questions
1
vote
1
answer
399
views
Loading WAV and MP3 files with LWJGL 3?
Whenever I research audio in LWJGL 3, they always use STB which can only load Ogg files. All of my audio files are in either WAV or MP3 format, and it would be annoying to have to convert all of them. ...
1
vote
2
answers
1k
views
Unity: SpritePacker Atlas with Dynamic Access
Here are current conditions for a game I'm building in Unity 5.6.3:
SpritePacker is used to create atlases (it would be ideal if that didn't change, but it could, if no other options become evident).
...
1
vote
0
answers
370
views
Loading a TMX file with Java [duplicate]
I use the program Tiled to create tile maps, which export to the TMX format. However, I can't find a way to load them into my LWJGL game. I don't want anything that renders them automatically, I want ...
1
vote
2
answers
137
views
Loading scene doesn't reactivate gameobjects
I have some levels and a main menu. When starting the game from the main menu (in the editor debug mode) I can select a level a load it, no problem. However, when I wish to go back to the main menu ...
2
votes
4
answers
777
views
Can a loading screen be implemented using one thread only? If so, how?
I have seen guides on how to implement a loading screen using more than one thread. But sure it must be possible to do so with one thread, since older (even 2D) games that run on single-threaded ...
0
votes
1
answer
81
views
Loading settings files better?
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 ...
1
vote
0
answers
727
views
How do I correctly unload an additive Scene in WebGL?
I am creating an app in WebGL. I have a loading scene that I am loading additively:
SceneManager.LoadScene("Loading Scene", LoadSceneMode.Additive);
It loads ...
11
votes
3
answers
3k
views
Why do prefabs speed up loading?
I have a scene with a massive terrain. It took a long time to load (approximately 60 seconds) when I pressed play. I am in the editor.
I prefabbed it.
Now it only took about 5 seconds to load when ...
1
vote
1
answer
3k
views
How is text/scripts/dialogue stored and accessed in games?
For large, complex games, I imagine that text descriptions, dialogue lines, etc, are organized in some sort of database, and not actually hardcoded into the source.
Are there any conventions on how ...
10
votes
3
answers
6k
views
Can I run my own loading script during the Unity splash screen?
Can I load data in the background while the Unity splash screen is up? If so, how?
I am trying to run code during the splash screen, not just load assets.
I have not been able to find any ...
17
votes
3
answers
33k
views
Smooth loading screen between scenes
I created a loading screen to display a loading animation as the next scene is loading. I load the next scene asynchronously with:
...
0
votes
2
answers
125
views
Why does Unity allow me to use GameObjects created from non-existent prefabs?
I have code similar to the following in a Unity project. I was trying to shoot a
projectile when spacebar was hit, but a projectile wasn't appearing. I found out the problem was caused because I moved ...
0
votes
0
answers
55
views
Two game object efficient and fast on-off switch
I have two game-object, on GUI button click i am toggle between them but the problem is one game-object which is small contains less vertx etc., is loading fast while the other which heavy taking time....
2
votes
2
answers
7k
views
Quickly Converting RenderTexture to Texture2D in Unity3D
I have a screenshot preview at the end of the game's level.
When I am loading the screenshot, it makes the game freeze for a moment.
What may I do so there would be no freeze when I am loading that ...
25
votes
8
answers
10k
views
Couldn't all games avoid post-start loading?
Just as giant open world games load massive maps dynamically, couldn't we load separate maps, menus, and virtually any interface or 3D setting via that same dynamic loading method? Without changing ...
26
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 ...
1
vote
1
answer
6k
views
How to load sprite from JSON?
i know how to load text, but idk how to load texture from json..
this my c#:
...
1
vote
2
answers
13k
views
Is async image loading possible?
Can anyone tell me if there is a async version of LoadImage() method? I found about Resources.LoadAsync, however the method doesnt work.
Thank you
0
votes
1
answer
269
views
SFML dynamically loading images
So I'm screwing around with c++ and SFML, when I thought to myself the following:
If the images are compiled into the executable, with enough sprites for the game, memory might become a problem at ...
6
votes
3
answers
38k
views
My game crashed... Access Violation (0xc0000005)
I guess this is the first official crash I've had in Unity (that is not just an infinite loop.) The game works just fine in the editor but when build and run it, the game won't even start.
I just ...
2
votes
1
answer
758
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 ...
4
votes
2
answers
854
views
What is the Basic Game Screen/Scene Life Cycle?
Question
What is the standard or basic game screen/scene life cycle used in most games?
What is Screen/Scene?
The term screen or scene refers to the current displayed entity holder where game ...
0
votes
1
answer
74
views
OpenGL Mapped Memory Shader Source
Is there any way to get a pointer to a newly created shader object's source? I'd like to load a shader directly from file in to my shader object instead of loading to an intermediary variable and then ...
1
vote
1
answer
2k
views
Unity3d seamless level loading
I've read that application.loadLeveAdditiveAsync is a pro only feature. I'm looking for an asset that can do something similar. I would like to load assets based on the camera/player position. Ideally,...
3
votes
4
answers
1k
views
How to load and unload objects at a certain radius from the player?
I am making a procedurally generated space exploration game in unity. I'm currently generating 5000 stars in a cube of a fixed size. Each star just gets a random 3d coordinate. What I would like to do ...
0
votes
0
answers
558
views
How heavy is a scene load in Unity assuming all referenced objects are in memory?
From what I understand, resources that are local to a particular scene( not a prefab, or texture, material asset etc ) are embedded in the scene file itself, while external resources are just ...
1
vote
3
answers
3k
views
Saving/Loading PlayerPrefs only works in the editor
I'm creating a game which stores a few variables using PlayerPrefs. It saves and loads the PlayerPrefs perfectly fine while testing in the editor, however when I build it to WebGL or Unity Web Player, ...
0
votes
2
answers
2k
views
C++ Saving and Loading From Text File
In my C++ program I am trying to develop a simple saving and loading function for my game. I can easily get the save function on it, but the loading part of it really stumps me.
What I need is to ...
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 ...
2
votes
0
answers
1k
views
Cannot convert bitmap to texture [closed]
I'm doing a little C# / OpenGL project and I can't manage to load textures properly.
So here is my texture class :
...
0
votes
1
answer
5k
views
How do I create a circular progress bar in Unity3D 5?
I am new to programming and Unity3D. I want to show a circular progress bar starting invisible and growing in 3 seconds to a circular line when reloading is done. How can I do that?
-1
votes
2
answers
104
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 ...
1
vote
1
answer
217
views
Level loading philosophy in MMO games
I've been working on project for quite a while, and I've returned to dilemma about level loading.
The problem is i trust the client with it's local level loading, when it's done loading it tells the ...
2
votes
3
answers
6k
views
Add Existing Animation
I have several animations that I am using on a GameObject. I switched the folder they were stored in, and they got detached from the gameObject. How can I add the existing animations to my ...
0
votes
0
answers
773
views
Android: Asynctask causes ANR (very) intermittently
I'm doing some work on an AsyncTask (creating game objects, loading resources etc) while displaying a static splashscreen.
The problem is that every now and then, the AsyncTask doesn't run and the ...
2
votes
2
answers
324
views
Problem loading level layout from file in Breakout clone
I'm working on a Breakout clone and I decide to use files as method to load level layouts. The file is something like this:
N,N,N,N,N
N,N,N
N,N,N
Only indicates what type of brick I'll instantiate,...
2
votes
2
answers
2k
views
Traditional Chunk Loading vs. Chunk Swapping
I'm designing a voxel-based game (aren't we all?), and just yesterday implemented infinite terrain generation. I'd already had the terrain generation working off of simplex noise, so this wasn't a ...
-1
votes
2
answers
1k
views
How to stop a object with progress bar so it can start instantly in unity [closed]
I have created a gameobject(cube) and written code to move,mean while the processbar get loading.when the processbar is loaded fully then the object should stop moving.Can anybody please help me ...
0
votes
1
answer
743
views
Nullpointerexception when loading resources in openGL ES 2.0 Android project
Overview
My splash screen starts by display a 'loading' dialogue and then kicks off an asyncTask (The loading dialogue is derived from the standard Android View class)
Within the doInBackground ...
0
votes
2
answers
1k
views
Speed up loading of png files (used for textures) in Android OpenGL Game
My game has a few texture atlases that need to be loaded (in my XHDPI folder they total 3.49MB) and on a top-end device they don't take that long to load, however on a low-end device they seem to take ...
3
votes
1
answer
3k
views
(Phaser) Preload Future States in Create?
I'm a first time user of Phaser, been trying to make a simple point and click type game. I'm trying to keep things very modular, so I'm defining a list of levels (states) in a JSON, and then every ...
0
votes
1
answer
1k
views
How to load a DDS file with mipmaps
I believe there's a D3DX function that can load a DDS file with mipmaps but D3DX is ...
0
votes
1
answer
72
views
How to handle runtime exceptions that occur on a loading process delegated to newly spawned thread
I am looking to multi-thread the resource allocation routines (i.e world loading) in my game so that they can occur in the background whilst rendering a loading screen etc... The problem is, I used to ...
0
votes
0
answers
40
views
Loading dynamically created files with XNA
I'm trying to implement a structured save/load functionality so if the user saves, it will take up one of 10 slots, and if the user loads, they would select one of these slots.
To do this, I need ...
0
votes
1
answer
2k
views
Level loading works in Unity editor, but quits when deployed
In my level selection screen, all but the first level start out locked.
When I click on a level, it loads perfectly in Unity editor. However, when I build the game on a real device, the game stops as ...
0
votes
1
answer
92
views
How are vertices determined complex geometries in an ever changing game state
For example say you wanted to draw a 3D cube you can define an array of hard coded vertices using float3, here is an example. http://msdn.microsoft.com/en-us/library/windows/desktop/jj552949.aspx
But ...
2
votes
1
answer
1k
views
Efficient way of loading wavefront models in openGL game
In my game, a RTS game, the units are all wavefront obj. all their animation frames are each seperate wavefront obj file. ie. without any skeletal animation; fully rigid models. So when many units are ...
0
votes
1
answer
3k
views
How can I load all of my scenes at startup?
I want all of my scenes to load when the loading screen is shown (but only one
should be shown at a time) so I can switch between them quickly I have tried
this:
...
2
votes
1
answer
2k
views
Assimp renders a partial amount of vertices
I'm building a 3D game, and i'm trying to load some assets with the nice Assimp library. The model should look like the one in the first picture, but instead, it takes the form of some kind of avant-...
0
votes
1
answer
361
views
Developing a browser-based RPG: Loading user data
I'm writing a browser-based RPG in JavaScript, HTML5 with Canvas, EaselJS, etc... I'd like to develop the back end data saving/user profile aspect now.
This is a single player RPG where the player ...