Page 1 of 1

How to add a droid unit? [Solved]

Posted: Mon May 25, 2009 11:40 am
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!

Re: How to add a droid unit?

Posted: Mon May 25, 2009 11:46 am
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

Re: How to add a droid unit?

Posted: Mon May 25, 2009 11:47 am
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!

Re: How to add a droid unit?

Posted: Mon May 25, 2009 11:47 am
by Deviss
RogueCruiser wrote:I did give it a req,

the game ctds!
ctds??

Re: How to add a droid unit?

Posted: Mon May 25, 2009 11:49 am
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!

Re: How to add a droid unit?

Posted: Mon May 25, 2009 11:52 am
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??

Re: How to add a droid unit?

Posted: Mon May 25, 2009 11:55 am
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

Re: How to add a droid unit?

Posted: Mon May 25, 2009 11:59 am
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

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:02 pm
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?

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:08 pm
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??

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:10 pm
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

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:13 pm
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

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:16 pm
by RogueCruiser
Thats what i am currently doing.

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:18 pm
by Deviss
RogueCruiser wrote:Thats what i am currently doing.
ops sorry, well i'll :) wait for news

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:26 pm
by RogueCruiser
Got it to work.

Re: How to add a droid unit?

Posted: Mon May 25, 2009 12:31 pm
by Deviss
RogueCruiser wrote:Got it to work.
cool :thumbs: