View Full Version : Formations XML File
Snoopy Nov 14, 2005, 08:39 PM 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.
panzooka Nov 15, 2005, 04:48 AM from the looks of it, it cant have any other formation than circle
Snoopy Nov 15, 2005, 08:07 AM yeah, thats a problem to me! :(
saarworres Nov 15, 2005, 06:56 PM 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.
Snoopy Nov 16, 2005, 06:16 PM 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!
Snoopy Nov 16, 2005, 06:24 PM Oh btw, what do they do when they attack?
Do they scatter? Do they reform back into line?
NateDawgNY Nov 16, 2005, 07:24 PM Holy crap! That is absolutely beautiful! I would love to know how you did that.
Snoopy Nov 17, 2005, 12:00 AM 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.
I_batman Nov 17, 2005, 04:32 PM 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.
Snoopy Nov 17, 2005, 06:23 PM 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".
Weasel Op Nov 17, 2005, 06:32 PM [party] :woohoo:
That's awesome! Real formations! w0000t!!!! :D
dog77_1999 Nov 18, 2005, 12:42 AM 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.
Snoopy Nov 18, 2005, 07:02 PM 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. :)
Drivebymaster Nov 19, 2005, 10:42 PM You sounded black there saying just Dog....lol
I love how Firaxis switched to XML! SO much easier to mod games if you know XML Basics....and if you know more its easier
sovarn Nov 20, 2005, 09:19 AM 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.
|
|