Mods / Animal Trader

Tags:
Structures Traders Animals
Author:
Shazza
Side:
Both
Created:
Jun 11th at 3:04 PM
Last modified:
Aug 18th at 1:21 AM
Downloads:
9581
Recommended download (for Vintage Story 1.22.0 - 1.22.7):
animaltrader_1.2.2.zip  1-click install

What do?

This mod adds a custom Livestock Trader to the world's generation!

They'll happily sell you (most) domesticable baby animals, along with some chest traps, pieces of shepherd's gear, rare paintings, and a rarer surprise.

ℹ️ All animals sold are generation 0 - the intent is balancing to vanilla, to simply give players an alternate entry into ranching!

 

What in (Features)?

  • 🏑 Custom Trader home
  • πŸ“œ Fully unique dialogue
  • πŸ’° Vanilla balanced tradelist
  • ❗ And even a miniquest!

 

What want (suggested mods)?

 

Whuh (Contents)?

{SPOILERS} What Sell 🐐
🐐 Angora goat 🐐 Markhor goat 🐐 Mountain goat 🐐 Nubian goat
🐐 Sirohi goat 🐐 Turdag goat 🐐 Valais goat 🐐 Ibex (Alpine) goat
🐐 Ibex (Nubian) goat 🐐 Golden Takin goat 🐐 Musk ox  
*only kids!      
🐏 Bighorn sheep 🐏 Mouflon sheep    
*only kids!      
πŸ– Gray pig πŸ– Redriver pig πŸ– Warthog  
*only piglets!      
🐀 Chick      
*sex is random!      
πŸ‡ Arctic hare πŸ‡ Desert hare πŸ‡ Brown hare πŸ‡ River hare
πŸ‡ Scrub hare      
*only kits!      
πŸŽ‡ [REDACTED]      
*rarest on their list, you'll know!      
πŸ“¦ Basket trap (reed) πŸ“¦ Basket trap (papyrus)    
🎨 Painting "Underwater" 🎨 Painting "Prey" 🎨 Painting "Cow" 🎨 Painting "Sleeping Wolf"
*paintings are rare sell items!      
🧦Shepherd sandals 🧦Shepherd cowl 🧦Shepherd pants 🧦Shepherd tunic
🧦Nadiya shepherd rope      
{SPOILERS} What Buy πŸ’Έ
πŸ§€ Waxed cheddar cheese πŸ§€ Cheddar cheese πŸ§€ Blue cheese  
*full 4-slice wheels!      
🍞 Amaranth grain 🍞 Rye grain 🍞 Sunflower grain  
🌿 Hay bale (grass) βšͺ Bonemeal πŸ” Feathers πŸ”₯Fat (& rendered fat)
πŸ‡ Pelt (small) πŸ– Pelt (medium) 🐏 Pelt (large)  
       
πŸ‘œ Leather (plain) πŸ‘œ Leather (orange) πŸ‘œ Leather (black) πŸ‘œ Leather (red)
πŸ‘œ Leather (blue) πŸ‘œ Leather (purple) πŸ‘œ Leather (pink) πŸ‘œ Leather (white)
πŸ‘œ Leather (yellow) πŸ‘œ Leather (gray) πŸ‘œ Leather (green)  
*some colours pay better!      

 

How do (Modify)?

{CONFIGURATION} Nerd Shit

This is for the fellas who wanna tweak how common these traders are.

Located in: assets/animaltrader/patches/traders-spawn.json

    "minGroupDistance": 1500, // set set lower for smaller distance between spawns
    "name": "Livestock Home",
    "chance": 0.5, // set higher for increased spawns
    "MinSpawnDistance": 500, // set lower for smaller distance to worldspawn position

 

Why do?

Similar to Drocust Classes, I always wanted to make my very own custom Trader NPC. With there being a slight gap in animal trade, I figured why not?

 

What next (plan to do)?

I may make a Fishing Trader next, depends on how much y'all like this one. c:

