OpenXcom Forum

Contributions => Programming => Topic started by: Countdown on May 03, 2016, 11:05:14 am

Title: Getting a game crash when using the standard UFOextender Gun Melee mod
Post by: Countdown on May 03, 2016, 11:05:14 am
I haven't really used the UFOextender_Gun_Melee mod before, but I was playing with it in the "New Battle" mode and keep getting crashes with it. Specifically, as far as I can tell, it's when you use it with a weapon that is unloaded. I turned off all my other mods and started a new mission and still got the crash. Sometimes it takes a few attempts, but if I keep swinging it will eventually crash.

I attached a save file test. Just take one melee "Hit" with the currently selected soldier and for me at least it will crash. Not sure what I could be doing wrong since I didn't touch the mod, but wouldn't be the first time I missed something obvious. Anyone else experience the same issue if you try? (I doubt many people naturally try to melee with an unarmed weapon, but this was a "challenge mission" I way playing just for fun.)


On a separate note, is gun melee meant to be effective? Even with bigger weapons it takes a lot of swings to actually knock an alien out.
Title: Re: Getting a game crash when using the standard UFOextender Gun Melee mod
Post by: Xtendo-com on May 03, 2016, 02:07:20 pm
Good job, but post in bugtracker (https://openxcom.org/bugs/openxcom) instead (at that time I posted (https://openxcom.org/bugs/openxcom/issues/1228) bug for you). Developers may not have a lot of time to search deeply forum for bugs. For example, there was a bug (https://openxcom.org/forum/index.php/topic,4356.msg59758.html#msg59758) with strafe movement that already posted and fixed in forum, but not fixed in vanilla openxcom for a long time until I post bug in bugtracker (https://openxcom.org/bugs/openxcom/issues/1225)

On a separate note, is gun melee meant to be effective? Even with bigger weapons it takes a lot of swings to actually knock an alien out.
No, otherwise will make stun rod fully useless item.
Title: Re: Getting a game crash when using the standard UFOextender Gun Melee mod
Post by: Countdown on May 21, 2016, 02:14:50 pm
Xtendo, thanks for posting the bug fix for this. I had used the bug tracker once before (https://openxcom.org/bugs/openxcom/issues/1209#), but in this case I wanted to check that it was actually a bug before I made a post in the tracker.

No, otherwise will make stun rod fully useless item.
True, so melee can't be too powerful. But maybe if stun rod takes 1 or 2 hits to knock an alien out, melee could be 4 or 5. For some weapons it costs A LOT of TUs, but is so ineffective you would never use it in any regular game situation. However, for my "challenge mission" it was necessary.