Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: 3DP files editing - Help!

  1. #1
    I have a problem with 3DP files editing. I just want to change the paths to textures but it doesn't work :

    I Created a UN_Soldiers folder

    And a sub folder called data were I put the texture files

    I have a config file which looks like that :

    Quote Originally Posted by [b
    Quote[/b] ]
    class CfgPatches
    {
    class UN_Soldiers
    {
    units[] = { "UN_SoldierWB", "UN_SoldierWG", "UN_SoldierWAR"
    };
    weapons[] = {};
    requiredVersion = 0.100000;
    requiredAddons[] = {"CAData","CACharacters","CAWeapons"};
    };
    };

    class CfgVehicleClasses
    {
    class UN_Men
    {
    displayName = "UN_Soldiers";
    };
    };


    class CfgVehicles
    {
    /*extern*/ class SoldierWB;
    class UN_SoldierWB: SoldierWB
    {
    model = "\UN_Soldiers\us_soldier_b";
    weapons[] = {"M16A2", "NVGoggles","Throw", "Put"};
    magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "HandGrenadeTimed", "HandGrenadeTimed", "HandGrenadeTimed", "HandGrenadeTimed", "HandGrenadeTimed"};
    vehicleClass = "UN_Men";
    };

    /*extern*/ class SoldierWG;
    class UN_SoldierWG: SoldierWG
    {
    model = "\UN_Soldiers\us_soldier_g";
    weapons[] = {"M16A2GL", "NVGoggles", "Throw", "Put"};
    magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203", "1Rnd_HE_M203"};
    vehicleClass = "UN_Men";
    };

    /*extern*/ class SoldierWAR;
    class UN_SoldierWAR: SoldierWAR
    {
    model = "\UN_Soldiers\us_soldier_ar";
    weapons[] = {"M249", "M9", "NVGoggles", "Throw", "Put"};
    magazines[] = {"200Rnd_556x45_M249", "200Rnd_556x45_M249", "200Rnd_556x45_M249", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9" };
    vehicleClass = "UN_Men";
    };

    };

    I also have 3 3DP files : us_soldier_ar, us_soldier_g and, us_soldier_g which were the game basic models

    I tried to edit the 3DP file. Using the "replace all" function of Hex Editor to create a new path to the textures.

    For example I replaced ca\characters\data\us_soldier_spec_two _co.paa ca\characters\data\war_co.paa
    by
    UN_Soldiers\data\us_soldier_spec_two_co.pa a UN_Soldiers\data\war_co.paa in the 3DP file (13 occurences)

    I did it for the 3 3DP files just replacing ca\characters by UN_Soldiers.

    I compressed the folder under .pbo formatand and put the UN_Soldiers.pbo into the ArmA addOns folder. Then I started the game an tried to create a mission in the editor.
    But once I try to put the units into the editor I get a crash to desktop with an "out of memory error".

    Could anybody help ?
    Thanks in advance.

    CLICK:HERE FOR PLASMAN'S RETEXES and SP Mission \"Typhoon over Rahmani\"

  2. #2
    nevermind. misread post
    and the files are called p3d




  3. #3
    Quote Originally Posted by (Sgt_Eversmann @ Mar. 13 2007,09:14)
    nevermind. misread post
    and the files are called p3d
    Oops another case of dyslexia from my side.




  4. #4
    Warrant Officer Jackal326's Avatar
    Join Date
    Apr 12 2002
    Location
    Leicestershire, United Kingdom
    Posts
    2,474
    Out of memory errors occur when you've muffed-up the hex editing. The new path names have to be the EXACT same number of characters as the pathname(s) you are replacing. In your example you have:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ca&#92;characters&#92;data&#92;us_soldie r_spec_two_co.paa &#40;45 characters including _ and .&#41;
    and,
    ca&#92;characters&#92;data&#92;war_co.paa &#40;29 characters&#41;[/QUOTE]

    Where as you replaced them with:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    UN_Soldiers&#92;data&#92;us_soldier_spec_two_co.pa a &#40;&#91;b&#93;43&#91;/b&#93; characters&#41;
    and
    UN_Soldiers&#92;data&#92;war_co.paa &#40;&#91;b&#93;27&#91;/b&#93; characters&#41;[/QUOTE]

    So you need to make your new paths 2 characters longer.

    "...long story short, he gets a boner" - Messiah
    "If you can't understand english properly then you should lern it" - mr.g-c
    "I think the author should do a barrel roll" - MehMan
    "I feel really leting down form you bis SORRY TO SAY THIS BUT ITS THE TRUE" - UNA-A1-Luke
    Your spelling; its the true.

  5. #5
    Hi,

    The total length of the texture path string should be identical, which they currently are not:

    ca&#92;characters&#92;data&#92;us_soldier_spec_two _co.paa
    UN_Soldiers&#92;data&#92;us_soldier_spec_two_co.pa a

    So I would suggest to add two characters to the string, for example by renaming the data folder to mydata:

    ca&#92;characters&#92;data&#92;us_soldier_spec_two _co.paa
    UN_Soldiers&#92;mydata&#92;us_soldier_spec_two_co. paa

    In that manner the length of the string matches and that type of error message can be avoided.

    Regards,

    Sander

  6. #6
    Roger&#33;. Thanks for your help Jackal326/Sander




  7. #7
    I have another question : does the P3D file indicates to which side (BLUFOR, OPFOR or RACS) the units belong ? And if yes is it possible to edit them in order to change that ? For example Soviet style units appearing as BLUFOR in the editor selection ?

  8. #8
    the p3d file has nothing to do with the side the soldier / vehicle / etc is on.

    it&#39;s in the config.

    but can&#39;t tell you exactly right now because I&#39;m not at home, I&#39;m at work, no ArmA here.

    think it was an entry like side=x x-> 0, 1, 2 but can&#39;t tell you which is which. maybe try side=west or something under cfgvehicles.
    maybe even in the cfgvehicleclasses

    sry, but can&#39;t give you exact info atm.

  9. #9
    The p3d file is only the model with the textures path, to change the sides of the units (models) you do it in the config.cpp file which is the file that tells the game how to use the addon.

    So yes you may use any type of soldier for any type of side as long as you code it correctely in the cpp file, try studying a config.cpp file tutorial you&#39;ll find lots of them available.

  10. #10
    Hi,

    The side a certain class belongs to is set by the config cpp definitions. A class will inherit the setting from its parent unless this is specified specifically as another side.

    For OPFOR side:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    side = 0;
    [/QUOTE]

    For BLUFOR side:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    side = 1;
    [/QUOTE]

    For independent side:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
    side = 2;
    [/QUOTE]

    Hope this helps.

    Regards,

    Sander




Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •