emily7443eee 發表於 2025-9-15 06:51

徵求高手幫忙處理黑盒子錯誤(可付費)

想要請問一下 有高手可以幫我看看 這些錯誤到底是甚麼嗎?

是否有辦法可以解決呢?(可付費請私我)



ERROR - com.lineage.server.model.Instance.L1MonsterInstance cannot be cast to com.lineage.server.model.Instance.L1EffectInstance
java.lang.ClassCastException: com.lineage.server.model.Instance.L1MonsterInstance cannot be cast to com.lineage.server.model.Instance.L1EffectInstance
      at com.lineage.server.utils.L1SpawnUtil.spawnEffect(L1SpawnUtil.java:559)
      at com.lineage.server.model.L1MobSkillUse.area_poison(L1MobSkillUse.java:287)
      at com.lineage.server.model.L1MobSkillUse.useSkill(L1MobSkillUse.java:265)
      at com.lineage.server.model.L1MobSkillUse.skillUse(L1MobSkillUse.java:149)
      at com.lineage.server.model.Instance.L1NpcInstance.attack(L1NpcInstance.java:595)
      at com.lineage.server.model.Instance.L1NpcInstance.onTarget(L1NpcInstance.java:470)
      at com.lineage.server.model.Instance.NpcAI.stopAIProcess(NpcAI.java:100)
      at com.lineage.server.model.Instance.NpcAI.run(NpcAI.java:34)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

yasioukon 發表於 2025-9-15 09:18

錯誤有提到 發生在
L1SpawnUtil.java檔案第559行

類型使用錯誤 一個是monster 一個是effect

emily7443eee 發表於 2025-9-15 19:46

yasioukon 發表於 2025-9-15 09:18
錯誤有提到 發生在
L1SpawnUtil.java檔案第559行



L1SpawnUtil.java檔案



請問這個檔案要用甚麼開啟呢?

dragonpg 發表於 2025-9-15 21:12

資料表對應的 npcId 錯了,area_poison 這個技能用了怪物 ID,而不是特效 NPC ID
你要嘛修 mobskill 對應,要嘛補一個正確的特效 NPC 定義

emily7443eee 發表於 2025-9-16 09:00

dragonpg 發表於 2025-9-15 21:12
資料表對應的 npcId 錯了,area_poison 這個技能用了怪物 ID,而不是特效 NPC ID
你要嘛修 mobskill 對應, ...

我有修正了 但是還是一樣 我猜想應該是因為核心裡面的沒有改
我是直接改DB的
頁: [1]
查看完整版本: 徵求高手幫忙處理黑盒子錯誤(可付費)