Login
User Name:

Password:



Register

Forgot your password?
 Smaug muds with a Player Base
Jul 10, 2025 2:21 am
By TomBrooks
Overland with Bitmaps
Jul 4, 2025 11:57 pm
By Samson
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, AhrefsBot, Meta, Remcon

Members: 1
Guests: 12
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,726
597
WallaceCav

Files
Upload Rules | File Index | Search | Recent Uploads
» Root » SmaugFUSS » Smaug Snippets
Weather Snippet
Author Submitted by Version D/L File Size Date Added Last Updated

Kayle InfiniteAxis 794 41.76 KB Jan 26, 2008 Mar 10, 2010

Description
[Edit by Samson: Be aware that right now this code is only compatible with the use of g++ as the compiler.]

When I undertook this project, I figured it would be something real simple, like adding a few things
here and there to the existing weather code. I was very, very, very wrong. No offense to Fireblade,
but that system was seriously lacking in a lot of places. There are a lot of things addressed in this
system, and while it's tedious as hell to install, I will admit, I think most people will find the
Pros, far outweigh the Cons.

PROS
# Real seasons calculated from the calendar settings.
# Climate regions which impact other climate regions nearby.
# Sensible weather events based on season. No snowstorms in summer. No scorching heatwaves in winter.
Stuff like that. -This one is actually a little bit touchy. It will depend entirely on which hemisphere the cell is assigned to as to which will occur in which season.
# Terrain changes based on season. ex: lakes which freeze in winter, and that sort of thing.
# Settable number of hours in a day, days in a month, and months in a year.
# Holidays which can be created and set to the desired date.
# Allows for Weather to persist over reboots/shutdowns/hotboots.
# Allow for full influence over all surrounding cells, and surrounding cells influence cell.
# Dynamic messages that will notify players of changes in weather for example:
"The pouring rain lessens a bit and changes over to a steady snow."
# Easily inegrate weather into other systems via the use or prewritten interaction functions. These functions
are used to prevent corruption of the map, and to emulate encapsulation.

CONS
# Tedious Installation and initial setup.
# Control Weather still a cheesy spell, just modified to fit the new implementation. Hopefully
I'll be capable of writing a better version of control weather for a later, updated release.


Update 1 - Fixed problem with installation instructions where it was left out that several blocks of code should have been removed.
Update 2 - Fixed problem with weather messages displaying where they shouldn't be.
Update 3 - Fixed issue with showweather command.
Update 4 - Fixed issue with cells having multiple climates, weather command working indoors, and misuse of a macro.

Revisions: 4
Rating: | Download | Comments(0)