Page 1 of 1

I need help with files!

Posted: Sat Apr 10, 2010 10:21 am
by Avenger
Ok so heres whats up. Well I read a tutorial yesterday about making and getting skins into your map. So when it came to the part where i have to copy some TGA's and ODF's and make some LUA files and blah blah blah. You see the thing is it only says what the codes and files are for the Rifleman but whay if i ever want a different kit? So what im asking here is what are the different codes and files for the kits with a custom skin added?

Help me Everyone, your my only hope! :bowdown:

Re: I need help with files!

Posted: Sat Apr 10, 2010 10:26 am
by RogueKnight
What codes are you talking about? There are no "codes", there are .req names, but those are easy and usually class-associated.

Re: I need help with files!

Posted: Sat Apr 10, 2010 10:28 am
by Avenger
I'm talking about the LUA files and stuff. Also I thing there was some ODF files. Like scripts and junk :P

Re: I need help with files!

Posted: Sat Apr 10, 2010 10:29 am
by RogueKnight
Can you give me a specific example of what you are talking about? That way I can answer your question.

Re: I need help with files!

Posted: Sat Apr 10, 2010 10:35 am
by Avenger
RogueKnight wrote:Can you give me a specific example of what you are talking about? That way I can answer your question.
Sure. I came across a tutorial about skinning (as mentioned in the top post) nad at some point it says this...
Hidden/Spoiler:
"Go to: : /BF2_modtools/assets/sides/rep and copy the following files
In msh folder:
rep_weap_inf_rifle.msh
rep_weap_inf_rifle.msh.option
rep_1st_weap_inf_rifle.tga
rep_1st_weap_inf_rifle.tga.option
rep_1st_weap_inf_rifle.msh.option
rep_1st_weap_inf_rifle_bump.tga
rep_1st_weap_inf_rifle_bump.tga.option
rep_inf_ep3trooper.msh
rep_inf_ep3trooper.msh.option
And paste them in the msh folder in data_SKN/sides/rep/msh

In odf folder:
rep_weap_inf_rifle.odf
rep_weap_inf_rifle_ord.odf
rep_inf_default.odf
And paste them in the odf folder in data_SKN/sides/rep/odf

Copy the entire folder of munged and effects from: /BF2_modtools/assets/sides/rep
and put them in: /BF2_modtools/data_SKN/sides/rep

Now open notepad
And we make the trooper’s odf’s.
Put this in notepad:

Code:
[GameObjectClass]
ClassParent = "rep_inf_default_rifleman"

[Properties]
GeometryName = "rep_inf_ep3trooper"
GeometryLowRes = "rep_inf_ep3trooper"
FirstPerson = "REP\reptroop;rep_1st_trooper"


Then save it as: rep_inf_ep3_rifleman.odf
in: BF2_modtools/data_SKN/sides/rep/odf
NOTE: remember to put the .odf at the end of the file name when you save or it won’t work!

Now we make the default odf. This is where the weapons are set up.

Code:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_rifle"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "rep_weap_award_rifle"
WeaponAmmo = 4

VOUnitType = 121


Save that as: rep_inf_default_rifleman.odf
in: BF2_modtools/data_SKN/sides/rep/odf
NOTE: remember to put the .odf at the end of the file name when you save or it won’t work!

We now need to make the req for the trooper. Open notepad, and put this in it:

Code:
ucft
{
REQN
{
"class"
"rep_inf_ep3_rifleman"
}
}


Save that as: rep_inf_ep3_rifleman.req
in: BF2_modtools/data_SKN/sides/rep/req
NOTE: remember to put the .req at the end of the file name when you save or it won’t work!

Done? Good.
Now go to: /BF2_modtools/assets/sides/
And copy the entire common folder and paste it in: /BF2_modtools/data_SKN/sides/

Don’t forget to copy the trooper’s tga on your desktop and put it in the msh folder!!

The LUA stuff

Now I will tell you how to add the unit to the LUA."

So what are all thos files for different classes? That tutorial only shows what to put for the rifleman but what if i want something else? so i need to know the different files! :thumbs:

Re: I need help with files!

Posted: Sat Apr 10, 2010 10:38 am
by Maveritchell
Judging by the complexion of your post, it sounds like you opened up a tutorial and just skimmed it, decided it had too much there, and then posted a question:
ame to the part where i have to copy some TGA's and ODF's and make some LUA files and blah blah blah
the LUA files and stuff...Like scripts and junk
It's important if you need help to both:
a) Communicate effectively, and
b) Already have given a substantial effort yourself

There are several tutorials on GT (or in the shipped documentation) that walk you through making a side with enough hand-holding that they shouldn't be leaving you with "...and stuff" as a reference point. Please make sure to give them a read-through.
http://www.gametoast.com/forums/viewtop ... 27&t=12729

Edit: All the .odf files your unit needs are referenced in its odf, its model (msh) is referenced in its odf, its textures are referenced in its model.

Re: I need help with files!

Posted: Sat Apr 10, 2010 10:40 am
by Avenger
Thanks that helps some. Here is the tutorial i was reading: http://www.gametoast.com/forums/viewtop ... t=skinning

:D


Edit: I'm very new to modding, started about 4 days ago so i dont know much and it's confusing me :S