Mthec

[Released] Mthec's NPCs - Crafter, Buyer, DeliveryContracts, MerchantCap, CustomTrader, ToolPurchaser, Banker, BeastSummoner

Recommended Posts

5 hours ago, Mthec said:

It is likely to be a problem with one of my mods.  What version of BuyerMerchant are you using?  There used to be a compatibility issue, but it was fixed in version 0.5.25.

Oh wow, I just checked and I'm still back at version 0.5.23. I'll upgrade now. Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

I've been trying out the Beast summoner on my LAN, but we can't get it to take our money. I did set it to choose money as currency. We have large rats at 5c, and I'm trying to pay with a 20 coin of silver. Do we need to give it the exact price, or is there something else I'm missing?  @Mthec

Share this post


Link to post
Share on other sites
Posted (edited)

hmm  @Mthec  I am trying to use the Buyer to buy by ql level.  But when I setup my ql 1 diamond for 1 copper and hit save prices the hit add item and selected diamond and put it in for ql 10 and 2 copper 10 iron it overwrote the ql 1 diamond one i put in there.  I know I must be missing something extremely simple but I have been trying for 4 hours now.  What the hell am I missing?

Edited by LightningRoc

Share this post


Link to post
Share on other sites
On 8/13/2022 at 1:54 PM, Batta said:

I've been trying out the Beast summoner on my LAN, but we can't get it to take our money. I did set it to choose money as currency. We have large rats at 5c, and I'm trying to pay with a 20 coin of silver. Do we need to give it the exact price, or is there something else I'm missing?  @Mthec

The Beast Summoner will give change, so that's not the issue.

 

When you get to the trade window, does it say the correct price?  Does the Beast Summoner say the usual "<name> demands x coins to make the trade." message, and does that have the right price?  Any other messages in Event, or in the summoner's log?

 

22 hours ago, LightningRoc said:

hmm  @Mthec  I am trying to use the Buyer to buy by ql level.  But when I setup my ql 1 diamond for 1 copper and hit save prices the hit add item and selected diamond and put it in for ql 10 and 2 copper 10 iron it overwrote the ql 1 diamond one i put in there.  I know I must be missing something extremely simple but I have been trying for 4 hours now.  What the hell am I missing?

You're not missing anything.  I can't remember the details but for some reason I prevented any duplicates with the same template/material.  I think it was trying to prevent any confusion with which rows would be updated when you edit the prices/details.

 

Either I changed something along the way and never went back, or have learnt more since then, but I have it working now.

 

BuyerMerchant update

Download

 

Enabled multiple items with same template/material but different weight/ql.

Share this post


Link to post
Share on other sites
Posted (edited)
17 hours ago, Mthec said:

When you get to the trade window, does it say the correct price?  Does the Beast Summoner say the usual "<name> demands x coins to make the trade." message, and does that have the right price?  Any other messages in Event, or in the summoner's log?

Everything runs normally through the creature-choosing, but then there is nothing at all in the trade window. If I choose 1 creature, there is nothing in the Event window, but if I choose 2 (out of the max 4) I get a message that the Beast Summoner didn't understand the number, so is giving me 1 - but then once again there is nothing in the Event window. 

There is a lot of mention of the Beast Summoner in the server log, though. I haven't found a "summoner's log" yet.

Spoiler

 

[04:18:33 AM] WARNING org.gotti.wurmunlimited.modloader.EarlyLoadingChecker: Mod beastsummoner loaded server class com.wurmonline.server.questions.CreatureTypeList during phase configure...

[04:19:00 AM] WARNING mod.wurmunlimited.npcs.beastsummoner.db.BeastSummonerDatabase: Unknown creature type byte encountered - 1299345679
[04:19:00 AM] WARNING mod.wurmunlimited.npcs.beastsummoner.db.BeastSummonerDatabase: Unknown creature type byte encountered - 1299345679...

