安装mod后出现的了一个bug,请问这个直接整合一下能解决嘛
Error game\gui\main_menu\ingamemenu.ws(309): Could not find function 'RefreshMainMenuAfterContentLoaded'Warning engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code.
Warning engine\environment.ws(32): Global native function 'EnableDebugPostProcess' was not exported from C++ code.
Warning engine\showflags.ws(11): Global native function 'DebugSetEShowFlag' was not exported from C++ code. 打开:E:\The Witcher 3 GOG\Mods\mod0000_MergedFiles\content\scripts\game\r4Game.ws (右键用记事本打开该文件)
1、搜索(Ctrl+F):public function GetNewGameDefinitionFilename() : string
2、在其之前添加:GetChosenMainMenuType等函数的定义,内容如下(内容与E:\The Witcher 3 GOG\content\content0\scripts\game\r4Game.ws中的相同)
private var _mainMenuType : int; default _mainMenuType = -1;
public function GetChosenMainMenuType() : int
{
return _mainMenuType;
}
private function ChooseRandomMainMenuIfNotChosenYet() : int
{
var availableMainMenuTypes : array< int >;
var seed : int;
var index : int;
if ( _mainMenuType > -1 )
{
return _mainMenuType;
}
availableMainMenuTypes.PushBack( 0 );
if (theGame.GetDLCManager().IsEP1Available())
{
availableMainMenuTypes.PushBack( 1 );
}
if (theGame.GetDLCManager().IsEP2Available())
{
availableMainMenuTypes.PushBack( 2 );
}
seed = CalcSeed( theGame );
index = (int)RandNoiseF( seed, availableMainMenuTypes.Size() );
_mainMenuType = availableMainMenuTypes[ index ];
LogChannel('asd', "RAND " + seed + " " + index + " " + _mainMenuType );
return _mainMenuType;
}
注意“}”别删,“private var _mainMenuType : int;”前面的Tab符别忘,回车符要有。
改完之后,可以打开E:\The Witcher 3 GOG\content\content0\scripts\game\r4Game.ws,对照相关部分。 E:\The Witcher 3 GOG是自己巫师3的目录,这个是转贴http://bbs.3dmgame.com/thread-5633160-1-1.html,测试可解决。
页:
[1]