OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started 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. :(
-
It might help if you posted your config. ;D
Planck
-
Try to remove the addon...
-
Try to remove the addon...
Remove the addon? :-\ I don't get it...
It might help if you posted your config. ;D
There...
#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"};
};
};
};
-
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...
-
Any ideas what is wrong with the model? I didn't notice anything...
-
A quick scan reveals that your CfgPatches has no units defined, whereas your CfgVehicles defines 1 unit.
Try changing the CfgPatches to:
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
-
Thanks, but it didn't help. :(
-
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.