Mobius端 打怪报错 不掉钱和物品 求大佬指导!!!
4月 07, 2022 9:35:54 上午 org.l2jmobius.gameserver.model.actor.Attackable calculateRewards严重:
java.lang.NullPointerException: Cannot invoke "org.l2jmobius.gameserver.model.vip.VipInfo.getSilverCoinChance()" because the return value of "org.l2jmobius.gameserver.model.vip.VipManager.getVipInfo(org.l2jmobius.gameserver.model.actor.instance.PlayerInstance)" is null
at org.l2jmobius.gameserver.model.vip.VipManager.getSilverCoinDropChance(VipManager.java:152)
at org.l2jmobius.gameserver.model.actor.templates.NpcTemplate.processVipDrops(NpcTemplate.java:805)
at org.l2jmobius.gameserver.model.actor.templates.NpcTemplate.calculateDrops(NpcTemplate.java:794)
at org.l2jmobius.gameserver.model.actor.Attackable.doItemDrop(Attackable.java:1157)
at org.l2jmobius.gameserver.model.actor.Attackable.doItemDrop(Attackable.java:1082)
at org.l2jmobius.gameserver.model.actor.Attackable.calculateRewards(Attackable.java:516)
at org.l2jmobius.gameserver.model.actor.Creature.doDie(Creature.java:1698)
at org.l2jmobius.gameserver.model.actor.Npc.doDie(Npc.java:925)
at org.l2jmobius.gameserver.model.actor.Attackable.doDie(Attackable.java:294)
at org.l2jmobius.gameserver.model.actor.status.CreatureStatus.reduceHp(CreatureStatus.java:188)
at org.l2jmobius.gameserver.model.actor.status.NpcStatus.reduceHp(NpcStatus.java:57)
at org.l2jmobius.gameserver.model.actor.status.AttackableStatus.reduceHp(AttackableStatus.java:59)
at org.l2jmobius.gameserver.model.actor.Creature.reduceCurrentHp(Creature.java:4728)
at org.l2jmobius.gameserver.model.actor.Attackable.reduceCurrentHp(Attackable.java:268)
at org.l2jmobius.gameserver.model.actor.Creature.doAttack(Creature.java:4551)
at org.l2jmobius.gameserver.model.actor.Creature.onHitTarget(Creature.java:3892)
at org.l2jmobius.gameserver.model.actor.Creature.onHitTimeNotDual(Creature.java:3822)
at org.l2jmobius.gameserver.model.actor.Creature.lambda$doAutoAttack$10(Creature.java:1212)
at org.l2jmobius.commons.threads.RunnableWrapper.run(RunnableWrapper.java:35)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833) 它的意思是找不到 银币 掉落的几率
VipManager.java:152 行 检查一下
本帖最后由 hzzhanglin 于 2022-4-8 21:14 编辑
Mobius源码编译出来 game/data下有一个VIP的文件和game/config/cutom下有个vipsystem的设置文件 找不到VipManager
hzzhanglin 发表于 2022-4-8 20:04
Mobius源码编译出来 game/data下有一个VIP的文件和game/config/cutom下有个vipsystem的设置文件 找不到 ...
在源码里!~ l2fater 发表于 2022-4-8 21:39
在源码里!~
源码里找到了,把整个文件夹都放入服务端根目录里么? hzzhanglin 发表于 2022-4-9 11:10
源码里找到了,把整个文件夹都放入服务端根目录里么?
我不知道你用的是哪个章节的源码,
报错显示的是没有调用到 SilverCoinChance ,
给你两个方向参考
1,回忆一下,config里是否有改过类似掉落的设定改动
2,去源码里指定一个几率!~然后编译 或者你用搜索工具,在源码里搜索SilverCoinChance l2fater 发表于 2022-4-9 11:47
我不知道你用的是哪个章节的源码,
报错显示的是没有调用到 SilverCoinChance ,
给你两个方向参考
L2J_Mobius_Classic_3.0_TheKamael
1、config 里面什么都没动过
2、源码里指定几率不会弄,编译还是看你提供的教程学习的。 hzzhanglin 发表于 2022-4-9 21:27
L2J_Mobius_Classic_3.0_TheKamael
1、config 里面什么都没动过
2、源码里指定几率不会弄,编译还 ...
config文件夹内 custom/VipSystem.ini
里面把VipEnabled = False 改成 VipEnabled = True 试一下 l2fater 发表于 2022-4-9 22:38
config文件夹内 custom/VipSystem.ini
里面把VipEnabled = False 改成 VipEnabled = True 试一下
改了,竟然好了,打怪掉金币了! 万分感谢!!!
页:
[1]