48
votes
Accepted
When to carry on with a buggy game state versus terminate the process?
There are a few considerations here:
Can you ensure it doesn't happen at runtime, by construction? (yes ➡ do that instead)
This isn't always possible, but in the cases where it is I'd argue it's ...
8
votes
When to carry on with a buggy game state versus terminate the process?
Let me get philosophy out of the way. If you think that the goal of game development is to deliver an experience to the players. Then that's it. Remove or hide anything that would break that ...
3
votes
When to carry on with a buggy game state versus terminate the process?
You should always handle exceptions if you know what they are about, and crash if you don't.
Players overwhelmingly prefer a crash to a corrupted save.
If you want just one single rule that handles ...
2
votes
When to carry on with a buggy game state versus terminate the process?
Pain is useful
Check this explanation of the 4 types of exceptions: https://ericlippert.com/2008/09/10/vexing-exceptions/
Out of these, it seems that you are talking about the second type; boneheaded ...
2
votes
Accepted
Jagged array - check if array index is out of range
Length of Jagged Arrays can be a little weird. Since a jagged array is just an "array of arrays," you need to know if you're asking "How many arrays do I have?" vs "How long is this array?
If you ...
2
votes
Accepted
Unity: Failed to build APK. See console for details
Make sure you are using jdk 8 and unity is pointing to the right location
1
vote
Null reference exception when adding bodies to a list
First, GameObject.Find(selfBodyName) is completely unnecessary and has a high performance cost. You can just use this.gameObject....
1
vote
Accepted
Getting exceptions in Unity3d with EasyRoads3D, when attempting to create roads
The problem is that I downloaded EasyRoads3D with a different version of Unity (IIRC 2022.2.something), and this somehow created a mismatch when importing it into a different version.
The solution was ...
1
vote
Accepted
Unity Update() Function causing a NullReferenceException that isn't there if I manually call the function
You declared a combat local variable here:
Combat fight = new Combat(Player, Enemy, textArray);
This is not the same object you mounted on the gameobject. Maybe ...
1
vote
How to fix exception:Resource not found: testdata/alphamap.png?
Google turned up with a fork of slick (not available anymore) here: Slick Fork. When you go to the folder located under testdata/alphamap.png you will find it or ...
1
vote
Accepted
Heir Class Constructor Throws CS7036 "No Argument Given" Exception
By default, when new SpecialAttack() is called, before the SpecialAttack() constructor is hit, parent constructors are hit.
The ...
1
vote
Accepted
how to detect Unity UNET errors?
I solved my problem with another way that works very well.
For checking the port is free or not we can use System.Net.
and before Network Manager ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
exceptions × 35unity × 14
c# × 9
java × 7
libgdx × 4
monogame × 3
textures × 2
assets × 2
loading × 2
resource-management × 2
error-management × 2
c++ × 1
opengl × 1
rendering × 1
networking × 1
box2d × 1
gui × 1
xna-4.0 × 1
software-engineering × 1
lwjgl × 1
game-loop × 1
maps × 1
models × 1
mesh × 1
windows × 1