添加两艘船只,其中一艘会报错
在0.95添加两艘不败,其中一艘能正常使用,另外的用控制台刷出来就报错。请问这个“because "<local10>" is null”是什么呢?之前添加船的时候也出现过,但不知怎么就消失了。
报错内容:
406374 ERROR com.fs.starfarer.combat.CombatMain- java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.loading.specs.oO0O.createSystem(com.fs.starfarer.combat.entities.Ship)" because "<local10>" is null
java.lang.NullPointerException: Cannot invoke "com.fs.starfarer.loading.specs.oO0O.createSystem(com.fs.starfarer.combat.entities.Ship)" because "<local10>" is null
at com.fs.starfarer.combat.entities.Ship.<init>(Unknown Source) ~
at com.fs.starfarer.loading.specs._.o00000(Unknown Source) ~
at com.fs.starfarer.title.Object.M.super(Unknown Source) ~
at com.fs.starfarer.title.Object.M.render(Unknown Source) ~
at com.fs.starfarer.coreui.Oo0o.o00000(Unknown Source) ~
at com.fs.starfarer.ui.OoO0.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.campaign.ui.fleet.FleetMemberView.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.coreui.G.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.e$Oo.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.e.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.coreui.publicsuper.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.coreui.X.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.newui.o0OO.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.N.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.newui.OO0O.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.N.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.newui.do.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.newui.o0Oo.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.ui.v.renderImpl(Unknown Source) ~
at com.fs.starfarer.ui.Q.render(Unknown Source) ~
at com.fs.starfarer.campaign.CampaignState.render(Unknown Source) ~
at com.fs.starfarer.BaseGameState.traverse(Unknown Source) ~
at com.fs.state.AppDriver.begin(Unknown Source) ~
at com.fs.starfarer.combat.CombatMain.main(Unknown Source) ~
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source) ~
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) ~
at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]
这是写的ship_data.csv
不败改,Invictusmk2,无畏舰,主宰纪元,canister_flak,40,44000,10500,36000,13500,1450,385,,37,16,13,4,4,12000,PHASE,lidararray,0,0,0,,,4250,6250,1450,1200,18,40,6,950000,3,12,1300,0.25,70,70,,,,,,,,"low_tech_bp",,0.2,2,2,,501.01
不惩败戒,bubai,无畏舰,主宰纪元,canister_flak,35,40000,10000,30000,12500,1200,280,,35,15,15,4,4,10000,PHASE,lidararray,0,0,0,,,4000,6000,1000,800,20,40,6,700000,3,12,1200,0.25,60,60,,,,,,,SHIP_WITH_MODULES,,,0.2,2,2,,5111
惩戒,chengjie,战列巡洋舰,主宰纪元,orion_device,1,10000,800,15000,17500,1000,300,,0,0,0,10,10,2500,OMNI,,60,0.2,1.2,,,0,0,0,0,1,0,,200000,3,1,1200,0.25,0,0,,,,,,,"UNBOARDABLE, HIDE_IN_CODEX",,,0.5,2,4,,5131
不败改,Invictusmk2能正常使用,模块船“不惩败戒,bubai”会报错。
以我不多的经验来看,csv没问题,要不把舰船文件和装配文件贴上来看看{:5_118:} 这是主船体ship文件
{
"hullName": "bubai",
"hullId": "bubai",
"hullSize": "CAPITAL_SHIP",
"spriteName": "graphics/Invictusmk2/bubai.png",
"style": "LOW_TECH",
"height": 420,
"width": 364,
"center": ,
"collisionRadius": 300,
"shieldCenter": ,
"shieldRadius": 277,
"viewOffset": 0,
"builtInMods": [
"hbi",
"ablative_armor",
"distributed_fire_control",
"vast_hangar"
],
"builtInWeapons": {
"WS 022": "lidardish",
"WS 023": "lidardish",
"WS 024": "lidardish",
"WS 025": "lidardish"
},
"weaponSlots": [
{
"id": "WS 000",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": 45,
"locations":
},
{
"id": "WS 001",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "HARDPOINT",
"arc": 5,
"angle": 0,
"locations":
},
{
"id": "WS 002",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "HARDPOINT",
"arc": 5,
"angle": 0,
"locations":
},
{
"id": "WS 003",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": -90,
"locations":
},
{
"id": "WS 004",
"size": "LARGE",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": 90,
"locations": [-55, 133]
},
{
"id": "WS 005",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": 225,
"locations": [-125, -73]
},
{
"id": "WS 006",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": 135,
"locations": [-125, 73]
},
{
"id": "WS 007",
"size": "LARGE",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": 90,
"locations": [-99, 133]
},
{
"id": "WS 008",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": 90,
"locations":
},
{
"id": "WS 009",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "HARDPOINT",
"arc": 5,
"angle": 0,
"locations":
},
{
"id": "WS 010",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "HARDPOINT",
"arc": 5,
"angle": 0,
"locations":
},
{
"id": "WS 011",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 90,
"locations": [-6, 170]
},
{
"id": "WS 012",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 65,
"locations":
},
{
"id": "WS 013",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 15,
"locations":
},
{
"id": "WS 014",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 0,
"locations":
},
{
"id": "WS 015",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": -15,
"locations":
},
{
"id": "WS 016",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": -65,
"locations":
},
{
"id": "WS 017",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": -90,
"locations": [-5, -170]
},
{
"id": "WS 018",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 250,
"locations": [-77, -156]
},
{
"id": "WS 019",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 210,
"locations": [-164, -115]
},
{
"id": "WS 020",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 150,
"locations": [-164, 116]
},
{
"id": "WS 021",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 8,
"angle": 110,
"locations": [-77, 156]
},
{
"id": "WS 022",
"size": "SMALL",
"type": "DECORATIVE",
"mount": "TURRET",
"arc": 360,
"angle": 0,
"locations":
},
{
"id": "WS 023",
"size": "SMALL",
"type": "DECORATIVE",
"mount": "TURRET",
"arc": 360,
"angle": 0,
"locations":
},
{
"id": "WS 024",
"size": "SMALL",
"type": "DECORATIVE",
"mount": "TURRET",
"arc": 360,
"angle": 0,
"locations":
},
{
"id": "WS 025",
"size": "SMALL",
"type": "DECORATIVE",
"mount": "TURRET",
"arc": 360,
"angle": 0,
"locations":
},
{
"id": "WS 026",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": -45,
"locations":
},
{
"id": "WS 027",
"size": "LARGE",
"type": "LAUNCH_BAY",
"mount": "HIDDEN",
"arc": 5,
"angle": -90,
"locations": [
-53, -126,
-84, -126,
-101, -125,
-69, -126
]
},
{
"id": "WS0001",
"size": "LARGE",
"type": "STATION_MODULE",
"mount": "TURRET",
"arc": 30,
"angle": 0,
"locations": [-12, -0]
}
],
"engineSlots": [
{
"location": [-208, 50],
"length": 100,
"width": 32,
"angle": 180,
"contrailSize": 120,
"style": "LOW_TECH"
},
{
"location": [-212, 19],
"length": 100,
"width": 32,
"angle": 180,
"contrailSize": 120,
"style": "LOW_TECH"
},
{
"location": [-212, -19],
"length": 100,
"width": 32,
"angle": 180,
"contrailSize": 120,
"style": "LOW_TECH"
},
{
"location": [-208, -49],
"length": 100,
"width": 32,
"angle": 180,
"contrailSize": 120,
"style": "LOW_TECH"
},
{
"location": [-203, 96],
"length": 60,
"width": 24,
"angle": 180,
"contrailSize": 80,
"style": "LOW_TECH"
},
{
"location": [-203, 77],
"length": 64,
"width": 26,
"angle": 180,
"contrailSize": 88,
"style": "LOW_TECH"
},
{
"location": [-203, -77],
"length": 64,
"width": 26,
"angle": 180,
"contrailSize": 88,
"style": "LOW_TECH"
},
{
"location": [-203, -95],
"length": 60,
"width": 24,
"angle": 180,
"contrailSize": 80,
"style": "LOW_TECH"
}
],
"bounds": [
-124, 115,
-123, 159,
-45, 156,
-35, 181,
138, 162,
202, 112,
203, 92,
183, 87,
185, 1,
184, -88,
206, -92,
203, -114,
139, -162,
-33, -178,
-41, -156,
-122, -155,
-125, -117,
-190, -123,
-190, 124
]
}
模块的ship
{
"hullName": "chengjie",
"hullId": "chengjie",
"hullSize": "CAPITAL_SHIP",
"spriteName": "graphics/Invictusmk2/chengjie.png",
"style": "LOW_TECH",
"height": 299,
"width": 204,
"center": ,
"collisionRadius": 377,
"shieldCenter": ,
"shieldRadius": 333.5,
"viewOffset": 0,
"builtInMods": [
"distributed_fire_control"
],
"builtInWeapons": {
"WS 019": "pusherplate_lt"
},
"weaponSlots": [
{
"id": "WS 000",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 190,
"angle": 60,
"locations":
},
{
"id": "WS 001",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 190,
"angle": -60,
"locations":
},
{
"id": "WS 002",
"size": "LARGE",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 120,
"angle": 0,
"locations":
},
{
"id": "WS 003",
"size": "MEDIUM",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": 30,
"locations":
},
{
"id": "WS 004",
"size": "MEDIUM",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": -30,
"locations":
},
{
"id": "WS 005",
"size": "MEDIUM",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": 15,
"locations":
},
{
"id": "WS 006",
"size": "MEDIUM",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 150,
"angle": -15,
"locations":
},
{
"id": "WS 007",
"size": "SMALL",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": 90,
"locations": [-21, 81]
},
{
"id": "WS 008",
"size": "SMALL",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": 90,
"locations": [-42, 86]
},
{
"id": "WS 009",
"size": "SMALL",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": 90,
"locations": [-62, 91]
},
{
"id": "WS 010",
"size": "SMALL",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": -90,
"locations": [-21, -81]
},
{
"id": "WS 011",
"size": "SMALL",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 170,
"angle": 60,
"locations":
},
{
"id": "WS 012",
"size": "SMALL",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 170,
"angle": -60,
"locations":
},
{
"id": "WS 013",
"size": "SMALL",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 170,
"angle": 40,
"locations":
},
{
"id": "WS 014",
"size": "SMALL",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 170,
"angle": -40,
"locations":
},
{
"id": "WS 015",
"size": "SMALL",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 200,
"angle": 0,
"locations":
},
{
"id": "WS 016",
"size": "SMALL",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 210,
"angle": 240,
"locations": [-86, -86]
},
{
"id": "WS 017",
"size": "SMALL",
"type": "BALLISTIC",
"mount": "TURRET",
"arc": 210,
"angle": 120,
"locations": [-86, 86]
},
{
"id": "WS 018",
"size": "SMALL",
"type": "SYSTEM",
"mount": "HIDDEN",
"arc": 5,
"angle": 180,
"locations": [-117, 0]
},
{
"id": "WS 019",
"size": "LARGE",
"type": "DECORATIVE",
"mount": "TURRET",
"arc": 5,
"angle": 180,
"locations": [-133, 0]
},
{
"id": "WS 020",
"size": "SMALL",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": -90,
"locations": [-42, -85]
},
{
"id": "WS 021",
"size": "SMALL",
"type": "MISSILE",
"mount": "HARDPOINT",
"arc": 5,
"angle": -90,
"locations": [-62, -90]
}
],
"engineSlots": [],
"bounds": [
150.5, 1,
76.5, -88.5,
11, -83.5,
30.5, -46.5,
2.5, -45.5,
-22, -77.5,
-99.5, -95,
-96, -43,
-117, -36,
-117, 37,
-94, 45,
-101.5, 92,
-22, 76.5,
-5.5, 46.5,
27, 46,
11.5, 83,
73.5, 88.5
]
} 面瘫的土豆 发表于 2024-7-14 15:26
以我不多的经验来看,csv没问题,要不把舰船文件和装配文件贴上来看看
上面是.ship文件 你试试把类型为system的武器槽数量削减到10个以内 你说你玩的本体是0.95,0.95是没有不败和惩戒的{:5_118:}
你可以试着把游戏版本升级到0.96{:5_116:}
或者把那几个内置的装饰武器和0.96没有的船插删了{:5_126:}
或者把那几个武器和船插也一起搬到0.95{:5_128:} 但是你不败改能在0.95正常用有点奇怪啊{:5_133:} 要不试试这个mod
回到未来(0.96-RC10部分搬运)
https://www.fossic.org/thread-8805-1-1.html
(出处: 远行星号中文论坛)
面瘫的土豆 发表于 2024-7-15 08:53
你说你玩的本体是0.95,0.95是没有不败和惩戒的
你可以试着把游戏版本升级到0.96
ship_system和variant都写了一份。第一艘不败改可以成功运行和开启技能。
D:\Starsector\Starsector0.95.1a-RC6\screenshot003.pngscreenshots\ cjy4312 发表于 2024-7-14 22:18
你试试把类型为system的武器槽数量削减到10个以内
感谢帮助,但好像没有作用(悲伤)。
.ship文件是直接抄写0.96的,而且第一艘的system的武器槽也超过10个,但可以正常运行。 这个是运行图 直接把mod打包发上来看看吧
页:
[1]