Welcome Guest [Log In] [Register]






Shoot a firework rocket ~ Winners!
Make a forum zoo!

Welcome to The Round Table. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Zoo Tycoon 2 !TRUE WIDESCREEN!; by jackfuste
Topic Started: Jan 22 2015, 03:36 PM (42,656 Views)
Uranium X
Member Avatar
The Pun Master

UC
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

Hey Hendrix, have you resolved these problems yet?

(I'm using the EA exe)

Posted Image
Posted Image
Edited by Narukota, Jan 21 2016, 09:24 PM.
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
-retired-

Nope, no solution for that is known yet. It seems like the locations of these fields are hard-coded in the exe, because changing these in the UI files didn't fix it last time I tried.
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

Got it! Turns out the stars locations are implemented in ui\fx\cameraobject.xml.

Quote:
 
<node name="star0">
<position x="5.2" y="1.98" z="-2.9"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star1">
<position x="5.2" y="1.98" z="-2.6"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star2">
<position x="5.2" y="1.98" z="-2.3"/>
</node>
<node name="star3">
<position x="5.2" y="1.98" z="-2.0"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star4">
<position x="5.2" y="1.98" z="-1.7"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>


I think only the z axis should be edited and moved to the left.

Quote:
 
<!--X=Z plane-->
<!--Y= Up and Down-->
<!--Z= Left to Right-->


I tweaked it a bit and got this:

Posted Image


The others, such as the UI locations, should be in one of the xmls in ui\fx and some are also in the cameraobject.xml too.
Edited by Narukota, Jan 22 2016, 03:00 AM.
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
-retired-

Hey great job man! I had found a value for the box in the shell or something and it seems like it was only a dummy placeholder... lol
Offline Profile Quote Post Goto Top
 
mstickmanp
No Avatar


So what does one need to change to fix the star? The position? and by how much?
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

Only the Z axis position should be changed.

Quote:
 
<node name="star0">
<position x="5.2" y="1.98" z="-2.9"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star1">
<position x="5.2" y="1.98" z="-2.6"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star2">
<position x="5.2" y="1.98" z="-2.3"/>
</node>
<node name="star3">
<position x="5.2" y="1.98" z="-2.0"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star4">
<position x="5.2" y="1.98" z="-1.7"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>


Greater values means it goes to the left, less values means it goes right.

so I changed the values by 1.0. (result in the picture above)

Quote:
 
<node name="star0">
<position x="5.2" y="1.98" z="-3.9"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star1">
<position x="5.2" y="1.98" z="-3.6"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star2">
<position x="5.2" y="1.98" z="-3.3"/>
</node>
<node name="star3">
<position x="5.2" y="1.98" z="-3.0"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>
<node name="star4">
<position x="5.2" y="1.98" z="-2.7"/>
<rotation>
<row0 x="0" y="1" z="0"/>
<row1 x="0" y="0" z="1"/>
<row2 x="1" y="0" z="0"/>
</rotation>
</node>


However, it's not in the exact position, so the values should be a few hundredth of a decimal less.

Now that we know how to change the star position, I'm gonna look for the UI positions and I'll post it here.


@Hendrix

Will you changing the values and releasing it? Or do you want me to do it?
Edited by Narukota, Jan 22 2016, 04:20 PM.
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
-retired-

I guess I'll add it to my file so it all stays in one place, if you don't mind?

Have you also found the 3D icon and infobox positions?

I'm sure the exact ratio could be calculated with the camera aspect ratio. ;)
Edited by HENDRIX, Jan 22 2016, 04:22 PM.
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

Yeah, of course. It's better with you doing it. xD

I haven't found the icon/infobox positions, but I'm looking for it. I'll post it here when I find it.
Edited by Narukota, Jan 22 2016, 04:50 PM.
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

*excuse the double post*


Found it! It's ui/layout/buyinfo.xml

It has both the 3d icon positions and the UI infobox position.

Quote:
 
<UILayout name="Buy Info Layout">
<UIRegion x="0" y="0" w="1024" h="768" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect>
<default/>
</UIAspect>
<children>
<UILayout name="Specific Buy Info Layout">
<UIRegion x="712" y="547" w="309" h="222" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect string="">
<default image="" sound="">
<BFRect x="0" y="0" w="0" h="0"/>
<BFColor r="0" g="0" b="0" a="0"/>
</default>
</UIAspect>
<children>
<ZTBuyInfoPanel name="Buy Info Panel">
<DynamicStartPos x="133" y="31"/>
<UIRegion x="0" y="0" w="312" h="249" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="hidden"/>
<UIAspect string="">
<default image="" sound="">
<BFRect x="0" y="0" w="0" h="0"/>
<BFColor r="0" g="0" b="0" a="0"/>
</default>
</UIAspect>
<UIShowHideAnim time=".3">
<start x="311" y="0" w="-1" h="-1"/>
<end x="0" y="0" w="-1" h="-1"/>
</UIShowHideAnim>
<children>
<UILayout name="Buy Object Panel">
<UIRegion x="0" y="49" w="311" h="249" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect string="">
<default image="" sound="">
<BFRect x="0" y="0" w="0" h="0"/>
<BFColor r="0" g="0" b="0" a="0"/>
</default>
</UIAspect>
<children>
<UILayout name="background" template="blank">
<UIRegion x="0" y="0" w="309" h="173" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect>
<default image="" sound="">
<BFRect x="0" y="0" w="309" h="173"/>
<BFColor r="255" g="255" b="255" a="255"/>
</default>
</UIAspect>
</UILayout>
<UILayout name="top header" template="header">
<UIRegion x="0" y="0" w="0" h="20" xalign="min" yalign="min" walign="max" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect>
<default image="" sound="">
<BFRect x="0" y="0" w="309" h="173"/>
<BFColor r="255" g="255" b="255" a="255"/>
</default>
</UIAspect>
</UILayout>
<UILayout name="3d preview" template="3d_displayfield">
<UIRegion x="15" y="28" w="97" h="85" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect>
<default image="" sound="">
<BFRect x="0" y="0" w="309" h="173"/>
<BFColor r="255" g="255" b="255" a="255"/>
</default>
</UIAspect>
<children>
<UIStatic name="buy preview position">
<UIRegion x="46" y="89" w="1" h="1" xalign="min" yalign="min" walign="len" halign="len"/>
<UIAspect draw3D="true">
<default/>
</UIAspect>
</UIStatic>
</children>
</UILayout>
<UILayout name="panel well" template="panelwell">
<UIRegion x="125" y="28" w="172" h="132" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect>
<default image="" sound="">
<BFRect x="0" y="0" w="309" h="173"/>
<BFColor r="255" g="255" b="255" a="255"/>
</default>
</UIAspect>
</UILayout>
<UIStatic name="Entity Image Display">
<UIRegion x="15" y="28" w="97" h="85" xalign="min" yalign="min" walign="len" halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect>
<default sssimage="ui\shared\white1x1.dds" sound="">
<BFRect x="3" y="5" w="57" h="48"/>
<BFColor r="255" g="255" b="255" a="255"/>
</default>
</UIAspect>
</UIStatic>
<UILayout name="button well" template="buttonbar">
<UIRegion x="10" y="125" w="107" h="44" xalign="min" yalign="min" walign="len"
halign="len"/>
<UIState active="normal" visible="normal"/>
<UIAspect>
<default image="" sound="">
<BFRect x="0" y="0" w="309" h="173"/>
<BFColor r="255" g="255" b="255" a="255"/>
</default>
</UIAspect>
</UILayout>


Not sure which one to edit, though. I'll leave it up to you. d:
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
-retired-

Got the stars and preview pretty much perfect now. :) The entityinfo does not cooperate yet...

