<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://meet.konsthol.eu/w/index.php?action=history&amp;feed=atom&amp;title=Weather</id>
	<title>Weather - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://meet.konsthol.eu/w/index.php?action=history&amp;feed=atom&amp;title=Weather"/>
	<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Weather&amp;action=history"/>
	<updated>2026-06-11T05:38:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=135380&amp;oldid=prev</id>
		<title>imported&gt;Kiheru: Started a write-up about weather</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=135380&amp;oldid=prev"/>
		<updated>2015-05-03T20:30:28Z</updated>

		<summary type="html">&lt;p&gt;Started a write-up about weather&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:30, 3 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kiheru</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=111563&amp;oldid=prev</id>
		<title>imported&gt;Kiheru: Started a write-up about weather</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=111563&amp;oldid=prev"/>
		<updated>2015-05-03T20:30:28Z</updated>

		<summary type="html">&lt;p&gt;Started a write-up about weather&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:30, 3 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kiheru</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=75961&amp;oldid=prev</id>
		<title>imported&gt;Kiheru: Started a write-up about weather</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=75961&amp;oldid=prev"/>
		<updated>2015-05-03T20:30:28Z</updated>

		<summary type="html">&lt;p&gt;Started a write-up about weather&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:30, 3 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kiheru</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=52939&amp;oldid=prev</id>
		<title>imported&gt;Kiheru: Started a write-up about weather</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=52939&amp;oldid=prev"/>
		<updated>2015-05-03T20:30:28Z</updated>

		<summary type="html">&lt;p&gt;Started a write-up about weather&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:30, 3 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kiheru</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=34769&amp;oldid=prev</id>
		<title>imported&gt;Kiheru: Started a write-up about weather</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=34769&amp;oldid=prev"/>
		<updated>2015-05-03T20:30:28Z</updated>

		<summary type="html">&lt;p&gt;Started a write-up about weather&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:30, 3 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Kiheru</name></author>
	</entry>
	<entry>
		<id>https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=16763&amp;oldid=prev</id>
		<title>imported&gt;Kiheru: Started a write-up about weather</title>
		<link rel="alternate" type="text/html" href="https://meet.konsthol.eu/w/index.php?title=Weather&amp;diff=16763&amp;oldid=prev"/>
		<updated>2015-05-03T20:30:28Z</updated>

		<summary type="html">&lt;p&gt;Started a write-up about weather&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Design considerations =&lt;br /&gt;
&lt;br /&gt;
To goal was to have varying weather conditions that bring more variety to the game world. The system is not meant to be a realistic weather system, but it should not be obviously fake either. &lt;br /&gt;
As such:&lt;br /&gt;
&lt;br /&gt;
* Neighbouring zones should have either the same weather conditions, or they must not differ much.&lt;br /&gt;
* It should be possible to specify local conditions for zones, so that a zone can be more rainy than normal, for example.&lt;br /&gt;
* Weather changes should be gradual, so that a change from sunny to heavy rain should go through lighter rain states.&lt;br /&gt;
* The weather should follow the time of the year, so that for example it can snow during the winter, but not during summer.&lt;br /&gt;
* Zones should be able to specify a constant weather for special occasions. This was used to make snowfall for the Semos area during Christmas 2014 (That part of the weather system was completed first. And the request to have snowfall for Christmas was the inspiration for adding the weather system).&lt;br /&gt;
&lt;br /&gt;
The first condition was most easily met by making the weather conditions same for all outsize zones. The second feature was implemented as local adjustments to the otherwise global weather. To keep the changes between zones small, the adjustments must not differ much from the neighbouring zones. &lt;br /&gt;
&lt;br /&gt;
There&amp;#039;s one existing exception to small adjustments rule: the Amazon area is significantly more rainy and warm than anything else in the game world. This can be done without problems, as there is no land road to the area - players must reach the island through a tunnel, or by using teleportation. So there is no obvious drastic change in weather type, when just walking from one outside map to another. An observant player can still notice that the island uses the same weather system as the rest of the game world - it &amp;#039;&amp;#039;always&amp;#039;&amp;#039; rains at Amazon, if it rains or snows elsewhere - the converse is not necessarily true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Client side =&lt;br /&gt;
&lt;br /&gt;
The client draws the map layers using [https://sourceforge.net/p/arianne/stendhal/ci/master/tree/src/games/stendhal/client/LayerRenderer.java LayerRenderers.] The weather is drawn as another layer above the normal map layers. For that purpose [https://sourceforge.net/p/arianne/stendhal/ci/master/tree/src/games/stendhal/client/WeatherLayerRenderer.java a new LayerRenderer implementation] was added. The normal tile renderer was deemed inadequate for the task, as the small tile size would make the weather too obviously tiled. &amp;lt;code&amp;gt;WeatherLayerRenderer&amp;lt;/code&amp;gt; is capable of using arbitrary sized square tiles, and can animate them if they have a specified [https://sourceforge.net/p/arianne/stendhal/ci/master/tree/tiled/tileset/animation.seq animation sequence.]&lt;br /&gt;
&lt;br /&gt;
The data the client has about the weather, is just a weather state name. The client will look up an image by the weather state name to be used for the weather in &amp;lt;code&amp;gt;data/sprites/weather/&amp;lt;/code&amp;gt; and if found, create a &amp;lt;code&amp;gt;WeatherLayerRenderer&amp;lt;/code&amp;gt; from that. Additionally, the client tries to look up a sound by the same name in &amp;lt;code&amp;gt;data/sounds/weather/&amp;lt;/code&amp;gt;, and if one is found, keep playing it until the weather state changes. In other words, the client does not interpret the weather in any way, it just tries to draw and play whatever the server tells it to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Communication between the server and the client =&lt;br /&gt;
&lt;br /&gt;
Weather state is included in the [https://sourceforge.net/p/arianne/stendhal/ci/master/tree/src/games/stendhal/server/core/engine/ZoneAttributes.java data layer]of the zone. So when a player enters a zone, the weather data is immediately available. Weather changes are communicated as &amp;quot;fake&amp;quot; zone changes. That is, the server requests transferring zone data, despite the player has not changed zone. The client caches the normal layers, so only the data layer needs to be transferred. This is the same mechanism as is used by the daylight changes, and actually some of the code used by the [https://sourceforge.net/p/arianne/stendhal/ci/master/tree/src/games/stendhal/server/core/rp/DaylightUpdater.java daylight updater] was moved to [https://sourceforge.net/p/arianne/stendhal/ci/master/tree/src/games/stendhal/server/core/engine/StendhalRPZone.java zone,]now that there&amp;#039;s more than one user for it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Server side =&lt;br /&gt;
== Configuration ==&lt;br /&gt;
== Weather updater ==&lt;br /&gt;
=== Weather attributes ===&lt;br /&gt;
=== Interpreting the attributes ===&lt;br /&gt;
=== Weather entity and thunder ===&lt;br /&gt;
= Testing =&lt;br /&gt;
Pretty pictures&lt;/div&gt;</summary>
		<author><name>imported&gt;Kiheru</name></author>
	</entry>
</feed>