Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Bugs, Bugs, Bugs

A topic by McRae-Alex created 95 days ago Views: 12
Viewing posts 1 to 1

This week has been fixing logic errors and outright crash errors that we have been encountering for various things.

So I started with a crash error that has been occurring with the "loot" that our enemies drop on death. For whatever reason, in release build, the random range that gets pulled from to determine what loot is spawned is sometimes out of bounds of the array.

After checking through my code, and after having my teammates check through my code as well, none of us have been able to understand this error. The crash appears in the editor on rare occasions (as shown in the image above), but mostly appears in release build. A friend recommended that I check if the error might be caused due to the packaging of Unreal moving something to the wrong location or maybe the packaging of our Install Creator. I checked both but have not been able to replicate the issue and my teammates have not encountered this issue again this week. We have not changed anything nor do we know what is different.

After that I have been working on my "EnemySpawner" object which has two logic errors as of now: On start up it spawns every enemy all at once, and sometimes it causes a (unreal thinks it is) infinite loop. The infinite loop turned out to just be unreal making a fuss about how I did the blueprint. The engine does not like having a Delay in a While Loop for some reason, does not matter where I place it nor how small I make the delay, without the delay I have not had this issue since.

As for the instant spawning of all enemies, I am trying to figure out why it does that. I added a delay to the beginning of the function for 0.5 (seconds I hope but this is probably ticks), but with that it seems to only spawn two enemies and then stops altogether. Any advice would be appreciated.



Finally, I have been working on my level to account for some complaints I received about there being no lights after you kill all the enemies and that the flashlight is not automatically turned on when you enter the level.