And of course, I'm always looking for feedback on my mods! Whether it's balancing concerns or a bit of coding I could've done better, it's all very much welcome. 🧑

AAAH! HELP?! (Support)

Got bugs? πŸ› I have a Mod Forum on Discord, which is the best available contact and place to dump your crashlogs! I do still check ModDB, so it's not exclusive, just preferred. πŸ‘

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.2.2 animaltrader
1.22.0 - 1.22.7
3934 Aug 13th at 11:35 AM animaltrader_1.2.2.zip 1-click install

πŸŽ‰πŸŽ‰ Happy 5K Downloads! πŸŽ‰πŸŽ‰

Updated: MinSpawnDistance now 500 rather than 1500, so you can potentially run into them sooner!

Updated: buying/selling list additions

Updated: some new names🧑

1.2.1 animaltrader
1.22.0 - 1.22.6
4835 Jun 14th at 4:09 PM animaltrader_1.2.1.zip 1-click install

Updated: increased spawn rate to be more in-line with Fish Trader

Updated: some outfits, and new names

Fixed: all the leftover wearables errorlog spam (they were harmless, just annoying >:C)

1.2.0 animaltrader
1.22.0 - 1.22.3
292 Jun 13th at 4:12 PM animaltrader_1.2.0.zip 1-click install

Fixed: Better Ruins incompatibility (for real this time, it's because I'd named my modded entity the vanilla trader πŸ’€)

Fixed: Some of the missing traderaccessories (for now)

Removed: Redundant entity patch file, blessings be to Freakyuser396 for saving my mod! 🧑

1.1.0 animaltrader
1.22.0 - 1.22.3
307 Jun 12th at 7:20 AM animaltrader_1.1.0.zip 1-click install

- added compat-patch for BetterRuins (how dare you overwrite my dialogue ree >:C)
- added some new trader names

1.0.0 animaltrader
1.22.0 - 1.22.3
213 Jun 11th at 3:11 PM Empty animaltrader_1.0.0.zip 1-click install

Disclaimer

By downloading a mod you consent to our Terms of Use.

We tell you this specifically because we want to make sure you are aware that we cannot validate every mod, and you are responsible for any damages you might incur by installing or loading mods.

This prompt will not be shown to you again (for the current browser session) if you proceed.


27 Comments (oldest first | newest first) (threaded | flat)

Lemurek, Sep 1st at 9:52 AM

Those animals that they sell are what generation?

Shazza , Sep 4th at 7:45 AM
@Lemurek: Those animals that they sell are what generation?

All animals sold are generation 0! :3 Just up in the description~

Lemurek, Sep 9th at 2:02 PM
@Shazza: All animals sold are generation 0! :3 Just up in the description~

Oh... That kinda sucks :/
But oh well, i can work with this too.

DigiDragoon, Aug 18th at 4:36 PM

Can you add a picture of the trader's building? I haven't been able to find one in the wild anywhere.

Shazza , Aug 19th at 5:15 AM
@DigiDragoon: Can you add a picture of the trader's building? I haven't been able to find one in the wild anywhere.

I certainly can! I've been meaning to do a proper mock-up spread for a few of my mods to better showcase what they have (especially my Traders), so I'll see about getting those up within the next week. c:

Corvians, Aug 16th at 2:52 AM

Is there a way to manually spawn this trader? If so, how would one do it?

Shazza , Aug 16th at 7:15 AM
@Corvians: Is there a way to manually spawn this trader? If so, how would one do it?

So, the Trader NPC themselves you spawn through the creative menu like the other vanilla ones! But the building is a bit more complicated.

Unfortunately the /wgen structures list command no longer seems to work in 1.22, so you'd need to go into my mod, copy this file: assets\game\worldgen\schematics\overground\tradeoutposts\settlement\home-animal-trader.json , then stick it into the vanilla World Edit folder (where your saves and mods are, inside AppData) to be able to import it like a regular saved build.

