Raised This Month: $32 Target: $400
 8% 

Auto Weather [UPDATED 11/29/2014]


Post New Thread Reply   
 
Thread Tools Display Modes
cr0w
Senior Member
Join Date: Mar 2014
Location: middle east
Old 12-04-2014 , 09:56   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #351

Holy Mother of god :O

that's included Yahoo weather too

Quote:
public showinfo(id) {
set_hudmessage (0, 100, 255, 0.03, 0.60, 0, 4.0, 7.0, 1.0, 1.0, -1);
show_hudmessage(id, "Location: %s^nTemp: %dC^nCurr Condition: %s^nVisibility: %s^nHumidity: %d%s^nSunrise: %d:%d^nSunset: %d:%d",g_location,g_curr_temp,g_env_name[g_env],g_weather_name[g_weather],g_hum,"%",g_sunRise[0],g_sunRise[1],g_sunSet[0],g_sunSet[1]);
client_print(id, print_console, "Location: %s | Temp: %dC | Curr Condition: %s | Visibility: %s | Humidity: %d^% | Sunrise: %d:%d | Sunset: %d:%d",g_location,g_curr_temp,g_env_name[g_env],g_weather_name[g_weather],g_hum,g_sunRise[0],g_sunRise[1],g_sunSet[0],g_sunSet[1]);
}
__________________
the city is no fun
there is no sun
and its so dark
cr0w is offline
Send a message via Yahoo to cr0w Send a message via Skype™ to cr0w
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 12-06-2014 , 13:33   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #352

fix yahoo compile errors
Attached Files
File Type: sma Get Plugin or Get Source (weather_yahoo_fix.sma - 538 views - 13.0 KB)
__________________

Working on:
nothing
schmurgel1983 is offline
juanjotoronja
Member
Join Date: Mar 2014
Old 04-10-2015 , 15:23   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #353

Hi excellent plugin... but it gives me some bad infos:

Temp: 0C
Curr Condition: > not showing
Visivility: wrong info > this should be showing at Curr Condition
Sunrise: 19:12 > Time zone error should be 07:12

Also i've taked a screenshot of the game at 4 pm and the game is currently as night
Attached Images
File Type: jpg screenshot.jpg (95.1 KB, 256 views)
juanjotoronja is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 04-11-2015 , 02:01   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #354

Sunrise: 19:12 > Time zone error should be 07:12

19:12 is the same number as 7:12 just in military Time.
The only thing I would think is wrong is that it probably should say sunset and not sunrise.

To read time like that you subtract 12 from anything bigger than the number 12
Example

13:00 - 12:00 = 1:00
14:00 - 12:00 = 2:00
15:00 - 12:00 = 3:00
16:00 - 12:00 = 4:00
And SO ON

12-hour 24-hour
12:00 (Midnight) 0:00(beginning of the day)
or
24:00 (end of day)
12:01 AM 0:01
1:00 AM 1:00
2:00 AM 2:00
3:00 AM 3:00
4:00 AM 4:00
5:00 AM 5:00
6:00 AM 6:00
7:00 AM 7:00
8:00 AM 8:00
9:00 AM 9:00
10:00 AM 10:00
11:00 AM 11:00
12:00 (Noon) 12:00
12:01 PM 12:01
1:00 PM 13:00
2:00 PM 14:00
3:00 PM 15:00
4:00 PM 16:00
5:00 PM 17:00
6:00 PM 18:00
7:00 PM 19:00
8:00 PM 20:00
9:00 PM 21:00
10:00 PM 22:00
11:00 PM 23:00
__________________


Last edited by deadman909; 04-11-2015 at 02:06.
deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 04-11-2015 , 04:42   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #355

There is another plugin having a weird name, can't remember its name, try searching for this (uncertain) keyword in plugins titles: *ance.
__________________
ANTICHRISTUS is offline
juanjotoronja
Member
Join Date: Mar 2014
Old 04-11-2015 , 06:35   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #356

Quote:
Originally Posted by juanjotoronja View Post
Hi excellent plugin... but it gives me some bad infos:

Temp: 0C
Curr Condition: > not showing
Visivility: wrong info > this should be showing at Curr Condition
Sunrise: 19:12 > Time zone error should be 07:12

