Questions tagged [debugging]

Debugging is a methodical process of finding and reducing the number of bugs in a game, thus making it behave as expected.

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

How to debug shaders running on Android 4.x devices?

I have tried some of the existing inspectors such as RenderDoc and gapid, but none of them can be used with Android 4.x. Latest version of gapid requires Android 6.0 and RenderDoc requires Android 5.0....
1
vote
0answers
22 views

Error stopping me from opening Xenko editor

I have just recently downloaded the Xenko game engine. The error is here: ...
3
votes
1answer
56 views

How to figure out what's moving my GameObject?

I have a GameObject as part of a complex scene with a handful of interconnected parts, that's moving when it shouldn't be. I've tried running under the debugger and setting breakpoints on all of the ...
0
votes
0answers
82 views

Modifying an old DOS game

I want to modify the behaviour of an old DOS game called "The Manager" (aka Bundesliga Manager Professional in Germany). I want to modify the points assigned to each team when the team wins a match in ...
0
votes
2answers
93 views

how to generate mipmap, and check if done properly?

i am implementing Mipmapping for my texture for the first time. i have 2 questions HOW TO CHECK IF MIPMAP IS DONE PROPERLY ? HOW TO SET MIPMAP FOR TEXTURE FROM FILE ? First one. i implemented ...
0
votes
0answers
394 views

Set-up Android SDK path to make Android remote work in Unity

I am using the Unity 2019.1.12. If I go to Edit > Preferences... > External Tools it says that the Android SDK Tools Installed with Unity (recommended). Now I downloaded the Unity Remote 5 to my ...
0
votes
1answer
201 views

Unity get component throwing NullReferenceException only in standalone build

I'm having a very frustrating issue with GetComponent(). ...
1
vote
1answer
149 views

Unity: Bizarre Physics FixedUpdate Lag spikes

So I have this large forest of around 2M tris: Same chunk selected with view on the whole level: It's been generated within Blender and exported as fbx into Unity. Exporting each tree as an ...
1
vote
1answer
36 views

Problem with Rotation clamping in Unity

I'm trying to get a simple cannon to rotate to point at the mouse, but I only want it to follow the mouse for 180 degrees and then stop following the mouse, and pick up again when the player re-enters ...
0
votes
1answer
66 views

NullPointerException when accessing an array with objects defined by for loop

So I'm making a SnakeBird-type game with a level editor, and when a new level is created I want it to be made only out of free tiles. I tried making a 2d array and filling it in with tiles, but it ...
0
votes
1answer
139 views

“Unfortunately game has stopped” error on Android device

In Unity 2018.4.3f1, I am able to build my APK successfully, but when I try to launch it on my mobile device, it shows: "Unfortunately game has stopped". I don't know the problem is. Here are the ...
0
votes
2answers
73 views

objects disappear before time

I created a little pool in order to better manage my enemies, to which, an enemySpawner object calls to retrieve a clone and show it on screen ...
0
votes
1answer
83 views

Windows 10 GPU Engine Performance Counters - Phys / Eng Meaning

For performance tracing of intermittent degredation in performance I wanted to use the Performance Counters available in Windows 10 1809 under GPU Engine -> Utilization percentage. This particular ...
0
votes
1answer
232 views

Fixing error(23, 2) Error parsing expression, misplaced: func

When I try to use the GDScript code below, Godot gives me the error: error(23, 2) Error parsing expression, misplaced: func Why am I getting this error, and how can I fix it? Is there another ...
-1
votes
2answers
118 views

What is wrong with this particular code?

I have to correct this code without changing the structure. Cannot seem to figure out what's wrong. missiles is an array of ...
0
votes
0answers
26 views

How can I debug my game on mobile device?

I've been creating this game on my computer for months and everything works fine. But when I built the project and installed it into my android device, it doesn't run as smoothly. I don't wanna use ...
0
votes
1answer
38 views

Player light color he collects before checkpoint is getting reset when he restarts at checkpoint

I have a child object for my player called Light. The light color changes when the player touches balls of different colors. When I respawn at a checkpoint, the light is getting reset to the default ...
0
votes
1answer
42 views

Instantiate an object and translate it randomly

My goal through this code in C # is that each time the player presses the Q I create a cube at a fixed position given by another object, then begin translating it in a random direction. ie. first ...
0
votes
0answers
30 views

How to find the source of a memory leak in a Blockchain + Node.js game

We have been working in a Node.js game, part of a game network, which seems to be working slower and slower as you keep it open, as well as it seems to increase the RAM and CPU usage over time. We ...
0
votes
1answer
76 views

How can I debug a black screen when testing on a device?

I have made an Android game with Unity. But, when I opened my game, I see a black screen and a closed game. It works on a tablet but does not work on mobile phones. I tested it on 2 mobile phones. ...
2
votes
1answer
26 views

Can I run a script and generate warning when Unity project is saved?

Context: I'm working with Unity using Git and we have .gitignore setup so that we could create "_local" folder anywhere in Assets and it won't be commited. It makes for kind of a Debug/Backup folder, ...
0
votes
0answers
124 views
0
votes
1answer
337 views

“Video system not initialized” error

I always get the error message "video system not initialized" I don't get where I went wrong with the code below: ...
0
votes
0answers
912 views

Error: Program type already present: android.support.v4.app.NavUtils

Every time I try to build an APK file, it gives me an error. I fix one and then I get another and another. This was my last try: My gradle file: ...
1
vote
2answers
376 views

Null Reference Exception error occurs when trying to override AndroidManifest file in unity?

