limoka / DSP-Mods

An example how to add a custom model with your mesh and animations
MIT License
32 stars 10 forks source link

[BUG] - Blueprint Tweaks - Crash when pressing Print (CTRL+P) on keyboard. #8

Closed JamieRCHI closed 3 years ago

JamieRCHI commented 3 years ago

Bug Description: On my keyboard, (Microsoft Natural Ergonometric model 4000, v1.0), if I press the Print key, which is the alternate key for F12, I get NullReferenceException. (Print is CTRL-P with my keyboard.)

Please note that I think this may be a bug with the DSP game, and not specifically your mod.

Edit: Note that the Print function on my keyboard is bound to CTRL+P. Steps to reproduce the behavior:

  1. Normally the Function lock key is enabled, and is located to the right of F12.
  2. If I 'Accidentally' click on the Function lock key next to F12, the F12 will now function as 'Print'.
  3. If I then press what was F12, which is now Print, I get the NullReference Exception.
  4. The error from the output_log.txt file and displayed on the screen:

NullReferenceException: Object reference not set to an instance of an object at BlueprintTweaks.GridSnappingPatches.GetGroundCastPos () [0x00030] in <4b12ea7f8e224991aa9a978629650725>:0 at BlueprintTweaks.GridSnappingPatches.LockLongtitude () [0x0000e] in <4b12ea7f8e224991aa9a978629650725>:0 at BlueprintTweaks.BlueprintTweaksPlugin.Update () [0x0004b] in <4b12ea7f8e224991aa9a978629650725>:0

Expected behavior: If the game does not use the Print function (keybind?), nothing should happen. Also, If the game Does use the Print button for something, I should not get a NullReferenceException.

Log files output_log.txt

limoka commented 3 years ago

Did you bind this modified Print button to Longitude Lock function?

limoka commented 3 years ago

Also at what state the game is when error happens? Main menu, in game?

limoka commented 3 years ago

Also can you test this build? Does it fix the error?

JamieRCHI commented 3 years ago

Did you bind this modified Print button to Longitude Lock function?

No. FPS display was rebound to F12. It appears that the Print button is CTRL+P and I have that bound to Planet View.

JamieRCHI commented 3 years ago

Also at what state the game is when error happens? Main menu, in game? In Game.

JamieRCHI commented 3 years ago

Also can you test this build? Does it fix the error? I will try this next. In the meantime I believe the 'Lock Latitude Axis' was bound to CTRL-P and I changed it to ALT-P. I also changed the 'Open Planet View' from CTRL-P to CTRL-L. Still crashes. I shall return shortly after test your new file.

limoka commented 3 years ago

I think i had an issue during that build. So it might be without the fix. Please try this one: Release.zip

JamieRCHI commented 3 years ago

Thank you. That fixed it. Now I can use CTRL-P for other stuff.

JamieRCHI commented 3 years ago

And Thank You for your help and quick response.