one of my soldier model makes ofp crash when i insert the unit in the mission editor and hit preview. ofp crashes on loading, not a milisecond after rendering the model.
first i thought that it might be a model issue, so i triangulated all non-planar faces (should have done that anyway
) - the problem remained. then i exchanged all proxies cos that worked once in the past with a different model. problem still remained. then i thought that it might be the config cos i once deleted all animations in the config and bingo - i saved the config with the anims, deleted them and saved the file as new config.cpp. no problems any more. then i deleted the config, renamed the old one to config.cpp again, and remarked the animations of the single units and tested them separately.
strangely the crash only happened when my first unit had the anims, for all other models they work fine. more strangely i can't find any syntax error or something in the anim code of this units, and even more strangely it's simply a copy of all other animations - in the config and in the model. they all use the same code and selections in the model, but only in one model this leads to unstability.
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class imuc_ussf: SoldierWB
{
hiddenselections[]={"sunglasses","sunglasses_glass","bloodpatch"};
accuracy="3.00000000";
weapons[]={"throw","put", "SJB_TOS_M4_AIMPOINT_SD", "SJB_TOS_Colt1911", "nvgoggles", "binocular"};
magazines[]={"SJB_TOS_M4_SD_mag", "SJB_TOS_M4_SD_mag", "SJB_TOS_M4_SD_mag", "SJB_TOS_M4_SD_mag", "SJB_TOS_M4_SD_mag", "SJB_TOS_M4_SD_mag", "SJB_TOS_Colt1911_Mag", "SJB_TOS_Colt1911_Mag", "SJB_TOS_Colt1911_Mag", "SJB_TOS_Colt1911_Mag", "Smokeshell", "Smokeshell", "Handgrenade", "Handgrenade"};
sensitivity=1.25;
model="\hm_ussf\ussf.p3d";
nightVision=1;
camouflage=0.750000;
armor=3.400000;
armorStructural=2.000000;
armorHead=0.400000;
armorBody=1.900000;
armorHands=0.500000;
armorLegs=0.500000;
scope=public;
side=1;
vehicleclass="IMUC - USSF";
namesound="blackop";
displayname="USSF 1";
imuc_ussf_wounds
// class animations
// {
// class sunglasses
// {
// type="rotation";
// animPeriod=0.01;
// selection="brain";
// axis="axis_sunglasses";
// angle0=0;
// angle1=2.00000;
//
// };
// };
//
// class useractions
// {
// class takeoff_sunglasses
// {
// displayname="Take off sunglasses";
// position="brain";
// radius="0.1";
// condition="this animationphase ""sunglasses"" == 0";
// statement="this animate [""sunglasses"",1]";
// };
// class puton_sunglasses
// {
// displayname="Put on sunglasses";
// position="brain";
// radius="0.1";
// condition="this animationphase ""sunglasses"" == 1";
// statement="this animate [""sunglasses"",0]";
// };
// };
class EventHandlers
{
Init="[_this select 0] exec ""\hm_ussf\sc\init.sqs""; [_this select 0] exec ""\facestex2\basefaces.sqs"";";
};
};
it works fine like this, but when the remarked code (// ...) is "activated", ofp crashes when previewing the test mission.