IPB

Welcome Guest ( Log In | Register )

How to use custom skins., A n00b friendly tut! (I hope)
imtheheadhunter
post Jun 2 2009, 03:57 PM
Post #1


Debug assertion failed! Text:people == stupid!
Group Icon

Group: Mr. Admin
Posts: 1,005,138
Joined: 8-March 06
From: The freaking Twilight zone!
Member No.: 1,609



So, you've just downloaded some really cool skin, but your a n00b, and don't know how to use them. There are a few different ways you could do it, but here's probably the best way to use custom skins in Vanilla BF2(that'd be, an original/unmodified version of BF2).

Go to the /programfiles/EAGAMES/Battlefield 2/mods/bf2/ folder. Create a new .zip file called "custom_skins", and put the textures into that zip file, and make sure they are in the correct folders! Like, if you D/Led a skin for the Cobra, you should have the following folders, "custom_skins.zip/vehicles/air/ahe_ah1z/textures/", and your cobra skin goes into the textures folder. If you don't know what the folders should be, you can look in the objects_client.zip folder, and see what it should be. You should also make sure the ending of the skin's name(which is called the "texture suffix"), is correct. The texture suffix is how the game decides which version of a skin to use....like, use a woodland skin, instead of the default skin. So, basically for the example, the skin should either be named "ahe_ah1z_C.DDS", or "ahe_ah1z_C_Woodland.DDS". Sound complicated? Well, good thing we're almost done. Lastly, make a backup of the "clientarchives.con" and put it in a safe place. Then edit the original and add the line "fileManager.mountArchive custom_skins.zip Objects" to the TOP of the file. Save. and now you can go play the game and(hopefully) see your new skin! A note, when you want to play online, replace your edited clientarchives.con with your backup. You'll be kicked for "modified content" if you don't.

The second method, which I only recommend you do ONLY if you don't have to worry about modified content errors, is to just replace the original skins with your new one/s in the objects_client.zip.

A third method, which is only useful when you want to add a third type of skin, is basicaly the same as either of the first 2, but change the texture suffix to something else, say "pacific". Then, in the ..../(mod)/levels/(map)/server.zip/init.con file, change the 2 "CustomTextureSuffix "pacific"" lines to whatever your new suffix is. You should also make a backup of the server.zip before you edit it if you ever think you'll have to play the map online.


--------------------
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 3)
GroovyDawg
post Jun 2 2009, 10:01 PM
Post #2


Groovy, you are GJ.
Group Icon

Group: BFSP Team
Posts: 3,741
Joined: 30-July 08
From: On vacation.
Member No.: 5,410



~EDITED VERSION~

So, you've just downloaded some really cool skins, but your a n00b, and don't know how to use them.
There are a few different ways you could do it, but here's probably the best way to use custom skins in Vanilla BF2 (that'd be, an original/unmodified version of BF2).

Here in this tutorial, we are going to add some new textures for the AH-1 Cobra Attack Helicopter.
You will need an archiving program like Winrar, or the open-source 7-zip to complete this tutorial. http://www.7-zip.org/

First and foremostly, BACKUP YOUR FILES. In this particular tutorial, you should backup the "ClientArchives.con" file to a save place. If you don't know how the folder system for BF is setup , you can look in the objects_client.zip folder, and see how the folder hierachy of BF2 is like.

1. Go to the "/programfiles/EAGAMES/Battlefield 2/mods/bf2" folder.
2. Create a new folder called "custom_skins". Within "custom_skins", create the following folder hierachy: "custom_skins/vehicles/air/ahe_ah1z/textures"
3. Extract your downloaded textures, and cut them into your custom_skins/vehicles/air/ahe_ah1z/[b]textures folder. Make sure they are in the correct folder!
4. Right click your newly created "custom_skins" folder, and select "Add to Archive". ( 7-zip > Add to Archive). Remember to archive your folder as a ".zip" and NOT a .rar!
5. You should now end up with a "custom_skins.zip.

Mounting the .zip file.
6. Open up your client_archives.con file with notepad. You should see lines like these "fileManager.mountArchive _________.zip Objects"
7. Now add this line to the TOP of the list. fileManager.mountArchive custom_skins.zip Objects
8. Save the ClientArchives.con with a quick Ctrl+S, and you're good to go!

Now you can go play the game and (hopefully) see your new skin! Note, when you want to play online, replace your edited clientarchives.con with your backup. You'll be kicked for "modified content" if you don't.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

TEXTURE SUFFIXES = Different camo schemes for different maps.

You should make sure the ending of the skin's name (which is called the "texture suffix") matches the theme of the map. The texture suffix is how the game decides which version of a skin to use.... like for instance you have multiple map types. Woodland, Desert, Forest, etc.
For example, Gulf of Oman is a desert map, therefore, the texture suffixes of the all the vehicles skins in that map will be blablablabla_c_desert.dds.

A default skin, is named "ahe_ah1z_c.dds", while a woodland skin, is named "ahe_ah1z_c_woodland.dds". To use the woodland skin in place of the default skin, rename the existing woodland skin to "ahe_ah1z_c_woodland_1.dds" and your default skin, from "ahe_ah1z_c.dds" to ahe_ah1z_c_woodland.dds"

A second method, which is only useful when you want to add a whole new type of skin, say "pacific", on a map level. It is basically the same as the first, but requires the editing of a single map file. Sound complicated? Don't worry, its only ONE map file. (which is editable with notepad. wink.gif )

1) Go to your map folder, and 2) open up your server.zip with Winrar. (DO NOT EXTRACT, JUST DOUBLE CLICK TO OPEN) Look for the init.con file.
In the init.con, 3) look for these lines:
CODE
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix "forest"
else
texturemanager.customTextureSuffix "forest"
endIf
rem-----------------------------------------------------------------------------

