daanvs 0 Posted June 27, 2007 Hello guys, I'm a graphical designer myself and I'd love to try my skills on creating a new unit in arma. The problem is, I just don't understand any of the code. I was hoping one of you would be so kind to copy/paste here a config file needed to add one guy to the BLUEFOR side (if possible under a new section called BBE), called "BBE operator." This guy should be armed with an M4, NVG's, an M9 and some grenades. The pbo will be called bbe_operator.pbo If I'm asking too much, could anyone be so kind to just post the config file of the west soldier for me? Thanks in advance, Daan Share this post Link to post Share on other sites
W0lle 1052 Posted June 28, 2007 Here's a pretty basic config which should fit to your needs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class BBE_Operators { units[] = {"BBE_Operator"}; weapons[] = {}; requiredVersion = 1.00; requiredAddons[] = {"CAData","CACharacters","CAWeapons"}; }; }; class CfgVehicleClasses { class BBE { displayName = "BBE Operators"; }; }; class CfgVehicles { /*extern*/ class SoldierWB; class BBE_Operator: SoldierWB { displayName="Rifleman"; vehicleClass="BBE"; model = "\ca\characters\us_soldier_sabot.p3d"; // place the path to your model here scope = 2; picture = "\Ca\characters\data\Ico\i_SF_CA.paa"; // picture of the unit as it appears in the commandbar canHideBodies = 1; canDeactivateMines = 1; nightVision = 1; weapons[]={"M4","M9","NVGoggles","Throw","Put"}; magazines[]={"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenade","HandGrenade","HandGrenade","HandGrenade","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9"}; class Wounds // below change the paths to your textures { tex[] = {}; mat[] = {"ca\characters\data\us_rukavy_sab_hhl.rvmat", "ca\characters\data\us_rukavy_sab_hhl_wound1.rvmat", "ca\characters\data\us_rukavy_sab_hhl_wound2.rvmat", "ca\characters\data\us_soldier_sabot_body.rvmat", "ca\characters\data\us_soldier_sabot_body_wound1.rvmat", "ca\characters\data\us_soldier_sabot_body_wound2.rvmat"}; }; }; }; Above is using the default SF model and it's textures. You need of course to change somethings, especially the path to the mode l and the wounded textures. Most lines are self-explaining, to the ones which need your attention I added comments at the end. Should you need more help, PM me and I see where I can assist you. Share this post Link to post Share on other sites
daanvs 0 Posted June 28, 2007 you sir, are the best. thanks Share this post Link to post Share on other sites
namreg 0 Posted June 29, 2007 And then??? When you have created all of your textures, how do you make an addon from it??? Do you have to PBO it??? Because I don't really know if you can create all of your textures and even modify the P3D file of your own addon, do you create them all in your own folder in the desktop??? and then ,PBO it and place them in the addons folder in ArmA? Sorry if this has been covered before, but DaanVS made the correct question and the answer was a strike one so... is there any tutorial that covers all the addon creating step by step? THX again Share this post Link to post Share on other sites
W0lle 1052 Posted July 1, 2007 Yes you put all the stuff (textures, model and config) into one folder - which of course must have the same name in both the edited model and the config. Then you use one of the Tools out there to create a pbo file out of it. Share this post Link to post Share on other sites
namreg 0 Posted July 1, 2007 Well I tried that and my ArmA crashed saying that is out of memory.... I used the MikeShell's Texture Swap Utility to change the route of my new textures from the ca\characters\ directory to my directory in the addons folder and it crashed. If I didn't change textures, my new guys kept taking textures from that directory and no the ones I placed in the pboed file in the addon directory of ArmA. So I used MikeShell's Texture Swap Utility to change that and ....well you know...game crashed. Please....some advice? Share this post Link to post Share on other sites
daanvs 0 Posted July 2, 2007 I'm not sure if the texture utility works for ArmA :-/ I used a hex editor. Share this post Link to post Share on other sites
namreg 0 Posted July 2, 2007 Is it easy to use a hex editor??? How do I use it to change textures? could you give me some examples I could follow??? THX in advance mate __ And another question to W0lle: How can I make my new unit to appear in the UNITS CLASS at the MISSION EDITOR??? Because your config creates a brand new class and only my unit is in it.... Share this post Link to post Share on other sites
daanvs 0 Posted July 2, 2007 first get yourself the original p3d file and textures. put all of that inside a new folder. Edit the textures with your favorite photo editing application. I use adobe photoshop myself. Download a hex editor. I use XVI32 for years now, you can find it here: http://www.handshake.de/user/chmaas/delphi/download/xvi32.zip Open the p3d file in your hex editor. Press control+f and type in the name of the texture you changed. The hex editor will find multiple instances of this filename. change the path and name of that/those texture(s) to something with the exact same amount of characters. An example: The texture I changed was called "res_officer_equip_co.paa The hex editor showed the path as ca\characters\data\res_officer_equip_co.paa I changed it to bbe_operators\data\res_officer_equip_co.paa where "bbe_operators" is the root folder in which I made another folder called data, that contains the new/edited texture. As you can see in the code example above, the config.cpp has to point to wherever your new .p3d file is. use pboview (ftp://www.armedassault.info/armad/tools/PboView.zip) to pack it all up together, put the newly created pbo file (in my case bbe_operators.pbo) into the addons folder, and check it out EDIT: Just so you can see, the filename/path has to have the same amount of characters: ca\characters\data\res_soldier_co.paa bbe_operators\data\res_soldier_co.paa And when you've done it all right, you'll see your units ingame with their new outfits Share this post Link to post Share on other sites
daanvs 0 Posted July 2, 2007 About the texture utility, I never used it myself but my guess is that it could work as long as you keep the paths the same length (as in the same amount of characters). You could test that if you want, please post your conclusion here Share this post Link to post Share on other sites
namreg 0 Posted July 3, 2007 Alright, I did everything you said.... I found all the files of the p3d file. I changed the one i wanted, put it in the data folder in my characters folder. I used the HEX editor you kindly gave me and changed the route with the exact 13 characters. I created the config file as M0lle taught us to and this was the result: I can see my unit in 1st person mode with my oufit. But if I go to 3rd person view I see the default textures.... it happens too if I place a second unit in the scene.... I see my new textures in 1st person camera but I see the other unit with the default ones Here I posted a video (XviD): Texture - VIDEO (XviD) And here is the config file: Quote[/b] ]class CfgPatches{ class RACSBodyguard { units[] = {"RACSBodyguard"}; weapons[] = {}; requiredVersion = 1.00; requiredAddons[] = {"CAData","CACharacters","CAWeapons"}; }; }; class CfgVehicleClasses { class RACSBodyguard { displayName = "RACSBodyguard"; }; }; class CfgVehicles { /*extern*/ class soldiergb; class RACSBodyguard: soldiergb { displayName="RACSBodyguard"; vehicleClass="RACSBodyguard"; model = "\racsbodyguard\racsbodyguard.p3d"; // place the path to your model here scope = 2; picture = "\racsbodyguard\data\Ico\i_bg_ca.paa"; // picture of the unit as it appears in the commandbar canHideBodies = 1; canDeactivateMines = 1; nightVision = 1; weapons[]={"mp5a5","M9","NVGoggles","Throw","Put"} ; magazines[]={"30rnd_9x19_mp5","30rnd_9x19_mp5","30rnd_9x19_mp5","Ha ndGrenade","HandGrenade","HandGrenade","HandGrenade",&a mp;a mp;q uot;15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x 19_M9"}; class Wounds // below change the paths to your textures { tex[] = {}; mat[] = {"ca\characters\data\np_hhl.rvmat", "ca\characters\data\np_hhl_wound1.rvmat", "ca\characters\data\np_hhl_wound2.rvmat", "ca\characters\data\np_soldier_body_wound1.rvmat", "ca\characters\data\np_soldier_body_wound2.rvmat"}; }; }; }; The target p3d is np_soldier_captive.p3d Share this post Link to post Share on other sites
daanvs 0 Posted July 3, 2007 As I said, there are more instances of the same texture in the p3d file. you have to change the paths and names of all of those instances. By the sound of it, you only changed the first instance the search function showed you. Share this post Link to post Share on other sites
hotshotmike1001 0 Posted July 5, 2007 i try to follow what You Talked About all i get is Memory Crash to Desktop i am trying to edit texture path for the AH6 so i can add a Russian Copy to the game using custom textures Share this post Link to post Share on other sites
namreg 0 Posted July 6, 2007 I tried to do the same with the P3DUtil (Texture Swap Utility) using the same path length for replacing the textures and continues crashing. And finally I did what you said... find all the instances for the same texture in the HEX editor and it works perfectly now. Share this post Link to post Share on other sites
stock762 0 Posted August 3, 2007 I added a unit from OFP to this config and he's in the stance he's in when in the modeling program, do you know what needs to be done to fix that. It seems as if he has no animations or anything just slides around the ground. Thanks Share this post Link to post Share on other sites