-
Content Count
291 -
Joined
-
Last visited
Posts posted by Mthec
-
-
On 3/6/2024 at 12:32 AM, Hakameda said:Did donating enchanted tools end up being a tricky one?
It should still be doable. I just worked on them in order of what I thought would be easier, and thought I'd release what I had after completing several of them.
-
1 hour ago, Brian said:A couple of things I noticed while poking around the database, in case it helps. Most of the entries look similar compared to the one other player-owned buyer, except:
There are entries for the GM-owned buyer in the buyer.db only, which I assume is because I had the free money turned on for that one.For the personal buyer contracts, the player-owned buyer has a 'null' for the PLACE field, while the GM-owned buyer has '0'. The last owner IDs look correct.
Interesting. The player-owned Buyer wouldn't show up in the buyer.db, as I added the database much later on in development.
A quick look shows that the PLACE field is for where an item is on a creatures body. 0 being nowhere. Not sure why it would not be null, unless it was put in someones hand, but oh well.
So I'll have to do some investigating into crossing server borders, but in the mean time I've created a little site to help with reconnecting the contract to the Buyer.
- Using a GM wand, use 'Get info' on the Buyer, and look for the 'Wurmid'. It should be a long number in the last line in Event.
- Visit the site, and put the id into the box and press Calculate.
- You'll get two numbers labeled 'Data1' and 'Data2'.
- Use the wand on the contract and go 'Item>Set data', then put the two numbers in the appropriate fields.
- Click 'Send' then you should be able to access the Buyer with the contract again.
-
Crafter update
Added 'Threaten' action, for non-home, PvP servers. Uses the same system as merchants, except it will also work on non-epic servers.
Setallow_threatening
totrue
in.properties
. Defaultfalse
.Added option to stop Crafter action messages appearing in Event.
Setsend_event_messages
tofalse
. Defaulttrue
.Added option to allow Crafters to keep their skills, when dismissed and replaced.
Setallow_saved_skills
totrue
. Defaulttrue
.
Only works for Crafters placed with contracts, GMs can still modify skills via the 'Manage' menu. If disabled Crafters won't load skills when placed, and won't update their entries in the database. However, already saved skills won't be removed from the database, and will load again if the setting is enabled, and the Crafter is replaced.Fixed an issue that prevented compatibility with some other modded items.
On 2/24/2024 at 5:34 PM, Hakameda said:If they could be taunted or w/e like old merchants to drop things currently in there crafting queue, or killable.
Added the 'Threaten' option, which works like merchant threatening. Drops all jobs, and donated items.
Needs to be turned on, as I thought it might be a nasty surprise for those who aren't expecting it.
On 2/24/2024 at 5:34 PM, Hakameda said:If they could be moved with there skills intact
Added.
On 2/24/2024 at 5:34 PM, Hakameda said:They also still don't work for a few select weapons notably from wyvern mods as it tweaks some to use weapon heads smithing. Knuckles, Clubs, Warhammers, Battle Yoyo's
Ah, thanks for the explanation. I've sorted it so that items that use blade- and head- smithing for improvement can now be accepted with the weaponsmithing trade option.
On 2/24/2024 at 5:35 PM, Hakameda said:Maybe if they could just not output there messages ingame, And keep it just in the log. Gets spammy with alot of em in the same area lol
Also added.
Needs to be turned on, as one of the intentions with the mod were to add some "background noise" of activity. But I can understand how a lot of them put together would get annoying.
On 3/3/2024 at 4:52 AM, Brian said:I've got a DB Browser, so I'll see if I can find the bugged trader, though mine was just a default WU trader. Thanks!
As far as dismissing a trader, I was wondering about the regular trader that is created with the normal trader contract. I haven't been able to figure out how to get of those cleanly.
I took a quick look at the code, and it appears that 'Destroy'ing them, also cleans up some database stuff.
11 hours ago, Brian said:Any ideas?
Hmm, sounds like the server transfer is messing up the contract, which should keep a reference to the Buyer. I haven't played around much with hopping servers.
I've run out of time now, but I'll respond later with more details.
-
On 2/22/2024 at 11:05 PM, Hakameda said:Any chance your still willing to work on this?
I'm a little out of practice, but if it isn't too big of a change I'm happy to make additions.
-
22 hours ago, icthi said:If I ask crafter to improve a 1 ql item to 100ql he seems to charge me only a couple more than if I ask him to improve a 50ql to 100ql
Is there a way to charge less depending on how much further he needs to go?
Thanks
The price is calculated like this:
Prices over 70ql were not high enough, so it switches to a different formula (yellow). Then the price of the current ql is deducted from the target ql, and that's the price you pay at the Crafter.
There is the base_price option, which modifies the price, but I don't think that's what you're after.
How would you like the pricing to work?
Also, I'm going away tomorrow for two weeks, so may not have the time to update the mod. Depending on what needs adding.
-
Crafter bugfix
Had a report of a writ holder not being able to access the coins generated by the Crafter.
Added a workaround, to reset ownership, that occurs the next time the owner uses the Manage option on the writ.
-
3 hours ago, LightningRoc said:@MthecI have tried everything i can think of to give her permissions and nothing works. How exactly do I go about giving him permissions or could this be a bug?
If the forge is in a village, the Crafter needs to be a member, the player making the changes needs to already be a member. If they are not, right-click on the crafter contract (or GM wand right-click the Crafter) and select manage. There should be an 'Invite to Settlement' button. It doesn't show if they already are.
Then go to the settlement 'Manage roles' option, and 'Edit' the 'citizens' role. (You can move them to any role, they just start as citizens.) Give the role the Pickup/Drop/'Improve/Repair' permissions.
If none of that works, it may be a bug. If so, what is the exact message you are receiving, and where is it showing (Event/logs)?
-
The other thing it could be is that the Crafter is added as a 'Citizen' to the placer's village. So if citizens don't have permission, then the Crafter won't.
-
On 4/18/2023 at 10:46 PM, Hakameda said:Is it possible for this to support custom tools/weapons/armor?
Sorry for the late reply, I was away.
Depending on which mod you mean, it should support any item template, default or modded. It fetches the list of item templates the server knows after the server has loaded.
-
CustomTrader update
19 hours ago, Ayluin said:I looked up in the thread and saw that the buyer mod has an update for the npc to face the player when turning, can this be added to CustomTraders as well, they all face south on my server. I didn't see it in the .properties as an option.
Done.
-
2 hours ago, Ayluin said:Well this isn't much more helpful, but this is the first time it happens in the server.log and then the previous post just recycles the INFO message.
It seems it's either a bugged guard tower, or bugged tower guard that may have lost its tower.
The log is saying that a tower guard is checking the local area for enemies, and a quick look at the code shows it checks if the guard tower is the same kingdom. But for some reason the guard tower value is missing.
I'm afraid I can't be more specific than that.
-
4 hours ago, Ayluin said:@MthecBeen having this error for a long while now but have been ignoring it since it's just INFO and not seeming to cause any issues. However, wondered if there is a fix for this:
Sorry, I can't help.
What's happening is, in order for my mod to do stuff whenever the game 'poll's a Creature you have to create a hook with modloader. In the hook you can also tell it to do whatever it is it was going to do. If that causes an error, it bubbles back up the layers.
If there's anything after:
Caused by: java.lang.NullPointerException
It should tell you where the problem occurred. But it may, or may not, help.
-
MerchantDecayPrevention fix
Fixed allow_cooling not working.
15 hours ago, Brian said:For the MerchantDecayPreventionMod, I have not been able to get the merchants to keep food hot. The decay prevention works great, though.
I have this in the .properties file:
# If true then items will still cool in a merchants inventory. Default true.
allow_cooling=falseWhat could I be doing wrong?
Strange, I thought I had it working, but apparently not. Fixed now, thank you for the report.
-
Crafter update
Fixed issue with not accepting coins when using restricted materials.
2 hours ago, Batta said:@MthecNew problem. We updated to the newest Crafter, and everything looks great except that it isn't recognizing our money. We can trade a weapon, bring down the QL and mail When done, but when we add our coins it won't acknowledge them. Tried several different coins, to make sure that it wasn't just objecting to one in particular.
Sorry about that, thanks for the picture it really helped. Turns out when using restricted materials, if the coin wasn't on that list it was rejected from the payment.
2 hours ago, Batta said:Here's a warning from the logs. Maybe it's relevant?
It was unrelated. Seems to be something to do with when a player, possibly a passenger, is getting out of a vehicle. Not really sure.
-
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.
-
BuyerMerchant update
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.
-
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.
-
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.
-
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.
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.
-
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
Enabled multiple items with same template/material but different weight/ql.
-
Sorry for the late reply @Batta.
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.
-
Bugfix CustomTrader
Thank you for the log and picture @LightningRoc, they helped me track down the problem. It was a bug with the mod, which I've now fixed.
What was happening was that putting the enchantments on in a different order was causing the item to not match with the Currency Trader entry, thus not finding a price and trading it for 0. In my testing I had only checked enchantments in a specific order, so missed it. Sorry about that. Let me know if you have still have issues.
-
20 hours ago, LightningRoc said:Check I just downloaded it the other day
None that I could see. If you have a email that you feel safe giving to me in a DM I could e-mail you the log.
A Item that I created thru a mod called Premium Currency. And I set the advanced settings for Gold since its made of Gold and a quality of 10 since that is the quality Level
@Mthec Im wondering if I have something in the config wrong could that be a possibilty? Also was wondering on how to use these merchants as a player merchant where players can put imtems they crafted in the merchant and sell those items. I cannot seem to figure it out I know its gotta be something simple
Thank you for the details. There isn't much to the config for CustomTrader. I still can't find a problem on my end, so I've created a new version with extra log messages:
It should be as simple as completing another 'free' trade. The messages will be in the per Currency Trader log files. Hopefully that will help me point out the problem area.
For anyone else reading, I also found an unrelated bug with filtering Currency items. Fixed version is below (already included in above).
Bugfix CustomTrader
-
On 7/14/2022 at 7:42 PM, LightningRoc said:Has anyone been able to get the Currency buyer to work?? No matter what I set the currency to and the price to people are able to buy the items for free even if I set the item to 10 currency. ANy help would be great! If I enchant a item or make it rare or anything like that my players can get the item for free. I think that this is a bug but I am not sure @Mtheccould you verify? I really wanna use this vendor but cant get it working
Definitely not right, should still be working.
1) Check you have the latest version. (0.3.7)
2) Any errors in the Wurm log, or in the currency trader log (e.g. .../WurmServerLauncher/othertrader_12345678.log)?
3) What item are you using as currency? Any 'Advanced' settings?
4) What item are you selling?
5) When you say 'free' is that without anything in the players trading area, or with a wrong item? Does the trader say anything different in Event?
6) Try dismissing and setting up a new Currency Trader.
7) Any other trade mods that might be interfering?
[Released] Mthec's NPCs - Crafter, Buyer, DeliveryContracts, MerchantCap, CustomTrader, ToolPurchaser, Banker, BeastSummoner
in Mods
Posted
Crafter update
Download
Added "Give tools" option to the Trade window, so that owners and GMs can donate tools to be used by the Crafter. Making it possible to give Crafters enchanted tools.
GMs can now set the level of any skill for a Crafter, using the Manage>Modify Skills>Set Skill Levels menu.
Crafter's will now bump all known skills up to the
starting_skill
level set in.properties
.allow_threatening
now uses three options:I've added a new Trade option, "Give tools". It's limited to the owner and GMs, to prevent random players affecting the Crafter. The Crafter will use the tool normally (not "cheating" as it does with its own tools), so the owner needs to keep an eye on it, and remove/re-improve tools as they stop being useful.
As there is no real way for a Crafter to know which enchantments are good or bad, I've left it up to the owner. As long as a tool is between the target QL and the targetQL + 20 (to prevent wasting 99ql lumps to improve items at 1ql), the Crafter will use it.
Hopefully sorted. If your Crafter is controlled by a GM, they can now change any of the Crafter's skills with the Manage menu.
A Crafter's skills will be boosted to the starting_skill level, if they are too low.
Hopefully that's the least messy solution.
Interestingly, it's neither. They use Toymaking.
I've setup a system that should clear things up. Toymaking is considered to be part of Carpentry, when it comes to the Crafter's assigned skills, but will still use Toymaking to improve.
I've changed the allow_threatening option to allow you to set disabled, kingdom, or village_alliance.
No worries, out of interest it doesn't undo pings. Just glad it's resolved for you.