So I Created A manifest file in Assets/Plugin/Android/. The File contains: ...
0
votes
1answer
29 views

How to know the adresses an editor modifies while saving a file

I hope this question belongs here. Suppose an editor for a specific file extension. It usually has a user friendly interface so you don't see raw data. Once you edit anything and save the editor ...
2
votes
1answer
40 views

is there any method to simply ignore some files in unity build?

as im trying to build my new app on unity android specially when i want to use gradle, there is always some conflict with manifest or libraries and ..... for debug and problem exploration i need to ...
0
votes
1answer
90 views

Verifying that two words match — false negatives

In my first game, I am trying to validate whether two words match: whether an input word matches a reference word from an array. Unfortunately the only word for which it finds a correct match is the ...
2
votes
1answer
55 views

Piece of code causes game to freeze, then keep playing after sometime

Games Basic Premise Ball rolls along procedurally generated path. Click to changer directions. Don't fall off. I have a script dedicated to the path. The path is made up of 20 cubes, along the x+ and ...
0
votes
2answers
142 views

NullReferenceException in my inventory system [duplicate]

I'm making a simplified inventory system for a 3d game. When I try to pick up an object, I get the following error: NullReferenceException: Object reference not set to an instance of an object ...
0
votes
1answer
466 views

How to get error line when debugging APK from Logcat

I made android game by Unity and built APK. When I got error from this game, I can see the error message: ...
0
votes
1answer
56 views

When is transform width in code not equal to the transform width in inspector?

I've come across a strange case in Unity's UI where the width of a RectTransform isn't the same as what is being reported. I have a transform which is 50 by 50 with no scaling, it is a root object of ...
1
vote
1answer
48 views

What debugging info should I put in the “About” box

I'm developing an Android game with the idea of publishing it, and I wonder what info should I put in the "About" dialog that many main menus have. The idea is to make bug report and debugging easier....
1
vote
1answer
45 views

Does Debug.LogAssert gets deleted in Unity once I build the game?

Does Debug.LogAssert(expression) gets deleted in Unity once I build the game? I was not able to find it here. I feel like it should get deleted, but still I can ...
1
vote
0answers
294 views

How to approach debugging of java.lang.NullPointerException in android build of unity app?

We are getting an obscure java.lang.NullPointerException when building a Unity app for android. There's not much information here that I can trace back to our code. Does anyone have advice about how ...
1
vote
0answers
339 views

How to figure out why a given shader compilation causes an invalid operation error?

I have 2 versions of a program. The only difference being that in one, a geometry shader is compiled and in the other it is not. In all other regards both programs are identical, character by ...
0
votes
0answers
73 views

A question about HLSL debugger in Visual Studio Graphic Diagnostics

Here 's the thing. I developed a graphic project using SharpDx. Every time I actived the graphic diagnostic and debuged some hlsl code in my shaders, It always showed me the disassembling code rather ...
4
votes
1answer
120 views

Phantom objects in ray tracing

I am attempting to add volumetric shadowing to an application I am working on to test some things. For this effect I wrote the following fragment ...
-1
votes
1answer
185 views

Why is the line not being drawn?

I'm trying to add a few polishing touches to my puzzle game (made in Game Maker) in the vein of Ironclad. The following code is for adding a gem object to a stack that already has at least one other ...
4
votes
1answer
2k views

Mute sound in editor in Unity

Is it possible to mute sound in editor in Unity? I mean not in the game, but in the editor, so that when I am debugging there would be no sound whatsoever.
1
vote
1answer
408 views

Find an infinite loop in a very big project in Unity

How can I find an infinite loop in a very big project in Unity? I tried to use breakpoints in MonoDevelop and debug, but I was not able to track the loop. I tried to put ...
4
votes
0answers
227 views

Unity3d Sprite Mask Nonexistent in Build

I am developing a 2D game which uses sprite masks to limit the player's information to a circle around them. The feature works perfectly in the Unity Editor. It can be disabled and reenabled, have the ...
2
votes
0answers
549 views

The identifier is not in the scope! [closed]

I have a typical foreach loop in a coroutine like: ...
2
votes
1answer
134 views

Debugging an AMD GPU specific problem without an AMD GPU

I've recently started to receive reports from users that I game I'm working on isn't rendering properly on AMD GPUs. I'd like to track down the problem and fix it, but I'm a hobby developer just using ...
4
votes
0answers
188 views

Debug Unity DLLs in Windows standalone build

I'm trying to publish a game on the Windows Store using a standalone Windows build in Unity 5.6.2 and Desktop Bridge. Despite unchecking "development build", three Unity DLLs remain in debug mode, ...
1
vote
0answers
677 views

Directx11 create Texture2D using subresourceData

I'm trying to create immutable texture in d3d11 so I want to use subresourceData, every tutorial on textures creates them with 2nd argument being null and after that updates subresource but I want to ...
0
votes
0answers
20 views

How to make Unity NullReferenceExceptions more informative

Is there a way to modify the NullReferenceException for Unity gameObjects so that not only does it say "object reference not set to an instance of an object," but also says exactly what the name of ...
1
vote
1answer
1k views

Why does the Debug.DrawRay return these weird lines

I am working on a small feature of a 2D mobile game where a indicator points towards a object in 2D space. I am trying to make the indicator turn towards the object, however the vector I am trying to ...
2
votes
1answer
93 views

How to know if these profiler values are good or bad?

I'm making a 2D game for Android Mobile using LibGDX and Java in Android Studio. My game mostly runs alright with 60FPS, but for some time to time it lowers to 50FPS. I'm trying to find out what ...