Jump to content

TUTORIAL: adding a new uniform option to an existing character


  • You cannot reply to this topic

3 replies to this topic

#1 Scooter

Scooter

    The Canon Man

  • UberGames Admin
  • 2,545 posts

Posted 23 August 2009 - 05:59 PM

In this tutorial, we're going to add the utility jumpsuit to the Munro character.

Posted Image

1. Laying the groundwork

First order of business is to set up your folders if you don't already have them. Dive into your STVEF\RPG-X2 folder wherever it lives on your computer. Mine is at C:\Program Files\Raven\Star Trek Voyager Elite Force\RPG-X2. If there is not already a folder called models, make one. Inside there we need a folder called players_rpgx. You'll probably also need to make folders male_body and female_body to hold the common textures. Male textures go in the male_body folder, and female textures go in the female_body folder. Files used by both (comm badges) usually go in the male_body folder. Since we're adding a skin to Munro, make a folder called munro too.

Posted Image

Now we need to make some uniform textures. This is more difficult than just changing the color of an existing texture. I found a skin that was the closest to what I wanted to achieve and used it as a template. I saved the files as utility_torso_gold.jpg and utility_legs_gold.jpg in the male_body folder.

Posted Image

Posted Image

Now we make a file in the male_body folder called upper_utility_gold.skin
u_thintorso,models/players_rpgx/male_body/utility_torso_gold.tga
u_thinrarm,models/players_rpgx/male_body/utility_torso_gold.tga
u_thinlarm,models/players_rpgx/male_body/utility_torso_gold.tga
u_thinrhand,models/players/crewthin/lhands.tga
u_thinlhand,models/players/crewthin/lhands.tga
u_thinbadge,models/players_rpgx/male_body/combadge.tga

And another file called lower_utility_gold.skin
l_thinlegs,models/players_rpgx/male_body/utility_legs_gold.tga

You will need to make additional upper skin files for each skin tone.

2. Making the character-specific files

As usual, we need a head texture. I'm going to modify TiM's head texture from the FC uniform.

Posted Image

Inside the munro folder, make a folder called skins and create head_utility_gold.skin with the following:
h_munro,models/players_rpgx/munro/munro_head_utility_gold.tga
h_munroface01,models/players/munro/munro_face.tga

Back in the munro folder, we need to create a file called utility_default.skinset with the following contents:
//gold utility jumpsuit
{
	headSkin 			"models/players_rpgx/munro/skins/head_utility_gold.skin"
	headSkinBlink 		"models/players_rpgx/munro/skins/head_utility_gold_blink.skin"
	headSkinFrown		"models/players_rpgx/munro/skins/head_utility_gold_frown.skin"
	headSkinFrownBlink	"models/players_rpgx/munro/skins/head_utility_gold_fr_bl.skin"

	headBlinkTime 		5 12

	torsoSkin 	"models/players_rpgx/male_body/upper_utility_gold.skin" //torso skin
	legsSkin 	"models/players_rpgx/male_body/lower_utility_gold.skin" //legs skin

	headSkinTalk {
		"models/players_rpgx/munro/skins/head_utility_gold_talk1.skin"
		"models/players_rpgx/munro/skins/head_utility_gold_talk2.skin"
		"models/players_rpgx/munro/skins/head_utility_gold_talk3.skin"
		"models/players_rpgx/munro/skins/head_utility_gold_talk4.skin"
	}
}

Because Munro has facial expressions, I will create skin files for each facial expression too. This is quite tedious when you're doing every character. Fortunately TiM wrote a utility to do this for me (unfortunately for you, it's not released yet). I open a command prompt window in my RPG-X2 folder and run this: "RPG-X_Skin_Batch.exe munro utility gold" and it generates all the files for me based on head_default.skin (you'll need to copy head_default from RPG-X2\pak0.pk3).

NOTE: there is a limit to the path length, so sometimes it is necessary to abbreviate file names. Make sure your file names match those referenced in the skinset file or you'll get errors in EF.

There's an additional step we need to do before EF can load our new skin. We need to make the game aware that there is a utility jumpsuit model. In the munro folder, create a file called utility.model
//=================================================
//	RPG-X Model System Script
//	By Scooter - 2009-01-11
//=================================================

//Munro - Utility Jumpsuit
{
	animsConfig 		"models/players_rpgx/male_body/animation.cfg"	//anims config file
	animSoundsConfig	"models/players_rpgx/male_body/animsounds.cfg"	//anim sounds config	
	legsModel 			"models/players_rpgx/male_body/lower_crew.mdr" 	//legs model
    torsoModel			"models/players_rpgx/male_body/upper_crew.mdr" 	//torso model
	headModel 			"models/players_rpgx/munro/head.md3"  			//head model
	holsterModel 		"models/boltOns/holster_male.md3" 				//holster model

	hasRanks 		1 			//skinset will use the rank system
	sex 			m			//model gender
	soundPath 		munro		//sound base
	skinSet			"utility_*"	//reference to skinset names
}

4. Git 'er done

We're almost done. Navigate to your RPG-X2 folder, right-click on the models folder, Send To... compressed (zipped) folder. Rename the file from models.zip to munro-utility.pk3 and you're ready to fire up EF.

Posted Image

Next time, I'll show you how to add a new character.

#2 paris

paris

    New Member

  • Members
  • Pip
  • 4 posts

Posted 23 August 2009 - 07:14 PM

Hey Scooter great tutorial looking forward to adding a new character next time.

#3 Grizz

Grizz

    Member

  • RPG-X Tester
  • 984 posts

Posted 23 August 2009 - 07:36 PM

Next time, I'll show you how to add a new character.

Next time, I'll show you how to add a new character.

Next time, I'll show you how to add a new character.

Next time, I'll show you how to add a new character.


/want (10 char)

#4 sharpkiller

sharpkiller

    Queen Fanatic

  • Members
  • 491 posts

Posted 23 August 2009 - 08:18 PM

Great tutorial, Scooter. :D

Sharpkiller.png




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users