How to add a droid unit? [Solved]

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
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

How to add a droid unit? [Solved]

Post by RogueCruiser »

Ok so I made a new skin for a battledroid. I used the rocketeer odf and changed it to "refurbdroid" and I made a new skin which i used the same number of letters in that name "refurb" instead of this other 6 letter word. I was confused about the different geometrys etc. so i just used override texture like the other battle droid units. I added everthing correctly i believe, but when the map loads it instantly ctd's.

So what I'm asking is how to add a reskinned droid in your own side. (along with modified weapon selection) such as rifle, commando pistol, timebomb, and grenades. (I do know how to add weapons)


yes rle compression is off!
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:Ok so I made a new skin for a battledroid. I used the rocketeer odf and changed it to "refurbdroid" and I made a new skin which i used the same number of letters in that name "refurb" instead of this other 6 letter word. I was confused about the different geometrys etc. so i just used override texture like the other battle droid units. I added everthing correctly i believe, but when the map loads it instantly ctd's.

So what I'm asking is how to add a reskinned droid in your own side. (along with modified weapon selection) such as rifle, commando pistol, timebomb, and grenades. (I do know how to add weapons)


yes rle compression is off!
well is simple, for add a new unit you must create a new .req file for his unit.odf and on your army .req for example cis.req add in there the unit.req file and then add the new unit on your lua file
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to add a droid unit?

Post by RogueCruiser »

I did give it a req, (my side's req though) is that what you mean or to the cis.req and if so how to add it to cis side in map then

the game ctds!
Last edited by RogueCruiser on Mon May 25, 2009 11:48 am, edited 1 time in total.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:I did give it a req,

the game ctds!
ctds??
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to add a droid unit?

Post by RogueCruiser »

yes, right after the loading of map finished it crashes (and look at post above, i edited it)

(I know how to do the reqs for my side)

Do you want me adding it in cis req or my side!
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:yes, right after the loading of map finished it crashes (and look at post above, i edited it)

(I know how to do the reqs for my side)
please post your new unit.odf and did you modify the lua file??
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to add a droid unit?

Post by RogueCruiser »

this is the odf:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "cis_inf_default_rocketeer"


[Properties]
GeometryName = "cis_inf_bdroid"
GeometryLowRes = "cis_inf_bdroid_low1"
SkeletonName = "bdroid"
SkeletonLowRes = "bdroidlz"

FirstPerson = "CIS\cisbdrd;cis_1st_bdroid"

OverrideTexture = "cis_inf_refurbdroid"
<this was in my side folder, there were weapons before but I deleted the unit from odf and lua so my map would work again

I did modify the lua file. (correctly) with the unit in it
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:this is the odf:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "cis_inf_default_rocketeer"


[Properties]
GeometryName = "cis_inf_bdroid"
GeometryLowRes = "cis_inf_bdroid_low1"
SkeletonName = "bdroid"
SkeletonLowRes = "bdroidlz"

FirstPerson = "CIS\cisbdrd;cis_1st_bdroid"

OverrideTexture = "cis_inf_refurbdroid"
<this was in my side folder, there were weapons before but I deleted the unit from odf and lua so my map would work again

I did modify the lua file. (correctly) with the unit in it
well there is LIMITS for BF2 for example your unit can have 7 weaponssections max
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to add a droid unit?

Post by RogueCruiser »

there were only 3, and another thing, for some reason the tga and msh are named differently in all the droid skins so the changing skin simple hex editing stuff from the tutorials doesn't work

When you said cis.req did you actually want me to add it there?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:there were only 3, and another thing, for some reason the tga and msh are named differently in all the droid skins so the changing skin simple hex editing stuff from the tutorials doesn't work

When you said cis.req did you actually want me to add it there?
yes i could add it in lua file, and i don't understand did you modify the msh file??
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to add a droid unit?

Post by RogueCruiser »

hex editing the msh,

ps. I'm trying to do it again but realized that the skin I used had no msh so I won't change it.

I'll report if my new try works
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:hex editing the msh,

ps. I'm trying to do it again but realized that the skin I used had no msh so I won't change it.

I'll report if my new try works
but why hex edit the msh file?? you only need add the overridetexture the same you make on your odf file , maybe the msh is the problem, try without modify it please
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to add a droid unit?

Post by RogueCruiser »

Thats what i am currently doing.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:Thats what i am currently doing.
ops sorry, well i'll :) wait for news
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to add a droid unit?

Post by RogueCruiser »

Got it to work.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: How to add a droid unit?

Post by Deviss »

RogueCruiser wrote:Got it to work.
cool :thumbs:
Post Reply