Skip to main content
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 ...
DMGregory's user avatar
  • 141k
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 ...
Theraot's user avatar
  • 28.3k
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 ...
Peter's user avatar
  • 9,955
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 ...
Raphael Schmitz's user avatar
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 ...
Zebraman's user avatar
  • 819
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
knorke T's user avatar
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....
Kevin's user avatar
  • 7,029
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 ...
Some programmer dude's user avatar
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 ...
Mangata's user avatar
  • 2,796
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 ...
Zibelas's user avatar
  • 5,099
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 ...
user134830's user avatar
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 ...
iman_sh's user avatar
  • 175

Only top scored, non community-wiki answers of a minimum length are eligible