Formations XML File

Snoopy

Prince
Joined
Aug 4, 2001
Messages
522
Location
New Zealand
Just putting in what I have learned so far..



== UnitEntry ==

Position > X (position) = This is the position in which the units stand from the center. (the center being 0.0)

Position > Y (position) = This is the position in which the units stand from the center. (the center being 0.0)

PositionRadius = This is the radius length from the center of the unit (0.0) (men will always form a circle)

Direction = This the dirction in which the men will face (south)

DirVariation = This is a variation amount for the Direction the men are facing.
 
I've seen your Screenshot and try to edit the formations.
Why should it impossible to create an Unit with an other Formation as an circle??
The <PositionRadius> could not be the radius of the circle the Unit would stand with her coordinates. The value must something else. Because every men in the formation had an other value so this could not be the radius of the selectioncircle either.

I've made an copy of the IDLE (4) Formation and simply changed the number between the brackets to the acount of men in my Unit. Then I've simply tried to change the coordinates of the formationmembers and it will work fine. Just with an <PositionRadius> of 10 with an 11 men unit. 10 Pikemen and one explorer as an officer or something.

Have you an an idea what the matter of the value?? It seems simply useless to me.
 

Attachments

  • pikeboys.jpg
    pikeboys.jpg
    207 KB · Views: 973
Is this screenshot real? :)

Can you post a screenshot or paste in what you changed? I'd really love to see exactly what numbers you have put in to create these formations.


Good job man! I'm no mathematician and by the looks of it i'm sure you are better than me at maths!
 
Oh btw, what do they do when they attack?

Do they scatter? Do they reform back into line?
 
Holy crap! That is absolutely beautiful! I would love to know how you did that.
 
Thanks saar, with your help, I have worked out how it is done.

It's all in the X and Y values, the other 3 values are not important.

on the map:
X = horizontal
Y = vertical

Ignore the large numbers, Firaxis was just being precise.

If you have 3 men in a unit, and you want to form them into a horizontal line, you simply go to the number 3 idle row, change the first x value to 0.0 and the y value to 0.0 (this infact will put them directly in the center of the tile).
Change the 2nd x value to 0.10 (this either sends them right or left by 10 (pixels? not sure what its measured in) and the y value to 0.0 (if we change this, they will shift off the horizontal line). For the 3rd x value, we change it to -10.0 (because we want them to shift 10 pixels in the other direction), and the y value to 0.0.
 
Wow guys, nice work.
I have a question for for the "strength" of the unit.
By adding more individual figures to the entire unit, are you altering the "strength" of the unit?
I am assuming no, since all I have seen in formations .xml file is positioning, and nothing on the strength of the unit.
 
well, there's no need to change the strength, the strength is just a number.

However, if you set the "wave" number to something higher than default, then it may become stronger as it is attacking with more men against one man. But I'm not sure how Firaxis have coded that..

the wave setting is in the units folder under imeshgroups btw.
wave means "how many sub-units do you want to send into battle at once".
 
Quick question, how would you change the formation if you had more units than the original amount, say 20? What would you have to add?

Also how did you resize the units? I been looking through the files and couldn't find anything.
 
dog

To change the formation for large number units, you have to create a new idle (or whatever) row, and change the number in the bracket to the number of sub-units.

If you have 100 men in a unit, then you will have to change all 100 X and Y values. So it will take you a while. :)
 
wow, great work on figuring it out. Now to wait for a large army mod or something.

will be interesting to instead of creating units create maybe army types so we can mix and match units within an army and so they will enhanced values and the like.
 
Back
Top Bottom