Dynamic Weather and Traffic

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
patpatpowercat
Posts: 15
Joined: Tue Nov 19, 2019 11:51 am

Dynamic Weather and Traffic

Post by patpatpowercat »

Hello. I am trying to setup some dynamic weather/civilian traffic/nature, and having some trouble. I have used the scripts I found in Operation Brass Drum, modified and trimmed to work for what I was looking at. However, I cannot seem to get them to work at all. Anyone able to take a look and see what I am doing wrong?

Attachments
syria_game_setup.txt
(28.2 KiB) Downloaded 16 times
patpatpowercat
Posts: 15
Joined: Tue Nov 19, 2019 11:51 am

RE: Dynamic Weather and Traffic

Post by patpatpowercat »

This is the Init file. Sorry I can't figure out how to attach the .scen file. And I suppose this should be in the Lua Legion forum. Apologies.
Attachments
syria_lua_init.txt
(8.36 KiB) Downloaded 17 times
magi
Posts: 1533
Joined: Sat Feb 01, 2014 1:06 am

RE: Dynamic Weather and Traffic

Post by magi »

setting up civilian traffic/nature... you just give them missions... with weather you need lulu... and you will have to ask one of the eggheads...
patpatpowercat
Posts: 15
Joined: Tue Nov 19, 2019 11:51 am

RE: Dynamic Weather and Traffic

Post by patpatpowercat »

Anyone able to figure anything out of this? I have tried breaking the scripts down to as simple as I can figure them, but they don't seem to work
Whicker
Posts: 664
Joined: Tue Jun 19, 2018 9:54 pm

RE: Dynamic Weather and Traffic

Post by Whicker »

that is a complicated script, from what I can tell it only has to do with traffic - no weather.

If you can't get the traffic to appear, are there errors? have you tried just pasting that entire thing into the lua console?

Weather is most likely in another action? what type of weather randomness do you want?

To post a scen you need to zip it up - then you can upload it.
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Dynamic Weather and Traffic

Post by Rory Noonan »

First guess is that you're only using the Game_setup script, You'll need to use the LuaInit script too or at least grab the relevant functions from it. If you can put your scen file and any relevant scripts into a zip and upload it I'll take a look for you.
Image
patpatpowercat
Posts: 15
Joined: Tue Nov 19, 2019 11:51 am

RE: Dynamic Weather and Traffic

Post by patpatpowercat »

Thanks I'll try and zip the scene file when I get home from work. I thought I had it set up correctly, but that was also my guess that the LuaInit isn't working for some reason. Thanks so much for the help!
patpatpowercat
Posts: 15
Joined: Tue Nov 19, 2019 11:51 am

RE: Dynamic Weather and Traffic

Post by patpatpowercat »

Ok, that should be the zipped scen file. I thought I set it up correctly; the LuaInit runs on scenario loaded, and 5 seconds later the game_setup runs.

Again, all help is much appreciated.
Attachments
SyrianCivilWar1.zip
(1.65 MiB) Downloaded 17 times
Post Reply

Return to “Mods and Scenarios”