Home   Help Search Login Register  

Author Topic: Game crashes. Need help!  (Read 1899 times)

0 Members and 2 Guests are viewing this topic.

Serial Killer

  • Guest
Game crashes. Need help!
« 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. :(

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Game crashes. Need help!
« Reply #1 on: 02 Nov 2005, 18:28:37 »
It might help if you posted your config.   ;D


Planck
I know a little about a lot, and a lot about a little.

Manz

  • Guest
Re:Game crashes. Need help!
« Reply #2 on: 02 Nov 2005, 18:42:23 »
Try to remove the addon...
« Last Edit: 02 Nov 2005, 18:42:42 by Manz »

Serial Killer

  • Guest
Re:Game crashes. Need help!
« Reply #3 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"};
      };
   };
};

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Game crashes. Need help!
« Reply #4 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...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Serial Killer

  • Guest
Re:Game crashes. Need help!
« Reply #5 on: 02 Nov 2005, 19:04:38 »
Any ideas what is wrong with the model? I didn't notice anything...

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Game crashes. Need help!
« Reply #6 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
« Last Edit: 02 Nov 2005, 19:17:46 by Planck »
I know a little about a lot, and a lot about a little.

Serial Killer

  • Guest
Re:Game crashes. Need help!
« Reply #7 on: 03 Nov 2005, 20:58:44 »
Thanks, but it didn't help. :(

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:Game crashes. Need help!
« Reply #8 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.
we're looking for members: IM:UC MOD