OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ChumyXD on 02 Apr 2013, 09:00:57

Title: [Solved] Crash after dying
Post by: ChumyXD on 02 Apr 2013, 09:00:57
Hello. First than nothing, im relatively new to OFP editing, so, if i miss something, just tell me what, and i add it.

So, after a lot of experiments, i would say that i finished my first mission. I tested it, the objectives worked fine, the end too, but, if i die after ending at least one objective, the game crashes, and it ends with a black screen, with the following error message:
(http://i46.tinypic.com/5pqt06.png)
I searched a lot, both here, and in BIS forums, but no "animace" error seems to have appeared. I tested without description.ext, briefing.html and overview.html, but nothing seems to work.
¿What could be? Im uploading the entire mission, and the PBO, just in case.
Cheers.
Title: Re: Crash after dying
Post by: h- on 02 Apr 2013, 10:25:04
Welcome to OFPEC :welcome:


That error appears to be caused by a script 'onPlayerKilled.sqs', included in the game and it's run when the player dies. So it's basically a minor bug in the game i guess, never seen it myself though.. :dunno:
Title: Re: Crash after dying
Post by: Doktor Headshot on 02 Apr 2013, 12:03:54
hello! following h- post, did you already try to copy again the "scripts.pbo" file from your OFP cd to the "DTA" folder located in your main OFP directory and overwrite that file from cd to old file on your hard disk?
Title: Re: Crash after dying
Post by: savedbygrace on 03 Apr 2013, 00:24:22
Interesting that this has only happened to you.
_animace is a local variable declared just 2 lines before your posted line of code inside the same script and should never occur unless someone has altered the code. It may be worth it to unpbo your scripts.pbo file inside the DTA folder in your Operation Flashpoint directory and see if the code inside the onPlayerKilled.sqs matches the code below.
Quote
&2

titleCut["", "BLACK OUT",1]
&3
_animace = ["deathDefault.sqs", "death1.sqs"]

_this exec ( _animace select ( random ( (count _animace) - 0.5 ) ) )

exit
If it doesn't, then perhaps following Doktor Headshots advice could work out the problem.
You can use Mikero's Eliteness (http://ofpec.com/addons_depot/index.php?action=details&id=118) to unpack your scripts.pbo and take a look.

If that doesn't work out the problem, or you have a digital copy of the game that you have downloaded somewhere, perhaps it was a corrupted file download. In which case, an obvious reinstall is in order.

Keep us informed.

Title: Re: Crash after dying
Post by: ChumyXD on 04 Apr 2013, 04:20:52
Welcome to OFPEC :welcome:


That error appears to be caused by a script 'onPlayerKilled.sqs', included in the game and it's run when the player dies. So it's basically a minor bug in the game i guess, never seen it myself though.. :dunno:
Thanks  :D


So it was no error during the creation of the mission... But is strange that the bug only happened to me, though.


hello! following h- post, did you already try to copy again the "scripts.pbo" file from your OFP cd to the "DTA" folder located in your main OFP directory and overwrite that file from cd to old file on your hard disk?

I would like to try, but i have CWA version, the one that can be downloaded from BIS Community wiki. Thanks anyway.

Interesting that this has only happened to you.
_animace is a local variable declared just 2 lines before your posted line of code inside the same script and should never occur unless someone has altered the code. It may be worth it to unpbo your scripts.pbo file inside the DTA folder in your Operation Flashpoint directory and see if the code inside the onPlayerKilled.sqs matches the code below.
Quote
&2

titleCut["", "BLACK OUT",1]
&3
_animace = ["deathDefault.sqs", "death1.sqs"]

_this exec ( _animace select ( random ( (count _animace) - 0.5 ) ) )

exit
If it doesn't, then perhaps following Doktor Headshots advice could work out the problem.
You can use Mikero's Eliteness (http://ofpec.com/addons_depot/index.php?action=details&id=118) to unpack your scripts.pbo and take a look.

If that doesn't work out the problem, or you have a digital copy of the game that you have downloaded somewhere, perhaps it was a corrupted file download. In which case, an obvious reinstall is in order.

Keep us informed.



I unpacked the scripts.pbo, then checked the onPlayerKilled.sqs, and it displayed the same code. Im downloading the OFP installer, and test if the problem disappears.
Thanks to all who answered me, have a good evening.


EDIT: It looks like reinstalling solved the problem. Thanks for all the help!