ErrorTrap Issues Error Trap while buying from Ani's Produce Stand

A null value was encountered where this forum description was required.
Post Reply
User avatar
ladybarefeet
Reactions:
Posts: 823
Joined: January 26th, 2014, 6:00 pm

Error Trap while buying from Ani's Produce Stand

Post by ladybarefeet » December 16th, 2016, 7:02 pm

Just uploaded the script error that generated when my town vigilante "the Arrow" was trying to purchase metals (irrelevant) from Ani's stand. Soon as he committed to the purchase, he was reset and teleported to his mailbox and was not given his metals. He will be out of arrows and its a full moon tonight... please help, as many have failed this city and need to be handled. He will have to resort to other means until the metals are available.

User avatar
igazor
Organizer
Reactions:
Posts: 17102
Joined: April 8th, 2013, 6:00 pm
Answers: 203
Location: Everyone should strive to find their inner platypus.

Post by igazor » December 16th, 2016, 7:39 pm

System.DivideByZeroException: Division by zero
#0: 0x00047 div.i8 in ani_OFBStand.ani_OFBStand.ShoppingMethods:UpdateSkillBasedCareerEarning (Sims3.Gameplay.CAS.SimDescription,Sims3.Gameplay.Abstracts.GameObject) ([66BD27F8] [4CD319C0] )
#1: 0x00234 call in Sims3.Gameplay.Objects.TombObjects.ani_OFBStand.OFBStand+BuyFromStand:Run () ()

That sounds unpleasant, but I see why your sims are being reset. I would avoid using the Produce Stands until we get a coder's input on where that error is coming from.

User avatar
igazor
Organizer
Reactions:
Posts: 17102
Joined: April 8th, 2013, 6:00 pm
Answers: 203
Location: Everyone should strive to find their inner platypus.

Post by igazor » December 16th, 2016, 11:43 pm

Thread originated in Chatterbox http://nraas.wikispaces.com/share/view/80350840 now locked, asked that further discussion be redirected to this one since the ET log is mentioned here.

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7568
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

Post by Chain_Reaction » December 18th, 2016, 6:09 pm

Bad code is bad.Will fix.

User avatar
igazor
Organizer
Reactions:
Posts: 17102
Joined: April 8th, 2013, 6:00 pm
Answers: 203
Location: Everyone should strive to find their inner platypus.

Post by igazor » December 18th, 2016, 8:39 pm

Millions of "my people" have tried to Divide By Zero over the centuries. It never worked out well for any of us (@ladybarefeet - as a home-based educator of young ones, I think you should understand why without actually being a programmer). We finally gave up on the idea and what was left of us settled here on this planet among the rest of you. I just never recognized Ani as one of my fellow settlers. :D

User avatar
ladybarefeet
Reactions:
Posts: 823
Joined: January 26th, 2014, 6:00 pm

Post by ladybarefeet » December 18th, 2016, 10:50 pm

Thank you Chain_Reaction, I just wont use it until its fixed. Is it broken for everybody then and they just didnt find out yet?

Igazor: we have had several discussions about on what planet could zero be divided by zero... with a batch of homeschooled kids (with well nurtured imaginations) the answers and ways are pretty impressive. It requires the reconsideration of the actual definition of zero and whether the concept of zero/nothing on other planets matches our concept of it. My children may have hailed from "your people".

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7568
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

Post by Chain_Reaction » December 19th, 2016, 9:45 am

We're all running the same code, yes. It's safe to use, it's just going to error when someone with the spell craft job (didn't know this was a thing?) buys potions.

User avatar
ladybarefeet
Reactions:
Posts: 823
Joined: January 26th, 2014, 6:00 pm

Post by ladybarefeet » December 19th, 2016, 3:57 pm

Ok so just potions then? they can buy anything else like veggies, gems, etc? I can live without potions, those can be moved to the Savvier Seller for now. I was really loving my mall with all the produce stands and vendors specializing in different things... until I realized it didn't work :D I shall try buying something else.

Post Reply