OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Serial Killer on 02 Nov 2005, 16:39:46

Title: Game crashes. Need help!
Post by: Serial Killer on 02 Nov 2005, 16:39:46
When I test my addon in game, the game just suddenly crashes in "Get ready..." screen. I can't alt-tab back to desktop, or use Alt-F4 to stop the game, it totally freezes. :o There's no problems in config.cpp, I'm sure, but I can't find any problems from model either. :(
Title: Re:Game crashes. Need help!
Post by: Planck on 02 Nov 2005, 18:28:37
It might help if you posted your config.   ;D


Planck
Title: Re:Game crashes. Need help!
Post by: Manz on 02 Nov 2005, 18:42:23
Try to remove the addon...
Title: Re:Game crashes. Need help!
Post by: Serial Killer on 02 Nov 2005, 18:52:22
Try to remove the addon...

Remove the addon? :-\ I don't get it...

Quote
It might help if you posted your config. ;D

There...
Quote
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot         0
#define WeaponSlotPrimary      1
#define WeaponSlotSecondary      16
#define WeaponSlotItem         256
#define WeaponSlotBinocular      4096
#define WeaponHardMounted      65536

class CfgPatches
{
   class srk_cops
   {
      units[] = {};
      weapons[] = {};
      requiredVersion = 1.75;
           requiredaddons[] = {"BIS_Resistance"};   
   };
};

class CfgModels
{
   class Default {};
   class Head: Default {};
   class Man: Default {};
   class srk_cop: Man
      {
      sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh","osobnost","cap"};
      };
};
class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class SoldierWMedic:Soldier{};
   class SoldierWSniper:SoldierWB{};

   class srk_cop: SoldierWB
   {
      model="\srk_cops\srk_cop";
      displayName="Police";
      vehicleClass ="Police";

      moves="CfgMovesMC";
      scope=2;
      side=3;
      accuracy=0.700000;
      cost=40000;
      nameSound="man";


      weapons[]={"Throw","Put","Beretta"};
      magazines[]={"Berettamag","Berettamag","Berettamag","Berettamag","Berettamag"};
      };
   };
};
Title: Re:Game crashes. Need help!
Post by: h- on 02 Nov 2005, 19:03:42
Most likely a problem with your model..

Config errors show up during OFP start up, and model problems tend to cause all kinds of trouble, including CTDs and freezes...
Title: Re:Game crashes. Need help!
Post by: Serial Killer on 02 Nov 2005, 19:04:38
Any ideas what is wrong with the model? I didn't notice anything...
Title: Re:Game crashes. Need help!
Post by: Planck on 02 Nov 2005, 19:12:06
A quick scan reveals that your CfgPatches has no units defined, whereas your CfgVehicles defines 1 unit.

Try changing the CfgPatches to:

Code: [Select]
class CfgPatches
{
   class srk_cops
   {
      units[] = {srk_cop};
      weapons[] = {};
      requiredVersion = 1.75;
      requiredaddons[] = {"BIS_Resistance"};  
   };
};


EDIT:  You have one '}' too many at the end of the config



Planck
Title: Re:Game crashes. Need help!
Post by: Serial Killer on 03 Nov 2005, 20:58:44
Thanks, but it didn't help. :(
Title: Re:Game crashes. Need help!
Post by: remcen on 03 Nov 2005, 22:33:37
extremely convex faces can easily make a model unstable.
i remember you writing somewhere that you're not a very enthusiastic modeller, so i'm guessing that you took an older model and added some parts here and there. check these for convexities. the most radical approach would be to select the added parts and then hit 'triangulate' in the 'structure' menu. if the problem still occurs after you did that you excluded one potential source at least.