Jump to content

[A20/20.1] Traders never have seeds in their stock.


aY227

Recommended Posts

No mods / fresh start multiple times. / I did reset traders inventories more than 100 times

 

Best visible on trader Rekt because he should have guaranteed at least 1 seed:

 

<!-- Trader Rekt, id=8, carries more food, seeds farming stuff -->
	<trader_info id="8" full_reset="true" min_inventory="30" max_inventory="500" min_items_swapped="20" max_items_swapped="20"
		reset_interval="3" open_time="6:05" close_time="21:50">
		<trader_items count="all">
			<item group="seeds" count="1,2" />
			<item group="cannedfood" count="3,6"/>
			<item group="traderAlways"/>
			<item group="traderGeneral" count="4,8"/>
			<item group="generalResources" count="9,14"/>
			<item group="constructionSupplies" count="2,8"/>
			<item group="decorativeBlocks" count="2,7"/>
			<item group="tools" count="1,2"/>
			<item group="weaponsMeleeT0-1" count="1"/>
			<item group="weaponsGunsT1" count="1"/>
			<item group="weaponsGunParts" count="1"/>
			<item group="clothes" count="1,4"/>
			<item group="groupArmorLightMixed" count="1,2"/>
			<item group="groupArmorHeavyMixed" count="1,2"/>
			<item group="traderElectrical" count="1,2"/>
			<item group="modAllT1SecretStash" count="1,2"/>
		</trader_items>

 

But other traders also never have seeds.

Link to comment
Share on other sites

The other traders don't reference seeds at all in any of their tiers so you won't see seeds in their stock.

 

Rekt's seed code is interesting, as I can see a space between " and />

 

			<item group="seeds" count="1,2" />

That's the only space in an item group for any of the traders.  Wonder if removing that space would cause Rekt to start stocking seeds.  I know that spaces in wrong places can cause errors in the code for the game, but not sure if this is the case here.

 

I will write up a modlet tonight and fix that along with adding seeds to the other traders to see if they start selling them.  I did check the blocks file and seeds were assigned an economic value.

Link to comment
Share on other sites

4 hours ago, BFT2020 said:

The other traders don't reference seeds at all in any of their tiers so you won't see seeds in their stock.

 

 They do, seeds are sub group of traderGeneral

This typo doesn't matter, I checked it.

Link to comment
Share on other sites

27 minutes ago, aY227 said:

 They do, seeds are sub group of traderGeneral

This typo doesn't matter, I checked it.

Ah yes.  Not sure how I missed that as I specifically opened up traderGeneral to check it out, I blame work messing up my concentration on doing gaming stuff  😉

 

I need to check what I did back in Alpha 19.  I thought I made changes to the traders and was getting seeds, but I could just be imaging it.  Luckily I saved that custom trader file so I can go back to it and see what I might have done (or confirmed that I really didn't do anything).

Link to comment
Share on other sites

So I tried to get it to work in A19 but was not able to figure it out before A20 dropped.

 

I did figure out a workaround though, but there is an issue with it

 

1 - They only show up if you search for them - not if you just look in the various categories - probably because this was a quick test and I still need to do additional work like defining a category for the seed bundles

 

A20.0_2022-01-29_10-23-16.thumb.jpg.5422901cbb55148ba5bf09aa18f2edd0.jpg

Link to comment
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
×
×
  • Create New...