Change "forest" to whatever your new texture suffix maybe, in this instance, "pacific".
CODE
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix "pacific"
else
texturemanager.customTextureSuffix "pacific"
endIf
rem -----------------------------------------------------------------------------


You should also make a backup of the server.zip before you edit it if you ever think you'll have to play the map online.

Cheers.

This post has been edited by GroovyDawg: Jun 13 2009, 12:39 PM


--------------------
~I salute you, the AIX gentlemen.~

U MAD? ¯\_(ツ)_/¯

Asus G73JH-X3| Intel® Core™ i7-720QM | 8GB DDR3 1333 RAM | ATI Mobility Radeon 5870 1GB GDDR5 | 2x320GB Seagate 7200 RPM | 17.3" LED 1920x1080
Go to the top of the page
 
+Quote Post
TNE26
post Jun 3 2009, 12:44 AM
Post #3


Mapper, Modder, BFSP Webmaster & so much more..
Group Icon

Group: BFSP Webmaster
Posts: 1,800
Joined: 23-May 08
From: Hillerød, Denmark
Member No.: 5,039



~EDITED VERSION~

~EDITED VERSION #2~ - Removed sizes from codeboxes, added n00b proof backup instruction, note on which suffixes exist in BF2 vanilla, instruction to open up init.con to figure out a maps suffix (side-note)

So, you've just downloaded some really cool skins, but your a n00b, and don't know how to use them.
There are a few different ways you could do it, but here's probably the best way to use custom skins in Vanilla BF2 (that'd be, an original/unmodified version of BF2).

Here in this tutorial, we are going to add some new textures for the AH-1 Cobra Attack Helicopter.
You will need an archiving program like Winrar, or the open-source 7-zip to complete this tutorial. http://www.7-zip.org/

First and foremostly, BACKUP YOUR FILES (Yes, you do need to!!). In this particular tutorial, you should backup the "ClientArchives.con" file to a save place.

1. Go to the "/programfiles/EAGAMES/Battlefield 2/mods/bf2" folder.
2. Create a new folder called "custom_skins". Within "custom_skins", create the following folder hierachy: "custom_skins/vehicles/air/ahe_ah1z/textures"
3. Extract your downloaded textures, and cut them into your custom_skins/vehicles/air/ahe_ah1z/[b]textures folder. Make sure they are in the correct folder!
4. Right click your newly created "custom_skins" folder, and select "Add to Archive". ( 7-zip > Add to Archive). Remember to archive your folder as a ".zip" and NOT a .rar!
5. You should now end up with a "custom_skins.zip.

Mounting the .zip file.
6. Open up your client_archives.con file with notepad. You should see lines like these "fileManager.mountArchive _________.zip Objects"
7. Now add this line to the TOP of the list. fileManager.mountArchive custom_skins.zip Objects
8. Save the ClientArchives.con with a quick Ctrl+S, and you're good to go!

Now you can go play the game and (hopefully) see your new skin! Note, when you want to play online, replace your edited clientarchives.con with your backup. You'll be kicked for "modified content" if you don't.

If you don't know what the folders should be, you can look in the objects_client.zip folder, and see how the folder hierachy of BF2 is like. You should also make sure the ending of the skin's name (which is called the "texture suffix"), is correct. The texture suffix is how the game decides which version of a skin to use.... like for instance you have multiple map types. Woodland, Desert, Forest, etc. (The maps in BF2 vanilla has no suffix or "Woodland". The others are mainly used in mods and the occassional custom map)

A default skin, is named "ahe_ah1z_c.dds", while a woodland skin, is named "ahe_ah1z_c_woodland.dds". To use the woodland skin in place of the default skin, rename the existing woodland skin to "ahe_ah1z_c_woodland_1.dds" and your default skin, from "ahe_ah1z_c.dds" to ahe_ah1z_c_woodland.dds"

A second method, which is only useful when you want to add a whole new type of skin, say "pacific", on a map level. It is basically the same as the first, but requires the editing of a single map file. Sound complicated? Don't worry, its only ONE map file. (which is editable with notepad. wink.gif )

Go to your map folder, and open up your server.zip with Winrar. (DO NOT EXTRACT, JUST DOUBLE CLICK TO OPEN) Look for the init.con file.
In the init.con, look for these lines:
CODE
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix "forest"
else
texturemanager.customTextureSuffix "forest"
endIf
rem -----------------------------------------------------------------------------

Change "forest" to whatever your new texture suffix maybe, in this instance, "pacific".
CODE
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix "pacific"
else
texturemanager.customTextureSuffix "pacific"
endIf
rem -----------------------------------------------------------------------------


The same method can be used to find out a specific maps texture-suffix if you don't know it already!

You should also make a backup of the server.zip before you edit it if you ever think you'll have to play the map online.

Cheers.


//RE-EDIT TNE26.. can't put sizes in codeboxes happy.gif

This post has been edited by TNE26: Jun 3 2009, 12:53 AM


--------------------
Kind regards, Thomas

Remember: It is too late to regret, and too soon to worry ... always!
www.i.speakinter.net - Flickr - my photos
Go to the top of the page
 
+Quote Post
cheese chisel
post Apr 7 2014, 05:44 PM
Post #4


Major
****

Group: Soldiers
Posts: 228
Joined: 16-December 13
From: Minnesota
Member No.: 9,922



all good info, I'm happy this was still on here

what about cloning a vehicle and having the new one always use a new texture ... for example the Tomcat, which Clive packaged with several textures

if I make three Tomcat clones and want to spawn all 3 on the same map, how would I get them to each use a different textures as its default?



[Edit - this thread took care of what I needed to know - thanks]

This post has been edited by cheese chisel: Apr 7 2014, 06:19 PM


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th September 2017 - 06:52 PM