Positive.
Code example:
Code:
static void ReadObject(BinaryReader fh)
{
Console.WriteLine("Y Rotation: {0}", fh.ReadSingle());
Console.WriteLine("Axis Rotation: X: {0}; Y: {1}; Z: {2}", fh.ReadSingle(), fh.ReadSingle(), fh.ReadSingle());
Console.WriteLine("Position: X: {0}; Y: {1}; Z: {2}", fh.ReadSingle(), fh.ReadSingle(), fh.ReadSingle());
Console.WriteLine("Scale: X: {0}; Y: {1}; Z: {2}", fh.ReadSingle(), fh.ReadSingle(), fh.ReadSingle());
Console.WriteLine("Set AI: {0}", fh.ReadInt32() == 5);
Console.WriteLine("Object ID: {0}", fh.ReadInt32());
Console.WriteLine("Unknown: {0}", fh.ReadInt32());
Console.WriteLine("AI Type: {0}", (AIType)fh.ReadInt32());
Console.WriteLine("Unknown: {0}", fh.ReadInt32());
}
So, there is the xadet's example code "ReadObject" function.
Look at this code piece:
Code:
Console.WriteLine("Position: X: {0}; Y: {1}; Z: {2}", fh.ReadSingle(), fh.ReadSingle(), fh.ReadSingle());
This is what outputs the position, and as you see, it parses it in the "XYZ" order.
If we where to extract the WdMadrigal.dyo file and look up the NPC MaFl_Juria. With this code, we would get something similar to this:
Code:
X: 1739.609; Y: 100; Z: 802.9472
And what we do is we multiply X and Y with 4 so we would get something like this:
Code:
X: 6958.434; Y: 400; Z: 802.9472
Try teleporting to those X and Y coordinates and you will end up in some sort of "Void" dungeon.
But if we would switch out the Y and Z, we would get something like this:
Code:
1739.609; Y: 802.9472; Z: 100
Then we multiply X and Y with 4 and we get:
Code:
X: 6958.434; Y: 3211.788; Z: 100
If we teleport to those coords, we would end up next to Juria.
Have I proved my point yet? (;