Re: [FIXED] [HSY] Can't Sell on Trendi
Greetings AHQ people! I am here to bestow more wisdom upon you. I've found out the root cause of this error, and it's actually a little funny.
So, whenever you sell an item on Trendi, a "loot" runs (loots are basically the pieces of code that "do" things in the game, like give your Sims moodlets and traits, raise and lower their needs, etc.) and the outcome of the loot includes a part that raises the followers on Trendi of your Sim.
This loot comes in a few different "flavours" -- very low, low, medium, and high -- and each time you run the interaction, the game picks a random one, provided the conditions for it are met (you cannot get a very low or low outcome for example if there's a lot of hype for the outfit) -- which is why selling the mailbox may seem to "fix" the bug. It's a roll of the dice every time.
Anyway, the issue is that for the very low "flavour", they completely forgot to set the number of followers you'd gain. This is what causes the exception, though even if it didn't, I would argue that while "0" followers is definitely a "very low" amount to gain, it's probably not what they intended lol.
Fixing the loot so the amount is something reasonable, like 3, should fix the error.
For those who like code, spoilers below. LootAction ID 299488, loot_FashionMarketplace_FollowerGain_VeryLow:
<?xml version="1.0" encoding="utf-8"?> <I c="LootActions" i="action" m="interactions.utils.loot" n="loot_FashionMarketplace_FollowerGain_VeryLow" s="299488"> <L n="loot_actions"> <V t="statistics"> <V n="statistics" t="statistic_set"> <U n="statistic_set"> <T n="advertise">False</T> <T n="stat">292892<!--statistic_Followers_Gain--></T> </U> </V> </V>
The "Stat Set" loot operation defaults to a value of "None" when it's not explicitly set, and this None causes a cascade of problems, as we've seen here.
Not quite sure how this slipped under their radar but at least it's a simple fix. Just gotta put a value there.