This mod is actually pretty nice. I fumbled around with it and (having almost no know-how of lua) made it so it stopped spawning when the map loaded. Then I had another problem in that if I deleted the super storm it would spawn the screen with blue errors (all of them being an error with the "wall" ent).
After screwing around some more I fixed this by simply taking the tool gun and removing the wall that spawns. Put it on my server, and together with the simple weather mod, everyone's loving it.
Although I'd love for the complete one so the clouds stay in the back of the rest of the effects.
Good mod though.
This mod is actually pretty nice. I fumbled around with it and (having almost no know-how of lua) made it so it stopped spawning when the map loaded. Then I had another problem in that if I deleted the super storm it would spawn the screen with blue errors (all of them being an error with the "wall" ent).
After screwing around some more I fixed this by simply taking the tool gun and removing the wall that spawns. Put it on my server, and together with the simple weather mod, everyone's loving it.
Although I'd love for the complete one so the clouds stay in the back of the rest of the effects.
Good mod though.
Hey Axznma, please tell us how you removed it!
It keeps appearing at the beginning of the map and I don't want a fuckton of Storms each time I start my GMod...
[QUOTE=MelonGunner;15003639]Hey Axznma, please tell us how you removed it!
It keeps appearing at the beginning of the map and I don't want a fuckton of Storms each time I start my GMod...[/QUOTE]
Not entirely sure how I did it. Pretty sure i fixed it by switching some of the true values to false.
Yeah that helps alot. lol
Copy N paste this in the lua file in addons/Weather/lua/autorun/server
[lua]WeathMod = 1
Msg("\n========================================\n\tWeather Mod Installed\n========================================\n\n")
/*
util.PrecacheSound( "ambient/atmosphere/thunder3.wav" )
util.PrecacheSound( "ambient/atmosphere/thunder3.wav" )
util.PrecacheSound( "ambient/atmosphere/Thunder_02.mp3" )
util.PrecacheSound( "ambient/atmosphere/Thunder_03.mp3" )
util.PrecacheSound( "ambient/atmosphere/Thunder_04.mp3" )
util.PrecacheSound( "ambient/atmosphere/Thunder_05.mp3" )
util.PrecacheSound( "ambient/atmosphere/Thunder_06.mp3" )
util.PrecacheSound( "ambient/atmosphere/Thunder_07.mp3" )
util.PrecacheSound( "ambient/atmosphere/Thunder_08.mp3" )
util.PrecacheSound( "ambient/atmosphere/lightning_strike_01.mp3" )
util.PrecacheSound( "ambient/atmosphere/lightning_strike_01.mp3" )
util.PrecacheSound( "ambient/atmosphere/lightning_strike_01.mp3" )
*/
resource.AddFile( "ambient/atmosphere/Thunder_02.mp3" )
resource.AddFile( "ambient/atmosphere/Thunder_03.mp3" )
resource.AddFile( "ambient/atmosphere/Thunder_04.mp3" )
resource.AddFile( "ambient/atmosphere/Thunder_05.mp3" )
resource.AddFile( "ambient/atmosphere/Thunder_06.mp3" )
resource.AddFile( "ambient/atmosphere/Thunder_07.mp3" )
resource.AddFile( "ambient/atmosphere/Thunder_08.mp3" )
resource.AddFile( "ambient/atmosphere/lightning_strike_01.mp3" )
resource.AddFile( "ambient/atmosphere/lightning_strike_01.mp3" )
resource.AddFile( "ambient/atmosphere/lightning_strike_01.mp3" )
resource.AddFile( "materials/particle/128_VSmoke01B_A.vtf" )
resource.AddFile( "materials/particle/128_VSmoke01B_B.vtf" )
resource.AddFile( "materials/particle/128_VSmoke01B_C.vtf" )
resource.AddFile( "materials/particle/128_VSmoke01B_D.vtf" )
resource.AddFile( "materials/particle/128_VSmoke01B_E.vtf" )
resource.AddFile( "materials/entities/wm_lightning_killicon.vtf" )
resource.AddFile( "materials/entities/wm_tornado_killicon.vtf" )
resource.AddFile( "materials/particle/128_VSmoke01B_A.vmt" )
resource.AddFile( "materials/particle/128_VSmoke01B_B.vmt" )
resource.AddFile( "materials/particle/128_VSmoke01B_C.vmt" )
resource.AddFile( "materials/particle/128_VSmoke01B_D.vmt" )
resource.AddFile( "materials/particle/128_VSmoke01B_E.vmt" )
resource.AddFile( "materials/entities/wm_lightning_killicon.vmt" )
resource.AddFile( "materials/entities/wm_tornado_killicon.vmt" )
math.randomseed(os.time())
local Debugging = true
local MaxScale = 3
local particles = true
function WM_GetPart()
return particles
end
function WMD_SetPart(b)
particles = tobool(b)
end
function WM_GetMaxScale()
return MaxScale
end
function WMD_SetMaxScale(num)
MaxScale = num
end
local MaxTemp = 35
local MinTemp = 15
local MaxHum = 100
local MinHum = 25
--local Temperature = math.Rand(MinTemp,MaxTemp)
--local Humidity = math.Rand(MinHum,MaxHum)
local Temperature = 35
local Humidity = 100
local StormPower = ( ( ((Temperature/MaxTemp)*0.8) + ((Humidity/MaxHum)*0.2) ) / 1) * 100
local StormChance = (( (((Temperature/MaxTemp)^2.00)*0.25) + (((Humidity/MaxHum)^2.00)*0.75) )/1)^2 * 100
local ActiveStorm = true
--Required Storm Power
local Storm_Super = 75
local Storm_Thunder = 50
local Storm_Rain = 0
function WM_IsActiveStorm()
return ActiveStorm
end
function WM_OneSecond()
end
function WM_TenSecond()
WM_CalcConditions()
if math.random(0,100) <= StormChance then
WM_CreateStorm(Temperature, Humidity, StormChance)
if Debugging then
print("HERE COMES A STORM!")
end
end
end
function WM_ThirtySecond()
end
function WM_SixtySecond()
end
function WM_CalcConditions()
local MinMaxDiff_Temp = MaxTemp - MinTemp
local MinMaxDiff_Hum = MaxHum - MinHum
local CurMaxDiff_Temp = MaxTemp - Temperature
local CurMaxDiff_Hum = MaxHum - Humidity
local IncreaseTempChance = ((CurMaxDiff_Temp / MinMaxDiff_Temp)^0.7) * 100
local IncreaseHumChance = ((CurMaxDiff_Hum / MinMaxDiff_Hum)^0.5) * 100
if math.random(0,100) <= IncreaseTempChance then
if not (Temperature >= MaxTemp) then
Temperature = math.Clamp(Temperature + (math.Rand(1,6) * (IncreaseTempChance/100)),MinTemp, MaxTemp )
end
else --We're getting colder
Temperature = math.Clamp(Temperature + (math.Rand(-1,-4) * (IncreaseTempChance/100)),MinTemp, MaxTemp )
end
if math.random(0,100) <= IncreaseHumChance then
if not (Humidity >= MaxHum) then
Humidity = math.Clamp(Humidity + (math.Rand(5,25) * (IncreaseHumChance/100)),MinHum, MaxHum )
end
else --We're getting dryer
Humidity = math.Clamp(Humidity + (math.Rand(-5,-15) * (IncreaseHumChance/100)),MinHum, MaxHum )
end
StormChance = ( ((((Temperature/MaxTemp)^2)/1)*0.2) + ((((Humidity/MaxHum)^2)/1)*0.8) )^2 * 100
if Debugging then
print("Temperature: "..(math.Round(Temperature*100)/100).."'C\tHumidity: "..(math.Round(Humidity*100)/100).."%\tStormChance: "..(math.Round(StormChance*100)/100).."%")
end
end
timer.Create( "WM_OneSecond", 1, 0, WM_OneSecond )
timer.Create( "WM_TenSecond", 10, 0, WM_TenSecond )
timer.Create( "WM_ThirtySecond", 30, 0, WM_ThirtySecond )
timer.Create( "WM_SixtySecond", 60, 0, WM_SixtySecond )
/*---------------------------------------------------------
Figure out what kind of storm to spawn.
High Temperature = Lightning
High Humidity = Rain
Ect...
---------------------------------------------------------*/
function WM_CreateStorm()
if WM_IsActiveStorm() then return false end
StormPower = ( ( ((Temperature/MaxTemp)*0.75) + ((Humidity/MaxHum)*0.25) ) / 1) * 100
if StormPower > Storm_Super then --Super Storm >:)
local life = math.Rand(1, math.Clamp(StormPower - Storm_Super, 2, 6)) * 2
local TorChan = ((StormPower - Storm_Super) / (100 - Storm_Super))^0.6
print("Tornado Chance: "..(math.Round(TorChan*10000)/100).."%")
local rad = math.rad(math.Rand(0,360))
local radius = (math.Rand(0,4096))
local origin = radius * Vector(math.sin(rad), math.cos(rad), 0)
local e = ents.Create("wm_super_storm")
e:SetPos(Vector(0,0,5120-4250) + origin)
e:Spawn()
e:Activate()
e.TorChan = TorChan
ActiveStorm = true
end
if Debugging then
print("Storm Severity: "..(math.Round(StormPower*100)/100))
end
end
--Debugging version
function WMD_CreateStorm(T,H,F) -- F = true to stop it from spawning a stom and just print the values
StormPower = ( ( ((T/MaxTemp)*0.75) + ((H/MaxHum)*0.25) ) / 1) * 100
print("Storm Severity: "..(math.Round(StormPower*100)/100))
if F then return false end
if StormPower > Storm_Super then --Super Storm >:)
local rad = math.rad(math.Rand(0,360))
local radius = (math.Rand(0,8192))
local origin = radius * Vector(math.sin(rad), math.cos(rad), 0)
local e = ents.Create("wm_super_storm")
e:SetPos(Vector(0,0,5120-4250) + origin)
e:Spawn()
e:Activate()
ActiveStorm = true
end
end
function WMD_ModStorm(Th, Li)
local storms = ents.FindByClass("wm_super_storm")
for k,v in pairs(storms) do
v.ThunderChance = Th -- out of 1000 --250
v.LightningChance = Li -- out of 1000 --200
end
end
function WMD_KillStorm()
local a = ents.FindByClass("wm_super_storm")
for k,v in pairs(a) do
v:Remove()
end
a = ents.FindByClass("wm_wall")
for k,v in pairs(a) do
v:Remove()
end
a = ents.FindByClass("wm_tornado")
for k,v in pairs(a) do
v:Remove()
end
end
function WMD_ClearActive()
ActiveStorm = false
end
function WMD_SetTH(T,H)
Temperature = T
Humidity = H
end
[/lua]
Note: It still has errors, this just makes it so it stops spawning on startup. For myself and my server anyways.
You should change "Super Storm" to "Supercell Thunderstorm".
Though it won't help much with the script, it's the correct way to spell it.
[url]http://www.garrysmod.org/downloads/?a=view&id=68124[/url]
Here's a link.
WOOT! Thanks! I'm going to test it out.
EDIT: It's awesome! However feels limited in... features. As soon as you enter any map with this, the tornado process begins. I see that you can.. somehow spawn a tornado in the Entities tab.
But this is what I get after I spawn a Wall Cloud, and it's trying to do something;
entities/wm_wall/init.lua:105: attempt to perform arithmetic on field 'TorVel' (a nil value)
It also shows;
entities/wm_wall/init.lua:119: attempt to index field 'storm' (a nil value)
This thing also causes major jerky gameplay when it drops.
[QUOTE=Benie;15013889]WOOT! Thanks! I'm going to test it out.
EDIT: It's awesome! However feels limited in... features. As soon as you enter any map with this, the tornado process begins. I see that you can.. somehow spawn a tornado in the Entities tab.
But this is what I get after I spawn a Wall Cloud, and it's trying to do something;
entities/wm_wall/init.lua:105: attempt to perform arithmetic on field 'TorVel' (a nil value)
It also shows;
entities/wm_wall/init.lua:119: attempt to index field 'storm' (a nil value)
This thing also causes major jerky gameplay when it drops.[/QUOTE]
Use it with the simple weather mod. That's what I do on my server. Adds a little bit more to it.
I love making movies with this thing i have like made 13 so far and i love the mod just i cant really use it with other stuff or it crashes
[QUOTE=Axznma;15015793]Use it with the simple weather mod. That's what I do on my server. Adds a little bit more to it.[/QUOTE]
I think im going to join your server to day and hey can you add me to your friends? My name is chikenlittle and if that doesnt work try putting a space like chiken little and if that doesnt work then
-=AOU=-Rtc. CaptainMitchell see if that works. But ya i would like to try your server out. Ive tried like 5 times but i was to scared to get baned lol. But ya the mod is great and im loving it with my movies so GREAT WORK GUYS!
It just seems way too buggy right now. If I remove the entities with the undo key, I get Null errors.
One time Gmod freezed my system when I was trying to remove two tornadoes next to eachother.
This is the kind of addon you would wanna use for comics or fun, but sparingly. Because it tanks my FPS too much, and can cause crashing/freezing.
I hope the fixed version is released soon, I really want to play with this thing.
[QUOTE=Captain Zeke;15015854]I think im going to join your server to day and hey can you add me to your friends? My name is chikenlittle and if that doesnt work try putting a space like chiken little and if that doesnt work then
-=AOU=-Rtc. CaptainMitchell see if that works. But ya i would like to try your server out. Ive tried like 5 times but i was to scared to get baned lol. But ya the mod is great and im loving it with my movies so GREAT WORK GUYS![/QUOTE]
Added you.
Server is currently going through a phase (as alltalk is broken and stays on) of lack luster RP.
Our groups 3 main RP'ers are being hindered from any real RP since the 3rd member is grounded for a few months and is not in a Gmod mood, so it's just myself and my other friend trying (and try we do...) to shift through the waves of idiots that seem to flock to the server, to find a person suited for the server. Only one has been found so far :( .
As for banning, I've been pretty lenient. Only about 20 or so names on the ban list so far (considering the last time I had the server the list reached the triple digits heh).
I wouldn't worry about being banned (unless you know your a shit RP'er) too much.
[QUOTE=Commander Kid;14647528]Sry I don't have a youtube account (OMG) but I'll take screenshots and post them (do I need to launch them on a website?). Also do you have any version of wiremod?[/QUOTE]
Just sign up, make a username, password, blah, blah, blah, (rather not explain) and youre done
[quote=robbis_1;14625694]fixed link: [url]http://www.garrysmod.org/downloads/?a=view&id=66663[/url][/quote]
file not found!
Hey axznma, Im trying to do that thing you said to do to get rid of the storm on startup but i really dont get it.
[QUOTE=Captain Zeke;15244359]Hey axznma, Im trying to do that thing you said to do to get rid of the storm on startup but i really dont get it.[/QUOTE]
You know I added you on steam lol you can talk to me there you know :D.
And what thing are you referring too exactly?
EDIT: You mean the lua crap I posted? I already said where to copy an paste it. Results may vary hehe.
lol ya i know were to paste it now i just need to get a program that will open lua files
[QUOTE=Captain Zeke;15257855]lol ya i know were to paste it now i just need to get a program that will open lua files[/QUOTE]
O_o, use notepad.
Better yet get notepad++ if your going to do some serious editing.
Can anyone get a link to weather mod for me?I dont care if the version is old,its a great mod.
[QUOTE=Axznma;15265077]O_o, use notepad.
Better yet get notepad++ if your going to do some serious editing.[/QUOTE]
IT WORKS NO MORE WEATHER MOD ON STARTUP OH MY GOD THANK YOU! But just to let people know i still LOVE the mod lol
Glad you got it to work.
The previous links are old. plz upload again or upload it to filefront.
btw: it looks awesome
also axznma whats the name of ur server.
Nothing, I took it down, too many problems and I was done spending endless nights fixing it.
Plus no one was on anyways, they all got grounded expect myself and one other friend. I'm also getting a new computer in July, so maybe I will put it back up then.
Were mostly going between MMO's, RTS's, Gmod, an L4D lol.
I've put off doing anything else untill I buy the computer, after that I will probably put it back up as I also plan on updating my internet (no more 30kb upload...jesus that was a pain for PHX).
kthx for response,
btw zup where is your svn i want to test it and mebeh i can fix the particle problem
playerview -> bolts -> tornado -> wallcloud -> stormcloud
File not found
-snip-
[QUOTE=se7enman;15454285]Add link for weathermod to somewhere other than gmod.org! I want to use it. The weathermod that was on gmod.org is a F-A-K-E.[/QUOTE]
No it is not a fake. The Weather mod i uploaded is in full working condition. You probly dont have wire SVN. So unless you have that dont say anything.
ALso zup i uploaded the old version of the mod to garrys mod.org but i gave you all the credits. I know you dont need it but here it is [url]http://www.garrysmod.org/downloads/?a=view&id=70027[/url]
[QUOTE=Captain Zeke;15455608]No it is not a fake. The Weather mod i uploaded is in full working condition. You probly dont have wire SVN. So unless you have that dont say anything.
ALso zup i uploaded the old version of the mod to garrys mod.org but i gave you all the credits. I know you dont need it but here it is [url]http://www.garrysmod.org/downloads/?a=view&id=70027[/url][/quote] I dont see tornado and other severe stuff in entities tab. Also, "AddonInfo"
{
"name" "Simple Weather Mod'
"version" "1"
"up_date" "N/A"
"author_name" "Catdaemon and Kill coDer"
"author_email" ""
"author_url" "www.juicedpc.com.au"
"info" "Simple weather mod for GMod"
}
LOL.
He uploaded the wrong weather mod, he uploaded the one that uses color mod to make maps darker along with rain.
[editline]12:22AM[/editline]
I [b]had[/b] uploaded the real Weather mod, but some jackass reported it.
Sorry, you need to Log In to post a reply to this thread.