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

×
According to the mod creator this isnt something that he is able to fix on the mod side so i figured id post it here and see if,

a. Any other people with the GOTY edition are having the same issue &
b. If there is something wrong with the GOTY edition that needs to be fixed then hopefully someone who can fix it sees it

I was hoping to do a new playthrough with the mod Witcher 3 Enhanced Edition but when i install the mod and try to start the game i get this script error.

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 [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 have no other mods installed, and i have run script merger just to make sure there wasn't any scripts interfering but that didn't get rid of the error.

Help would be greatly appreciated.
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.
Post edited September 02, 2016 by kaerius
Unfortunately that isn't what is causing my error as i already have the modified telemetryKeywords file and its still giving me the error.

It seems to be tied in someway to the new "feature" in the GOTY edition where it picks a different menu background eachtime you start the game, i have no idea how one would go about fixing it though....
avatar
SvenVolfeid: Unfortunately that isn't what is causing my error as i already have the modified telemetryKeywords file and its still giving me the error.

It seems to be tied in someway to the new "feature" in the GOTY edition where it picks a different menu background eachtime you start the game, i have no idea how one would go about fixing it though....
The mod you are using is simply not compatible with this version of the game. It is not the game, nor the GOTY edition. As the game evolves (patches/updates) so does the script content. There was a major update to the scripts in one of the previous patches, and most other patches have minor or other changes that require mod authors to update their mods -- most don't. It is not up to CDP -- mod errors and updates are not supported -- it is up to the authors to maintain their mods. If the author can't fix it, as you say in this instance, then... tough.
Post edited September 02, 2016 by Hickory
avatar
SvenVolfeid: Unfortunately that isn't what is causing my error as i already have the modified telemetryKeywords file and its still giving me the error.

It seems to be tied in someway to the new "feature" in the GOTY edition where it picks a different menu background eachtime you start the game, i have no idea how one would go about fixing it though....
avatar
Hickory: The mod you are using is simply not compatible with this version of the game. It is not the game, nor the GOTY edition. As the game evolves (patches/updates) so does the script content. There was a major update to the scripts in one of the previous patches, and most other patches have minor or other changes that require mod authors to update their mods -- most don't. It is not up to CDP -- mod errors and updates are not supported -- it is up to the authors to maintain their mods. If the author can't fix it, as you say in this instance, then... tough.
I realize it is not up to CDP to fix error's with mods nor was i expecting them to, i only posted on the off chance that it was in fact something wrong on their end. And you are right if the mod isn't compatible with the newest version of the game then it is tough. However it seems the mod author has posted a means of getting it to work so this thread can be closed now.

Thanks for the replies :)
Post edited September 02, 2016 by SvenVolfeid
high rated
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
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 :)
Just wanted to say thank you, this fixed my problem :)

And...just a curiosity: the two lines deleted have no impact on anything but the music that sounds on the main menu. So if you have Blood and Wine and delete those 2 lines, instead of listening the "wolves asleep amidst the trees" song you are going to listen the default Witcher 3 menu music.

And actually, if you change the lines for a line with:

menuType = 2;

You will hear the correct song again, if you have Blood and Wine expansion :D

Anyway, thanks!
For anyone still having this problem I discovered whats causing it. It is one of your mods and the only way to discover which one is to install each one individually and start the game after each on. My problem was set xp multiplier. It neede the updated mod from unification patch. Ther is a list of mods if you go to the nexus page for the patch. Look in the description or roam the posts you will eventually find it. Of course this problem has probably been resolved but just thought I would let someone out there know. BTW just installing the patch did not work so I had to hunt down the offending mod myself.
avatar
SvenVolfeid: According to the mod creator this isnt something that he is able to fix on the mod side so i figured id post it here and see if,

a. Any other people with the GOTY edition are having the same issue &
b. If there is something wrong with the GOTY edition that needs to be fixed then hopefully someone who can fix it sees it

I was hoping to do a new playthrough with the mod Witcher 3 Enhanced Edition but when i install the mod and try to start the game i get this script error.

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 [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 have no other mods installed, and i have run script merger just to make sure there wasn't any scripts interfering but that didn't get rid of the error.

Help would be greatly appreciated.
Download this: https://www.mediafire.com/?n64x6ris3fas2zi , and install it , it worked for me , credits to yuseiken71 and kudos13
For the get chosen main menu type
It's a problem when merging the game/r4Game.ws file. Mods use a modified
"public function PopulateMenuQueueMainAlways( out menus : array< name > )"
which when the compiler compiles will erase the public function that GetChosenMainMenuType.

FIX:
You need to use script merger and when merging r4Game.ws most of the merge conflicts as well as the resolved conflicts between

public function PopulateMenuQueueMainAlways( out menus : array< name > )

and

public function GetNewGameDefinitionFilename() : string

See attached images for a visual representation. Just look for the letters in the merged code on the left.

After that simply replace the vanilla public function with this:

public function PopulateMenuQueueMainAlways( out menus : array< name > )
{
if (theGame.GetDLCManager().IsEP2Available())
{
menus.PushBack( 'CommonMainMenuEP2' );
}
else if (theGame.GetDLCManager().IsEP1Available())
{
menus.PushBack( 'CommonMainMenuEP1' );
}
else
{
menus.PushBack( 'CommonMainMenu' );
}
}

which is the modded one.
Attachments:
witcher.png (33 Kb)
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 :)
Thanks you fixed it <3
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
Sulkano: Just wanted to say thank you, this fixed my problem :)

And...just a curiosity: the two lines deleted have no impact on anything but the music that sounds on the main menu. So if you have Blood and Wine and delete those 2 lines, instead of listening the "wolves asleep amidst the trees" song you are going to listen the default Witcher 3 menu music.

And actually, if you change the lines for a line with:

menuType = 2;

You will hear the correct song again, if you have Blood and Wine expansion :D

Anyway, thanks!
Fucking thank you for the tip man, I've been searching for a solution for so long!!!
THANKYOU!!!!!!
I would give you a kiss mate if it wasnt for covid!
Hey, how do you guys open the .ws file though?
avatar
THemis1: Hey, how do you guys open the .ws file though?
Notepad will do, Notepad++ would be better.