It seems like modifying entityinfo.xml does not change the location of the 3d icon, only the background, so it must be set somewhere else.

Updated the file in my google drive with my current version without any shell or entityinfo edits
Edited by HENDRIX, Jan 22 2016, 07:10 PM.
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

How about editing ui\layout\entityinfo.xml?

I think these are the only ones that should be edited.


never mind. xD

Thanks for the update, Hendrix. :like:
Edited by Narukota, Jan 22 2016, 07:11 PM.
Offline Profile Quote Post Goto Top
 
HENDRIX
Member Avatar
-retired-

Maybe I did something wrong, feel free to experiment. ;) When I moved the whole entityinfo thing, the icon remained where it was. I also edited the individual parts where it says draw3D to no avail. The icon remains where it shouldn't be... Maybe that also comes from the cameraobject xml? the arms stuff?
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

HENDRIX
Jan 22 2016, 07:16 PM
Maybe I did something wrong, feel free to experiment. ;) When I moved the whole entityinfo thing, the icon remained where it was. I also edited the individual parts where it says draw3D to no avail. The icon remains where it shouldn't be... Maybe that also comes from the cameraobject xml? the arms stuff?
I was thinking that too. I'll play around with it for a bit and tell you if I find anything. :)
Offline Profile Quote Post Goto Top
 
Posted Image Narukota
Member Avatar
blah

*please excuse yet another double post*


Yup, the 3d icon is controlled by the arm/wrist/fist positions in the cameraobject.xml. :like:

It's the first group,

Quote:
 
<node name="arm">
<position x="20.0" y="-6.7" z="6.4"/>
<rotation>
<row0 x="1.0" y="0.0" z="0.0"/>
<row1 x="0.0" y="0.0" z="1.0"/>
<row2 x="0.0" y="-1.0" z="0.0"/>
</rotation>
</node>


Edit the Z axis to around 8.0 and we're good to go.
Edited by Narukota, Jan 22 2016, 08:02 PM.
Offline Profile Quote Post Goto Top
 
3 users reading this topic (3 Guests and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create a free forum in seconds.
Go to Next Page
« Previous Topic · Discussion · Next Topic »
Add Reply