[04:21:04 AM] INFO com.wurmonline.server.creatures.Communicator: Battalan- communication failed: 
org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler(Creature.java)
    at com.wurmonline.server.questions.BeastSummonerRequestQuestion.answer(BeastSummonerRequestQuestion.java:95)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_BML_FORM(Communicator.java:3504)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2403)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.npcs.CrafterMod.getTradeHandler(CrafterMod.java:609)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 9 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$3(Creature.java)
    ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.buyermerchant.BuyerMerchant.getTradeHandler(BuyerMerchant.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 16 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.NullPointerException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$2(Creature.java)
    ... 22 more
Caused by: java.lang.NullPointerException
    at com.wurmonline.server.creatures.TradeHandler.<init>(TradeHandler.java:75)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.<init>(BeastSummonerTradeHandler.java:23)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandlerCoins.<init>(BeastSummonerTradeHandlerCoins.java:14)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.create(BeastSummonerTradeHandler.java:94)
    at mod.wurmunlimited.npcs.TradeSetup.getTradeHandler(TradeSetup.java:116)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 23 more

[04:21:58 AM] INFO FuelStorage: Refuelling:
[04:22:19 AM] WARNING com.wurmonline.server.items.BaseTrade: null
java.lang.NullPointerException
    at com.wurmonline.server.creatures.Creature.endTrade(Creature.java:2782)
    at com.wurmonline.server.creatures.CreatureCommunicator.sendCloseTradeWindow(CreatureCommunicator.java:175)
    at com.wurmonline.server.items.BaseTrade.end(BaseTrade.java:157)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2461)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

[04:22:58 AM] INFO FuelStorage: Refuelling:
[04:23:06 AM] WARNING com.wurmonline.server.questions.Question: Summoner shop was null.
[04:23:06 AM] WARNING com.wurmonline.server.economy.BeastSummonerEconomy: Shop exists in getShops(), but cannot get via getShop().
[04:23:54 AM] INFO com.wurmonline.server.Server: current mem in use: 1000M free mem: 789M Max mem: 2010M
player count: 1
bytes in: 3440 bytes out: 872330 total in: 3440 total out: 872330
Server uptime: 300 seconds. Unanswered questions:1
[04:23:58 AM] INFO FuelStorage: Refuelling:
[04:24:58 AM] INFO FuelStorage: Refuelling:
[04:25:41 AM] INFO com.wurmonline.server.creatures.Communicator: Battalan- communication failed: 
org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler(Creature.java)
    at com.wurmonline.server.questions.BeastSummonerRequestQuestion.answer(BeastSummonerRequestQuestion.java:95)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_BML_FORM(Communicator.java:3504)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2403)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.npcs.CrafterMod.getTradeHandler(CrafterMod.java:609)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 9 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$3(Creature.java)
    ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.buyermerchant.BuyerMerchant.getTradeHandler(BuyerMerchant.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 16 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.NullPointerException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$2(Creature.java)
    ... 22 more
Caused by: java.lang.NullPointerException
    at com.wurmonline.server.creatures.TradeHandler.<init>(TradeHandler.java:75)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.<init>(BeastSummonerTradeHandler.java:23)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandlerCoins.<init>(BeastSummonerTradeHandlerCoins.java:14)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.create(BeastSummonerTradeHandler.java:94)
    at mod.wurmunlimited.npcs.TradeSetup.getTradeHandler(TradeSetup.java:116)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 23 more

[04:25:43 AM] WARNING com.wurmonline.server.items.BaseTrade: null
java.lang.NullPointerException
    at com.wurmonline.server.creatures.Creature.endTrade(Creature.java:2782)
    at com.wurmonline.server.creatures.CreatureCommunicator.sendCloseTradeWindow(CreatureCommunicator.java:175)
    at com.wurmonline.server.items.BaseTrade.end(BaseTrade.java:157)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2461)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

