Page 1 of 1

Dynamic Weather and Traffic

Posted: Tue Jan 07, 2020 4:43 am
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?


RE: Dynamic Weather and Traffic

Posted: Tue Jan 07, 2020 4:47 am
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.

RE: Dynamic Weather and Traffic

Posted: Tue Jan 07, 2020 6:56 pm
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...

RE: Dynamic Weather and Traffic

Posted: Sun Jan 12, 2020 11:36 pm
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

RE: Dynamic Weather and Traffic

Posted: Mon Jan 13, 2020 12:53 am
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.

RE: Dynamic Weather and Traffic

Posted: Mon Jan 13, 2020 3:33 am
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.

RE: Dynamic Weather and Traffic

Posted: Mon Jan 13, 2020 9:09 pm
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!

RE: Dynamic Weather and Traffic

Posted: Fri Jan 17, 2020 7:55 pm
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.