I need help with files!

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Avenger
Private First Class
Posts: 78
Joined: Wed Apr 07, 2010 7:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Xfire: mejon

I need help with files!

Post 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:
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: I need help with files!

Post by RogueKnight »

What codes are you talking about? There are no "codes", there are .req names, but those are easy and usually class-associated.
User avatar
Avenger
Private First Class
Posts: 78
Joined: Wed Apr 07, 2010 7:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Xfire: mejon

Re: I need help with files!

Post by Avenger »

I'm talking about the LUA files and stuff. Also I thing there was some ODF files. Like scripts and junk :P
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: I need help with files!

Post by RogueKnight »

Can you give me a specific example of what you are talking about? That way I can answer your question.
User avatar
Avenger
Private First Class
Posts: 78
Joined: Wed Apr 07, 2010 7:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Xfire: mejon

Re: I need help with files!

Post 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:
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: I need help with files!

Post 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.
User avatar
Avenger
Private First Class
Posts: 78
Joined: Wed Apr 07, 2010 7:57 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Xfire: mejon

Re: I need help with files!

Post 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
Post Reply