Billsponge1972 Posted August 6, 2022 Posted August 6, 2022 So, since update 4.707b I've been having to control alt delete out of the game because I'm getting this CFGPool.log error. Anyone having this problem? This is the log file contents; "Luascripts/worldobjects/weapons/mg_ger_mg131.txt: invalid arguments number (4 instead of 5) of var: bulletmisfiredata"
sonicviz Posted August 13, 2022 Posted August 13, 2022 (edited) Update: This mod is no longer relevant. The .50 cals in vanilla game have been updated with proper dispersion as well as corrected ballistics as Per Yak Panther's research. Yes, I'm getting it too. It's the realistic weapons dispersion mod files from 2nd reply is the one I'm using Realistic Weapons Dispersion Mod.zip luascripts/worldobjects/weapons/mg_usa_m2-50.txt: Invalid arguments number (4 instead of 5) of var: bulletmisfiredata "E:\SteamLibrary\steamapps\common\IL-2 Sturmovik Battle of Stalingrad\MODS\Realistic Weapons Dispersion Mod\data\luascripts\worldobjects\weapons\mg_usa_m2-50.txt" "E:\SteamLibrary\steamapps\common\IL-2 Sturmovik Battle of Stalingrad\MODS\Box Convergence Dispersion\worldobjects\weapons\mg_usa_m2-50.txt" "E:\SteamLibrary\steamapps\common\IL-2 Sturmovik Battle of Stalingrad\MODS\Realistic Dispersion\worldobjects\weapons\mg_usa_m2-50.txt" luascripts/worldobjects/weapons/mg_ger_mg131.txt: Invalid arguments number (4 instead of 5) of var: bulletmisfiredata "E:\SteamLibrary\steamapps\common\IL-2 Sturmovik Battle of Stalingrad\MODS\Realistic Weapons Dispersion Mod\data\luascripts\worldobjects\weapons\mg_ger_mg131.txt" luascripts/worldobjects/weapons/mg_ger_mg81.txt: Invalid arguments number (4 instead of 5) of var: bulletmisfiredata "E:\SteamLibrary\steamapps\common\IL-2 Sturmovik Battle of Stalingrad\MODS\Realistic Weapons Dispersion Mod\data\luascripts\worldobjects\weapons\mg_ger_mg81.txt" Looking at a fix now, though I'm not familiar with modding IL2 atm. Looks like an index issue. eg: in MODS\Realistic Weapons Dispersion Mod\data\luascripts\worldobjects\weapons\mg_usa_m2-50.txt BulletMisfireData= 0.0, 0.02, 700.0, 6.0 is throwing Invalid arguments number (4 instead of 5) of var: bulletmisfiredata but unsure what the format is supposed to be. Edited August 13, 2022 by sonicviz
Billsponge1972 Posted August 13, 2022 Author Posted August 13, 2022 Thanks for the reply. I did use that mod sometime back. I'm wondering if some files got corrupted? I look into it some more. I'm non-steam version.
Stonehouse Posted August 18, 2022 Posted August 18, 2022 (edited) More likely some mod files have been left in place and are no longer up to date with the latest game version. Do you get the error if you disable mods in the game menu or launcher? If not then it would confirm you have some left over mod files hanging around. So guessing you either manually installed the mod by copying files directly into your IL2 folders and haven't managed to find and remove them all when trying uninstall it or if using JSGME (or similar), JSGME got closed mid way through enabling or disabling mods. This tends to leave files from mods lying around but JSGME thinking everything is accounted for. Edited August 18, 2022 by Stonehouse
Billsponge1972 Posted August 18, 2022 Author Posted August 18, 2022 Thanks for the reply StoneHouse. Sounds to me like you're right on with that scenario. I don't get the error with mods off but I've never manually installed a mod. Would one of you kind people upload those v4.707c weapons files for me. Maybe I can just replace them.
Stonehouse Posted August 18, 2022 Posted August 18, 2022 All that stuff is held in the gtp files - specifically scripts.gtp - that you see in the games data folder. The best way to deal with it would be to remove the problematic files via windows explorer. I'm assuming you are using JSGME to manage your mods?
Billsponge1972 Posted August 18, 2022 Author Posted August 18, 2022 (edited) Yes, I'm using JSGME for mods. I can find these files directly in the data/worldobjects/weapons folder. Are these not the files that are corrupted/mod leftovers? Edited August 18, 2022 by Billsponge1972
Stonehouse Posted August 19, 2022 Posted August 19, 2022 (edited) Ok so I would have expected you to say you could see the files in data/luascripts/worldobjects. If you don't see it exactly like that then probably it is best for you to go into explorer and take a screen shot showing the folder structure of the folders in the data folder and we can rethink. Anyway, assuming you made a typo in your last post and you actually meant to say the same path as I did then I would do as follows: First disable all mods in JSGME Ensure mods off in the game Rename folder worldobjects to something like worldobjectsbackup Start game with mods off still and make sure it seems ok, exit game Re-enable mods in JSGME, switch on mods in the game and start it up. Check to see if things seem ok and the weapon related errors are gone or not. If you still have issues then we can see what else can be done. If everything seems ok you can delete worldobjectsbackup although you may want to keep it around for a few days worth of flying just to be safe. The reason for the renaming of worldobjects is that I believe it is entirely created due to mods but I want you to have a fall back if that is not the case in your install of IL2. Ensuring mods are all disabled in JSGME should ensure that JSGME removes all mod files from your stock game folders. ie if worldobjects is still there after disabling everything I believe it is leftovers from JSGME being interrupted. Last passing comment for anyone else reading this NEVER INTERRUPT JSGME ENABLING OR PARTICULARLY DISABLING MODS. Doing so will almost guarantee that you will get things partially applied or removed. With mods switched on in the game these leftovers will be used before stock files. There have been quite a few people caught out and really I think something like this should almost be like a sticky announcement post in the Mods sub forum to help people new to modding avoid the issue. It applies to other mod managers too as they all generally work the same way in concept at the backend. Edited August 19, 2022 by Stonehouse
Billsponge1972 Posted August 19, 2022 Author Posted August 19, 2022 Thanks so much Stonehouse, renaming the folder worked. JSGME can definitely mess your game up if not used correctly and, I think, sparingly. I'm always careful and have never had to reinstall for any reason. Only one time have I messed with it; A month or so ago I tried to customize a mod by combining "ICON_D_D_NL_SM_RB_DOT_BXGU" and "Reduced Speedbar 2" mods but couldn't get it to work. I don't think that was the problem as those two mods don't alter the Luascripts in any way that I know of. I've used JSGME pretty actively in the last year that I've owned the game because there are so many great ones to try. I probably have a hundred mods but only two or three are ever enabled at one time. 1 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now