However, this won't give the building the trader protections that natural generation does, and to my knowledge there's no way to force that to happen. You can do admin-level land claiming, but if you're in Singleplayer, you're the admin. πŸ˜…

Figatoni, Jul 10th at 12:52 PM

Love this concept! Genuinely base game is lacking without an animals trader.
I am unfortunately not there yet with my code literacy. Is there an easy way to enable, lets say, gen 5 babies to be sold (so I can pick them back up in reed baskets T-T) instead of gen 0? 
No worries if you don't have time to hold my hand through it :) I am sure trial and error will get me there (eventually)

Shazza , Jul 11th at 7:15 AM
@Figatoni: Love this concept! Genuinely base game is lacking without an animals trader.I am unfortunately not there yet with my code literacy. Is there an easy way to enable, lets say, gen 5 babies to be sold (so I can pick them back up in reed baskets T-T) instead

Hey! I'm super happy to hear you like it. c:
So, in terms of selling generations of animals I don't believe it's supported in the default selling lists/json - generations (as far as I can tell) are only handled by the entity, never in an item ID outside their captured state, so their trapped version only temporarily memorizes the generation?
Long and short of it, you'd probably have to dip into C# to override that logic. 😭

Sniffr0st, Jun 17th at 7:43 AM

Hello, a tiny question, in the Configuration segment here in description, isn't "MinSpawnDistance" meant to say "set lower for smaller distance from player spawn" ? Or if not then how is it different from minGroupDistance? :D 

MPWhitlow, Jun 13th at 4:17 PM (modified Jun 13th at 4:29 PM)

******EDIT****** It has been fixed with 1.2.0

Hey bud, was reading the comments and this issue isnt only with betteruins. Animal Trader 1.1.0

 

Just wanted to report something I ran into on my server. (Tested on multiple worlds, with/without Better Ruins)

After installing it, traders completely stopped spawning in my worlds. Even in Creative, when I try to spawn a trader, I get:

No such entity loaded - game:trader-male-artisan-desert

What’s weird is:

  • Vanilla game works fine (traders spawn normally)
  • New world with Animal Trader enabled breaks trader spawning
  • Removing the mod doesn’t immediately fix the issue in existing worlds
  • There are no obvious errors in the logs

Trader structures still generate, but no NPC appears.

One thing I did find though:
If I disable Animal Trader through the serverconfig β€œDisabled Mods” list and restart, traders start working again.

So it seems like something the mod is doing is sticking around or not fully unloading cleanly.

Not sure if it’s a load order thing or something with how trader entities are being registered, but figured I’d report it in case it helps.

Shazza , Jun 14th at 3:32 AM
@MPWhitlow: ******EDIT****** It has been fixed with 1.2.0Hey bud, was reading the comments and this issue isnt only with betteruins. Animal Trader 1.1.0 Just wanted to report something I ran into on my server. (Tested on multiple worlds, with/without Better Ruins) Af

Thanks so much for digging into it and swinging by! I really appreciate that you cared enough to test so thoroughly, and I'm sorry for my bumbling about - I'm still very much learning how to mod!
To explain what happened, it was two very simple oversights of mine, that Freakyuser helped me identify over on Discord. πŸ˜…

1) In my excitement to have individual female and male trader files (to individualize outfits/names/voices), I completely forgot to rename them away from the vanilla trader-male and trader-female file names. So my mod was replacing vanilla traders outright, oops!

2) I had unknowingly created two major structures - one that patched into vanilla traders, and one that created new traders (the .jsons above), and that redundancy doubled down on replacing vanilla traders.

Changing 1 and removing 2 is why 1.2.0 is now clean with BetterRuins. c': It didn't cause errors because, by the game's understanding, what I was doing was fully intentional!

Shazza , Jun 13th at 4:08 PM

Abed Zverel With no short thanks to Freakyuser396, Animal Trader 1.2.0 is now actually compatible with Better Ruins!

