Currently with my mod there is an issue involving the player pressing a key that is bound to a custom function while in menus, namely one that uses a simple script to add an item to the player's inventory for as long as it is held down, and then remove it as soon as the key is released. In testing the issue it seems to only happen if the player has not yet started a game, and seems to happen almost every time the key is pressed (even during initial binding.) The only exception I have found to this is when another key is pressed to bring up the main menu, and no navigation into the other menus (such as OptionsMenu) has been made. This issue has started in 4.0.0 and is present in 4.1.0 as well. Concerned that it may be an issue with a naming conflict with any internal changes, I have changed both the name of the alias and the scripts themselves just to be sure:
original keyconfig wording
Code: Select all
addmenukey "Kick" +Action
alias +Action "pukename StartUserAction always"
alias -Action "pukename StopUserAction always"
defaultbind Q +Action
Modified keyconfig for testing
Code: Select all
addmenukey "Kick" +GonnaKickStuff
alias +GonnaKickStuff"pukename StartKicking always"
alias -GonnaKickStuff"pukename StopKicking always"
defaultbind Q +GonnaKickStuff
With the scripts being renamed and recompiled as necessary. I did also try removing the always tag with no change.
Crash logs provided via SilentDarkness12 in the Heretical Doom topic:
download/file.php?id=35185
Edit: Upon further testing, commenting out the <alias -Action "pukename StopKicking always"> seems to avoid the crash. This command is the one that removes the item from the players inventory
Currently with my mod there is an issue involving the player pressing a key that is bound to a custom function while in menus, namely one that uses a simple script to add an item to the player's inventory for as long as it is held down, and then remove it as soon as the key is released. In testing the issue it seems to only happen if the player has not yet started a game, and seems to happen almost every time the key is pressed (even during initial binding.) The only exception I have found to this is when another key is pressed to bring up the main menu, and no navigation into the other menus (such as OptionsMenu) has been made. This issue has started in 4.0.0 and is present in 4.1.0 as well. Concerned that it may be an issue with a naming conflict with any internal changes, I have changed both the name of the alias and the scripts themselves just to be sure:
original keyconfig wording
[code]addmenukey "Kick" +Action
alias +Action "pukename StartUserAction always"
alias -Action "pukename StopUserAction always"
defaultbind Q +Action[/code]
Modified keyconfig for testing
[code]addmenukey "Kick" +GonnaKickStuff
alias +GonnaKickStuff"pukename StartKicking always"
alias -GonnaKickStuff"pukename StopKicking always"
defaultbind Q +GonnaKickStuff[/code]
With the scripts being renamed and recompiled as necessary. I did also try removing the always tag with no change.
Crash logs provided via SilentDarkness12 in the Heretical Doom topic: https://forum.zdoom.org/download/file.php?id=35185
Edit: Upon further testing, commenting out the <alias -Action "pukename StopKicking always"> seems to avoid the crash. This command is the one that removes the item from the players inventory