server报错如下:
计划中事件:“aki-insurance”运行失败。
Cannot read properties of undefined (reading 'date')
TypeError: Cannot read properties of undefined (reading 'date')
at filter (C:\snapshot\project\src\controllers\InsuranceController.ts:165:37)
at Array.filter (<anonymous>)
at InsuranceController.removeInsurancePackageFromProfile (C:\snapshot\project\src\controllers\InsuranceController.ts:163:47)
at InsuranceController.processInsuredItems (C:\snapshot\project\src\controllers\InsuranceController.ts:139:18)
at InsuranceController.processReturnByProfile (C:\snapshot\project\src\controllers\InsuranceController.ts:87:14)
at InsuranceController.processReturn (C:\snapshot\project\src\controllers\InsuranceController.ts:67:18)
at InsuranceCallbacks.onUpdate (C:\snapshot\project\src\callbacks\InsuranceCallbacks.ts:57:38)
at App.update (C:\snapshot\project\src\utils\App.ts:75:44)
Found 7 insurance packages in profile 65b0fd730004d2b55ecf7458
Processing 6 insurance packages, which includes a total of 87 items, in profile 65b0fd730004d2b55ecf7458
游戏中表现为大妈无限发消息说你投保的东西她都没找到。
求解决方案。
3.8.0
文字描述
否
服务端报错
下载不看说明导致的
已自行解决。在我的这种情况下,是离线版EFT目录下user\profiles中的人物描述文件中,包含了保险的内容,既
下的全部内容。经仔细检查,发现其在存储一次保险时,不知为何并未保存该保险的生效时间。不知这个生效时间究竟是人物在战局中丢弃该物品的时间还是战局结束的时间(有时是人物死亡的时间),总而言之,该次时间并未保存。删除该次保险的代码或手动添加生效时间即可解决问题。
血色边缘版只是接收BUG反馈的测试版,不是拿来给非测试人员正经玩的,想被BUG折磨的请自便
请看此贴,可以解决!
==关于3.7*/3.8*商人不回保解决办法==
其实原因很简单,
原insurance里保险物品ID
"54cb50c76803fa8b248b4571"
"54cb57776803fa99248b456e"
已从items里消失,搜不到,
Aki_Data\\Server\\database\\locales\\global 里显示已变更为
"5422acb9af1c889c16000029 Name": "武器",
"543be5f84bdc2dd4348b456a Name": "装备",
打开Aki_Data\\Server\\configs\\insurance.josn
{
"insuranceMultiplier": { 费率
"5422acb9af1c889c16000029": 0.16,
"543be5f84bdc2dd4348b456a": 0.15
},
"returnChancePercent": { 回保率
"54cb50c76803fa8b248b4571": 100,
"543be5f84bdc2dd4348b456a": 100
},
把原ID直接替换即可~!
Found 7 insurance packages in profile 65b0fd730004d2b55ecf7458
Processing 6 insurance packages, which includes a total of 87 items, in profile 65b0fd730004d2b55ecf7458
Unable to find an item with slotId 'hideout' in the insured item package.
计划中事件:“aki-insurance”运行失败。
Cannot read properties of undefined (reading 'date')
TypeError: Cannot read properties of undefined (reading 'date')
at filter (C:\snapshot\project\src\controllers\InsuranceController.ts:165:37)
at Array.filter (<anonymous>)
at InsuranceController.removeInsurancePackageFromProfile (C:\snapshot\project\src\controllers\InsuranceController.ts:163:47)
at InsuranceController.processInsuredItems (C:\snapshot\project\src\controllers\InsuranceController.ts:139:18)
at InsuranceController.processReturnByProfile (C:\snapshot\project\src\controllers\InsuranceController.ts:87:14)
at InsuranceController.processReturn (C:\snapshot\project\src\controllers\InsuranceController.ts:67:18)
at InsuranceCallbacks.onUpdate (C:\snapshot\project\src\callbacks\InsuranceCallbacks.ts:57:38)
at App.update (C:\snapshot\project\src\utils\App.ts:75:44)
在进行修理后,手动进游戏跑了两把,用两个号一个故意丢弃保险物品,一个装备保险物品死亡,现在已经可以正常调动保险的函数而不报错。(我并没有研究SPT的代码,并不知道SPT是如何实现保险的运作的,姑且猜测是调用的自定义函数吧。)此帖完结。