Jump to content
Sign in to follow this  
AgentFox2

Soldier unit config CTD

Recommended Posts

I'm having some issues with a config of mine, and can't for the life of me figure out why. At the moment the config has a few weapons included, and some soldier unit entries, simply for the purpose of testing those weapons out.

The weapons, however, are not the problem, as I can add all of those standard BIS soldiers, with no problems. So, that narrows it down to the unit config.

The error I get is like this; I place down my placeholder unit within the editor, and then hit preview. It hangs on "Get ready..." for about 15-20 minutes, and then crashes to the desktop, sometimes with the error message "Out of reserved memory...", sometimes without any message at all. I am running OFP with no other addons other than the test addon, so I can't imagine it is the amount of addons loaded.

Here's the unit part of the config:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// some basic defines

#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

// type scope

#define private 0

#define protected 1

#define public 2

#define WeaponNoSlot 0// dummy weapons

#define WeaponSlotPrimary 1// primary weapons

#define WeaponSlotSecondary 16// secondary weapons

#define WeaponSlotItem 256// items

#define WeaponSlotBinocular 4096// binocular

#define WeaponHardMounted 65536

...

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class Man:Land{};

class Soldier:Man{};

class SoldierWB:Soldier{};

class SoldierWAA:SoldierWB{};

class FOX2_SoldierWAA : SoldierWAA

{

displayName="AA Soldier (Stinger)";

vehicleClass="FOX2 - Men";

accuracy=1.5;

weapons[]={"M16","FOX2_Stinger","Throw","Put"};

magazines[]={"M16", "M16", "M16", "M16", "M16", "FOX2_FIM92Amag"};

};

class FOX2_SoldierWAA2 : FOX2_SoldierWAA

{

displayName="AA Soldier (Stinger-RMP Block I)";

weapons[]={"M16","FOX2_StingerRMP","Throw","Put"};

magazines[]={"M16", "M16", "M16", "M16", "M16", "FOX2_FIM92Emag"};

};

};

I've racked my brain on this, and can't seem to find a solution. Anyone out there who might know what the problem is?

Thanks and Regards

Share this post


Link to post
Share on other sites

Sounds like the unit has too many weapons or too many magazines.

Share this post


Link to post
Share on other sites
Sounds like the unit has too many weapons or too many magazines.

That solved it! Thanks so very much, Kegetys!  biggrin_o.gif

So simple, yet so frustrating!

Share this post


Link to post
Share on other sites

Hi,

I got the same problem (CTD) with a rather simple config. Can anybody help me?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#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

class CfgPatches

{

class MILES_1

{

units[] = {MILES_1};

weapons[] = {};

requiredVersion = 1.96;

};

};

class CfgModels

{

class Default {};

class Man: Default {};

class MILES_1: Man{};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class Man: Land {};

class MILES_1 : Man

{

side=1;

scope=public;

displayname="MILES_1";

vehicleclass="MILES";

model="\T9988_MT\MILES_1.p3d";

};

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×