View Full Version : OFB Shelves - Making changes to the "variable size" slots.
24th Oct 2010, 7:10 PM
I'm trying to make some small shelves that could be used with a mall cart and I really want to keep the ofb type of slots that adjust for the size of the object. (pic attached for a better idea of what I'm trying to do)
I would love to just be able to delete a row of the slots so each level of the shelf has three slots instead of the six but as far as I can tell it's never been done and editing BHAV's without instructions is way out of my league. But since I have been able to adjust the position of the display slots with the Translation box in the CRES file I wonder if there's a simple way to change the width between the front row and back row of the six slots? Or in other words, make the slots closer together so they all fit on a smaller sized shelf.
24th Oct 2010, 8:30 PM
What you want to do is that in reverse order! :P I think at the minimum you would need to remove the relevant slots from the txt list and the slot resource. You -might- be able to get away with not removing the cres entries, but I don't imagine it would be hard to remove them.
Otherwise all the positions are in the cres if you want to adjust them. That tutorial also has an image showing the orientation in MS vs in game.
24th Oct 2010, 9:29 PM
There's only 2 slots in the CRES though for the OFB shelves (one for the top shelf and one for the bottom) and it's like the game is linking to a tray of six slots if that makes sense? So when I make changes in the CRES using the translation coordinates the slots move as a group and not individually. Here's a pic of what the CRES looks like--even though there's twelve slots only two show up (which is why I thought I'd need to edit the BHAV's they're pointing to to delete some of them) so I'm kinda lost trying to match it up to your tutorial (which is great, BTW).
Or am I just completely misunderstanding the structure of all this and what you're trying to have me do?
25th Oct 2010, 12:43 PM
I have been playing with this - there is a shelf object in the OFB shelves - like a built in magisplay tray. Thats the thing you need to clone and edit and then convince the game that its a valid controller.
25th Oct 2010, 5:43 PM
Thanks for looking, lee. I can't even tell where the game is getting the attributes for the display slots so, like I suspected, I'm over my head with this. I'll mess around with the positioning and mesh some more to see if I can get something acceptable but if not I guess I can always make the slots deco. Thanks to both of you for taking the time to try and help, I appreciate it. :)
Of course if anyone else has an idea of what would need to be done I'd welcome the input--even if it's over my head today maybe I'll be able to make more sense of it later (or someone else will).
25th Oct 2010, 8:20 PM
I've been poking around in SimPE and can't find the tray in object workshop to clone. Tried finding it GUID that is called in a BHAV but simpe is having issues reading all my game files. Was thinking that you could clone that tray and then relink the BHAV GUID with your custom one.
25th Oct 2010, 9:37 PM
Hmm. That actually makes a tiny bit of sense to me since I just read Echo's tutorial, Fixing Self Referencing Objects, this weekend. I'll spend some more time looking for the tray before giving up then--thanks for the direction!
27th Oct 2010, 6:12 PM
I found a display case prototype that I'm pretty sure all of the OFB shelves are referencing for the slot structure.
First, would anyone be willing to take a look at it and verify that this is actually what the OFB shelves are referencing? I can't match up the GUIDs to anything I've looked at right now but I'm assuming that's because I don't know what I'm doing. :P
Second, if this is the shelf would I then need to give this clone a new GUID and then make the changes to my new shelves BHAV's to point to this clone? If that is what I need to do is Echo's self referencing tutorial the closest thing to showing me how to do that?
Or do I even need to worry about that at first? Should I just leave all the GUID's alone and play around with everything linked to the originals just to see if I can even make the changes to the shelves that I want to before figuring out the GUID/BHAV stuff?
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.