Since mod version 1.21 (old gen) and 2.01 (next gen) I've added a new script file to my local folder. This is where you are going to be adding the weather name of your lighting mod of choice to work with my mod. Check the description spoiler to see how.
I hope this will allow even players who can't write scripts to change it as they please, since now it's a simple short line to copy paste and edit. You'll still need to get your weather codes though.
The Storm weather codes/IDs from Realistic Weather required to add to the script file of the New Lightning Effect to make the two mods work together, are the following:
I'll leave this here, since I've been getting countless comments about this error:
Error [modnewlightningeffect]local\lightnings.ws(8): 'vLight' is not a member of 'handle:CR4Player'
This mod is not a weather mod nor a lighting mod. This is a script mod so it has to be treated as such. The main game script file r4Player.ws was edited by me by adding some stuff to make the mod work the way I wanted. That means, my edits are necessaryand not having them will throw that error.
Make sure to merge r4Player.ws file correctly and the mod will work fine. My edits are just a couple of lines (which I have commented so it's easy to see them) so that means it's very easy to merge them. You can do it manually, copying and pasting lines at the same place I placed them in your merged script. Always merge small mods into bigger ones, it's easier and less time consuming. If you know nothing about script merging, I suggest you try and learn a bit about it because it will make your life (and mods author's lives) much easier.
Is there like, a recommended settings in the mod menu in-game for this by any chance? As to how the author intended the behaviour/experience of how this performs? I'm having trouble narrowing down the settings I like...
The lightnings appear everytime a weather listed inside the script is currently active. The bolts depends on your mod menu settings. They can be turned off, on or appear at random (eg the bolt will not spawn every single time the lightning appears).
You have to add the storm weather names of Realistic Weather to the script, like explained in the description. IIRC someone might have already posted the names you need.
i downgraded to the old gen version of the game and decided to install this mod there, but the lightning simly doesnt show, the mod is active, but the visual effects doesnt show
It should work just fine, assuming you installed it correctly and added weathers (if needed) to the script. I can't really check since I don't have old gen.
Sorry to bother you again. I've updated to 4.04. Uninstalled and reinstalled the mod, deleted all previous merges with BIA and changed mod priorities. There is still no menu for new lightning effects. According to mod manager all conflicts have been solved. Did I miss something?
LOL, it's alright bro don't worry. I'm glad you like my mod so much! I'll try to keep it working through possible game updates even though I'm not really modding the game anymore. No promises tho!
You have no idea how much I appreciate the W3 modder community. Especially the ones who already moved on to newer games. All of you are nothing but aweseome.
Hey, man. I want to ask, I use the real weather mod, and the weather code is added as the forum says, But I found that lightning does not strike me randomly, lightning is always far away from me, without the real weather module, Lightning can always strike near me at random, thank anyone in advance for their help❤️❤️😊
Make sure the mod is actually working. With your real weather mod installed, change the distance of the lightning to 0 in the mod menu, so it always has to strike on your position. If it works, it's all good and you probably were unlucky with the randomness. If it doesn't, something is wrong and you'll need to check what's going on. Realistic Weather is a bundle mod, which I assume just adds envs and weathers inside the regional csv. My mod is script based, so as long as the scripts are installed and merged correctly, the mod will work for any weather added, and it should always work fine.
Thank you for your reply, just in case, if you have time, can you help me to confirm that my weather code is added correctly😊 like this function weatherCheckList() : array<name> { var weatherList : array<name>;
It is compatible with any lighting mod. If custom storm weathers are added in the lighting mod (and you want the lightnings for them), you'll have to add the weather names as explained in the mod description.
I don't know if you solved it already but if not here's the solution: 1-In the script merger choose and delete your r4player.ws merge 2-Choose everything again excluding modSpawnCompanions and remerge r4player.ws 3-Now choose the merged file and modSpawnCompanions and merge them 4-When script conflict emerges choose first the lines from the merged file and then the lines from modSpawnCompanions You see modSpawnCompanions should be merged after the New Lightning Effect, not the other way around. If above instructions are very confusing then you may easily delete both mods and then first (manually) install New Lightning Effect and merge it and then (manually) install Multi Companion Mod and merge it afterwards.
475 comments
I hope this will allow even players who can't write scripts to change it as they please, since now it's a simple short line to copy paste and edit. You'll still need to get your weather codes though.
'Storm'
'WT_Rain_Storm'
'WT_q501_Storm'
'WT_q501_storm_arena'
Enjoy!
weatherList.PushBack('WT_Rain_Heavy');
weatherList.PushBack('WT_Rain_Dark');
weatherList.PushBack('WT_Rain');
Error [modnewlightningeffect]local\lightnings.ws(8): 'vLight' is not a member of 'handle:CR4Player'
This mod is not a weather mod nor a lighting mod. This is a script mod so it has to be treated as such. The main game script file r4Player.ws was edited by me by adding some stuff to make the mod work the way I wanted. That means, my edits are necessary and not having them will throw that error.
Make sure to merge r4Player.ws file correctly and the mod will work fine. My edits are just a couple of lines (which I have commented so it's easy to see them) so that means it's very easy to merge them. You can do it manually, copying and pasting lines at the same place I placed them in your merged script. Always merge small mods into bigger ones, it's easier and less time consuming. If you know nothing about script merging, I suggest you try and learn a bit about it because it will make your life (and mods author's lives) much easier.
Is there like, a recommended settings in the mod menu in-game for this by any chance? As to how the author intended the behaviour/experience of how this performs? I'm having trouble narrowing down the settings I like...
Happy to report, the problem was me *sigh*.
Anyway, this is one of my "essential" mods. I'd be devastated, if it stopped working. I've hated storms before now I love them. Big shout out to you.
edit: nvm i forgot to save the files -.- LMAO
like this
function weatherCheckList() : array<name>
{
var weatherList : array<name>;
weatherList.PushBack('WT_Rain_Storm');
weatherList.PushBack('WT_q501_storm_arena');
//weatherList.PushBack('weather_name_here');
weatherList.PushBack('Storm');
weatherList.PushBack('WT_Rain_Storm');
weatherList.PushBack('WT_q501_Storm');
weatherList.PushBack('WT_q501_storm_arena');
return weatherList;
}
Spawn Area: -50, 50, -50, 50, 50
World FXs: on, 20
Camera shake fx: on, 3 ,250
NPC reactions: on
1-In the script merger choose and delete your r4player.ws merge
2-Choose everything again excluding modSpawnCompanions and remerge r4player.ws
3-Now choose the merged file and modSpawnCompanions and merge them
4-When script conflict emerges choose first the lines from the merged file and then the lines from modSpawnCompanions
You see modSpawnCompanions should be merged after the New Lightning Effect, not the other way around.
If above instructions are very confusing then you may easily delete both mods and then first (manually) install New Lightning Effect and merge it and then (manually) install Multi Companion Mod and merge it afterwards.