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
0 answers
13 views

Block was added but has no texture. How can i fix?

I'm including the code, for some reason my titanium ore isn't using its texture. Do you see a bug? This is my first mod (1.18 bedrock) The code format was kinda messed up when I pasted it in here (...
user avatar
0 votes
1 answer
71 views

Determine line that threw an Exception using Android Logcat

I just installed Android logcat to debug my game from Unity's package manager. I don't fully understand how it works or in what order the logs are shown relative to my code. The problem I have is that ...
user avatar
0 votes
1 answer
43 views

How to check which code has destroyed or disabled a GameObject?

In legacy code, I need to check what caused the game object to be destroyed, disabled, etc. Is there any way to trace or to place a breakpoint to check the call stack for why the game object became ...
user avatar
  • 2,438
1 vote
0 answers
46 views

Drawing angle between 2 rays

Currently, we can draw rays in real time, like this: ...
user avatar
1 vote
0 answers
59 views

Why would Nintendo (or any game developer) compile their final retail game with "debug" symbols enabled?

I read this: https://zelda64.dev/games/mm#why-is-majoras-mask-so-far-behind-ocarina-of-time Retail versions of both games are compiled with -O2 -g3. -g3 is a debugging flag that includes far more ...
user avatar
0 votes
0 answers
41 views

How do I debug multi-touch for a Unity on Android platform?

I'm trying to implement multi-touch in my game but there are many bugs so far and I need a way to get info on all of the touches as the game is running. So far I haven't found any way to do this.
user avatar
0 votes
0 answers
72 views

How to view logs of a Unity PC build in realtime?

For Android builds, I can use Android Studio, mLogcat or many other tools to check device logs in realtime. For iOS builds, I can use the code console to checks the logs in realtime. Is there any way ...
user avatar
  • 2,438
1 vote
3 answers
129 views

Are there conventions on what exactly to log in a game?

I am currently developing a game in C++, using SDL2. For logging, I wrote this Log class: Log.h ...
user avatar
  • 113
0 votes
0 answers
56 views

Gizmos disappear after a scene transition

I have used OnDrawGizmos function to draw some cubes. If I run the project from that particular scene, the gizmos are visible. But after a scene transition they disappear. It appears again if I select ...
user avatar
0 votes
0 answers
28 views

Minecraft Bedrock Debugging

I'm working on resource and behavior packs in Minecraft Bedrock and find it difficult to debug. For example, an entity that I've defined won't show up because of an invalid attribute in the JSON file. ...
user avatar
  • 101
2 votes
1 answer
52 views

How to inspect child nodes in IDE debugger?

Consider an enemy with this node hierarchy: * KinematicBody2D (Enemey) |- Sprite |- CollisionShape |- Area2D (StompDetector) |- CollisionShape2D With signal ...
user avatar
1 vote
1 answer
246 views

Gizmos not being drawn until GameObject selected

I have implemented Scene loading in my game and have three scenes: Persistent, Main Menu and ...
user avatar
1 vote
1 answer
2k views

How to get the source code for a game?

I read here a spectacular story of someone (scrappily) fixing some things in a game's source code, making it load 4 times faster! How did the developer get the source code in the first place? Is there ...
user avatar
  • 113
4 votes
1 answer
197 views

Is it possible to debug shaders in GLSL level instead of assembly language level?

I'm writing some Vulkan code and write my shaders in GLSL. I tried to use Renderdoc to debug my shaders, but I only got disassembly code. Is it possible to debug shaders at the level of GLSL if I have ...
user avatar
0 votes
1 answer
143 views

How to draw unity gizmos with new input system?

I am using the new Unity Input system for my game. When I press a key, for example "Q", I want gizmos to be drawn. However, I can't subscribe to a keypress event with a Gizmo drawing ...
user avatar
0 votes
1 answer
524 views

Why do Dynamic Bones disconnect natural flow if they have ANY child gameobjects?

I've been having an issue for months now where if I have a dynamic bone chain that splits off in any way (ie. any of the chain's bones have child gameobjects), then the flow of the dynamic bone chain ...
user avatar
0 votes
1 answer
75 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 ...
user avatar
1 vote
1 answer
423 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 ...
user avatar
0 votes
2 answers
9k views

A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details

A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details. In working on saving to file the ...
user avatar
  • 174
1 vote
0 answers
92 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, ...
user avatar
0 votes
0 answers
252 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. (...
user avatar
1 vote
1 answer
822 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 ...
user avatar
  • 163
0 votes
2 answers
43 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 ...
user avatar
  • 101
0 votes
2 answers
67 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 ...
user avatar
-1 votes
1 answer
222 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.
user avatar
  • 409
1 vote
2 answers
209 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,...
user avatar
0 votes
1 answer
171 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 ...
user avatar
0 votes
1 answer
612 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 ...
user avatar
0 votes
1 answer
348 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, <...
user avatar
  • 103
0 votes
0 answers
28 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....
user avatar
  • 163
3 votes
1 answer
69 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 ...
user avatar
0 votes
2 answers
2k 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 ...
user avatar
2 votes
2 answers
8k 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 ...
user avatar
1 vote
1 answer
2k views

Unity get component throwing NullReferenceException only in standalone build

I'm having a very frustrating issue with GetComponent(). ...
user avatar
  • 2,729
2 votes
1 answer
1k 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 ...
user avatar
  • 619
1 vote
1 answer
662 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
2 answers
120 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 ...
user avatar
  • 113
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
-1 votes
2 answers
121 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 ...
user avatar
0 votes
0 answers
31 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 ...
user avatar
-1 votes
1 answer
95 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 ...
user avatar
0 votes
1 answer
506 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 ...
user avatar
  • 111
0 votes
0 answers
39 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 ...
user avatar
0 votes
1 answer
238 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. ...
user avatar
2 votes
1 answer
94 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, ...
user avatar
  • 209
-1 votes
1 answer
590 views

UnityWebRequest won't work unless a breakpoint is triggered before hand

...
user avatar
  • 99
1 vote
2 answers
7k 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: ...
user avatar
1 vote
2 answers
961 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: ...
user avatar
  • 175