View Full Version : Neighbourhood deco that lights up at night?
27th Feb 2012, 7:07 PM
I'm in the process of converting some TS3 buildings (the Late Night apartment building shells) into neighbourhood deco for TS2.
Ideally, I would like the buildings to light up at night, in the same way that the TS2 Nightlife apartment building does. Unfortunately, it does not seem to be as simple as cloning the Nightlife building - somehow the cloning process (specifically the fix integrity step I think) seems to break whatever causes the lit-up effect.
So, I just wondered whether anyone had any ideas what might be going wrong (is the lit effect somehow hard-coded for this particular object only?), and how I could achieve the effect I want?
28th Feb 2012, 8:33 PM
I really wish I could be more helpful because I've always wanted someone to do more with that building. I've looked into it at least once, but my object creation skills are lackluster at best. :rolleyes:
If I recall correctly, there were two textures with one or two mesh groups: one for the day version and another for the night version. The game somehow knows to switch between the two. Again, IIRC, I think when I messed with it I managed to make a version that was perma-lit. I believe I deleted unnecessary mesh groups and kept the names without performing Fix Integrity. Perhaps try keeping the names the same and just changing the GUID wherever appropriate?
Hopefully someone more knowledgeable will chime in. :)
28th Feb 2012, 9:30 PM
Thanks for your reply! Yes, I saw the two textures for day and night (there are also two separate but identical model subsets), and replaced them with my own accordingly. And as you say, with the original building the game just seems to 'know' to switch between the two states.
As an experiment, I tried just changing the GUID and leaving the model names intact (no fix integrity), and that of course confused the game (the original building disappeared from the catalog), but it did work in that there was a lit state at night and unlit during the day. It's not a permanent fix though of course!
I'm wondering if this is just not possible!
1st Mar 2012, 3:32 AM
Peform fix integrity and then have a look at the TEXT LISTS in the Material Names Tab . If "##0x1C050000!" is missing from the names of the strings add them manually, commit and save. Don't do a fix integrity after as it will just break this and you will have to start again.
17th Mar 2012, 9:13 PM
So I guess my reply was not at all useful. Sorry about that.
18th Mar 2012, 12:56 AM
Probably the OP hasn't read this yet; doesn't mean to say it won't help others. :)
20th Mar 2012, 2:37 PM
Adding ##0x1C050000! did not seem to fix the issue - the building stubbornly refuses to use the 'day' texture and uses the 'night' texture night and day.
What I could do is repository the two window mesh groups to the original in-game building at SHPE level, using only 'neighborhoodbuildingres1_windows_day' and 'neighborhoodbuildingres1_windows_night' as the mat. def. file name.
This restored the ability to switch between night and day textures, but of course required much fiddling with the tiny pieces of mesh I used as windows. It also limits the "window" textures to those found in the original building. If you feel up to it, a default replacement texture could be created for the original building, with additional window shapes/textures added (and the original building would need to be remapped to use the new texture).
Unless someone comes up with a better idea?
20th Mar 2012, 3:23 PM
Thank you, buggybooz for your reply - sorry I didn't respond sooner, but I've not been well and hadn't had a chance to try your suggestion.
And thank you also, Gwenke! I had already wondered about slaving my new buildings to the NL one (nice to know we were on the same lines), but I hadn't worked out the details of it. I'm happy to try editing the original NL building as you suggest, so I think I'll give that a go.
Could I possibly have a look at the package for your lit-up barn, just so that I understand how you did it? :)
20th Mar 2012, 3:57 PM
If this building is similar to lights, then there is also a line or two in the BHAVs for each state.
20th Mar 2012, 4:13 PM
CuriousB: Certainly :)
HL: The package does not have BHAVs at all, unfortunately, so it does not work by having states in that sense.
I was disapointed to see that the 'light' only comes from the TXMT, there is no real light in the package. It would have been nice to make other lit-up hood deco.
20th Mar 2012, 4:33 PM
hrmm. So what is the name of this building and where can I find it in SimPE? When having just NL enabled in the file table I see no buildings in Other/Neighborhood section.
20th Mar 2012, 5:32 PM
It's in Other/Neighbourhood/Misc, called 'Building', and it's the first item in the list in my SimPE (all EPs/SPs enabled)
20th Mar 2012, 7:02 PM
Thanks Gwen. I noticed that when cloned the Text Lists becomes empty. Maybe try adding three lines (0,1,2), with the first line as Building, second empty, and third 0. The XNGB resource is labeled Building, so maybe the Text List needs this reference.
EDIT: Gwen what does the version 05 and version 06 reference in your barn?
20th Mar 2012, 8:10 PM
When I cloned the Text List had 'Building' in line 0, nothing in line 1 and '0' in line 2. Anyway, these lines only change the description that shows up for the hood deco, I've changed them many times in my hood decos.
The version number is just that, a version number to keep track of the mesh versions I used. (The version number in line 1 is what shows up in game, the version number in line 2 is just a left-over from my first try when I did not remember where to put the descriptive text.)
Also, sorry about the flashing groundshadow in the uploaded barn - I originally used the same mesh group names as in the original building and changed the group names to be descriptive of the barn mesh groups before uploading. It seems I messed up with the groundshadow and now I can't seem to fix it :/
It's really a pain that you can't do fix integrity on hood deco and Fix TGI also only seemed to work once.
20th Mar 2012, 9:22 PM
Thanks, Gwenke, for uploading your file - I'm going to try your suggestion. :)
I wish there was a simpler way! :p
22nd Mar 2012, 2:05 AM
If you go the way of default replacing the original texture, could you please make the new texture huge and leave space in it for me? I think I need to make a monster that only shows up at night and has bright yellow eyes :)
4th Apr 2012, 9:11 PM
I'm so glad that something good happened in this thread. Way to go.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.