Ludeon Forums

RimWorld => Mods => Help => Topic started by: Dr. Z on July 10, 2014, 06:24:52 AM

Title: [Solved] Need help with error message
Post by: Dr. Z on July 10, 2014, 06:24:52 AM
So jet another problem with the error log.
I try to add a new trader for clothing via mod, but I get this error message:
"Requested amount buying for non-trading ThingDef Apparel_[Clothing]"

This message appears for every peace of clothing and numerus times, which was the reason for my last question regarding the error log. Could someone just explain what this message means?
Title: Re: Need help with error message
Post by: Telkir on July 10, 2014, 02:58:25 PM
I'm encountering this error too. It looks as if all items of apparel are hard-coded to be untradeable at the moment - adding <tradersCarry>true</tradersCarry> into the ApparelBase thingdef and then giving each individual apparel definition a basePrice doesn't make a difference.

Possibly it's because the colour of each item of clothing is generated randomly through a special color generator thingumajig?
Title: Re: Need help with error message
Post by: Tynan on July 10, 2014, 03:08:58 PM
Unfortunately there is no code to trade anything besides commodities, pawns, and weapons.

Sorry guys :(

I have it on my list soon to rewrite the trade interface so it supports any item. The current code was written before apparel existed.
Title: Re: Need help with error message
Post by: Dr. Z on July 10, 2014, 03:10:39 PM
Ok, thank you  :'(