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
1answer
13 views

Help with moving object to mouse position

I'm trying to make an object follow my cursor using raycasting. I'm creating the raycast each frame and checking the player's distance from the hit and whether or not the hit landed on an object ...
1
vote
1answer
56 views

How to find a culprit BP from memory address in VS debugger causing build error messages in UE4?

I am trying to build out my project, but I keep running into a nasty error message about a BP reroute node... :( It compiles all of the 1000 shaders and everything and just before it would finish it ...
0
votes
0answers
13 views

How do I find more details about a Vuforia error when going into play mode?

I want to make an AR app in Unity using Vuforia Engine. But when I try to enter play mode nothing appeared. Here's the error alert: Since this error does not give me any clue about what went wrong, I'...
1
vote
0answers
38 views

Why my code changes don't take effect in editor UE4?

I have a plugin in my project to move around stuff with gizmos(much recommended tool, by the way). It has quite a few blueprint functions that I use. I would like to add some functionality to it, ...
0
votes
0answers
64 views

Unity build fails to load anything

I made a build of my game, which is running just fine in the editor. But when I run the build, I get the splash screen, then a black screen. No graphics, no sound, no response to any input. (...
0
votes
0answers
25 views

How to pause audio playback when a breakpoint is hit or resume afterward?

When my code hits a breakpoint, audio that was previously started (via an AudioSource) continues to play while the threads are paused. I'm using a coroutine to ...
1
vote
1answer
65 views

debug unreal engine c++ - how to run in break mode

I have a number of things not working properly with my FBX imports and I would like to understand how FBX imports work internally. Now, I am noob in software development, so how do I debug the ...
0
votes
2answers
32 views

How do I debug within an animation loop?

I'm trying to see some values within an animation loop, and am naively just console.log'ing when I need to, however, this usually results in the browser crashing ...
0
votes
2answers
45 views

How can I debug a GameObject's rotation?

I have a model of a dragon, with an animation of it flying. When I play the animation in the Animator's preview, the dragon flies in a straight line, but when I run it in-game, it flies around in ...
-1
votes
1answer
72 views

How do I debug OpenGL apps written in python?

How do I debug OpenGL apps written in python? I tried but I was unable to use standard tools like nvidia nsight or glsl-debugger or renderDoc on python code.
0
votes
0answers
38 views

Slick-2D Side scrolling problem

For the last couple of days I have been stuck on a a problem with side scrolling (trying to create a parallex effect) in my game. Here is the following code for my update and render methods: Render: ...
0
votes
0answers
17 views

Rider/Unity attach and play debugger: Constant decompiler popups when going into UnityEngine code

I'm trying to learn how to use Rider's debug tools for Unity. I've only used a debugger a few times before. I put a breakpoint in my code, and hit Attach and Play Debug. It correctly stops at my ...
1
vote
2answers
94 views

Third person and LineTracing C++

Problem I have a crosshair in the middle of the screen. I need to create a lineTrace that passes straight through this crosshair. As this is a third person game,...
0
votes
1answer
70 views

How can I fix sprite vibrating randomly which is moving towards the mouse while using camera.position set to the sprite as the center?

So, when I use camera.position.x = player.x; camera.position.y = player.y; to set the center of camera to my sprite, the code doesn't work as intended to. It's ...
0
votes
1answer
104 views

Unity build does not launch and leaves no logs/errors

I have released my first title Audio Infection ( https://store.steampowered.com/app/911580/Audio_Infection/ ) for a bit over a year ago. Recently 1 user has so far encountered an issue where the game ...
0
votes
1answer
103 views

Running Unity development build in Android emulator without signing

I am working on project with a friend who uses Windows while I am using Ubuntu. We are using Unity collaborate and it's going fine except when we want to build. The keystore is in his filesystem, <...
0
votes
0answers
19 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....
3
votes
1answer
57 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
2answers
615 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 ...
2
votes
1answer
5k 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 ...
1
vote
1answer
755 views

Unity get component throwing NullReferenceException only in standalone build

I'm having a very frustrating issue with GetComponent(). ...
2
votes
1answer
680 views

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
228 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
635 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
86 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
385 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
1k 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
28 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
62 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
118 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
32 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
104 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
38 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
1answer
270 views
0
votes
1answer
3k 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: ...
1
vote
2answers
636 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
43 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
95 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
57 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
145 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
697 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
91 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
62 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
312 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
459 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
120 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
122 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 ...