Jump to content
Sign in to follow this  
der bastler

New soldier models

Recommended Posts

I've analyzed the soldier demo models (mc_vojak etc.) and found a lot of named selections (body parts)...

Then I added a small box to the soldier's shoulder, wrote a simple config and stuffed both model and config into a pbo file. But when using the soldier in editor and previewing it, OFP crashes? sad.gif

Is a tutorial for soldier creating available?

Share this post


Link to post
Share on other sites

No, USCMarines!

I just changed the model a little bit for testing purposes ->added some polys.

Then I simply removed some faces -> crash?

Zwadar, where's your tutorial? sad.gif

Share this post


Link to post
Share on other sites

Ok, now I've tried an unchanged soldier model from the demo -> OFP crashes when previewing unit in editor!

config.cpp:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgPatches

{

    class USCMSoldiers

    {

         units[] = {SoldierUSCM};

         weapons[] = {};

         requiredVersion = 1.30;

    };

};

class CfgModels

{

    class Default {};

    class Man: Default {};

    class colmarine: Man {};

};

class CfgVehicles

{

    class All {};

    class AllVehicles : All {};

    class Land : AllVehicles {};

    class Man : Land {};

    class Soldier : Man {};

    class SoldierWB : Soldier {};

    class SoldierUSCM: SoldierWB

    {

         access = 1;

         picture = "igrenadier";

         model = "/USCM/colmarine.p3d"

         vehicleClass = "Men";

         scope = 2;

         cost = 60000;

         displayName = "USCM Prototyp";

         accuracy = 1000;

    };

};

<span id='postcolor'>

WHY? Are there other soldier mlod-models on the internet?

Share this post


Link to post
Share on other sites

That's funny, I implemented the CfgModels part because OFP crashed...

Guess I must build my soldiers from scratch.

Jesus! sad.gif

Share this post


Link to post
Share on other sites

i´ve looked at the config and if that is an exact copy-and-paste of the one you use, i guess the error is located at:

model = "/USCM/colmarine.p3d"

since it rather has to be backslash instead of slash, that is:

model = "\USCM\colmarine.p3d"

ofp seems to crash to the desktop without a message if it doesn´t find a model.

Share this post


Link to post
Share on other sites

Oh, I did not notice that (damn html-linux-dos-"/"-"\"-chaos)!

Thanks! biggrin.gif

(silly mistake, never wrote that in other configs. I should drink more coffee and sleep less...huh, or the other way round...)

Share this post


Link to post
Share on other sites

There's still one question remaining:

Which named selections can be deleted and which must exist? Because editing an existing model can be much more difficult than creating new stuff from scratch...

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  

×