Also i've taked a screenshot of the game at 4 pm and the game is currently as night
Is there anyone else who experienced this kind of bug?
juanjotoronja is offline
ZEDD_Intensity
Senior Member
Join Date: Jun 2016
Old 11-18-2017 , 01:18   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #357

Greetings,

I'm insanely interested in using this plugin but,

At map changes or server restarts or any kinda server reload, the server basically crashes for about 2-5 minutes and loads the map then. I'm not really sure why there is a tremendous amount of delay in Between map changes.
I'm totally not sure if Server hardware could be a problem as it seems fine for a server running 2 Virtual CPU Cores with 2 Gigs of memory.

No error logs were created, and even after quite a while, the server loads up in a map that was chosen before, so it can't be called a "crash" technically.

Any help is largely appreciated.

Regards,
ZEDD
ZEDD_Intensity is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-23-2017 , 00:35   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #358

I was fond of it too when I encountered it searching for something else. It was broken then. I had to make new plugin altogether from it's essence and eliminate the Y38K bug as well this year. https://forums.alliedmods.net/showthread.php?t=245120 Credit is given to this work of course. I would have never dreamt of making such a thing let alone regenerating it my way. Ted could use a hand and I am sure he would love a more original work if anybody is interested. I am most interested in making mine modular with more cause and effect from weather feed if continued. For instance high wind enable one of the distance limiter and ricochet plug-ins already made here to use other's work wisely and save time. Tornado enable the teleport plugin and so on. Leave a platform savvy admins can configure to no end the conditions if wanted.
DJEarthQuake is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-23-2017 , 12:55   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #359

Quote:
Originally Posted by ZEDD_Intensity View Post
Greetings,

I'm insanely interested in using this plugin but,

At map changes or server restarts or any kinda server reload, the server basically crashes for about 2-5 minutes and loads the map then. I'm not really sure why there is a tremendous amount of delay in Between map changes.
I'm totally not sure if Server hardware could be a problem as it seems fine for a server running 2 Virtual CPU Cores with 2 Gigs of memory.

No error logs were created, and even after quite a while, the server loads up in a map that was chosen before, so it can't be called a "crash" technically.

Any help is largely appreciated.

Regards,
ZEDD
Should be something in plugin_init, I checked this plugin and I dont know if this is the reason
PHP Code:
    get_weather();
    
daylight(); 
Try to set your own Weather without getting it from web, if the problem is resolved then you are sure it's from one of these 2 functions, if the problem persists I have no idea.
TheWhitesmith is offline
ZEDD_Intensity
Senior Member
Join Date: Jun 2016
Old 11-23-2017 , 14:25   Re: Auto Weather [UPDATED 11/29/2014]
Reply With Quote #360

Quote:
Originally Posted by TheWhitesmith View Post
Should be something in plugin_init, I checked this plugin and I dont know if this is the reason
PHP Code:
    get_weather();
    
daylight(); 
Try to set your own Weather without getting it from web, if the problem is resolved then you are sure it's from one of these 2 functions, if the problem persists I have no idea.
Hey,

Yep, sounds legit. I'll give it a try with a bit of editing later. Currently, this seems like a nice temporary solution.

Quote:
Originally Posted by DJEarthQuake View Post
I was fond of it too when I encountered it searching for something else. It was broken then. I had to make new plugin altogether from it's essence and eliminate the Y38K bug as well this year. https://forums.alliedmods.net/showthread.php?t=245120 Credit is given to this work of course. I would have never dreamt of making such a thing let alone regenerating it my way. Ted could use a hand and I am sure he would love a more original work if anybody is interested. I am most interested in making mine modular with more cause and effect from weather feed if continued. For instance high wind enable one of the distance limiter and ricochet plug-ins already made here to use other's work wisely and save time. Tornado enable the teleport plugin and so on. Leave a platform savvy admins can configure to no end the conditions if wanted.
And those graphics/FX look cool DJEarthQuake, Pretty nice concept right there. I'll be testing it within quite a while as of now, a nice weather plugin is all I'm looking for.

Thanks again!
ZEDD
ZEDD_Intensity is offline
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

Forum Jump


All times are GMT -4. The time now is 19:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode