Quote:
Originally Posted by Derision
I think you found a bug. The aspect ratio of the huts in Hollowshade looks wrong in OpenEQ (using the same file loader routines as in Azone2). I'll look into it at some point, but it won't be for a while.
|
I found the cause of this. Each instance of a placeable object in the .WLD file has an X and Y scale factor associated with it. This is so that a single base model can be included for that object, then various different size instances of that object can be placed in the zone.
There doesn't appear to be a Z scale factor. (I checked in OpenZone and that doesn't use a Z scale either), so the WLD processing code in OpenEQ and azone2 just sets the ZScale to 1.0.
This turns out to mean that any object that is scaled in relation to the base object looks skewed in OpenEQ and is put into the .map with the wrong geometry by azone2.
I analysed every S3D file, and in every case, the X and Y scale factors were always the same, so I changed the code so that the Z scale factor is set to whatever the X and Y scales are. The huts in Hollowshade seem to have the correct proportions now, and I built a hollowshade.map including models 9 and 10 (the huts on stilts) and the mobs stand on them correctly, even with Map:FixPathingZMaxDeltaSendTo set to the default value.
I've updated the downloads:
Source:
http://www.rama.demon.co.uk/azone2/azone2.rar
Windows Executables:
http://www.rama.demon.co.uk/azone2/az2exes.rar
This means that any maps with placeable objects using the previous versions should really be rebuilt. This only affects placeable objects. If you have azone2 generated base maps with no placeable objects, then they will be fine.