Posted at 09-05-17, 04:57 pm Link | #
Aya

Posts: 1
Joined: 08-27-17
Last post: 2634 days
Last view: 2524 days
I spoke to a contact here are some notes below on the Weather system:

"the weather values aren't taken from those files themselves, but they're plugged into a random number generator within the client itself. The generator is unfortunately buried within the core coding, so there's no way of getting the original code segment. It takes each of the lines within the xml file and uses them as weights to determine the likelihood of a particular event (sunny, cloudy, rain, thunderstorm). Each line is used for one real-time week for 53 weeks total, before the pattern resets to the first week. Each iteration of the number generator spits out a float number between 0 and 2, which is then run against the probabilities from the xml file (I can't remember exactly how), and then the final result is used to determine what weather ends up being for that 20 minute span."

==2.0 Thunderstorm
>=1.95 Rain (amount of rain on a scale of 0-20 is determined by: (result - 1.949900031089783F) * 20)
>=1.0 Cloudy
<1.0 Sunny

Each region's pattern has a total of 26,712 values (1 for each 20 minute slot for 53 real-time weeks)

Any thoughts or comments?

Weather is not client side, however I would not be surprised if it is weighted random.

I see,
That does present a lot of issues. Are the issues also present similarly with the guild menu's and options?
No, the guild system is complete and functional.

Given there's a seed, it's possible the PRG is implemented using a linear congruential generator. In which case, it would be trivial to determine the weather pattern if we had the actual algorithm (usually a recurrence relation). Maybe this is how it was done for live servers.
Terms

Powered by mabi.pro v1.0034-arisa (View credits)
MabiPro is not associated with Nexon Co., Ltd. in any way shape or form.