#2
27th Jul 2015 at 7:58 AM
Last edited by plasticbox : 27th Jul 2015 at
8:30 AM.
Posts: 11,006
Thanks: 423186 in 1121 Posts
47 Achievements
The modular plants are deco objects, the modular planters have slots for deco objects. Pretty much like end tables and statues or something like that.
If you use TSRW the slots are in the "Slots" tab .. since the planters already have slots (but for garden plants) all you need to do is rename the slots so one can put deco objects in there (the hash on the left will change accordingly as you type, you don't need to calculate that). For deco stuff you should use _deco_1, _deco_2 etc; small deco slots should be _deco_sml_1 etc. Just compare with Maxis objects to see how they work. I'm not sure if the byte value is still relevant, it should be 2 for medium-sized deco objects according to
this post. Maxis have changed a bit of stuff to do with slots in the meantime though.
For extra credit I would recommend keeping the original model referenced; if you're not going to change the mesh you don't need anything but the catalogue object (COBJ and OBJD) plus your custom _RIG and RSLT for this kind of thing, not the whole mesh and textures and stuff on top of that. Either look up the internal name of the planter and name your object like that in TSRW (I'm not sure if that still works in the current version though), or look up the ID of the model and footprint of the original planter and reference those from your OBJDs.
To make existing things (plants or whatever else) fit into deco slots, you need to open the COBJ and set the value in Unk03 to 0x01, 0x02, or 0x03 depending on their "weight". See the sticky on OBJD/COBJ in this forum.
Stuff for
TS2 ·
TS3 ·
TS4 | Please do not PM me with technical questions – we have
Create forums for that.
In the kingdom of the blind, do as the Romans do.