SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 07/10/2010, 08:46 PM   #1
Mauzen
Godfather
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,098
Reputation: 1522
Default MWeather - Improved and unique weather functions - Including weather zones and Real World Weather

Hi guys,
Im back with a - for me - unusual script. MWeather.
I got the idea of making this just a few days ago, from a post of a user in the forum here.

The major feature of the include is to get the real world's weather at any position and to set it on SAMP servers. This is done by samps HTTP function, a tiny php script on my webspace, and a weather website.
(Means: You can set the weather on your server to the current real weather of e.g. the town you live in)

1. Alpha
This is just a alpha version at the moment. It should already work without critical bugs. But besides further testing, I am releasing it at this moment, to get some feedback. I am planning to add some more features and improve the existing ones, but before doing this, i want to know, if there are some people being interested in the script. Else i would just waste my time, if I work on it and no one uses it
So tell me what you think, you can also post any further suggestions you have (from other weather types for real weather states to completely new features you would like to have. Feel free to suggest everything that has something to do with weather)

2. Installation
Copy the pastebin code, create an empty file with pawno or any other editor and paste the code. Then save the file as 'MWeather.inc' in your pawno/include/ folder.
Add #include <MWeather>
to the other includes of your gamemode, and put
MWeather_OnGameModeInit();
somewhere in your OnGameModeInit

Done! You can now use all the functions MWeather provides.

3. Functions
I had two major features in mind when I started creating the script: Getting the real weather in samp, and creating moveable weather zones. Both are working in the alpha version.
I wont explain all the functions here in the forum, becuase it looks ugly with all the text.
So I created a wiki page, that i will update with future versions of the include.

http://wiki.sa-mp.com/wiki/Mweather

It might be a bit hard to understand at first, because my weather/observer system can be quite confusing, so also feel free to ask questions about how to use this


4. ToDo
As mentioned before, if there are enough people liking this, I will go on with the developement, as I do with all my scripts.
Some of the things I plan to do in the next time: (If you send some suggestions, they might get on the list, too)
(1: low priority, 10: highest priority)

- (4) Optimize the weather ids for the specific real weather states: Some weathers do not fit really well atm.
- (5) Improve zone movement: The movement speed is just a temporary solution, because it is not m/s atm
- (7) Fix zone-in-zone behaviour: If there are two or more zones crossing, the weather is buggy.
- (1) Optimize the code: It is alpha code, very inefficient and untidy. Makes no sense to clean this before planned thigns are added

5. Other infos
My default (c):
You are allowed to use this include in your script.
You are allowed to change the code for private use.
You are not allowed to re-release this script without my permission

If you use this include, it would be nice to give me some credits
in any way. But you do not have to, because I cannot check it
anyways.

6. Files
Pastebin alpha #2
Filter PHP script


Have fun and dont forget to leave some feedback or feature suggestions!

PS: Yes, i love to edit my posts thousands of times

Last edited by Mauzen; 16/12/2011 at 08:21 PM. Reason: Updated PHP link, added PHP script download
Mauzen is offline   Reply With Quote
Old 07/10/2010, 09:37 PM   #2
[L3th4l]
Guest
 
Posts: n/a
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

Looks nice, GJ!
  Reply With Quote
Old 07/10/2010, 09:41 PM   #3
WillyP
High-roller
 
WillyP's Avatar
 
Join Date: Jul 2010
Location: Durham, England
Posts: 2,215
Reputation: 63
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

very good!
__________________
new project coming soon, as of 1/11/15
WillyP is offline   Reply With Quote
Old 07/10/2010, 11:02 PM   #4
Grim_
High-roller
 
Grim_'s Avatar
 
Join Date: Sep 2008
Posts: 3,240
Reputation: 69
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

Nice job, very unique.

However it's not needed to create a WIKI page, since if every script creator did that, the wiki would be flooded. Also because the code on these forums looks good enough.
Grim_ is offline   Reply With Quote
Old 08/10/2010, 09:59 PM   #5
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 653
Reputation: 41
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

A weather system that actually finds weather in a location!
__________________
Chaprnks is offline   Reply With Quote
Old 10/10/2010, 12:46 PM   #6
Mauzen
Godfather
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 5,098
Reputation: 1522
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

Thanks for the comments
But unfortunately it seems as there is not much interest for such functions. So i think I will go back to my gm instead of improving this.

@Grim: Maybe you are right, but the wiki is open, and for scripting stuff, so why not add functions of other includes to it? If all name them correctly, there will be no problems with too many pages or wrong search results
Mauzen is offline   Reply With Quote
Old 10/10/2010, 03:09 PM   #7
deskect
Little Clucker
 
Join Date: Jul 2010
Posts: 7
Reputation: 0
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

amazing, please continue working on it!, its very useful for roleplay servers
deskect is offline   Reply With Quote
Old 03/11/2010, 05:55 AM   #8
oliver12
Big Clucker
 
Join Date: Aug 2010
Posts: 103
Reputation: 0
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

Plz finish it! I really like it.
i test it soon.
oliver12 is offline   Reply With Quote
Old 03/11/2010, 04:53 PM   #9
Lookin
Gangsta
 
Lookin's Avatar
 
Join Date: May 2010
Location: Wai O Taiki Bay, Aotearoa
Posts: 639
Reputation: 14
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

wow this beats fine by far and yours aint even finished great job dude
__________________

Now Recruiting! Go to http://www.pgclan.org/





Lookin is offline   Reply With Quote
Old 15/11/2010, 02:56 PM   #10
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,158
Reputation: 685
Default Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ

Quote:
Originally Posted by Mauzen View Post
But unfortunately it seems as there is not much interest for such functions. So i think I will go back to my gm instead of improving this.
I don't think people realize how much of an awesome system this is. Please DO improve it!
RealCop228 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Real world weather help Bloodbutt Help Archive 5 04/10/2010 02:06 PM
Need Help With Weather LegendNissanGTR Help Archive 11 30/09/2010 01:20 PM
Weather AndriusZ* Help Archive 6 28/08/2010 12:12 PM
uniQue Production | Weather Dialogue iRemix Filterscripts 11 16/02/2010 10:29 AM
[HELP]Real Time and Real Weather djejsy Help Archive 0 21/12/2009 02:51 PM


All times are GMT. The time now is 07:47 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.