It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
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.

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!
Attachments:
avatar
kushal171: 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!
Nevermind, I'm a dumbass. I realized what you are meaning in your very detailed description. Just add

import final function GetChosenMainMenuType() : int;

at the end right above the final "}"
Post edited February 04, 2022 by DontBlnkBadWolf
Nevermind
Post edited February 04, 2022 by DontBlnkBadWolf
avatar
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 :)
avatar
kushal171: 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.

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!
Bro, you've just saved my life!!! Thanks!
avatar
kaerius: Probably the same problem I had:

The problem is a defective text file, namely telemetryKeywords.ws

Replacing all the text inside (gamedir)\content\content0\scripts\engine\telemetryKeywords.ws with this:

/*
Copyright © CD Projekt RED 2015
*/
import class CR4TelemetryScriptProxy extends CObject
{
import final function LogWithName( eventType : ER4TelemetryEvents );
import final function LogWithLabel( eventType : ER4TelemetryEvents, label : String );
import final function LogWithValue( eventType : ER4TelemetryEvents, value : int );
import final function LogWithValueStr( eventType : ER4TelemetryEvents, value : String );
import final function LogWithLabelAndValue( eventType : ER4TelemetryEvents, label : String, value : int );
import final function LogWithLabelAndValueStr( eventType : ER4TelemetryEvents, label : String, value : String );
import final function SetCommonStatFlt( statType: ER4CommonStats, value : float );
import final function SetCommonStatI32( statType: ER4CommonStats, value : int );
import final function SetGameProgress( value : float );
import final function AddSessionTag( tag : String );
import final function RemoveSessionTag( tag : String );
import final function XDPPrintUserStats( statisticName : String );
import final function XDPPrintUserAchievement( achievementName : String );
}

Completely fixed my problem, mod script compiling working again.
thanks dear
https://protrackinghub.com/abc-cargo-tracking-status/]
Post edited April 26, 2022 by fatehshakir
Error [content0]game\photomodemanager.ws(87): Could not find function 'HasActiveTutorial'

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.

Thats my error message. Im literally done. I fixed everything, every single mod but i cant fathom how to fix this damn has active tutorial crap. Next Gen version btw.