XML Bits: Ground Structures Breakthrough -1 reply

Please wait...

xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#1 9 years ago

(How to enable the spawning of the "third" type of indigenous units)

As some of you may be aware, there are three types of urban civilians, three types of swamp civilians, three types of ewoks, etc. But you only see two types of urban civilians in the game, two types of swamp civilians, and two types of ewoks, despite the fact that they are coded in and should, theoretically, be there in-game. For some reason, they are not, but I have found a way around this:

Go into groundstructures.xml, find all types of buildings in there that spawn more than one type of unit like this, the first one:

(blah blah blah) Ewok_Hunter, Ewok_Hunter_B, Ewok_Hunter_C (blah blah blah)

And change it to this:

Ewok_Hunter, Ewok_Hunter_B, Ewok_Hunter_C, BS

For some reason, the last on the list will always be cut off, unless it is also the first one, so be sure to add ", BS" to the end of all the ground structures that spawn more than one type of indigenous unit. This also applies to any custom indigenous units you add (such as multi-colored Twileks, Duros citizens, et cetera).

Enjoy!

Spoiler: Show
attachment.php?attachmentid=641&d=1246824231
Spoiler: Show
attachment.php?attachmentid=642&d=1246824245



ssdcommander

admiral, you are needed

50 XP

16th December 2008

0 Uploads

266 Posts

0 Threads

#2 9 years ago

wow amazing, great work




JC9542

I want to be like the Admins

50 XP

27th February 2009

0 Uploads

212 Posts

0 Threads

#3 9 years ago

xanofar;4940321(How to enable the spawning of the "third" type of indigenous units)

As some of you may be aware, there are three types of urban civilians, three types of swamp civilians, three types of ewoks, etc. But you only see two types of urban civilians in the game, two types of swamp civilians, and two types of ewoks, despite the fact that they are coded in and should, theoretically, be there in-game. For some reason, they are not, but I have found a way around this:

Go into groundstructures.xml, find all types of buildings in there that spawn more than one type of unit like this, the first one:

And change it to this: For some reason, the last on the list will always be cut off, unless it is also the first one, so be sure to add ", BS" to the end of all the ground structures that spawn more than one type of indigenous unit. This also applies to any custom indigenous units you add (such as multi-colored Twileks, Duros citizens, et cetera).

Enjoy!

Literally the characters BS or would any other junk code/spare unit work? Very cool though.




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#4 9 years ago
JC9542;4940537Literally the characters BS or would any other junk code/spare unit work? Very cool though.

Any would work. I just chose "BS" because you're BS-ing the code into thinking there's a unit called "BS".




JC9542

I want to be like the Admins

50 XP

27th February 2009

0 Uploads

212 Posts

0 Threads

#5 9 years ago
xanofar;4942679Any would work. I just chose "BS" because you're BS-ing the code into thinking there's a unit called "BS".

Ah makes sense, I ended up throwing in the desert_civilian in on my try. Works out pretty good, now I can have all the colored Twilek's from the OMG pack plus SI's male Twileks too. Has a real potential for creating some weird alien mobs.




jedi_consulor

Girl Gamers,were Awesome!

50 XP

13th July 2006

0 Uploads

1,246 Posts

0 Threads

#6 9 years ago

Thats a nice tip very well spotted, Always did think you were a good coder Nate.