PDA

View Full Version : Shiftable diagonals


moune999
27th Jun 2010, 09:53 AM
I've got a little problem that I can't seem to work out myself. I'm working on a set of bars to place in front of windows. I'd like to make them AL shiftable, so they can fit more window sizes. At the same time I need diagonal versions, so they also fit diagonal windows. As far as I can figure, there are two ways to do this.

1) To clone from curtain, and thus have both straight and diagonal packages. The problem is I can't work out how to make them shiftable. There's no BHAV in the package when I clone, and I don't know how to add it. I've tried cloning with Goggalor's shiftable mod in my DL folder, but there's still no BHAV in the package. Is there a way to get the BHAV in there?

2) To clone from a painting that is already shiftable. But then I need to make a diagonal version of it too, and I can't figure out how to do that. Simply making another package and then linking the two up in the OBJD doesn't work. I've searched the BHAV's for a 'place on diagonal walls' things, but can't find it. Is there maybe a way to create a diagonal version for an object that doesn't already have one.

Thanks in advance for any suggestions. :)

MogHughson
27th Jun 2010, 10:36 PM
It's certainly very easy to add a BHAV to a package that doesn't already have one. If you know how to edit the BHAV after the fact to do what you want to do and the problem is simply how to add one of that type of resourse there are several ways.

Use Import semi-globals - find any old BHAV - pick any group, uncheck all, the select a random BHAV and import it. Once imported, switch to the resource tab to make the group 0xFFFFFFFF (i.e. your package) and give it an instance number 0x1000 or so, i.e. not in 0x2000 range which implies semi-global. Then edit it as you please.http://www.simswiki.info/images/6/6e/ResourceTab.JPG
Extract a BHAV from any other package (right mouse menu in the resource list), then in your package, Add (also on right mouse menu). See Programming_Info#Manipulating_Resources for this kind of manipulation.


Cheers
Mog :Pint:

HugeLunatic
27th Jun 2010, 11:19 PM
To make your curtain shiftable, if it doesn't work with Goggalor's mod or you just want to make it work without it is rather easy. After adding the bhav as Mog noted change the values as shown here (http://www.hugelunatic.com/al-shiftable). I would just import the curtain global and add this shiftable-y-ness to that bhav.

moune999
28th Jun 2010, 10:30 AM
Mog and HL, thank you very much. I figured it would be possible to add a resource somehow, but didn't know about the 'Import Semi-Globals' option. Glad to have learned something new. :)

The only problem now is that I can't seem to make it work. I've tried adding the curtain semiglobals as BHAV as explained and adding the AL shiftable value. I've also tried importing a BHAV from a painting and adding the shiftable value to that. But neither works. The curtain (or rather window bar) doesn't want to shift.

I've also tried adding the BHAV from Goggalor's mod just to see if that worked. It did - or rather it kept working like a global mod and made all the curtains shift. But the moment I changed the group to 0xFFFFFFFF it stopped working though. It also doesn't work when changed to 0x1C050000 like mentioned in the Wiki thread Mog linked to.

I'm obviously doing something wrong - or at least I'm not doing it right. But I'm not really sure what else to try, and would really appreciate suggestions. I've attached the package (with curtain semiglobals and shiftable AL values added), in case someone would be check it to see what the problem is.