Turns out I missed more than the hiccup of my own testing, it should hopefully be smooth sailing from here. There are a few render-related errors that'll get thrown up (just incorrect wearables because other code was changed), but I'll clean that up at a later date with a proper outfit overhaul in the future.

For now, I can sleep, because it's working. 😭

Zverel, Jun 13th at 5:01 PM (modified Jun 13th at 5:03 PM)
@Shazza: Abed Zverel With no short thanks to Freakyuser396, Animal Trader 1.2.0 is now actually compatible with Better Ruins! Turns out I missed more than the hiccup of my own testing, it should hopefully be smooth sailing from here. There are a few render-related

alls good traders appear and animal trader also works but idk seems his spawn chance is a bit too low I made a lot of worlds and flew around but still couldnt find him so I set spawn chance at 10 and minGroupDistance MinSpawnDistance also at 10 to at least see If he works otherwise everything seems to be working fine

Shazza , Jun 14th at 6:36 AM
@Zverel: alls good traders appear and animal trader also works but idk seems his spawn chance is a bit too low I made a lot of worlds and flew around but still couldnt find him so I set spawn chance at 10 and minGroupDistance MinSpawnDistance also at 10 to at leas

I'll have a look into maybe tweaking the spawn to be a little higher! With how admittedly powerful their stock is - essentially an (expensive) alternate route to farming animals than having to trap them, I did want them to be a bit less common than regular traders.

Ranadriel, Jun 12th at 11:43 PM

smash download you just saved me the trouble of making my own!

Abed, Jun 12th at 12:54 AM (modified Jun 12th at 12:54 AM)

Seems this mod doesn't work with Better Ruins. All the traders disappeared.

[Error] Patch 1 (target: game:entities/humanoid/trader-male.json) in betterruins:patches/others/trader/dialogue/dialogue-patches.json failed because supplied path /temp/clientfallback is invalid: The json path /client/behaviors/4/dialogueByType/* was not found. Could traverse until /client/behaviors/4, but then 'dialogueByType' does not exist. Full json at this path: {
"code": "conversable",
"dialogue": "animaltrader:config/dialogue/trader-livestock"
}

etc.

Shazza , Jun 12th at 1:08 AM (modified Jun 12th at 7:21 AM)
@Abed: Seems this mod doesn't work with Better Ruins. All the traders disappeared. [Error] Patch 1 (target: game:entities/humanoid/trader-male.json) in betterruins:patches/others/trader/dialogue/dialogue-patches.json failed because supplied path /temp/clientfall

Hmm.. I'll see what I can do to fix this! I make and test my mods fully vanilla, and since there's a lot of patching to vanilla assets, there's chances some mods won't play nice (if they talk to the same code).
Abed Pinging you with the update - 1.1.0 has a BetterRuins compatability patch! Please let me know if you run into any further hiccups, but my end of testing shows green lights. c:

Zverel, Jun 13th at 2:42 PM
@Shazza: Hmm.. I'll see what I can do to fix this! I make and test my mods fully vanilla, and since there's a lot of patching to vanilla assets, there's chances some mods won't play nice (if they talk to the same code).Abed Pinging you with the update - 1.1.0 has

I have the same problem as the other guy when all traders disappear when using your mod with better ruins but im not a code guy to know whats up and I just downloaded the modπŸ€·β€β™‚οΈ

Zverel, Jun 13th at 3:03 PM
@Shazza: Which version of Better Ruins and Animal Trader are you using?

newest ones animal trader 1.1.0 and better ruins 0.6.3 just updated before that I tried with 0.6.2 but result was the same traders just disappear 

Zaelesh, Jun 12th at 12:43 AM

Truly a trader concept that should be part of the base game.

LexicalAnomaly, Jun 11th at 6:55 PM

Great mod idea. What generation are the baby animals? 

Shazza , Jun 11th at 11:26 PM
@LexicalAnomaly: Great mod idea. What generation are the baby animals?

Thank you! 🧑 They're all generation 0, I'll jot that into the description.