3.3.0预设武器无法在神秘商人处购买了,但神秘商人还出售一些其他的满配武器,所以我在EFT\user\mods\tkf-SuperMod\extend\NewTrader\db\assort路径下找到了这几个满配武器的文件(图中CMMG Mk47 Mutant 762×39-S.json文件是我自己准备添加的武器)
想着把我之前12.11版本的预设武器按照这里边json文件格式一个一个的移植过去,新弄的文件代码检查无报错了,能跑起来,但在游戏中这把武器虽然显示出来了,但显示已售罄,无法购买
在此我把代码都贴出来,应该是问题不大,希望大佬帮看看是哪里出了问题,十个币子奉上~
这是神秘商人自带的满配武器文件代码:
{
"items": [
{
"_id": "55d83668ff03d7e12f159727",
"_tpl": "5644bd2b4bdc2d3b4c8b4572",
"parentId": "hideout",
"slotId": "hideout",
"upd": {
"UnlimitedCount": true,
"StackObjectsCount": 999999999,
"SpawnedInSession": true,
"Repairable": {
"MaxDurability": 100,
"Durability": 100
},
"FireMode": {
"FireMode": "single"
}
}
},
{
"_id": "c506ec8ed545af3ecaec03c5",
"_tpl": "59c6633186f7740cf0493bb9",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_gas_block",
"upd": {
"SpawnedInSession": true
}
},
{
"_id": "9a9f1af99c6e00a81eb62ed3",
"_tpl": "5f633f791b231926f2329f13",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_muzzle"
},
{
"_id": "4bc433dffdbba4aef39cecd5",
"_tpl": "5649ae4a4bdc2d1b2b8b4588",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_pistol_grip"
},
{
"_id": "aa4b8f0bd79ac54944ad77a5",
"_tpl": "5d2c770c48f0354b4a07c100",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_reciever"
},
{
"_id": "c7d0898e14537c92317fc5ce",
"_tpl": "5649b0544bdc2d1b2b8b458a",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_sight_rear",
"upd": {
"SpawnedInSession": true,
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "97acb9b3e1d038ada7bb4322",
"_tpl": "5b0e794b5acfc47a877359b2",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_stock"
},
{
"_id": "d69933d1f03ec3bc7bf36bf6",
"_tpl": "55d482194bdc2d1d4e8b456b",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_magazine"
},
{
"_id": "d83a9bd21d28eb2eb20845a9",
"_tpl": "5648ac824bdc2ded0b8b457d",
"parentId": "55d83668ff03d7e12f159727",
"slotId": "mod_charge"
},
{
"_id": "b2a46ab23b21066b2861f7fe",
"_tpl": "5c17664f2e2216398b5a7e3c",
"parentId": "c506ec8ed545af3ecaec03c5",
"slotId": "mod_handguard"
},
{
"_id": "6071d9ca33b80a75d7364e98",
"_tpl": "57ae0171245977343c27bfcf",
"parentId": "aa4b8f0bd79ac54944ad77a5",
"slotId": "mod_scope",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "4157807f8aaba019ccc6a6c1",
"_tpl": "5a0ed824fcdbcb0176308b0d",
"parentId": "c7d0898e14537c92317fc5ce",
"slotId": "mod_sight_rear",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "367d22b1cdc6a897f3a934b9",
"_tpl": "5a9d6d13a2750c00164f6b03",
"parentId": "b2a46ab23b21066b2861f7fe",
"slotId": "mod_mount_000"
},
{
"_id": "f60d3bb2bd5a696f77bdde2b",
"_tpl": "5c1bc5af2e221602b412949b",
"parentId": "367d22b1cdc6a897f3a934b9",
"slotId": "mod_foregrip"
}
],
"barter_scheme": {
"55d83668ff03d7e12f159727": [
[
{
"count": 222222,
"_tpl": "5449016a4bdc2d6f028b456f"
}
]
]
},
"loyal_level_items":{
"55d83668ff03d7e12f159727":1
}
}
**************分割线***************
这是我自己按照它的格式弄的:
{
"items": [
{
"_id": "89b1e6eda8f391a445a87220",
"_tpl": "606587252535c57a13424cfd",
"parentId": "hideout",
"slotId": "hideout",
"upd": {
"UnlimitedCount": true,
"StackObjectsCount": 999999999,
"SpawnedInSession": true,
"Repairable": {
"MaxDurability": 100,
"Durability": 100
},
"FireMode": {
"FireMode": "single"
}
}
},
{
"_id": "46220f0dbd93831301e89659",
"_tpl": "602e71bd53a60014f9705bfa",
"parentId": "89b1e6eda8f391a445a87220",
"slotId": "mod_pistol_grip"
},
{
"_id": "a85edaf0b7945cb411d52dd2",
"_tpl": "59d6272486f77466146386ff",
"parentId": "89b1e6eda8f391a445a87220",
"slotId": "mod_magazine"
},
{
"_id": "7b10ae61e578043c3bfcd85a",
"_tpl": "606587a88900dc2d9a55b659",
"parentId": "89b1e6eda8f391a445a87220",
"slotId": "mod_reciever"
},
{
"_id": "34f786519a3ac76235c70b51",
"_tpl": "5a33ca0fc4a282000d72292f",
"parentId": "89b1e6eda8f391a445a87220",
"slotId": "mod_stock_001"
},
{
"_id": "051b15f198d1805dff1261b2",
"_tpl": "606587bd6d0bd7580617bacc",
"parentId": "89b1e6eda8f391a445a87220",
"slotId": "mod_charge"
},
{
"_id": "adaec14044304c688e7ab6e7",
"_tpl": "5b3b6dc75acfc47a8773fb1e",
"parentId": "7b10ae61e578043c3bfcd85a",
"slotId": "mod_scope"
},
{
"_id": "6c8190588fa7e14988448389",
"_tpl": "6065878ac9cf8012264142fd",
"parentId": "7b10ae61e578043c3bfcd85a",
"slotId": "mod_barrel"
},
{
"_id": "194b3b2816d66bab411cc69a",
"_tpl": "6065881d1246154cad35d637",
"parentId": "7b10ae61e578043c3bfcd85a",
"slotId": "mod_handguard"
},
{
"_id": "c0aa50b7d95e0fe1b32d787d",
"_tpl": "5dfa3d7ac41b2312ea33362a",
"parentId": "7b10ae61e578043c3bfcd85a",
"slotId": "mod_sight_rear",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "4327a501fd5c5048fbce1c5b",
"_tpl": "5d4406a8a4b9361e4f6eb8b7",
"parentId": "34f786519a3ac76235c70b51",
"slotId": "mod_stock"
},
{
"_id": "4988a512c74f66c0a6727264",
"_tpl": "5b3b6e495acfc4330140bd88",
"parentId": "adaec14044304c688e7ab6e7",
"slotId": "mod_scope",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "c53c72c8a7401da48f8adb33",
"_tpl": "59bffc1f86f77435b128b872",
"parentId": "6c8190588fa7e14988448389",
"slotId": "mod_muzzle"
},
{
"_id": "c157d7cda0f399eb48403434",
"_tpl": "6065dc8a132d4d12c81fd8e3",
"parentId": "6c8190588fa7e14988448389",
"slotId": "mod_gas_block"
},
{
"_id": "f3f6f454f2ef1d97d7fed2f1",
"_tpl": "5b7be47f5acfc400170e2dd2",
"parentId": "194b3b2816d66bab411cc69a",
"slotId": "mod_mount_002"
},
{
"_id": "a8a686d1fcfd8fcaac82ce39",
"_tpl": "5b7be4895acfc400170e2dd5",
"parentId": "194b3b2816d66bab411cc69a",
"slotId": "mod_foregrip"
},
{
"_id": "9651c316bd1ec2582b4a2236",
"_tpl": "5c17804b2e2216152006c02f",
"parentId": "194b3b2816d66bab411cc69a",
"slotId": "mod_sight_front",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "fc1660ec0d26fc64d1066ef7",
"_tpl": "58d2664f86f7747fec5834f6",
"parentId": "4988a512c74f66c0a6727264",
"slotId": "mod_scope"
},
{
"_id": "e9070e65103275e8d6425f78",
"_tpl": "58d268fc86f774111273f8c2",
"parentId": "fc1660ec0d26fc64d1066ef7",
"slotId": "mod_scope",
"upd": {
"Sight": {
"ScopesCurrentCalibPointIndexes": [
0
],
"ScopesSelectedModes": [
0
],
"SelectedScope": 0
}
}
},
{
"_id": "fa49685701b3e9351c43ee85",
"_tpl": "59bffbb386f77435b379b9c2",
"parentId": "c53c72c8a7401da48f8adb33",
"slotId": "mod_muzzle"
},
{
"_id": "51adb773be12cee4e83f1220",
"_tpl": "56def37dd2720bec348b456a",
"parentId": "f3f6f454f2ef1d97d7fed2f1",
"slotId": "mod_tactical",
"upd": {
"Light": {
"IsActive": true,
"SelectedMode": 0
}
}
},
{
"_id": "76670caa463acea83e073741",
"_tpl": "5c1cd46f2e22164bef5cfedb",
"parentId": "a8a686d1fcfd8fcaac82ce39",
"slotId": "mod_foregrip"
}
],
"barter_scheme": {
"55d83668ff03d7e12f159727": [ //①
[
{
"count": 100000,
"_tpl": "5449016a4bdc2d6f028b456f" //②
}
]
]
},
"loyal_level_items":{
"55d83668ff03d7e12f159727":1 //③
}
}
文末我备注的那三行ID码我就按照神秘商人预设武器文件里的代码粘过来的,没改,因为不清楚什么意思,ch、globals、items文件里没查到,在线资料修改站也没查到,
(“_tpl”: “5449016a4bdc2d6f028b456f” //② 这串倒是在items文件里找到了,但也没搞懂是什么意思。。)
自己能想到的问题是不是和ID重复有关?还是和我跳蚤市场无法解禁黑名单物品有关?
求大佬帮助~
SPT AKI-3.3.0
已配图
是
其他问题











已售罄的问题 你将注释1处的代码改成对应的代码即可。应该就是没有找到售价所以产生的问题,我也不知道这么解释对不对,但可以这么解决。
第一个注释 你需要改成你自己武器的id。也就是你自己的第四行那个。
第二个注释 是交换所需物品id, 54492016a4bdc2d6f028b456f 这个id是卢布。上面 count 一行是需要的数量
第三个注释 是商人好感等级