Questions tagged [exceptions]
The exceptions tag has no summary.
35 questions
0
votes
0
answers
63
views
LibGDX NullPointerException from a scene 2D Actor calling Pools.obtain()
fire (Event event) method throws the NullPointerException. Trace:
...
0
votes
1
answer
567
views
Getting exceptions in Unity3d with EasyRoads3D, when attempting to create roads
After importing EasyRoads3D version 3.2.2f2 into Unity 2021.3.20f1, and trying to create a simple road, I get a lot of exceptions:
...
-1
votes
1
answer
82
views
Unity Update() Function causing a NullReferenceException that isn't there if I manually call the function
I have a pretty "basic" combat class here. It has a Player and an Enemy. They are inherrited from a Character class and have values such as health, armor and ar (attack rating (damage)). I ...
0
votes
0
answers
90
views
Do gaming consoles come with built-in crash reporting system for the developers?
I'm working at a game industry and my company's planning on releasing some games for consoles (PS, Nintendo Switch).
I'm wondering if we should integrate some kind of custom crash reporting system ...
18
votes
5
answers
6k
views
When to carry on with a buggy game state versus terminate the process?
Imagine a situation where a level/game designer has missed assigning a prefab in one of the game objects' inspector configurations. (I am coming from Unity, but what I basically mean a reference to ...
0
votes
1
answer
1k
views
Heir Class Constructor Throws CS7036 "No Argument Given" Exception [closed]
I'm trying to create a class that holds the data for an an attack, called Attack. I also have special attacks that have more properties, and so I wanted to create a ...
1
vote
1
answer
170
views
how to detect Unity UNET errors?
I'm working on a simple multiplayer online game. and I use UNET and Networkmanager.
In my game I have some rooms and players ...
0
votes
1
answer
2k
views
Unity: Failed to build APK. See console for details
i am getting this error whenever i am trying to build a project. i looked at so many solutions but this one just doesn't go away.
This is the error:
...
3
votes
1
answer
365
views
How should I handle exceptions in libGDX?
I want to keep my game running as much as possible for the user, obviously. They would be dissapointed if the game suddenly quits without leaving any notice behind, and it would be difficult for them ...
0
votes
2
answers
155
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 ...
1
vote
2
answers
2k
views
Why does my MonoGame mesh throw an unhandled exception when trying to draw?
I am using the '3D Models' chapter of Learning XNA 4.0 to further understand 3D implementation in XNA, but I am running into an unhandled exception, when I try to draw each mesh.
Here is my basic Draw(...
2
votes
0
answers
2k
views
How Industy games handle their code errors and exceptions [closed]
I've seen games crash and throw errors.
Usually games don't throw raw exception message, but codename error names, such as F204 or similar. I would like to know some thought about that.
Also, as i ...
1
vote
1
answer
309
views
MonoGame InstancePlayLimitException on Windows w/ OpenGL
Why am I getting the InstancePlayLimitException when playing several SoundEffects per second despite there being no limit unless programming for mobile? It occurs after only a few seconds of repeated ...
0
votes
1
answer
86
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 ...
13
votes
2
answers
1k
views
How should I handle missing resources?
Your game expects a certain asset to be loaded, but it isn't found. How should the situation be handled? For example:
...
2
votes
1
answer
2k
views
Monogame crashes without any change
I've written a game in MonoGame, which works great on my desktop computer. It's running Windows 8, has a good graphics card and can be assumed to be up to date with everything.
However, when I run on ...
0
votes
2
answers
941
views
XNA texture GetData exception
When using this code:
...
31
votes
3
answers
10k
views
Try-catch or ifs for error handling in C++
Are exceptions used widely in game engine design or it is more preferable using pure if statements? For example with exceptions:
...