[NEEDS INPUT] Transforming an object sometimes do nothing(same object)

by justbugreportin
Reply

Original Post

[NEEDS INPUT] Transforming an object sometimes do nothing(same object)

[ Edited ]
★★ Apprentice

Product: The Sims 4
Platform:PC
Which language are you playing the game in? English
How often does the bug occur? Occasionally (10% - 49%)
What is your current game version number? latest
What expansions, game packs, and stuff packs do you have installed? All
Steps: How can we find the bug ourselves? But an expensive gamemat and place it on your lot(home). Transform it using your upgraded SimRay. Repeat.
What happens when the bug occurs? Sometimes(25-35%), the object simply doesn't change to other object. (become bright -> no change)
What do you expect to see? "Item randomizer" code need some improvement.
Have you installed any customization with the game, e.g. Custom Content or Mods? Not now. I've removed them.
Did this issue appear after a specific patch or change you made to your system? Neutral/Not Sure 

e.g.

Something like this.

 

Object previousObj;

Object nextObj;

 

previousObj = World.GetCurrentObject();

nextObj = World.CreateObject(SIMRAY_LIST);

 

// If the next item is identical to current object, pick it again

if (nextObj  == previousObj)

nextObj = World.CreateObject(SIMRAY_LIST);

 

World.ReplaceObject(this, nextObj);

Message 1 of 1 (222 Views)