[04:25:58 AM] INFO FuelStorage: Refuelling:
[04:26:58 AM] INFO FuelStorage: Refuelling:
[04:27:27 AM] INFO com.wurmonline.server.creatures.Communicator: Battalan- communication failed: 
org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler(Creature.java)
    at com.wurmonline.server.questions.BeastSummonerRequestQuestion.answer(BeastSummonerRequestQuestion.java:95)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_BML_FORM(Communicator.java:3504)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2403)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.npcs.CrafterMod.getTradeHandler(CrafterMod.java:609)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 9 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$3(Creature.java)
    ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.buyermerchant.BuyerMerchant.getTradeHandler(BuyerMerchant.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 16 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.NullPointerException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$2(Creature.java)
    ... 22 more
Caused by: java.lang.NullPointerException
    at com.wurmonline.server.creatures.TradeHandler.<init>(TradeHandler.java:75)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.<init>(BeastSummonerTradeHandler.java:23)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandlerCoins.<init>(BeastSummonerTradeHandlerCoins.java:14)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.create(BeastSummonerTradeHandler.java:94)
    at mod.wurmunlimited.npcs.TradeSetup.getTradeHandler(TradeSetup.java:116)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 23 more

[04:27:58 AM] INFO FuelStorage: Refuelling:
[04:28:19 AM] WARNING com.wurmonline.server.items.BaseTrade: null
java.lang.NullPointerException
    at com.wurmonline.server.creatures.Creature.endTrade(Creature.java:2782)
    at com.wurmonline.server.creatures.CreatureCommunicator.sendCloseTradeWindow(CreatureCommunicator.java:175)
    at com.wurmonline.server.items.BaseTrade.end(BaseTrade.java:157)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2461)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

[04:28:52 AM] INFO com.wurmonline.server.creatures.Communicator: Battalan- communication failed: 
org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler(Creature.java)
    at com.wurmonline.server.questions.BeastSummonerRequestQuestion.answer(BeastSummonerRequestQuestion.java:95)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_BML_FORM(Communicator.java:3504)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2403)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.npcs.CrafterMod.getTradeHandler(CrafterMod.java:609)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 9 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$3(Creature.java)
    ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.buyermerchant.BuyerMerchant.getTradeHandler(BuyerMerchant.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 16 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.NullPointerException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$2(Creature.java)
    ... 22 more
Caused by: java.lang.NullPointerException
    at com.wurmonline.server.creatures.TradeHandler.<init>(TradeHandler.java:75)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.<init>(BeastSummonerTradeHandler.java:23)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandlerCoins.<init>(BeastSummonerTradeHandlerCoins.java:14)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.create(BeastSummonerTradeHandler.java:94)
    at mod.wurmunlimited.npcs.TradeSetup.getTradeHandler(TradeSetup.java:116)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 23 more

[04:28:54 AM] INFO com.wurmonline.server.Server: current mem in use: 1000M free mem: 776M Max mem: 2010M
player count: 1
bytes in: 4294 bytes out: 27105 total in: 7734 total out: 899435
Server uptime: 600 seconds. Unanswered questions:1
[04:28:56 AM] WARNING com.wurmonline.server.items.BaseTrade: null
java.lang.NullPointerException
    at com.wurmonline.server.creatures.Creature.endTrade(Creature.java:2782)
    at com.wurmonline.server.creatures.CreatureCommunicator.sendCloseTradeWindow(CreatureCommunicator.java:175)
    at com.wurmonline.server.items.BaseTrade.end(BaseTrade.java:157)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2461)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

 

?imw=5000&imh=5000&ima=fit&impolicy=Lett

?imw=5000&imh=5000&ima=fit&impolicy=Lett

Edited by Batta
added screenshots
  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Batta said:

Everything runs normally through the creature-choosing, but then there is nothing at all in the trade window. If I choose 1 creature, there is nothing in the Event window, but if I choose 2 (out of the max 4) I get a message that the Beast Summoner didn't understand the number, so is giving me 1 - but then once again there is nothing in the Event window. 

There is a lot of mention of the Beast Summoner in the server log, though. I haven't found a "summoner's log" yet.

Thank you for the extra details.  Haven't quite tracked down the problem, but have a new version that should give a more helpful error message.

 

Download

 

If you could please try another request, then check the server log for the following line, and post the lines after it:

Shop exists in getShops(), but cannot get via getShop().

Thanks.

Share this post


Link to post
Share on other sites
20 hours ago, Mthec said:

If you could please try another request, then check the server log for the following line, and post the lines after it:


Shop exists in getShops(), but cannot get via getShop().

 

@Mthec Thank you for your help.  With the new version, here is the message from the server log:

Spoiler

[05:35:17 AM] WARNING com.wurmonline.server.economy.BeastSummonerEconomy: Shop exists in getShops(), but cannot get via getShop().
mod.wurmunlimited.npcs.TradeSetup$$Lambda$93/1863100050
mod.wurmunlimited.npcs.CrafterMod$$Lambda$122/1111379131
[05:35:48 AM] INFO com.wurmonline.server.creatures.Communicator: Battalan- communication failed: 
org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler(Creature.java)
    at com.wurmonline.server.questions.BeastSummonerRequestQuestion.answer(BeastSummonerRequestQuestion.java:96)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_BML_FORM(Communicator.java:3504)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2403)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.npcs.CrafterMod.getTradeHandler(CrafterMod.java:609)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 9 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$3(Creature.java)
    ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.buyermerchant.BuyerMerchant.getTradeHandler(BuyerMerchant.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 16 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.NullPointerException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$2(Creature.java)
    ... 22 more
Caused by: java.lang.NullPointerException
    at com.wurmonline.server.creatures.TradeHandler.<init>(TradeHandler.java:75)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.<init>(BeastSummonerTradeHandler.java:23)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandlerCoins.<init>(BeastSummonerTradeHandlerCoins.java:14)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.create(BeastSummonerTradeHandler.java:94)
    at mod.wurmunlimited.npcs.TradeSetup.getTradeHandler(TradeSetup.java:116)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 23 more

[05:35:55 AM] WARNING com.wurmonline.server.items.BaseTrade: null
java.lang.NullPointerException
    at com.wurmonline.server.creatures.Creature.endTrade(Creature.java:2782)
    at com.wurmonline.server.creatures.CreatureCommunicator.sendCloseTradeWindow(CreatureCommunicator.java:175)
    at com.wurmonline.server.items.BaseTrade.end(BaseTrade.java:157)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2461)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

