Author Topic: Crash to desktop after killing Zombie.  (Read 9717 times)

Offline EricDaMidget

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Crash to desktop after killing Zombie.
« on: November 03, 2015, 04:00:15 am »
Hey guys,

I was streaming X-Com today and came across a strange crash that I never had before.
In a terror mission whenever I kill this zombie the game crashes to desktop without any error messages showing. It crashes right when the zombie is supposed to turn into the Chryssalid.
I've tried killing him with heavy plasma, alien grenades, and a missile launcher... all resulted in the game instantly crashing.

Running the latest nightly Nov 1.

Please help!

Thank you.

Offline Roxis231

  • Colonel
  • ****
  • Posts: 484
  • Catching the feral kitten hiding in my rubish bin
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #1 on: November 03, 2015, 04:07:49 am »
It's kind of hard to find a problem with the statment "X happens and the game crashes" -  This really needs more information before somebody could do something.

Posting a copy of the save file would help.

Offline EricDaMidget

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #2 on: November 03, 2015, 04:10:24 am »
Sure, where do I find save files? I have the steam version if that helps. Thank you!

Offline EricDaMidget

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #3 on: November 03, 2015, 04:15:43 am »
Sorry for being a noob, I found it.
Attached.

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #4 on: November 03, 2015, 06:20:16 am »
Where your data-files came from? If from DOS-version, do you patched data with latest patch from here?

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Crash to desktop after killing Zombie.
« Reply #5 on: November 03, 2015, 07:50:53 am »
Did you use XcomUtil on your Steam DOS/Windows Version?
Because XcomUtil makes some crazy patches to a lot of the original files, which is what you want playing the DOS/Windows version.

OpenXcom relies on the original gamefile, which need NOT to be tempered with by XcomUtil and need to be applied with universal data patch winterheart linked.

This is important and XcomUtil tempered files may result in some very unpredictive behaviour, like CTD's weird crashes etc..

@ OP are you familar with md5 checksums?

I posted the md5 checksums of my gamefiles here on pastebin (also attached as *.txt) so you can have something to compare, i use the 1.4 DOS Version with a applied Universal Data Patch.

This will allow you to compare your own files against those checksums and lets us find out if your files are ok or have been tempered with.
« Last Edit: November 03, 2015, 07:53:20 am by hellrazor »

Offline EricDaMidget

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #6 on: November 03, 2015, 09:41:24 am »
I'm using the Steam version and I used the windows installer that says that the patch comes with it and then updated to the latest nightly. Hope my game didn't RIP, it was so epic :(

Offline EricDaMidget

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #7 on: November 03, 2015, 12:09:24 pm »
Here's what it looked like in real time after about 8 hours of streaming: https://www.twitch.tv/ericdamidget/v/23704082
Crash comes at 3:08:33

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #8 on: November 03, 2015, 01:12:12 pm »
Yes, I confirm that killing that nasty zombie crashing OpenXcom. We have bug around here!
I'll check it later today with debugger.

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #9 on: November 03, 2015, 04:11:05 pm »
OK, here fix: https://github.com/SupSuper/OpenXcom/pull/1065

If you can't wait for fix and new nightly, just remove string "deathSound: -2" at the end of file "standard\xcom1\units.rul" (that simple plain-text file) and all will be fine.

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Crash to desktop after killing Zombie.
« Reply #10 on: November 03, 2015, 07:18:24 pm »
OK i can confirm this bug in a vanilla game and in the save the OP has posted.

Mysteriously the bug does not occur in my Hardmode Expansion Mod, even thou i did not change the ZOMBI unit in any way and i am useing the vanilla Zombi stats and settings.
This really is very very strange.

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #11 on: November 03, 2015, 08:32:30 pm »
Mysteriously the bug does not occur in my Hardmode Expansion Mod, even thou i did not change the ZOMBI unit in any way and i am useing the vanilla Zombi stats and settings.
This really is very very strange.

Maybe your zombies screams on death? :)

Offline EricDaMidget

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #12 on: November 03, 2015, 10:20:46 pm »
OK, here fix: https://github.com/SupSuper/OpenXcom/pull/1065

If you can't wait for fix and new nightly, just remove string "deathSound: -2" at the end of file "standard\xcom1\units.rul" (that simple plain-text file) and all will be fine.

Hell yeah! You guys rock, thank you very very much!!

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Crash to desktop after killing Zombie.
« Reply #13 on: November 03, 2015, 10:40:21 pm »
OK, here fix: https://github.com/SupSuper/OpenXcom/pull/1065

If you can't wait for fix and new nightly, just remove string "deathSound: -2" at the end of file "standard\xcom1\units.rul" (that simple plain-text file) and all will be fine.
Wow, I thought I had accounted for this but turns out I completely screwed up my sanity check:

Code: [Select]
int i = RNG::generate(0, sounds.size() - 1);
if (i >= 0)
{
_parent->getMod()->getSoundByDepth(_parent->getDepth(), sounds[i])->play(-1, _parent->getMap()->getSoundAngle(_unit->getPosition()));
}
*facepalm* Thanks guys.
« Last Edit: November 03, 2015, 10:45:04 pm by SupSuper »

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Crash to desktop after killing Zombie.
« Reply #14 on: November 03, 2015, 10:41:33 pm »
Maybe your zombies screams on death? :)

Actually they do, but i did not change any of their settings so i am actually wondering how.
We may be needing a genuine "hatching" sound.