Goo次元
Goo次元

KRKR模拟器报错解决记录页

涨知识 hAsEn - 10

最常见的报错,并附上解决方案

补丁库找游戏相对应的补丁,patch.tjs或xp3filter.tjs放置在游戏根目录

可能需要科学上网,才能访问补丁库网址

不同会社的补丁不通用

2021-08-13

报错游戏:

报错类型:

解决方案:

去补丁库下载该游戏的patch.tjs

或者自己写一个patch.tjs

创建一个txt,写入内容如下

Plugins.link(“csvParser.dll”);
Plugins.link(“extrans.dll”);
Plugins.link(“fstat.dll”);
Plugins.link(“layerExImage.dll”);

写完之后,手动改后缀为tjs,并命名为patch.tjs放进游戏根目录

2021-08-16

报错游戏:

报错类型:

解决方案:

创建一个txt,写入内容如下

System.checkAppId = “8a5a4a35-6777-479e-8b8d-49f2fee28ddb”;

写完之后,手动改后缀为tjs,并命名为patch.tjs放进游戏根目录

2021-08-24

报错游戏:

报错类型:


这个是转换场景的运行报错


这个是无法存档读档的错误

解决方案:

创建两个txt,写入内容如下

// alternative for layeredwindow
with(Scripts) {._execStorage = .execStorage;}
Scripts.execStorage = function(name) {
    Debug.message(name);
 Scripts._execStorage(*);
 if(name == ‘CustomYesNoDialog.tjs’) {
  YesNoDialogWindow.updateButton = function() {
   bgLayer.opacity = 255;
   pileLayer.visible = false;
  };
 }
};

// windowEx.dll
Window.registerExEvent = function() {};
Window.getNotificationNum = function() {return 0;};
Window.setMessageHook = function() {return 0;};
System.getDisplayMonitors = function() {return [%[‘x’=>0,’y’=>’0’,’w’=>1280,’h’=>720]];};

// runtime checking
Math.csd01 = 1;
Math.csd02 = 2;
Math.csd03 = 3;
Math.csd106 = 4;

————————————————————————(分割线,不要复制这条线)

// alternative for layeredwindow
with(Scripts) {._execStorage = .execStorage;}
Scripts.execStorage = function(name) {
 Scripts._execStorage(*);
 if(name == ‘CustomYesNoDialog.tjs’) {
  YesNoDialogWindow.updateButton = function() {
   bgLayer.opacity = 255;
   pileLayer.visible = false;
  };
 }
};

Plugins.link(“emoteplayer.dll”);
class _Randomizer {
 var A=123456789,B=362436069,C=521288629,D;
 function _Randomizer(seed) {this.D=seed;}
 function rand() {
  var T = (this.A << 11) ^ this.A;
  T &= 0xFFFFFFFF;
  this.A = this.B;
  this.B = this.C;
  this.C = this.D;
  this.D ^= T ^ ((T ^ (D >> 11)) >> 8);
  return this.D;
 }
 function dec(buf, off, len) {
  var V = 0;
  for(var i = 0; i < len; ++i) {
   if(!V) V = this.rand();
   buf[off+i]^=V;
   V >>= 8;
  }
 }
};

Motion.ResourceManager.setEmotePSBDecryptFunc(function(buf, len){
 var psbVersion = buf[4] + (buf[5]<<8);
 var psbFlags;
 if(psbVersion > 2) {
  psbFlags = buf[6] + (buf[7]<<8);
 } else {
  psbFlags = 2;
 }
 var r = new _Randomizer(695532908);
 if(psbFlags & 1) {
  r.dec(buf,8,36);
 }
 if(psbFlags & 2) {
  var psbOffBegin = buf[8] | (buf[9] << 8) | (buf[10]<<16) | (buf[11] << 24);
  var psbOffEnd = buf[24] | (buf[25] << 8) | (buf[26]<<16) | (buf[27] << 24);
  r.dec(buf,psbOffBegin,psbOffEnd-psbOffEnd);
 }
});

Plugins.link(“layerExAlpha.dll”);
with(Layer) { // fix function not implemented in layerExAlpha.dll
    if(typeof .TranslucentColorBlend == “undefined”) .TranslucentColorBlend=function(){};
    if(typeof .AlphaColorBlend == “undefined”) .AlphaColorBlend=function(){};
    if(typeof .AlphaColorBlend2 == “undefined”) .AlphaColorBlend2=function(){};
}

Plugins.link(“layerExRaster.dll”);
if(typeof Layer.copyNotInterpolationRaster == “undefined”)
 Layer.copyNotInterpolationRaster = function(){};
if(typeof Layer.copyInterpolationRaster == “undefined”)
 Layer.copyInterpolationRaster = function(){};
if(typeof Layer.copyVerticalRaster == “undefined”)
 Layer.copyVerticalRaster = function(){};
if(typeof Layer.copyVerticalNotInterpolationRaster == “undefined”)
 Layer.copyVerticalNotInterpolationRaster = function(){};
if(typeof Layer.copyVerticalInterpolationRaster == “undefined”)
 Layer.copyVerticalInterpolationRaster = function(){};
if(typeof Layer.ExcIusiveReplacementProcessing == “undefined”)
 Layer.ExcIusiveReplacementProcessing = function(){};

Plugins.link(“LayerExColor.dll”);
if(typeof Layer.TranslucentColorBlend == “undefined”)
 Layer.TranslucentColorBlend = function(){};

Plugins.link(“LayerExMosaic.dll”);
if(typeof Layer.AddMosaic == “undefined”)
 Layer.AddMosaic = function(){};

(建议直接复制粘贴)

然后保存,命名为patch.tjs和patch1.tjs,然后放入游戏目录即可运行(仅针对kr端,PC端运行一切正常)

版权所有 © 老狗ACG社区 2021 ⁄ 社区 首页