[05:36:00 AM] WARNING com.wurmonline.server.questions.Question: Summoner shop was null.
[05:36:00 AM] WARNING com.wurmonline.server.economy.BeastSummonerEconomy: Shop exists in getShops(), but cannot get via getShop().
mod.wurmunlimited.npcs.TradeSetup$$Lambda$93/1863100050
mod.wurmunlimited.npcs.CrafterMod$$Lambda$122/1111379131
[05:36:04 AM] INFO com.wurmonline.server.questions.Question: Battalan dismisses summoner Beast_Summoner_Lightheart with WurmID: 151045949953
[05:36:28 AM] INFO com.wurmonline.server.questions.Question: Battalan created a summoner: 352422873601
[05:36:30 AM] WARNING com.wurmonline.server.questions.Question: Summoner shop was null.
[05:36:30 AM] WARNING com.wurmonline.server.economy.BeastSummonerEconomy: Shop exists in getShops(), but cannot get via getShop().
mod.wurmunlimited.npcs.TradeSetup$$Lambda$93/1863100050
mod.wurmunlimited.npcs.CrafterMod$$Lambda$122/1111379131
[05:38:30 AM] INFO com.wurmonline.server.creatures.Communicator: Battalan- communication failed: 
org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler(Creature.java)
    at com.wurmonline.server.questions.BeastSummonerRequestQuestion.answer(BeastSummonerRequestQuestion.java:96)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_BML_FORM(Communicator.java:3504)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2403)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.npcs.CrafterMod.getTradeHandler(CrafterMod.java:609)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 9 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$3(Creature.java)
    ... 15 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.buyermerchant.BuyerMerchant.getTradeHandler(BuyerMerchant.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 16 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.NullPointerException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$2(Creature.java)
    ... 22 more
Caused by: java.lang.NullPointerException
    at com.wurmonline.server.creatures.TradeHandler.<init>(TradeHandler.java:75)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.<init>(BeastSummonerTradeHandler.java:23)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandlerCoins.<init>(BeastSummonerTradeHandlerCoins.java:14)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.create(BeastSummonerTradeHandler.java:94)
    at mod.wurmunlimited.npcs.TradeSetup.getTradeHandler(TradeSetup.java:116)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 23 more

[05:38:52 AM] INFO com.wurmonline.server.creatures.Communicator: Battalan- communication failed: 
org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_MOVE_INVENTORY(Communicator.java)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2390)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.delivery.DeliveryContractsMod.reallyHandle_MOVE(DeliveryContractsMod.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 7 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler(Creature.java)
    at com.wurmonline.server.items.BaseTradingWindow.addItem(BaseTradingWindow.java:219)
    at com.wurmonline.server.creatures.Communicator.reallyHandle_CMD_MOVE_INVENTORY$1(Communicator.java:3775)
    ... 13 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.npcs.CrafterMod.getTradeHandler(CrafterMod.java:609)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 16 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.reflect.InvocationTargetException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$3(Creature.java)
    ... 22 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at mod.wurmunlimited.buyermerchant.BuyerMerchant.getTradeHandler(BuyerMerchant.java:396)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 23 more
Caused by: org.gotti.wurmunlimited.modloader.classhooks.HookException: java.lang.NullPointerException
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:394)
    at com.wurmonline.server.creatures.Creature.getTradeHandler$2(Creature.java)
    ... 29 more
Caused by: java.lang.NullPointerException
    at com.wurmonline.server.creatures.TradeHandler.<init>(TradeHandler.java:75)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.<init>(BeastSummonerTradeHandler.java:23)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandlerCoins.<init>(BeastSummonerTradeHandlerCoins.java:14)
    at com.wurmonline.server.creatures.BeastSummonerTradeHandler.create(BeastSummonerTradeHandler.java:94)
    at mod.wurmunlimited.npcs.TradeSetup.getTradeHandler(TradeSetup.java:116)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    ... 30 more

[05:38:56 AM] WARNING com.wurmonline.server.items.BaseTrade: null
java.lang.NullPointerException
    at com.wurmonline.server.creatures.Creature.endTrade(Creature.java:2782)
    at com.wurmonline.server.creatures.CreatureCommunicator.sendCloseTradeWindow(CreatureCommunicator.java:175)
    at com.wurmonline.server.items.BaseTrade.end(BaseTrade.java:157)
    at com.wurmonline.server.creatures.Communicator.reallyHandle(Communicator.java:2461)
    at com.wurmonline.communication.SocketConnection.tick(SocketConnection.java:618)
    at com.wurmonline.communication.SocketServer.tick(SocketServer.java:172)
    at com.wurmonline.server.Server.run(Server.java:2527)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

[05:39:04 AM] INFO com.wurmonline.server.MessageServer: Broadcasting Serverwide Alert: The server is shutting down in 1 seconds. Reason: The server is shutting down.
[05:39:04 AM] INFO com.wurmonline.server.players.Player: Battalan lost link 5 secstologout.
[05:39:05 AM] INFO com.wurmonline.server.Server: Shutting down at: 
java.lang.Exception
    at com.wurmonline.server.Server.shutDown$1(Server.java:3729)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gotti.wurmunlimited.modloader.server.ProxyServerHook$8$1.invoke(ProxyServerHook.java:232)
    at org.gotti.wurmunlimited.modloader.classhooks.HookManager.invoke(HookManager.java:384)
    at com.wurmonline.server.Server.shutDown(Server.java)
    at com.wurmonline.server.Server.run(Server.java:1926)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

 

