Skip to main content

Questions tagged [exceptions]

Filter by
Sorted by
Tagged with
0 votes
0 answers
65 views

fire (Event event) method throws the NullPointerException. Trace: ...
erekle barvenashvili's user avatar
0 votes
1 answer
83 views

So, for conversational clarity/brevity, I have 3 sphere gameobjects, each with their own Rigidbody component. They all have a tag of 'body'. The 3 spheres have progressively larger masses. body1 mass:...
Skittles's user avatar
  • 103
0 votes
1 answer
567 views

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: ...
Some programmer dude's user avatar
1 vote
1 answer
138 views

I'm working on exception handling and I usually test it with causing a DivideByZeroException. But this time it's not thrown. (While throwing a ...
Tudvari's user avatar
  • 801
-1 votes
1 answer
82 views

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 ...
bogorian cooking oil warrior's user avatar
0 votes
1 answer
55 views

I keep getting this exception:Resource not found: testdata/alphamap.png when trying to use Slick in my program. How can I resolve this error?
Vern Evens's user avatar
0 votes
0 answers
91 views

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 ...
Michael's user avatar
4 votes
0 answers
811 views

I am trying to write unit tests in Unity that assert that logs, errors, and exceptions are raised as expected in my code, but I'm getting inconsistent results. I'm using ...
Just_Alex's user avatar
  • 141
18 votes
5 answers
6k views

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 ...
Candid Moon _Max_'s user avatar
0 votes
1 answer
2k views

My code below is modeled after Unity's documentation. When I put the script into an empty GameObject, the error I get is: MissingComponentException: There is no 'MeshFilter' attached to the "myMesh" ...
Tom Lento's user avatar
0 votes
1 answer
1k views

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 ...
Agent Tatsu's user avatar
0 votes
1 answer
204 views

I just installed the Box2DLights dependency for LibGDX and I added a cave with 2 ConeLights inside. The first time I render the cave, everything works as expected. Then when I exit the cave, I make ...
TJRC's user avatar
  • 131
1 vote
1 answer
172 views

I'm working on a simple multiplayer online game. and I use UNET and Networkmanager. In my game I have some rooms and players ...
iman_sh's user avatar
  • 175
0 votes
1 answer
2k views

Hey I am a bit confused about how to properly check a Jagged array for "index out of range exceptions" Im quite sure im somehow supposed to use the .Length of the array but it confuses me to read ...
Svp's user avatar
  • 143
0 votes
1 answer
2k views

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: ...
Mohit Saxena's user avatar
0 votes
1 answer
556 views

How can I tackle the problem: Look rotation viewing vector is zero? Here is how I get it: I add an Image from UI. When the Image is added I click on it in the ...
Yaroslav's user avatar
  • 771
3 votes
1 answer
365 views

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 ...
Matt Y's user avatar
  • 241
15 votes
3 answers
10k views

Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea ...
Hellium's user avatar
  • 2,949
0 votes
2 answers
158 views

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 ...
Raven's user avatar
  • 279
2 votes
1 answer
2k views

I'm developping a Tile base game where I have to generate transition tiles. To do so, I have a method that generate those tiles from 2 existing one and 1 "filter tile". I use this method to make a ...
QuentinR's user avatar
1 vote
2 answers
2k views

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(...
Gnemlock's user avatar
  • 5,333
1 vote
1 answer
675 views

Whenever I call glGenVertexArrays(), I get the following exception: Exception in thread "main" java.lang.IllegalStateException: This functionality is not ...
Lucien's user avatar
  • 1,186
2 votes
0 answers
2k views

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 ...
YoungDeveloper's user avatar
1 vote
1 answer
257 views

I need to make a life counter so that when my Actor get hit by an Enemy, his life will be decreased by 1. I put this method in my Actor class: ...
raisa_'s user avatar
  • 167
1 vote
1 answer
310 views

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 ...
Bagofsheep's user avatar
0 votes
1 answer
218 views

Hi all! I have a one problem. I trying to create 2D cave generation system in C# with XNA game studio, but then I running program I getting "System.StackOverflowException". As you can see in this ...
Alex's user avatar
  • 3
0 votes
1 answer
86 views

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 ...
Jeremy's user avatar
  • 135
1 vote
1 answer
2k views

Description I've been attempting to use a custom DLL in Unity. I've confirmed the DLL runs correctly outside Unity. The DLL imports into Unity and when I refer to it in my scripts, I get no compiler ...
Timothy Williams's user avatar
13 votes
2 answers
1k views

Your game expects a certain asset to be loaded, but it isn't found. How should the situation be handled? For example: ...
concept3d's user avatar
  • 12.8k
-1 votes
2 answers
223 views

I'm using a hashmap as an infinite map for a tile based game. I'm trying to access all values in a hashmap from another thread and changing the content at the same time. But I'm getting a java.util....
user1990950's user avatar
2 votes
1 answer
2k views

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 ...
Tom's user avatar
  • 123
2 votes
2 answers
1k views

I've taken up the challenge of creating a basic 2D side-scrolling monster truck game for my little brother. It seems easy enough in theory, but jumping into Java out of XNA feels strange. My game ...
Lost_Soul's user avatar
0 votes
2 answers
941 views

When using this code: ...
user1990950's user avatar
1 vote
2 answers
777 views

I want to use crittercism with my Unity project. In Unity I am developing a game for iOS and Android platform. I did enough Google searching to come to the conclusion that Unity doesn't support this ...
Him's user avatar
  • 111
31 votes
3 answers
10k views

Are exceptions used widely in game engine design or it is more preferable using pure if statements? For example with exceptions: ...
tobi's user avatar
  • 729