Posted January 29, 2022
Harold_z_Rivivy: If anyone still looks for solution I got it.
Error [content0]game\gui\commonmainmenubase.ws(73): Could not find function 'GetChosenMainMenuType'
Error [content0]game\gui\main_menu\maincreditsmenu.ws(397): Could not find function 'GetChosenMainMenuType'
Warning [modsharedimports]engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code.
Warning [modsharedimports]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.
As the error says you have to go to [content0]game\gui\commonmainmenubase.ws and delete line 73 and then go to [content0]game\gui\main_menu\maincreditsmenu.ws(397) and delete line 397. Simple as that, works for me :)
The solution that you mention is correct but that means the code that was written below it does not run correctly, and I didn't want that. Error [content0]game\gui\commonmainmenubase.ws(73): Could not find function 'GetChosenMainMenuType'
Error [content0]game\gui\main_menu\maincreditsmenu.ws(397): Could not find function 'GetChosenMainMenuType'
Warning [modsharedimports]engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code.
Warning [modsharedimports]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.
As the error says you have to go to [content0]game\gui\commonmainmenubase.ws and delete line 73 and then go to [content0]game\gui\main_menu\maincreditsmenu.ws(397) and delete line 397. Simple as that, works for me :)
So I did some debugging sort of reading through the code I found links to function calls basically, the issue is that that function "GetChosenMainMenuType" is missing.
The game tried to find it and run the code (known as a function or method) "GetChosenMainMenuType" it and complained when it could not find it
What you need to do is open this file"commonGame.ws" in some sort of text editor like notepad, Visual Studio Code, notepad++ whatever you prefer...
The file can be found at this location:
The Witcher 3 Wild Hunt\content\content0\scripts\game\commonGame.ws
If you don't have this file stop here and I can't help you other than to say follow Harold_z_Rivivy's solution that I have quoted above.
After opening the file you need to add the line below to the file(copy the beginning spaces all the way to the semi-colon at the end).
import final function GetChosenMainMenuType() : int;
ensure that the line is inserted anywhere in the file after line 7 (do not insert it above this line)
import class CCommonGame extends CGame
{
and before the final line which should be this, if it isn't find the close curly bracket and insert it before that
}
I just put it at the end of the file before the close curly bracket, it doesn't matter though.
Save the file!!!
congrats if you followed those steps and it worked!