Sorry about the long hiatus. But I'm back, with a working version (hopefully) for the next gen update! There will be some localisation issues in this version which I want to fix tomorrow. However it's 2:00am and I want to get some sleep. Expect those issues to be fixed soon.
Known issues - Missing localisation. This should be fixed in 4.0.0.1 but you'll only get menus in English. If you want to help translate PM me. - Notifications might not work - Installing with NMM will not work - Installing with The Witcher 3 Mod Manager doesn't work. Looking into a fix. The latest version of Witcher Mod Manager should now be fully supported. Future work - Add "cheat" mode. You aren't actually supposed to be able to apply oils in the middle of a fight (try double clicking oils in your inventory and it will tell you that). However the game lets you drag the oils onto your swords. I don't think CDPR ever actually fixed that. Since people keep asking about it, I want to add a "cheat" mode that will automate this for you. Cheat mode added in 4.0.0.2 (oils never run out), enable it in the mod menu
FAQs
Mod doesn't do anything. Make sure you enabled the mod from the in-game mod menu.
Mod doesn't show up in the mod menu / mod menu is missing. Make sure you correctly edited the dx11filelist.txt and dx12filelist.txt files. See the main page for instructions.
The game won't start. Run script merger to resolve any conflicting scripts. Remember to enable the merged scripts mod in your mods.settings file. If this doesn’t work verify your game files (sometimes the game doesn’t patch itself correctly). Once you’ve verified your game files you will have to edit the dx11filelist.txt and dx12filelist.txt again
This mod doesn't work with {insert mod here}. If you've run script merger and the mod still doesn't work I will try to help you. However, if you've merged scripts correctly and you still get issues then it's usually the fault of the other mod (since this is a script-only mod).
The mod text shows up in English but I have the game set to use a different language. Nobody has done a translation for your language yet. If you want to help out, translate the second string on each line in the text below and I will include it in a new update and credit you.
PSA: anyone having problems with this mod, please read the following before posting
If you can't launch the game after installing this mod, and in the error list you can't find the mod name mentioned anywhere, please verify your game files. A lot of people get problems due to issues when their game has been patched incorrectly for whatever reason. The method to verify your game files varies depends on whether you use Steam or GOG, use google to get instructions if you don't know how to do it. If after that you are still having problems post here.
When you post, if you have any other mods let me know what they are because that will be my first question if you don't
As far as I know it should work with 1.12. Seems like the majority of people agree since I don't get many posts about problems (well, problems that are caused by this mod)
Error [modnewgameplusplus]local\newgameplusplus.ws(155): Could not find function 'ClearOriginalEquipmentLevel' Error [modnewgameplusplus]game\gameplay\damage\damagemanagerprocessor.ws(557): Could not find function 'ShouldAutoApplyOilImmediately' Error [modnewgameplusplus]game\gameplay\damage\damagemanagerprocessor.ws(562): Could not find function 'ShouldAutoApplyOilImmediately' Error [mod0000_mergedfiles]game\player\playerwitcher.ws(1208): Could not find function 'LevelEquipment' Error [mod0000_mergedfiles]game\player\playerwitcher.ws(1210): Could not find function 'RestoreEquipment' Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7628): Could not find function 'LevelEquipment' Error [mod__hoods]game\gui\inventorycontext.ws(661): Could not find function 'HoodsAnim' Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(666): Could not find function 'RestoreEquipment' Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(669): Could not find function 'LevelEquipment' Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(1546): Could not find function 'SetAutoApplyOils' Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(1548): Could not find function 'SetAutoApplyOils' Error [content0]game\gui\popups\itemselectionpopup.ws(100): 'maxItemLimit' is not a member of '&handle:W3GuiSelectItemComponent' Error [content0]game\gui\popups\itemselectionpopup.ws(107): 'checkTagsOR' is not a member of '&handle:W3GuiSelectItemComponent' Error [content0]game\gui\popups\itemselectionpopup.ws(110): 'maxItemLimit' is not a member of '&handle:W3GuiSelectItemComponent' Error [content0]game\gui\popups\itemselectionpopup.ws(117): 'checkTagsOR' is not a member of '&handle:W3GuiSelectItemComponent' Error [content0]game\gui\popups\itemselectionpopup.ws(120): 'maxItemLimit' is not a member of '&handle:W3GuiSelectItemComponent' Error [content0]game\gui\popups\itemselectionpopup.ws(135): 'checkTagsOR' is not a member of '&handle:W3GuiSelectItemComponent' Error [content0]game\gui\popups\itemselectionpopup.ws(289): Could not find function 'EnableRadialInput' Error [content0]game\gui\popups\itemselectionpopup.ws(300): Could not find function 'EnableRadialInput' Error [content0]game\gui\popups\itemselectionpopup.ws(311): Could not find function 'EnableRadialInput' Error [content0]game\gui\popups\itemselectionpopup.ws(322): Could not find function 'EnableRadialInput' Error [content0]game\gui\popups\itemselectionpopup.ws(333): Could not find function 'EnableRadialInput' Error [content0]game\gui\popups\itemselectionpopup.ws(345): Could not find function 'EnableRadialInput' Error [content0]game\gui\popups\itemselectionpopup.ws(394): Could not find function 'EnableRadialInput' Warning [content0]engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code. Warning [content0]engine\environment.ws(32): Global native function 'EnableDebugPostProcess' was not exported from C++ code. Warning [content0]engine\showflags.ws(11): Global native function 'DebugSetEShowFlag' was not exported from C++ code.
For everyone's attention: the game considers Arachnomorphs from the Hearts of Stone expansion to be Specters. I have theories on why this happens, but what's important is that if you're fighting Arachnomorphs and see that Specter oil has been applied, don't worry that oil type is correct.
Man, God bless you. I was trying to make this work for hours, reinstalling mod/game/mod manager etc but the solution was that simple. PLZ mod author, make this post STICKY!!!!!!!!!!!!!!!!!!!!!!
Can someone explain it to me like I where a 6 years old child? Really I don´t know what the hell is the autor talking about... TKS!
Copy the contents of the user.settings.part.txt file to the bottom of the user.settings file in the My Documents\The Witcher 3\. Do the same for the dx12user.settings.part.txt file.
Edit the DX11 and DX12 file lists text files to include the text "modAutoApplyOils.xml;" at the bottom. These files are found in [The Witcher 3 install location]\bin\config\r4game\user_config_matrix\pc.
Why is this mod not needed anymore ? The game doesn't apply them on auto without it and I can't even get it to work with mod manager anyway. It always ruins the script
When I uninstall the mod I get these errors: Error [content0]game\gameplay\effects\effects\other\oil.ws(177): Could not find function 'ShouldAutoApplyOil' Error [content0]game\gui\main_menu\ingamemenu.ws(1491): Could not find function 'SetAutoApplyOils' Error [content0]game\gui\main_menu\ingamemenu.ws(1493): Could not find function 'SetAutoApplyOils' Error [content0]game\player\states\vehicles\horseriding.ws(141): Could not find function 'ShouldAutoApplyOil'
and when I download it back there is error left. I got them recently and had them before I downloaded this mod for the first time.
Yes, I was getting these errors too. I *think* it might be a CDPR error. AutoApplyOils is now in the game I believe. I edited the listed files to comment out the problem lines and the game now starts and works. So I suspect CDPR may have messed up including the mod?
What I did was go to my Witcher3 folder in Windows, search for the files listed in the errors, open the files in a text editor and then place // in front of each of the specified lines. // "comments out" the line - i.e. the line is now treated as a comment and not code, so it's just ignored when the scripts are compiled.
for example (from oil.ws): //Enjay thePlayer.ShouldAutoApplyOil(); The only one that was a bit more complicated was ingamemenu.ws because a slightly bigger block needed to be commented out: //Enjay if (optionName == 'AutoApplyBladeOils') //{ // if ( optionValue == "true" ) // thePlayer.SetAutoApplyOils(true); // else // thePlayer.SetAutoApplyOils(false); //}(I could probably have used /* and */ at the start and end instead.) Also, just to mention it, I also added my name to the comments to make it easier to search for them again.
@EnjayNexus, You just solved the issues I've been trying to fix all day, I just want to make sure you know that you deserve nothing but the best in life
Thanks for all the thanks. :D I'm glad the information was useful.
In my game the file is: The Witcher 3 Wild Hunt GOTY\content\content0\scripts\game\gui\main_menu\ingameMenu.ws
I just updated to version 4.04 and I still had to comment out one section (which is less than before).
I'm not sure why this is happening. Was it because I used to have the mod version installed (or perhaps some other mod) and somehow these values got carried over? I assume that all users are not affected otherwise this would be a much bigger issue and would have been fixed by CDPR (i.e. if no one could get the game working - which clearly isn't the case).
To find the relevant block, open the above file in the text editor of your choice and search for AutoApply. Then comment out the block that contains the "if/else" for AutoApply oils
Here's how mine looks:
/* if (optionName == 'AutoApplyBladeOils') { if ( optionValue == "true" ) thePlayer.SetAutoApplyOils(true); else thePlayer.SetAutoApplyOils(false); } */ I added the /* at the start and the */ at the end and that is enough to comment out that entire block. With that gone, the game starts for me. The menu option to enable/disable auto applying oils still appears, but I haven't had a chance to see if the auto-applying actually works yet (I've only just updated, but I assume it will be OK).
[edit] I decided to verify my game files and, after doing that, a few more files needed stuff to do with autoapplying oils commented out again. I have searched high and low all over my computer for something that could be causing this problem, but I simply can't track it down. I guess one day I'll do a complete uninstall and reinstall. Maybe that will sort it. In the meantime, commenting out the lines gets the game working for me. [/edit]
Hey does anyone know why I have this popped out even after I deleted this mod? 4.03 of course.
Error [content0]game\gameplay\effects\effects\other\oil.ws(177): Could not find function 'ShouldAutoApplyOil' Error [content0]game\player\states\vehicles\horseriding.ws(141): Could not find function 'ShouldAutoApplyOil'
I was able to fix my game by the following: Removed Auto Apply Oil mod Removed Next Gen Script Fixes mod (also part of 4.03 I guess) Download and installed Unlimited Durability mod 4.03 Re-run script merger
Download and installed Unlimited Durability mod 4.03
Oh my goodness! That seems to do it. Thank you @poprock4669. With that mod in place, I no longer get the errors that I was having, even with unedited files.
A quick dig into the mod files shows that the durability mod sets the 'ShouldAutoApplyOil' parameter that the other files were looking for (at least if I'm reading things right).
I'm not sure why my almost mod-free game was looking for a variable in the CDPR files that seems to come from a mod (possibly a hang over from when I had far more mods installed?) but having the Unlimited Durability mod installed, and removing all my commented out lines to restore the game files to their original condition allows my game to start without any additional editing from me.
For those with errors about auto apply oil, even after removing the mod in 4.03:
In your user Documents\The Witcher 3 folder: either remove the filemods.settingsand redo the ScriptMerger. Or open that file and remove any mention of auto apply oil. In mods.settings are (or might be) leftovers about it and this causes the errors. For me this worked and finally no script errors.
Thanks for the info. I'm glad this solution worked for you, but it has not worked for me. My mods.settings file contains very little now, and certainly no mention of autoapplyoils but I still keep getting the errors unless I comment out the lines that I have detailed in my posts. :(
972 comments
Sorry about the long hiatus. But I'm back, with a working version (hopefully) for the next gen update! There will be some
localisation issues in this version which I want to fix tomorrow.
However it's 2:00am and I want to get some sleep. Expect those issues to
be fixed soon.
Known issues
- Missing localisation. This should be fixed in 4.0.0.1 but you'll only get menus in English. If you want to help translate PM me.
- Notifications might not work
- Installing with NMM will not work
-
Installing with The Witcher 3 Mod Manager doesn't work. Looking into a fix.The latest version of Witcher Mod Manager should now be fully supported.Future work
-
Add "cheat" mode. You aren't actually supposed to be able to apply oils in the middle of a fight (try double clicking oils in your inventory and it will tell you that). However the game lets you drag the oils onto your swords. I don't think CDPR ever actually fixed that. Since people keep asking about it, I want to add a "cheat" mode that will automate this for you.Cheat mode added in 4.0.0.2 (oils never run out), enable it in the mod menuFAQs
["panel_Mods", "Mods"],
["panel_auto_apply_oils", "Auto Apply Oils"],
["option_aao_enable_mod", "Enable mod"],
["option_aao_enable_bosses", "Prioritise boss monsters"],
["option_aao_notification_duration", "Notification duration (seconds)"],
["option_aao_info_notifications", "Enable info level notifications"],
["option_aao_warn_notifications", "Enable warning level notifications"],
["option_aao_error_notifications", "Enable error level notifications"],
["option_aao_enable_cheat_mode", "Enable cheat mode (infinite oil)"],
["aao_applied_for_boss", "Oil applied for boss: "],
["aao_applied_for_enemy_type", "Oil applied for enemy type: "],
["aao_unknown_enemy_type", "Unknown enemy type: "],
["aao_missing_oil", "Missing oil: "],
["aao_info_level", "Auto Apply Oils Information:"],
["aao_warn_level", "Auto Apply Oils Warnings:"],
["aao_error_level", "Auto Apply Oils Errors:"]
If you can't launch the game after installing this mod, and in the error list you can't find the mod name mentioned anywhere, please verify your game files. A lot of people get problems due to issues when their game has been patched incorrectly for whatever reason. The method to verify your game files varies depends on whether you use Steam or GOG, use google to get instructions if you don't know how to do it. If after that you are still having problems post here.
When you post, if you have any other mods let me know what they are because that will be my first question if you don't
Error [modnewgameplusplus]local\newgameplusplus.ws(155): Could not find function 'ClearOriginalEquipmentLevel'
Error [modnewgameplusplus]game\gameplay\damage\damagemanagerprocessor.ws(557): Could not find function 'ShouldAutoApplyOilImmediately'
Error [modnewgameplusplus]game\gameplay\damage\damagemanagerprocessor.ws(562): Could not find function 'ShouldAutoApplyOilImmediately'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(1208): Could not find function 'LevelEquipment'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(1210): Could not find function 'RestoreEquipment'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7628): Could not find function 'LevelEquipment'
Error [mod__hoods]game\gui\inventorycontext.ws(661): Could not find function 'HoodsAnim'
Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(666): Could not find function 'RestoreEquipment'
Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(669): Could not find function 'LevelEquipment'
Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(1546): Could not find function 'SetAutoApplyOils'
Error [modnewgameplusplus]game\gui\main_menu\ingamemenu.ws(1548): Could not find function 'SetAutoApplyOils'
Error [content0]game\gui\popups\itemselectionpopup.ws(100): 'maxItemLimit' is not a member of '&handle:W3GuiSelectItemComponent'
Error [content0]game\gui\popups\itemselectionpopup.ws(107): 'checkTagsOR' is not a member of '&handle:W3GuiSelectItemComponent'
Error [content0]game\gui\popups\itemselectionpopup.ws(110): 'maxItemLimit' is not a member of '&handle:W3GuiSelectItemComponent'
Error [content0]game\gui\popups\itemselectionpopup.ws(117): 'checkTagsOR' is not a member of '&handle:W3GuiSelectItemComponent'
Error [content0]game\gui\popups\itemselectionpopup.ws(120): 'maxItemLimit' is not a member of '&handle:W3GuiSelectItemComponent'
Error [content0]game\gui\popups\itemselectionpopup.ws(135): 'checkTagsOR' is not a member of '&handle:W3GuiSelectItemComponent'
Error [content0]game\gui\popups\itemselectionpopup.ws(289): Could not find function 'EnableRadialInput'
Error [content0]game\gui\popups\itemselectionpopup.ws(300): Could not find function 'EnableRadialInput'
Error [content0]game\gui\popups\itemselectionpopup.ws(311): Could not find function 'EnableRadialInput'
Error [content0]game\gui\popups\itemselectionpopup.ws(322): Could not find function 'EnableRadialInput'
Error [content0]game\gui\popups\itemselectionpopup.ws(333): Could not find function 'EnableRadialInput'
Error [content0]game\gui\popups\itemselectionpopup.ws(345): Could not find function 'EnableRadialInput'
Error [content0]game\gui\popups\itemselectionpopup.ws(394): Could not find function 'EnableRadialInput'
Warning [content0]engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code.
Warning [content0]engine\environment.ws(32): Global native function 'EnableDebugPostProcess' was not exported from C++ code.
Warning [content0]engine\showflags.ws(11): Global native function 'DebugSetEShowFlag' was not exported from C++ code.
i think the game needed to be started first before adding mods
Use the version 1.01 under "Old Files".
Check Setting -- Gameplay.
Error [content0]game\gameplay\effects\effects\other\oil.ws(177): Could not find function 'ShouldAutoApplyOil'
Error [content0]game\gui\main_menu\ingamemenu.ws(1491): Could not find function 'SetAutoApplyOils'
Error [content0]game\gui\main_menu\ingamemenu.ws(1493): Could not find function 'SetAutoApplyOils'
Error [content0]game\player\states\vehicles\horseriding.ws(141): Could not find function 'ShouldAutoApplyOil'
and when I download it back there is error left.
I got them recently and had them before I downloaded this mod for the first time.
for example (from oil.ws):
//Enjay thePlayer.ShouldAutoApplyOil();
The only one that was a bit more complicated was ingamemenu.ws because a slightly bigger block needed to be commented out:
//Enjay if (optionName == 'AutoApplyBladeOils')
(I could probably have used /* and */ at the start and end instead.)//{
// if ( optionValue == "true" )
// thePlayer.SetAutoApplyOils(true);
// else
// thePlayer.SetAutoApplyOils(false);
//}
Also, just to mention it, I also added my name to the comments to make it easier to search for them again.
EDIT manged to fix it thank you truly a life saver.
In my game the file is:
The Witcher 3 Wild Hunt GOTY\content\content0\scripts\game\gui\main_menu\ingameMenu.ws
I just updated to version 4.04 and I still had to comment out one section (which is less than before).
I'm not sure why this is happening.
Was it because I used to have the mod version installed (or perhaps some other mod) and somehow these values got carried over?
I assume that all users are not affected otherwise this would be a much bigger issue and would have been fixed by CDPR (i.e. if no one could get the game working - which clearly isn't the case).
To find the relevant block, open the above file in the text editor of your choice and search for AutoApply. Then comment out the block that contains the "if/else" for AutoApply oils
Here's how mine looks:
/*
I added the /* at the start and the */ at the end and that is enough to comment out that entire block. With that gone, the game starts for me. The menu option to enable/disable auto applying oils still appears, but I haven't had a chance to see if the auto-applying actually works yet (I've only just updated, but I assume it will be OK).if (optionName == 'AutoApplyBladeOils')
{
if ( optionValue == "true" )
thePlayer.SetAutoApplyOils(true);
else
thePlayer.SetAutoApplyOils(false);
}
*/
[edit] I decided to verify my game files and, after doing that, a few more files needed stuff to do with autoapplying oils commented out again. I have searched high and low all over my computer for something that could be causing this problem, but I simply can't track it down. I guess one day I'll do a complete uninstall and reinstall. Maybe that will sort it. In the meantime, commenting out the lines gets the game working for me. [/edit]
Error [content0]game\gameplay\effects\effects\other\oil.ws(177): Could not find function 'ShouldAutoApplyOil'
Error [content0]game\player\states\vehicles\horseriding.ws(141): Could not find function 'ShouldAutoApplyOil'
Removed Auto Apply Oil mod
Removed Next Gen Script Fixes mod (also part of 4.03 I guess)
Download and installed Unlimited Durability mod 4.03
Re-run script merger
A quick dig into the mod files shows that the durability mod sets the 'ShouldAutoApplyOil' parameter that the other files were looking for (at least if I'm reading things right).
I'm not sure why my almost mod-free game was looking for a variable in the CDPR files that seems to come from a mod (possibly a hang over from when I had far more mods installed?) but having the Unlimited Durability mod installed, and removing all my commented out lines to restore the game files to their original condition allows my game to start without any additional editing from me.
In your user Documents\The Witcher 3 folder: either remove the file mods.settings and redo the ScriptMerger.
Or open that file and remove any mention of auto apply oil. In mods.settings are (or might be) leftovers about it and this causes the errors.
For me this worked and finally no script errors.