Share this post


Link to post
Share on other sites
Posted (edited)

Thank you @Batta.

 

It lists the Crafter mod there, what version is it?  It need to be 0.5.2 or newer, as it wasn't compatible with my more recent mods.

If that's not the problem I'll keep thinking.

 

Edited by Mthec

Share this post


Link to post
Share on other sites
Posted (edited)
10 hours ago, Mthec said:

Thank you @Batta.

 

It lists the Crafter mod there, what version is it?  It need to be 0.5.2 or newer, as it wasn't compatible with my more recent mods.

If that's not the problem I'll keep thinking.

 

I'll check as soon as I get home from work. 

 

EDIT:  Oh wow

[21:28:55] Crafter version: 0.1.3-testing

It appears I haven't updated a few of my LAN mods in quite awhile!

I'll switch to the newest version and let you know if the problem persists. @Mthec

Edited by Batta

Share this post


Link to post
Share on other sites

Thanks @Mthec.  Updating to the latest version of Crafter fixed the problem with BeastSummoner. 🙂  Much appreciated!

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Batta said:

Thanks @Mthec.  Updating to the latest version of Crafter fixed the problem with BeastSummoner. 🙂  Much appreciated!

Nice, glad it's sorted for you.

Share this post


Link to post
Share on other sites

@MthecI'm setting up a buyer merchant on the new server, using the most recent buyer merchant version (0.5.30).  On our last server, we were able to have duplicate items with different QL levels, for example diamonds = 50c but diamonds above 50 QL = 1s. However, every time I try to create the second entry, it overwrites the first one. This didn't happen with the previous version we had. Is there a workaround for this?

 

Edited by Batta

Share this post


Link to post
Share on other sites

BuyerMerchant update

Download

 

7 hours ago, Batta said:

@MthecI'm setting up a buyer merchant on the new server, using the most recent buyer merchant version (0.5.30).  On our last server, we were able to have duplicate items with different QL levels, for example diamonds = 50c but diamonds above 50 QL = 1s. However, every time I try to create the second entry, it overwrites the first one. This didn't happen with the previous version we had. Is there a workaround for this?

 

Hmm, it should allow duplicates with different qls as you describe.

 

I didn't find quite that issue, but did have trouble with duplicate entries so I rewrote some things which may help.  At the very least, it will send a message telling you when it is skipping because it is too much of a duplicate.

  • Like 1

Share this post


Link to post
Share on other sites

@MthecI am having a issue with your custom currency vendor.  I have server currency on my server.  Its a coin that I made that your currency vendor takes, but the sleeping powder and anything else that I purchase from that vendor using that currency which is just a gold coin with a different name does not work.  Like the sleeping powder acts like a normal meal, the personal merchant contract doesnt spawn a merchant the buyer contract doesnt spawn a buyer merchant.  But if I put it on a personal merchant and sell it for normal gold coins it works just fine.  So I thought maybe it is the server tokens I created, so I tried selling it for normal silver or gold coins and nadda still acts like a normal meal.  I am totally confused is this normal behavior?  Is there a log or something that I can send to you that will help you to track down the issue?

Share this post


Link to post
Share on other sites

That's not right at all.  Typically, it works on my end, which doesn't help.

 

One thing I did discover is that sleep powder only works if the weight is below 30 grams, if it's higher then it acts as a meal.  In the trade window the weight should read 0.03 (it's actually 0.025), is that correct?

 

Have you tried dismissing and creating a new currency trader?  Might sort things.

 

If there's nothing unusual in the server log, then the only other place is in the per trader log, which is in the main folder named othertrader_<wurm_id>.log.

 

If none of the above helps let me know, and I'll try adding some extra messages to the mod.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now