eidospsogos
10-24-2003, 11:59 PM
okay, i promised a turtorial.....so here it goes.....we will be taking this from the most basic perspective in order to make it completely understandable.....in other words i will show you a model_default.skin from an already existing model folder and show you how to take it apart in order to gather the necessary references for creating a head.skin, a torso.skin, and a head.skin.....this all may sound difficult but it's really quite simple.....
let's take the stormtrooper folder and extract it from the assets1.pk3.....and into a models/players/"whatever you would like it named".....let's say for clarity's sake we're naming it "jedi_stm".....in the folder you should have certain essential files....
here is a list of what you should have in the beginning:
armor.jpg
armor_blue.jpg
armor_red.jpg
armor_spec.png
helmet.jpg
helmet_blue.jpg
helmet_red.jpg
helmet_spec.png
icon_blue.jpg
icon_red.jpg
icon_default.jpg
model.glm
model_default.skin
model_blue.skin
model_red.skin
shoulder.jpg
torso_legs.jpg
torso_legs_blue.jpg
torso_legs_red.jpg
torso_legs_spec.png
first your model.glm is very important as it is your model :).....second, the model_default.skin will load all image files into a completely skinned model.....there will also be all the images the model_default.skin link to.....as well as the images that will link to the model_red.skin, and the model_blue.skin as well as those skins.....these are being used for team mode in MP.....but can be used to create extra torsos, heads and legs.....(though usually heads do not change colors)
i will walk you through the necessary steps to create one head, one torso, and one lower .skin file.....and the rest will be up to you......
the model_default skin should be your original point of reference if you are just beginning this sort of project.....
the model_default.skin looks like this(stormtrooper)....
hips,models/players/stormtrooper/torso_legs.tga
hips_body,models/players/stormtrooper/torso_legs.tga
l_leg,models/players/stormtrooper/torso_legs.tga
l_leg_knee,models/players/stormtrooper/torso_legs.tga
r_leg,models/players/stormtrooper/torso_legs.tga
r_leg_knee,models/players/stormtrooper/torso_legs.tga
torso,models/players/stormtrooper/torso_legs.tga
torso_armor_neck_augment,models/players/stormtrooper/torso_legs.tga
head,models/players/stormtrooper/helmet.tga
torso_pauldron,*off
l_arm,models/players/stormtrooper/torso_legs.tga
l_arm_sleeve,models/players/stormtrooper/armor.tga
l_arm_cap_torso_off,models/players/stormtrooper/caps.tga
l_hand,models/players/stormtrooper/torso_legs.tga
l_hand_plate,models/players/stormtrooper/torso_legs.tga
l_hand_cap_l_arm_off,models/players/stormtrooper/caps.tga
l_arm_cap_l_hand_off,models/players/stormtrooper/caps.tga
l_arm_shoulder,models/players/stormtrooper/torso_legs.tga
r_arm,models/players/stormtrooper/torso_legs.tga
r_arm_shoulder,models/players/stormtrooper/torso_legs.tga
r_arm_sleeve,models/players/stormtrooper/armor.tga
r_arm_cap_torso_off,models/players/stormtrooper/caps.tga
r_hand,models/players/stormtrooper/torso_legs.tga
r_hand_plate,models/players/stormtrooper/torso_legs.tga
r_hand_cap_r_arm_off,models/players/stormtrooper/caps.tga
r_arm_cap_r_hand_off,models/players/stormtrooper/caps.tga
torso_cap_hips_off,models/players/stormtrooper/caps.tga
torso_body_neck_augment,models/players/stormtrooper/torso_legs.tga
torso_cap_head_off,models/players/stormtrooper/caps.tga
torso_cap_r_arm_off,models/players/stormtrooper/caps.tga
torso_cap_l_arm_off,models/players/stormtrooper/caps.tga
torso_body,models/players/stormtrooper/torso_legs.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga
the only references you ABSOLUTELY need to construct a head.skin for this model are as follows....(we will only cover the bare essentials here....if anyone feels the need to add to this, feel free.....as i have yet to figure out alot of this.....and will post everything i DO NOT know at the end of this post as well)
head,models/players/jedi_stm/helmet.tga
that's it.....simple huh.....that's why i chose this particulat model for the tutorial :) be careful though, as in other models, you may have a head image, as well as a face image, even some with teeth images.....any references you find that deal directly with images that would make up the head need to be copied into your wordpad file, and then saved as heada1.skin.....it is an ABSOLUTE MUST that you type the .skin extension.....(also notice that the stormtrooper folder link was renamed jedi_stm....as that is what we named our folder)
for the torso a1.skin file you will need the following references.....
torso,models/players/jedi_stm/torso_legs_.tga
torso_armor_neck_augment,models/players/jedi_stm/torso_legs.tga
torso_body,models/players/jedi_stm/torso_legs.tga
_arm,models/players/jedi_stm/torso_legs.tga
l_arm_sleeve,models/players/jedi_stm/armor.tga
l_arm_cap_torso_off,models/players/stormtrooper/caps.tga
l_hand,models/players/jedi_stm/torso_legs.tga
l_hand_plate,models/players/jedi_stm/torso_legs.tga
l_hand_cap_l_arm_off,models/players/stormtrooper/caps.tga
l_arm_cap_l_hand_off,models/players/stormtrooper/caps.tga
l_arm_shoulder,models/players/jedi_stm/torso_legs.tga
r_arm,models/players/jedi_stm/torso_legs.tga
r_arm_shoulder,models/players/jedi_stm/torso_legs.tga
r_arm_sleeve,models/players/jedi_stm/armor.tga
r_arm_cap_torso_off,models/players/stormtrooper/caps.tga
r_hand,models/players/jedi_stm/torso_legs.tga
r_hand_plate,models/players/jedi_stm/torso_legs.tga
r_hand_cap_r_arm_off,models/players/stormtrooper/caps.tga
r_arm_cap_r_hand_off,models/players/stormtrooper/caps.tga
torso_cap_hips_off,models/players/stormtrooper/caps.tga
torso_body_neck_augment,models/players/jedi_stm/torso_legs.tga
torso_cap_head_off,models/players/stormtrooper/caps.tga
torso_cap_r_arm_off,models/players/stormtrooper/caps.tga
torso_cap_l_arm_off,models/players/stormtrooper/caps.tga
once again we merely copied the references that constructed the torso.....notice that in any reference to the caps image i left the folder named stormtrooper.....practically every model in the game loads this image file, and loads it from the stormtrooper folder.....if you want to copy this image into your folder, and change the reference to it, feel free.....but i usually leave it where it is and save myself the trouble.....the stormtrooper is once again basic in components that make up it's torso, as usually the torso, arms, hands, and legs are all separate images.....now we save this as torsoa1.skin....and continue on to the legs.....
the files you need to construct the lower.skin file will look like this....
hips,models/players/jedi_stm/torso_legs.tga
hips_body,models/players/jedi_stm/torso_legs.tga
l_leg,models/players/jedi_stm/torso_legs.tga
l_leg_knee,models/players/jedi_stm/torso_legs.tga
r_leg,models/players/jedi_stm/torso_legs.tga
r_leg_knee,models/players/jedi_stm/torso_legs.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga
these are the references we need for the legs.....save this as the lowera1.skin.....
so we now have the model. glm, the model_default.skin, (the before mentioned red and blue skins as well, but i would either delete them, or take them apart into corresponding separate component skins as listed above, and then delte them) and our new heada1.skin, torsoa1.skin, and lowera1.skin......now create icons that correspond to each skin.....ie icon_heada1.skin and so on and so forth.....so that your folder should now look like this......(including the images you have not deleted that made up the red and blue .skin files.....i would keep them for the moment just because they would give you an easy way to make two more torso/head/lower skins as a chance to really test your category with the ability to swap parts.....this will become even easier as all you will have to do is go back into your .skin files and swap the image links.....
let's go right back to the lower.skin we just created for an example....
hips,models/players/jedi_stm/torso_legs_blue.tga
hips_body,models/players/jedi_stm/torso_legs_blue.tga
l_leg,models/players/jedi_stm/torso_legs_blue.tga
l_leg_knee,models/players/jedi_stm/torso_legs_blue.tga
r_leg,models/players/jedi_stm/torso_legs_blue.tga
r_leg_knee,models/players/jedi_stm/torso_legs_blue.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga
by simply renaming the image link you now have a second lower.skin....call it lowerb1.skin.....make a icon_lowerb1.skin.....are we getting the idea yet.....)
back to the new file list:
animevents.cfg
armor.jpg
armor_blue.jpg
armor_red.jpg
armor_spec.png
helmet.jpg
helmet_blue.jpg
helmet_red.jpg
helmet_spec.png
icon_blue.jpg
icon_red.jpg
icon_default.jpg
model.glm
model_default.skin
heada1.skin
torsoa1.skin
lowera1.skin
shoulder.jpg
torso_legs.jpg
torso_legs_blue.jpg
torso_legs_red.jpg
torso_legs_spec.png
sounds.cfg
now of course we will also need the animevents file and the sounds file(shown above and in practically every folder).....you can try to create your own playerchoice.txt file.....but i simply copied one from the jedi_hm folder.....(as that was the only way to get the full range of color options.....which, though i do not know how to fully implement that yet, looks better :) i'll get back to that when i add my "i do not know how to do this" section)
so after adding the playerchoice.txt file(which is a text file) and any other icons or skins or even images you'd like to add we come to the two possible ways to getting this to show up in the game.....
first it should be in a folder named similar to models/players/jedi_stm(as in models/players has to be in the path.....then copy the strings folder from assets0.pk3.....at which point you will edit the menus.str file.....which is also merely a text document with an essential extension....it has to be saved with the .str extension.....
the existing references in the menus.str is what names and loads the categories in the SP selection screen.....
here is an example from human male....
REFERENCE JEDI_HM
NOTES "For character menu"
LANG_ENGLISH "Human Male"
you will need to edit the reference to match your folder reference
REFERENCE JEDI_STM
NOTES "For character menu"
LANG_ENGLISH "Stormtrooper"
now here is where we have a choice....you now have two folders....one models, which contains players/jedi_stm.....one named strings.....which has four language folders(please note the only menus.str file in the English language folder NEEDS to be altered to gain the resulting class name in SP) and contains our altered menus.str.....so you can pack this up into a .pk3 file named whatever you like and but it in your base folder with the rest of your .pk3's.....this will allow for the class to show up in SP....BUT it will show up as unnamed.....(the name for the species will be blank, but you can click on the blank space to advance to the other species)....
however there is an alternative.....you can add your newly created folder into the models/players/ folder in the assets1.pk3.....and you can edit the menus.str file within your assets0.pk3/strings file without extracting the strings folder.....
the easiest way to do all the packaging work, for me anyway, was an evaluation copy of WinRAR, as it will open, view, edit, compile and recomile .pk3's with no problems whatsoever......
i think that should cover everything....if not, if there is anything you still do not understand, feel free to ask any questions
now for the I DO NOT KNOWS.....
anything related to the transparent .PNG skins or their corresponding icons.....i thought it was merely a lack of understanding, but it turns out it's that and the fact that no image program in existence seems capable of opening these things properly....
the extra instructions in the selectable skins included with the game.....do not know what all of them are about....i only covered the essentials......the best i can figure, they are instructions to turn parts of the model off or on as they are needed or not needed for the skin in question.....
if anyone feels the need to add anything to this, please do.....i could use some help here too people.....so if you figure something out PLEASE add it......if you have any questions, as i may not have been completely clear on everything, feel free to ask.....but i would REALLY like anyone who discovers anything new or not covered to add it, as it would allow this rather small amount of information, to possibly grow into something useful......
and lastly, it was a reborn race mod from J2000 on pcgamemods.com that inspired me to rip apart all of the files in this game and figure them out.....so thanks.....
let's take the stormtrooper folder and extract it from the assets1.pk3.....and into a models/players/"whatever you would like it named".....let's say for clarity's sake we're naming it "jedi_stm".....in the folder you should have certain essential files....
here is a list of what you should have in the beginning:
armor.jpg
armor_blue.jpg
armor_red.jpg
armor_spec.png
helmet.jpg
helmet_blue.jpg
helmet_red.jpg
helmet_spec.png
icon_blue.jpg
icon_red.jpg
icon_default.jpg
model.glm
model_default.skin
model_blue.skin
model_red.skin
shoulder.jpg
torso_legs.jpg
torso_legs_blue.jpg
torso_legs_red.jpg
torso_legs_spec.png
first your model.glm is very important as it is your model :).....second, the model_default.skin will load all image files into a completely skinned model.....there will also be all the images the model_default.skin link to.....as well as the images that will link to the model_red.skin, and the model_blue.skin as well as those skins.....these are being used for team mode in MP.....but can be used to create extra torsos, heads and legs.....(though usually heads do not change colors)
i will walk you through the necessary steps to create one head, one torso, and one lower .skin file.....and the rest will be up to you......
the model_default skin should be your original point of reference if you are just beginning this sort of project.....
the model_default.skin looks like this(stormtrooper)....
hips,models/players/stormtrooper/torso_legs.tga
hips_body,models/players/stormtrooper/torso_legs.tga
l_leg,models/players/stormtrooper/torso_legs.tga
l_leg_knee,models/players/stormtrooper/torso_legs.tga
r_leg,models/players/stormtrooper/torso_legs.tga
r_leg_knee,models/players/stormtrooper/torso_legs.tga
torso,models/players/stormtrooper/torso_legs.tga
torso_armor_neck_augment,models/players/stormtrooper/torso_legs.tga
head,models/players/stormtrooper/helmet.tga
torso_pauldron,*off
l_arm,models/players/stormtrooper/torso_legs.tga
l_arm_sleeve,models/players/stormtrooper/armor.tga
l_arm_cap_torso_off,models/players/stormtrooper/caps.tga
l_hand,models/players/stormtrooper/torso_legs.tga
l_hand_plate,models/players/stormtrooper/torso_legs.tga
l_hand_cap_l_arm_off,models/players/stormtrooper/caps.tga
l_arm_cap_l_hand_off,models/players/stormtrooper/caps.tga
l_arm_shoulder,models/players/stormtrooper/torso_legs.tga
r_arm,models/players/stormtrooper/torso_legs.tga
r_arm_shoulder,models/players/stormtrooper/torso_legs.tga
r_arm_sleeve,models/players/stormtrooper/armor.tga
r_arm_cap_torso_off,models/players/stormtrooper/caps.tga
r_hand,models/players/stormtrooper/torso_legs.tga
r_hand_plate,models/players/stormtrooper/torso_legs.tga
r_hand_cap_r_arm_off,models/players/stormtrooper/caps.tga
r_arm_cap_r_hand_off,models/players/stormtrooper/caps.tga
torso_cap_hips_off,models/players/stormtrooper/caps.tga
torso_body_neck_augment,models/players/stormtrooper/torso_legs.tga
torso_cap_head_off,models/players/stormtrooper/caps.tga
torso_cap_r_arm_off,models/players/stormtrooper/caps.tga
torso_cap_l_arm_off,models/players/stormtrooper/caps.tga
torso_body,models/players/stormtrooper/torso_legs.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga
the only references you ABSOLUTELY need to construct a head.skin for this model are as follows....(we will only cover the bare essentials here....if anyone feels the need to add to this, feel free.....as i have yet to figure out alot of this.....and will post everything i DO NOT know at the end of this post as well)
head,models/players/jedi_stm/helmet.tga
that's it.....simple huh.....that's why i chose this particulat model for the tutorial :) be careful though, as in other models, you may have a head image, as well as a face image, even some with teeth images.....any references you find that deal directly with images that would make up the head need to be copied into your wordpad file, and then saved as heada1.skin.....it is an ABSOLUTE MUST that you type the .skin extension.....(also notice that the stormtrooper folder link was renamed jedi_stm....as that is what we named our folder)
for the torso a1.skin file you will need the following references.....
torso,models/players/jedi_stm/torso_legs_.tga
torso_armor_neck_augment,models/players/jedi_stm/torso_legs.tga
torso_body,models/players/jedi_stm/torso_legs.tga
_arm,models/players/jedi_stm/torso_legs.tga
l_arm_sleeve,models/players/jedi_stm/armor.tga
l_arm_cap_torso_off,models/players/stormtrooper/caps.tga
l_hand,models/players/jedi_stm/torso_legs.tga
l_hand_plate,models/players/jedi_stm/torso_legs.tga
l_hand_cap_l_arm_off,models/players/stormtrooper/caps.tga
l_arm_cap_l_hand_off,models/players/stormtrooper/caps.tga
l_arm_shoulder,models/players/jedi_stm/torso_legs.tga
r_arm,models/players/jedi_stm/torso_legs.tga
r_arm_shoulder,models/players/jedi_stm/torso_legs.tga
r_arm_sleeve,models/players/jedi_stm/armor.tga
r_arm_cap_torso_off,models/players/stormtrooper/caps.tga
r_hand,models/players/jedi_stm/torso_legs.tga
r_hand_plate,models/players/jedi_stm/torso_legs.tga
r_hand_cap_r_arm_off,models/players/stormtrooper/caps.tga
r_arm_cap_r_hand_off,models/players/stormtrooper/caps.tga
torso_cap_hips_off,models/players/stormtrooper/caps.tga
torso_body_neck_augment,models/players/jedi_stm/torso_legs.tga
torso_cap_head_off,models/players/stormtrooper/caps.tga
torso_cap_r_arm_off,models/players/stormtrooper/caps.tga
torso_cap_l_arm_off,models/players/stormtrooper/caps.tga
once again we merely copied the references that constructed the torso.....notice that in any reference to the caps image i left the folder named stormtrooper.....practically every model in the game loads this image file, and loads it from the stormtrooper folder.....if you want to copy this image into your folder, and change the reference to it, feel free.....but i usually leave it where it is and save myself the trouble.....the stormtrooper is once again basic in components that make up it's torso, as usually the torso, arms, hands, and legs are all separate images.....now we save this as torsoa1.skin....and continue on to the legs.....
the files you need to construct the lower.skin file will look like this....
hips,models/players/jedi_stm/torso_legs.tga
hips_body,models/players/jedi_stm/torso_legs.tga
l_leg,models/players/jedi_stm/torso_legs.tga
l_leg_knee,models/players/jedi_stm/torso_legs.tga
r_leg,models/players/jedi_stm/torso_legs.tga
r_leg_knee,models/players/jedi_stm/torso_legs.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga
these are the references we need for the legs.....save this as the lowera1.skin.....
so we now have the model. glm, the model_default.skin, (the before mentioned red and blue skins as well, but i would either delete them, or take them apart into corresponding separate component skins as listed above, and then delte them) and our new heada1.skin, torsoa1.skin, and lowera1.skin......now create icons that correspond to each skin.....ie icon_heada1.skin and so on and so forth.....so that your folder should now look like this......(including the images you have not deleted that made up the red and blue .skin files.....i would keep them for the moment just because they would give you an easy way to make two more torso/head/lower skins as a chance to really test your category with the ability to swap parts.....this will become even easier as all you will have to do is go back into your .skin files and swap the image links.....
let's go right back to the lower.skin we just created for an example....
hips,models/players/jedi_stm/torso_legs_blue.tga
hips_body,models/players/jedi_stm/torso_legs_blue.tga
l_leg,models/players/jedi_stm/torso_legs_blue.tga
l_leg_knee,models/players/jedi_stm/torso_legs_blue.tga
r_leg,models/players/jedi_stm/torso_legs_blue.tga
r_leg_knee,models/players/jedi_stm/torso_legs_blue.tga
hips_cap_l_leg_off,models/players/stormtrooper/caps.tga
hips_cap_r_leg_off,models/players/stormtrooper/caps.tga
by simply renaming the image link you now have a second lower.skin....call it lowerb1.skin.....make a icon_lowerb1.skin.....are we getting the idea yet.....)
back to the new file list:
animevents.cfg
armor.jpg
armor_blue.jpg
armor_red.jpg
armor_spec.png
helmet.jpg
helmet_blue.jpg
helmet_red.jpg
helmet_spec.png
icon_blue.jpg
icon_red.jpg
icon_default.jpg
model.glm
model_default.skin
heada1.skin
torsoa1.skin
lowera1.skin
shoulder.jpg
torso_legs.jpg
torso_legs_blue.jpg
torso_legs_red.jpg
torso_legs_spec.png
sounds.cfg
now of course we will also need the animevents file and the sounds file(shown above and in practically every folder).....you can try to create your own playerchoice.txt file.....but i simply copied one from the jedi_hm folder.....(as that was the only way to get the full range of color options.....which, though i do not know how to fully implement that yet, looks better :) i'll get back to that when i add my "i do not know how to do this" section)
so after adding the playerchoice.txt file(which is a text file) and any other icons or skins or even images you'd like to add we come to the two possible ways to getting this to show up in the game.....
first it should be in a folder named similar to models/players/jedi_stm(as in models/players has to be in the path.....then copy the strings folder from assets0.pk3.....at which point you will edit the menus.str file.....which is also merely a text document with an essential extension....it has to be saved with the .str extension.....
the existing references in the menus.str is what names and loads the categories in the SP selection screen.....
here is an example from human male....
REFERENCE JEDI_HM
NOTES "For character menu"
LANG_ENGLISH "Human Male"
you will need to edit the reference to match your folder reference
REFERENCE JEDI_STM
NOTES "For character menu"
LANG_ENGLISH "Stormtrooper"
now here is where we have a choice....you now have two folders....one models, which contains players/jedi_stm.....one named strings.....which has four language folders(please note the only menus.str file in the English language folder NEEDS to be altered to gain the resulting class name in SP) and contains our altered menus.str.....so you can pack this up into a .pk3 file named whatever you like and but it in your base folder with the rest of your .pk3's.....this will allow for the class to show up in SP....BUT it will show up as unnamed.....(the name for the species will be blank, but you can click on the blank space to advance to the other species)....
however there is an alternative.....you can add your newly created folder into the models/players/ folder in the assets1.pk3.....and you can edit the menus.str file within your assets0.pk3/strings file without extracting the strings folder.....
the easiest way to do all the packaging work, for me anyway, was an evaluation copy of WinRAR, as it will open, view, edit, compile and recomile .pk3's with no problems whatsoever......
i think that should cover everything....if not, if there is anything you still do not understand, feel free to ask any questions
now for the I DO NOT KNOWS.....
anything related to the transparent .PNG skins or their corresponding icons.....i thought it was merely a lack of understanding, but it turns out it's that and the fact that no image program in existence seems capable of opening these things properly....
the extra instructions in the selectable skins included with the game.....do not know what all of them are about....i only covered the essentials......the best i can figure, they are instructions to turn parts of the model off or on as they are needed or not needed for the skin in question.....
if anyone feels the need to add anything to this, please do.....i could use some help here too people.....so if you figure something out PLEASE add it......if you have any questions, as i may not have been completely clear on everything, feel free to ask.....but i would REALLY like anyone who discovers anything new or not covered to add it, as it would allow this rather small amount of information, to possibly grow into something useful......
and lastly, it was a reborn race mod from J2000 on pcgamemods.com that inspired me to rip apart all of the files in this game and figure them out.....so thanks.....