I know its a common topic, but I still cant get a real snowstorm to work. I mean I select some things in transition and there are snowstorms in my map, but pioneers cant build fires and my infantry does not freeze.
What am I missing?! I just started to make maps a week ago and I was a real noob, (still am), so please be nice
makka
Snowstorm
5 Dec 2014, 18:09 PM
#1
Posts: 5
5 Dec 2014, 18:12 PM
#2
6 Dec 2014, 13:37 PM
#3
Posts: 5
Thx alot for that hint.
I now extracted the files from data.csga, Put the don_river... in the world builders scenario -> atmosphere properties. I saved the following to the Irsch"_ID.scar file and it still doesnt work:
-------------------------------------------------------------------------
-------------------------------------------------------------------------
import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")
-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------
function OnInit()
MP_BlizzardInit("data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01.aps", nil, nil, true, nil)
end
function OnInitID()
--Population cap override value
g_popCapOverRide = 300
for i = 1, World_GetPlayerCount() do
local player = World_GetPlayerAt(i)
Player_SetPopCapOverride(player, g_popCapOverRide)
end
-- [[ Markers ]]
-- [[ Squad Groups ]]
-- [[ Entity Groups ]]
end
It loads the atmosphere, but it doesnt sent blizzards, nor do the pioneers have the ability to build campfires.
I know there has to be a mistake somewhere but I really dont find it... Help, please?! I would really love to get this to work...
I now extracted the files from data.csga, Put the don_river... in the world builders scenario -> atmosphere properties. I saved the following to the Irsch"_ID.scar file and it still doesnt work:
-------------------------------------------------------------------------
-------------------------------------------------------------------------
import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")
-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------
function OnInit()
MP_BlizzardInit("data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01.aps", nil, nil, true, nil)
end
function OnInitID()
--Population cap override value
g_popCapOverRide = 300
for i = 1, World_GetPlayerCount() do
local player = World_GetPlayerAt(i)
Player_SetPopCapOverride(player, g_popCapOverRide)
end
-- [[ Markers ]]
-- [[ Squad Groups ]]
-- [[ Entity Groups ]]
end
It loads the atmosphere, but it doesnt sent blizzards, nor do the pioneers have the ability to build campfires.
I know there has to be a mistake somewhere but I really dont find it... Help, please?! I would really love to get this to work...
6 Dec 2014, 15:04 PM
#4
Posts: 318
Use this code, and save it in in "mapname".scar (not "mapname_ID".scar), and if this file does not exist you have to manually create a new text-file and save it as "mapname".scar using the file-format "All Types(*.*)".
note: it can by default the first blizzard will hit between the 9-12 minute mark.
note: it can by default the first blizzard will hit between the 9-12 minute mark.
Code
-------------------------------------------------------------------------
-------------------------------------------------------------------------
import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")
-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------
function OnInit()
MP_BlizzardInit("data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01.aps", nil, nil, true, nil)
g_popCapOverRide = 300
for i = 1, World_GetPlayerCount() do
local player = World_GetPlayerAt(i)
Player_SetPopCapOverride(player, g_popCapOverRide)
end
end
Scar_AddInit(OnInit)
7 Dec 2014, 11:51 AM
#5
Posts: 5
Ah now I see why it didnt work. Thx. It works fine. If you are interessted. WinterinIrsch is the name of the map. Its online now.
Thx for your help
Thx for your help
17 Jun 2020, 07:01 AM
#6
Posts: 52
Use this code, and save it in in "mapname".scar (not "mapname_ID".scar), and if this file does not exist you have to manually create a new text-file and save it as "mapname".scar using the file-format "All Types(*.*)".
note: it can by default the first blizzard will hit between the 9-12 minute mark.
Code-------------------------------------------------------------------------
-------------------------------------------------------------------------
import("ScarUtil.scar")
import("Systems/BlizzardMulitplayer.scar")
-------------------------------------------------------------------------
-- [[ ONINIT ]]
-------------------------------------------------------------------------
function OnInit()
MP_BlizzardInit("data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01_blizzard.aps" ,"data:art/scenarios/presets/atmosphere/DLC/mp_don_river_01.aps", nil, nil, true, nil)
g_popCapOverRide = 300
for i = 1, World_GetPlayerCount() do
local player = World_GetPlayerAt(i)
Player_SetPopCapOverride(player, g_popCapOverRide)
end
end
Scar_AddInit(OnInit)
This doesn't work, my infantry dont freeze to death.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
26 | |||||
1 | |||||
20 | |||||
5 | |||||
4 | |||||
3 | |||||
2 | |||||
2 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.939410.696+5
- 4.35459.857-1
- 5.599234.719+7
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
11
Download
1265
Board Info
1121 users are online:
1121 guests
1 post in the last 24h
10 posts in the last week
27 posts in the last month
10 posts in the last week
27 posts in the last month
Registered members: 50004
Welcome our newest member, Abtik Services
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Abtik Services
Most online: 2043 users on 29 Oct 2023, 01:04 AM