06-11-2012, 11:49 PM
Hello all,
I've been pondering about the weather system in MCS for a few days now.
The current system of changing the weather isn't optimal for a few reasons:
As a matter of fact, a feature request was opened in the bug tracker and I could keep the discussion there, but I feel more people will read it here and possibly come with suggestions.
I've been reading the bukkit source (around line #1773) to figure out how they were doing it, but this only describes some of the logic that needs to be implemented.
I've seen a comment in the MCS source questioning whether each world should have its own thread, which seems like a reasonable start.
My current thoughts on improving the weather system are as follows:
1.
In this scenario with the current world implementation, all worlds would have the same weather.
Discuss
I've been pondering about the weather system in MCS for a few days now.
The current system of changing the weather isn't optimal for a few reasons:
- Causes strain on the server by checking weather every tick
- Is a little too random
- Almost guarantees a thunderstorm will happen
As a matter of fact, a feature request was opened in the bug tracker and I could keep the discussion there, but I feel more people will read it here and possibly come with suggestions.
I've been reading the bukkit source (around line #1773) to figure out how they were doing it, but this only describes some of the logic that needs to be implemented.
I've seen a comment in the MCS source questioning whether each world should have its own thread, which seems like a reasonable start.
My current thoughts on improving the weather system are as follows:
1.
- Implement an observable weather management class, which would run in its own thread.
- Make the world respond to the weather management.
In this scenario with the current world implementation, all worlds would have the same weather.
Discuss