Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!

Fix for misplaced restocking signs in OFB? Probably NOT...

SCREENSHOTS
342 Downloads 241 Thanks  Thanks 15 Favourited 34,236 Views
Uploaded: 17th Apr 2006 at 6:35 PM
Updated: 3rd May 2006 at 7:26 PM
FIX FOR MISPLACED RESTOCK SIGNS?
Global Hack - OFB required
*** NOT NEEDED IF YOU HAVE THE FAMILY FUN PACK! ***


----------------------------------------------------------------------
IMPORTANT: THIS HACK IS STILL IN TESTING! USE WITH CAUTION!
***READ THE "EDIT TO ADD" AT THE END OF THIS POST ***

----------------------------------------------------------------------

First off, I take no credits for this fix: Maxis made it, not me.
Exploring the Family Fun Stuff pack (that actually looks much more like an EP than an add-on pack...), I've found that it contained a modification in the code related to the restocking sign and the restocking function.

Since I can't understand the meaning of the modifications made by Maxis (see below for details), I'm not sure 100% that this mod is intended to fix the misplaced restock signs bug: the only way to know is TEST IT

Anyway, I've just extracted the files (3 in total, see details below) and uploaded here.
I see no copyright infringment in that, because the three file are obviously intended to work with OFB, and they are supposed to fix some bug in the OFB code; therefore, if you own OFB and not the FFS pack, I see no reasons why you should not have these files.

INSTALLATION
Extract the package from the zip and put it in the Downloads folder. Remove it from the Downloads to restore the original game functionalities.
IMPORTANT: If you already have the Family Fun Stuff pack, you do NOT need this hack, because it is included in the FFS.

USAGE and TESTING METHOD
Preferably, in order for the test to be reliable, you should use this fix without any other hack related to the OFB shelves and restock signs: I'm referring in particular to my "More" and "Less" Hacks.
When reporting your experience with this fix, please tell me if you are using my hacks or not, if you are placing custom content on Maxis shelves and all the details that may help in making this test reliable.

TECHNICAL DETAILS
The attached package contains 2 BHAVs and 1 OBJD, all from the GroupID 0x7F905E60 (Restock Sign). All the three differ from the original included in OFB for the usage of a particular object property that I really don't know what it is for...
  • In the OBJD, the value in the field 0x0040 ("Unused - Dynamic sprites base id") has been changed from 0x0008 to 0x0001;
  • In the BHAV "Init" (Instance 0x1000), the last line has been removed ("Expression - My 0x0019 (lockout count) := Literal 0x0019")
  • In the BHAV "Restock - Replace Item", the last line has been removed ("Expression - Stack Object's 0x0019 (lockout count) := Literal 0x0005")


EDIT TO ADD:
After having double checked, I noticed that the lines in the BHAV removed with the FFS were added by the OFB patch recently released!
I'm absolutely clueless: why adding those lines in the patch, just to remove them in the FFS? Whas it made by mistake? :confused: