Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Datsun config

Hybrid View

  1. #1
    Hey guys,

    Recently I took up the idea of sticking Sigma's police lightbar (Yes I have permission) onto the Original ArmA Datsun. ***I got all the texture/modelling aspect out the way. It's for a Sahrani Police addon i'm throwing round.

    The problem I have now is I have no idea how to config the addon so it is in game, without overwriting it in the 'Wheeled.pbo' file.

    Any help would be really appreciated.



    If you can't beat them, throw harsh language at them

  2. #2
    Ok, I have no possibility of testing this so you have to try this config and see if it works (sitting on a course and is to bored of doing anything work related.. ).

    The config is not ready, but you can base your on this:

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches
    {
    class TAG_nameofcar
    {
    units&#91;&#93; = {&#34;TAG_nameofcar&#34;};
    weapons&#91;&#93; = {};
    requiredAddons&#91;&#93;={&#34;CAWheeled&#34;,&#34 ;CAwheeled3&#34;};
    requiredVersion = 1.00;
    };
    };
    class CfgVehicles
    {
    class datsun1_civil_1_open;
    class TAG_nameofcar&#58; datsun1_civil_1_open
    {
    name = &#34;name of the car as visible in the editor and game&#34;;
    model = &#34;modelname.p3d&#34;;
    };
    };[/QUOTE]

    What you need to do is to change TAG_nameofcar to your own tag and name of preference, put the correct modelname into model = "modelname.p3d"; and find a suitable name to the car.
    That should be enough to get your car ingame.

    BUT FIRST you should go to www.ofpec.com and get yourself a personal tag&#33; Its important so noone else make another datsun addon with the same name.

    I hope it will work&#33;

    edit: Assumption is the moder of all f-ups, but I assume you know that you write all that into a textfile.txt that you will rename to config.cpp and put into the folder that you will make a pbo of?

    Also remember to put your tag on your pbo-name..



    \"Det är bara att placera den ena foten framför den andra och upprepa det tills man har kommit fram\"
    Ltn Vuorensola

  3. #3
    Sergeant Major
    Join Date
    Jan 21 2004
    Location
    Britain/USA
    Posts
    1,408
    Author of the Thread
    Yeah 6 years in the OFP community has taught me about assumptions

    Thanks for that bit of code, i&#39;ll see what happens

    Edit, Well....the game loads but All i have now in the editor are 2 green datsuns.

    Here&#39;s my config, this is really frustrating

    <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

    // 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 CfgPatches
    {
    class SBLK_DatsunPolice
    {
    units&#91;&#93; = {&#34;SBLK_DatsunPolice&#34;};
    weapons&#91;&#93; = {};
    requiredAddons&#91;&#93;={&#34;CAWheeled&#34;};
    requiredVersion = 1.00;
    };
    };


    class CfgVehicles
    {
    class All{};
    class AllVehicles&#58; All{};
    class Land&#58; AllVehicles{};
    class LandVehicle&#58; Land{};
    class Car&#58; LandVehicle{};
    class datsun1_civil_3_open;
    class SBLK_PoliceDatsun&#58; datsun1_civil_3_open
    {
    class Exhausts;
    class AnimationSources;

    class SBLK_PoliceDatsun&#58; datsun1_civil_3_open
    {
    scope=public;
    model=&#92;SBLK_datsunpolice&#92;datsunpolice;
    Icon=&#34;&#92;SBLK_datsunpolice&#92;icomap_datsun _CA.paa&#34;;
    mapSize = 7;
    nameSound=&#34;pickup&#34;;
    name = Police Datsun Lightbar;
    displayname= &#34;Sahrani Police&#34;;
    side= Tcivlian;

    maxSpeed=155;
    turnCoef=2.5;
    soundEngine&#91;&#93;={&#92;ca&#92;wheeled&#92;Dat a&#92;Sound&#92;Mini_3,db-20,0.8};
    soundGear&#91;&#93;={&#92;ca&#92;wheeled&#92;Data& #92;Sound&#92;shifter_v2,db-75,1};
    SoundGetIn&#91;&#93;={&#92;ca&#92;wheeled&#92;Data &#92;Sound&#92;4WD_DoorOpenClose1,db-20,1};
    SoundGetOut&#91;&#93;={&#92;ca&#92;wheeled&#92;Dat a&#92;Sound&#92;4WD_DoorOpenClose1,db-30,1};
    typicalCargo&#91;&#93;={};
    crew = Civilian4;
    transportSoldier = 1;

    driverAction = datsun_driver;
    cargoAction&#91;&#93; = {Hilux_cargo01};

    class Library {libTextDesc = &#036;STR_LIB_ADD_DATSUN;};
    dammageHalf&#91;&#93; =
    {
    &#92;datsunpolice&#92;data&#92;datsun_skla_ca.paa, &#92;datsunpolice&#92;datsun_sklabr1_ca.paa,
    &#92;datsunpolice&#92;datsun_skla_ca.paa,&#92;dats unpolice&#92;datsun_sklabr1_ca.paa
    };
    dammageFull&#91;&#93; =
    {
    &#92;datsunpolice&#92;datsun_skla_ca.paa,&#92;dats unpolice&#92;datsun_sklabr2_ca.paa,
    &#92;datsunpolice&#92;datsun_skla_ca.paa,&#92;dats unpolice&#92;datsun_sklabr2_ca.paa
    };
    class Damage
    {
    tex&#91;&#93;={};
    mat&#91;&#93;={
    &#34;datsunpolice&#92;datsun_interier.rvmat&#34 ;,
    &#34;datsunpolice&#92;datsun_interier.rvmat&#34 ;,
    &#34;datsunpolice&#92;datsun_interier_destruct.rvm at&#34;,
    &#34;datsunpolice&#92;datsun_trup.rvmat&#34;,
    &#34;datsunpolice&#92;detailmapy&#92;datsun_trup.r vmat&#34;,
    &#34;datsunpolice&#92;datsun_trup_destruct.rvmat&# 34;
    };

    class SBLK_PoliceDatsun&#58; datsun1_civil_3_open
    {
    scope=public;
    model=&#92;datsunpolice&#92;datsun1_civil_3_open;
    Icon=&#34;&#92;datsunpolice&#92;icomap_datsun_CA.p aa&#34;;
    mapSize = 7;
    nameSound=&#34;pickup&#34;;
    name = Police Datsun Rotators;
    displayname= &#34;Sahrani Police&#34;;
    side= Tcivlian;

    maxSpeed=155;
    turnCoef=2.5;
    soundEngine&#91;&#93;={&#92;ca&#92;wheeled&#92;Dat a&#92;Sound&#92;Mini_3,db-20,0.8};
    soundGear&#91;&#93;={&#92;ca&#92;wheeled&#92;Data& #92;Sound&#92;shifter_v2,db-75,1};
    SoundGetIn&#91;&#93;={&#92;ca&#92;wheeled&#92;Data &#92;Sound&#92;4WD_DoorOpenClose1,db-20,1};
    SoundGetOut&#91;&#93;={&#92;ca&#92;wheeled&#92;Dat a&#92;Sound&#92;4WD_DoorOpenClose1,db-30,1};
    typicalCargo&#91;&#93;={};
    crew = Civilian4;
    transportSoldier = 1;

    driverAction = datsun_driver;
    cargoAction&#91;&#93; = {Hilux_cargo01};

    class Library {libTextDesc = &#036;STR_LIB_ADD_DATSUN;};
    dammageHalf&#91;&#93; =
    {
    &#92;datsunpolice&#92;data&#92;datsun_skla_ca.paa, &#92;datsunpolice&#92;datsun_sklabr1_ca.paa,
    &#92;datsunpolice&#92;datsun_skla_ca.paa,&#92;dats unpolice&#92;datsun_sklabr1_ca.paa
    };
    dammageFull&#91;&#93; =
    {
    &#92;datsunpolice&#92;datsun_skla_ca.paa,&#92;dats unpolice&#92;datsun_sklabr2_ca.paa,
    &#92;datsunpolice&#92;datsun_skla_ca.paa,&#92;dats unpolice&#92;datsun_sklabr2_ca.paa
    };
    class Damage
    {
    tex&#91;&#93;={};
    mat&#91;&#93;={
    &#34;datsunpolice&#92;datsun_interier.rvmat&#34 ;,
    &#34;datsunpolice&#92;datsun_interier.rvmat&#34 ;,
    &#34;datsunpolice&#92;datsun_interier_destruct.rvm at&#34;,
    &#34;datsunpolice&#92;datsun_trup.rvmat&#34;,
    &#34;datsunpolice&#92;detailmapy&#92;datsun_trup.r vmat&#34;,
    &#34;datsunpolice&#92;datsun_trup_destruct.rvmat&# 34;
    };
    };


    };[/QUOTE]




  4. #4
    1. for code use ALWAYS: http://pastebin.com/

    2. fix this error

    Quote Originally Posted by [b
    Quote[/b] ]class CfgVehicles
    {
    class All{};
    class AllVehicles: All{};
    class Land: AllVehicles{};
    class LandVehicle: Land{};
    class Car: LandVehicle{};
    class datsun1_civil_3_open;
    class SBLK_PoliceDatsun: datsun1_civil_3_open
    {
    class Exhausts;
    class AnimationSources;

    class SBLK_PoliceDatsun: datsun1_civil_3_open
    {
    =>

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgVehicles
    {
    class datsun1_civil_3_open;
    class SBLK_PoliceDatsun&#58; datsun1_civil_3_open
    {[/QUOTE]

    3. probably more in it. fix 1 und 2 first

  5. #5
    Sergeant Major
    Join Date
    Jan 21 2004
    Location
    Britain/USA
    Posts
    1,408
    Author of the Thread
    Sorry, I&#39;m not sure I follow what you mean.

    I&#39;m not much of a config know it all, so you&#39;ll have to explain it to me simply.

  6. #6
    Change your cfg.vehices into the one he posted underneith.

    MattXR ( MxR )

    Check out my Twitter BIS Fans and Sub!
    -- MRKCCO Twitter --


  7. #7
    Sergeant Major
    Join Date
    Jan 21 2004
    Location
    Britain/USA
    Posts
    1,408
    Author of the Thread
    Ah ok, thanks guys.

    Well, that didn&#39;t work either...this is getting to be like a merry-go-round. You set it up, it goes round in circles, you take it down.




  8. #8
    Try this one? What I did was to change all the vehicles classes to what Q and me have suggested, then I got rid of all unnecessary stuff(?). People tend to fill the configs with alot of text.. F.ex all the defines are not necessary in this case as you dont use them. Try this config as it is, no more no less. I might have something wrong, but you dont need much text.

    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches
    {
    class SBLK_DatsunPolice
    {
    units&#91;&#93; = {&#34;SBLK_DatsunPolice&#34;};
    weapons&#91;&#93; = {};
    requiredAddons&#91;&#93;={&#34;CAWheeled&#34;};
    requiredVersion = 1.00;
    };
    };
    class CfgVehicles
    {
    class datsun1_civil_3_open;
    class SBLK_DatsunPolice&#58; datsun1_civil_3_open
    {
    model=&#92;SBLK_datsunpolice&#92;datsunpolice;
    Icon=&#34;&#92;SBLK_datsunpolice&#92;icomap_datsun _CA.paa&#34;;
    name = Police Datsun Lightbar;
    displayname= &#34;Sahrani Police&#34;;
    dammageHalf&#91;&#93; = {&#92;datsunpolice&#92;data&#92;datsun_skla_ca.paa ,&#92;datsunpolice&#92;datsun_sklabr1_ca.paa,&#92; datsunpolice&#92;datsun_skla_ca.paa,&#92;datsunpol ice&#92;datsun_sklabr1_ca.paa};
    dammageFull&#91;&#93; = {&#92;datsunpolice&#92;datsun_skla_ca.paa,&#92;dat sunpolice&#92;datsun_sklabr2_ca.paa,&#92;datsunpol ice&#92;datsun_skla_ca.paa,&#92;datsunpolice&#92;d atsun_sklabr2_ca.paa};
    class Damage
    {
    tex&#91;&#93;={};
    mat&#91;&#93;={&#34;datsunpolice&#92;datsun_interi er.rvmat&#34;,&#34;datsunpolice&#92;datsun_interie r.rvmat&#34;,&#34;datsunpolice&#92;datsun_interier _destruct.rvmat&#34;,&#34;datsunpolice&#92;datsun_ trup.rvmat&#34;,&#34;datsunpolice&#92;detailmapy&# 92;datsun_trup.rvmat&#34;,&#34;datsunpolice&#92;da tsun_trup_destruct.rvmat&#34;};
    };
    };
    };[/QUOTE]
    edit: forgot one bracket...




  9. #9
    Sergeant Major
    Join Date
    Jan 21 2004
    Location
    Britain/USA
    Posts
    1,408
    Author of the Thread
    Thank you very very much, that worked wonders.

    Thanks guys, it&#39;s been a real pain getting it to work.

  10. #10
    My pleasure. I know the frustration an joy this game can give

Page 1 of 3 123 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
  •