How to keep the Sphere on all day

Post Reply
FrankGehry
Posts: 50

How to keep the Sphere on all day

Post by FrankGehry » Wed Jun 26, 2024 6:43 pm

There's a simple edit you can do to edit the scenery so that the Sphere doesn't turn off during the day. It involves making the same simple edit to multiple XML files.

First, navigate to your scenery folder which should be "flytampa-lasvegas-city". I have the Marketplace version. Then SimObject > Landmarks > ft_lasvegas_sphere_projections. Make a backup copy elsewhere of this last folder in case the revision isn't done correctly.


Now in this folder, you'll see a folder for each of the projections that can be on the sphere (basketball, moon, eye, emoji, etc.). There is also a folder titled "texture" that we will ignore.

If you go into each of the folders of the projections, you'll see an XML file (ie sphere_basketball.xml, sphere_earth.xml, etc.). These are what we will edit, and you can do it in Notepad.

So start by opening the first XML in Notepad. For me, the first folder is "model.sphere_basketball" (sorted alphabetically).

In sphere_basketball.xml, you'll see two lines of code that look like this...

(E:LOCAL TIME, Seconds) 3600 % 400 >= (E:LOCAL TIME, Seconds) 3600 % 1000 < and (E:TIME OF DAY, number) 1 > and if{ 1 } els{ 0 }

This line of code is telling the scenery to
1) start the basketball animation at the 400-second mark of each hour
2) stop the animation at the 1000-second mark of each hour
3) only play the animation if the time of day is dusk or night <---This is what we need to remove

The part of the code that is "(E:TIME OF DAY, number) 1 &gt; and" is the part that tells the animation to only plat at dusk and night. This is the part that needs to be removed. If done correctly, the line will now read...

(E:LOCAL TIME, Seconds) 3600 % 400 &gt;= (E:LOCAL TIME, Seconds) 3600 % 1000 &lt; and if{ 1 } els{ 0 }

This also needs to be done to the second line of code in the XML that is identical to the first. Once this is done, you can save the XML file, and go into the next projection. For me, it's "model.sphere_earth" and make the same edit to it's XML file (removing "(E:TIME OF DAY, number) 1 &gt; and" from the lines of code - sometimes, there are several lines where it needs to be removed).

This needs to be done to all the projections, except the folder titled "model.sphere_leds_day_default". We have to treat the XML file in this folder differently.

The leds_day_default is a texture that mimics the look of the LEDs on the Sphere when it's turned off, but since we are now making it so the Sphere is always on, we no longer need this texture to appear.

The line of code in model.sphere_leds_day_default's XML file reads...

(E:TIME OF DAY, number) 0 &gt; (E:TIME OF DAY, number) 2 &lt; and if{ 1 } els{ 0 }

It needs to be changed to this...

(E:TIME OF DAY, number) 0 &gt;= (E:TIME OF DAY, number) 3 &lt;= and if{ 0 } els{ 1 }

This will set it so that this texture never appears.

If these edits are done correctly, the sphere should be on during the day playing its usual animations. If something goes wrong, you will always have the backup folder you made of "ft_lasvegas_sphere_projections" that you can restore.

I am not responsible for anything that may go wrong in this editing process and cannot be held liable for your actions. It's a simple edit, but just be mindful of what you're deleting when highlighting text. Let me know if you have any questions.
Post Reply