July 18 2026 build

From Skyscraper Wiki
Revision as of 17:59, 18 July 2026 by Elevator1512 (talk | contribs) (Created page with "{{OB}}{{db}} This build has an important fix for the random number generator code in Skyscraper. The fixes for it are in the rnd() script function, and also in the Random Activity feature for elevators, escalators, and people objects. What the fix does is that previously the seed for the random number generator would change every second, resulting in it repeatedly generating the same numbers while the seed was the same. The seed was based on the time of day in seconds, I...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is an official build of Skyscraper, made by eventhorizon.
It contains only the files in SVN, and can be safely downloaded to your computer.
This article describes a development build of Skyscraper Simulator.
It contains good information related to Skyscraper Simulator.

This build has an important fix for the random number generator code in Skyscraper. The fixes for it are in the rnd() script function, and also in the Random Activity feature for elevators, escalators, and people objects. What the fix does is that previously the seed for the random number generator would change every second, resulting in it repeatedly generating the same numbers while the seed was the same. The seed was based on the time of day in seconds, I've changed this to the time of day in milliseconds, which now fixes it. The other fix is the addition of more object checks in the Elevator Car code, which fixes a crash that was reported.

Changelog:

  1. Added some missing safety checks to objects in ElevatorCar class; objects need to be checked before dereferences
  2. Added object check in ShowColliders()
  3. ScriptProcessor: calculate random numbers with a random seed of millisecond time instead of second time, this fixes the random number generator in For loops
  4. SBS: have random activity use millsecond time seed, for better random number generation

See also[edit | edit source]

External links[edit | edit source]