Laserbrain Studios Forum

Hidden Asset => Bugs => Topic started by: Gabu on October 04, 2018, 08:21:13 PM

Title: game crash when i use miniature hydraulics then use key card
Post by: Gabu on October 04, 2018, 08:21:13 PM
When i use the miniature hydraulics . then try to open lock doors with the key card the game crashes.

Here is the error log.
 (https://i.imgur.com/LT00LDi.png)
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Christian Knudsen on October 05, 2018, 10:00:47 AM
Thanks for reporting this! Was the miniature hydraulics on the door you tried to unlock with the keycard or was it on a different door?

EDIT: Oh, the light isn't on on the miniature hydraulics, so looks like it wasn't attached to a door on the current map. I suspect the hydraulics may not have anything to do with the crash. Will have to do some tests.
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Gabu on October 11, 2018, 11:17:12 PM
have you've figure out the issue ? I still can't pin point the issue . I tired using the electric power override and the game still crashed with the exact error log. You might be right that its not the weapons that is crashing the game.
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Christian Knudsen on October 12, 2018, 09:09:50 AM
Not yet. From where in the code it crashes, it seems to be an issue with creating the selection border (the colored outline around the selected object), but I haven't been able to replicate the crash or figure out what's causing it.

Does it only crash when you select a specific door? Does it also crash when you don't have a weapon/device in use? What game resolution are you running at?
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Gabu on October 15, 2018, 06:54:32 PM
hi sorry for the late response. Ya so apparently this only occurs if you use that door . I tried other doors and it works.It only happens when a device is in use. The resolution i am playing at is 1280 by 720.
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Christian Knudsen on October 15, 2018, 08:43:25 PM
Thanks!

Does it happen with any device or only the miniature hydraulics? Which door (and on which map?) is the miniature hydraulics attached to?
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Gabu on October 17, 2018, 09:47:00 PM
No it also happens with the electric override . If you look at the picture from the original post it only happens with the door that is highlighted .
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Christian Knudsen on October 18, 2018, 10:52:58 AM
Okay. I'm still unable to reproduce the crash. :(

BUT... I know why it crashes in that part of the code. When drawing the selection border around the selected object (the door, in this case), the code traces around the outline of the door. But for some reason, the door graphic isn't loaded properly, so the code tries to trace an outline around nothing. That's what causes the crash. I just don't know why the door graphic isn't loaded properly for tracing around. But I can still change the code so that the crash doesn't happen, i.e. fixing the symptom rather than the disease.
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Gabu on October 18, 2018, 08:10:51 PM
Here is video of how i made it crash . It also shows the options i am playing on .
Hopefully this helps  ;).

https://youtu.be/n-j9ZoTXkw8 (https://youtu.be/n-j9ZoTXkw8)
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Christian Knudsen on October 18, 2018, 08:53:10 PM
Thanks for this. But it still doesn't crash for me. It could be an OpenGL issue as that is rather finicky and sometimes behaves differently on different computers. I will double-check all the OpenGL calls around the code that makes the selection outline.
Title: Re: game crash when i use miniature hydraulics then use key card
Post by: Gabu on October 20, 2018, 01:51:25 AM
i think i figured out the issue !!!!! So first of all it has nothing to do with the dimensions as i played it 1920 by 1080 and still had the issue. after numerous times of testing i believe it has something to do with the mouse constraint option. As when i turn it off the game has not crashed at that time. Unfortunately if i am the only one that is getting this issue this might be a needle in a haystack situation and it might just have to do with my computer.