Home | Download | Discussion | Help | Site Map | New Posts | Sign in

Latest Site News

Nysha's New Creators for November - posted on 1st Dec 2017 at 10:00 AM
Replies: 24 (Who?), Viewed: 7543 times.
Pettifogging Legalist!
staff: moderator
Original Poster
#1 Old 15th Oct 2014 at 6:38 PM Last edited by plasticbox : 13th Nov 2014 at 1:59 PM. Reason: Moved + added category
Default Re-texturing in game objects (Texture overrides) with s4pe
Quote:
Originally Posted by porphyria259
Looking to know how to re-texture in game objects like Plasticbox has done for the toilet doors HERE . Thanks in advance! :p


Thanks for posting here =)

The actual retexturing is dead simple: open the texture, change it to your liking, save, and then import into a new package with S4PE making sure it retains the same TGI (type, group, and instance) as the original. Every override works like this: when the game finds something in the /Mods folder that has the same TGI as one of the internal resources, it will use the one in /Mods instead.

However, the part that is not so simple at this point is *finding* the texture you need to override -- I actually scrolled through most of ClientFullBuild0, 6, 7, and 8 looking for textures I'd want to use/replace. You can make this a little bit easier by using the search/filter features in S4PE; some tips:


- Always check the deltabuilds first, those contain the stuff that has changed in a patch (there were no doors in these, so I didn't need them)
- filter for _IMG only (filter boxes at the bottom) after loading the package
- once you find something that is roughly the same size as the thing you want, sort the resource list by file size and check the "neighbouring" textures
- EA resources often have consecutive numbers but not always (these doors for instance are 0x7BC24A105E481840, 41, 42 and 47).
- once you found one texture of something that has more than one, you can search for its instance number (top menu, Tools > Search), that should turn up the MLOD resources which refer to that resource and all of the other ones too (notably also the normal/bump/specular maps which are hard to see in the preview). Note that right now, S4PE looks buggy to me in that respect: of the 5 MLODs for that door, three are apparently cut off at some point (so make sure you check all of them). Also, turn on the "Text fallback preview" (somewhere in the top menu, I believe in Settings but not sure) so you can easily see them without having to go through "Grid" each time.

Also, make sure you export the textures you found with Resource > Export DDS, not Resource > Export > To File. Make sure you include the TGI in the file name (when using "Export DDS", S4PE doesn't do that automatically).

That's how I did mine. Note that those are just texture replacements, not full-on recolours (including custom swatch and description and all) -- but since they have the same colours anyway, that's all that was needed in this case.

Once there are tools available for cloning objects, this will become a lot simpler of course. But right now, there are none (that I know of).


ETA: also make sure you have plenty of RAM available. S4PE rather unceremonuously stops working when it runs out.

ETA2: you may also want to take a look at this: http://modthesims.info/showthread.php?t=535380 -- script / object list, it may make searching much more straightforward



ETA3: actually my search fu has (been) improved considerably since I wrote the above -- as of right now, the most straightforward way to find textures that I'm aware of would be to make note of the in-game name, look up the hash in the STBL (or here), then search for that in S4PE (COBJ only) and look in the OBJD with the same instance as that COBJ for the DiffuseMap / spec / bumpmap entries. Every OBJD seems to list all of the default recolours too, so you only need to do this once to be able to export all of the textures in one go.

Instead of going via the hash, you can also try searching the OBJDs for a string that seems likely to be contained in the internal name (note that it would be a Unicode string, i.e. search for U"string" -- also, the internal names are all US English and case sensitive).
1 users say thanks for this. (Who?)
Pettifogging Legalist!
staff: moderator DELETED POST
Original Poster
15th Oct 2014 at 7:03 PM Last edited by plasticbox : 10th Nov 2014 at 12:44 PM.
This message has been deleted by plasticbox. Reason: thread cleanup
Advertisement
Instructor
#2 Old 9th Nov 2014 at 10:13 AM Last edited by melbrewer367 : 10th Nov 2014 at 11:27 AM.
I'm a little lost with how to search for files. I've just been going through the IMG files until I find what I need. Which takes forever obviously. I literally was falling asleep hitting the down arrow one night.

I thought I found all the files I needed to do an override for one of the regular wood doors, the one with two squares at the top. Unfortunately, it turns out, half the files I found were actually for the exact same door but with the window openings. Some of the files were in Build 6 and some were in Build 7.

Could you explain in a bit more dumbed down way as to how I can search more easily for the associated files? I can do the creative stuff in Photoshop all day long for walls and clothes since S4S does all the technical work for me but when I have to get in to S4PE and do the technical stuff it makes my head want to explode after a while.

Here's what I did get. I got one side of both of these doors. Now I need to find the other side. At least on the sides I did find I was able to find everything and edit them the way I wanted and get them to show up in game properly. (I took out all the dumb knicks and dings that are in the door.)


The other side which I still need to find.
Screenshots
Pettifogging Legalist!
staff: moderator
Original Poster
#3 Old 9th Nov 2014 at 1:29 PM Last edited by plasticbox : 10th Nov 2014 at 11:38 AM.
Your pictures aren't loading for me; you should probably attach them here. -- ah they're loading now after I posted .. not sure what that was.

Regarding searching, did you read my post above to the end? I edited a couple of days ago – traversing the img files was also what I used to do, but for objects in particular it’s more straightforward to to search by name. Since you didn't mention the door you were after, I’ll just use a random one as an example (and make it a more general “How to find stuff with s4pe” post too, I know you already know some of this but others may not):


How to find stuff with s4pe: Textures / Objects

Say you want to override the texture for the door called “Marine Biologist’s Choice”. This is the in-game name for the US English game, which is stored in Strings_ENG_US.package – that’s where the game looks up all the strings the player will see, using an eight digit hexadecimal number that’s also in the COBJ (catalogue entry) of the object as a key. So we can do the reverse thing: since we know the value (we’ve seen it in game), can search the same dictionary for the key and then ask s4pe in which object this key appears.

1. Note down the name in game (i.e. Marine Biologist's Choice)
2. Open your Strings_ENG_US.package or go here (jadgirl has converted that to XML and posted it online)
3. Searching the online version I get <Text Key="D0C2CB5A">Marine Biologist's Choice</Text>
4. Open ClientFullBuild0 in s4pe
5. Tools > Search: enter 0xD0C2CB5A in the top field (the 0x tells s4pe that this is a hex number), check “Filter” and enter COBJ there, click Search, my result is 0x319E4F1D-0x00000000-0x00000000000048E3, click Go To
6. If you sorted by instance you will see there is an OBJD with the same instance; in the TGIBlockList in there is an entry for “Model” (0x01661233-0x00000000-0xC55EAAC449607A5F in this case).
7. C+P that instance number in the “Instance” filter box at the bottom, tick the checkbox before that, click “Set”, check “Filter active”
8. This will list a bunch of resources, what we need is the MLOD with group 0x00000000: scroll down in the ChunkEntries to where you see long lists with “Shader: Phong” near the top, like this:



0x00B2D882-0x00000000-0x7A6DA196252911B7 is the texture we want.

Edit, also:



So I'd guess that would be the other side. They look the same, same size and all, but they are two different resources.


Resource > Save DDS and there you go. Note that this export option does not work for me right now in s4pe0.2d (yesterday’s update), not sure yet why this is (maybe just a setting I need to re-tick), so if you also don’t have that option you may want to use the previous version for exporting.

This door also has an entry in the MODL for DiffuseMap 0x00B2D882-0x00000000-0x1ED85DD186545957 – I believe this is some low-res version, so should export that too and change it in the same way as the large one. I never tested this but it might be that otherwise your door will suddenly change colour when zooming in/out =P

--

If you want to change the catalogue price or swatch something like that, that’s all in the COBJ. For custom descriptions you'd need to make a custom STBL and change the hash for the text/desc in the COBJ; for custom thumbs I can’t remember right now what the instance would have to be (but look at my rug overrides, that is where I would also look it up =P – it was something very obvious like last four digits from COBJ and the rest is 1, 2, 3 or something along those lines).

If you poke at the rest of the TGIs you will also see fun stuff like wall masks, dropshadows, how to stretch/squeeze your textures and so on. Can learn a lot from that =).

I recommend using Inge's wrappers by the way for all things s4pe, she’s updating them often so they usually contain most of the latest finds.

--

In case this seems terribly roundabout: for some reason that apparently nobody really understands at this point, objects all seem to reference the textures for all recolours – so when you want to do overrides for something with 24 texture options, the s4pe way is actually quite efficient. All you need is one starting point and from there you can export everything in one go (this also goes for walls, by the way, with their three texture sets each).

In cases where you already happen to know the internal name of an object (“doorSingleGEN1x1x3_08_set1” in this case), you can start with the objd of course (don't need to find the hash etc first).


Hope this helps? Let me know if you have questions!


Edit: now that I can actually see your pictures, I get what you meant about the sides .. so I checked again and see above, in different ChunkEntries there are different textures referenced (which look the same but I guess that is what you were looking for).

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.
Pettifogging Legalist!
staff: moderator
Original Poster
#4 Old 9th Nov 2014 at 2:25 PM Last edited by plasticbox : 9th Nov 2014 at 3:32 PM.
0xC2FC984141B37185 looks like the bumpmap (can't quite make it out in the preview, but it can't really be anything else).
0x024D61A8BB6F8A35 is some sort of specular .. env .. cube .. thing that goes a little over my head (you probably won't need it for overrides though)
0xC2FC984141B37198 labeled as NormalMap is definitely not a normal map (it's the bump or the spec, has a wrong label, known issue that apparently wasn't fixed).


Also, Inge just told me about a MUCH cooler way to search for textures:

1. Get the Name field out of the OBJD (the internal name, doorSingleGEN1x1x3_08_set1)
2. Hash it using Tools > Hasher in s4pe -- which gives me:

FNV64: 0x94B45E786F5E755F which would normally be the instance of the default diffusemap texture.

But unfortunately, this doesn't work in THIS case (notably with the s4pe and wrappers I currently have -- 0.2d out of box plus Ingewrappers). Although there is also something not working in the newest s4pe distro wrappers so stay tuned I guess .. she also says "it's possible it has an old style MTST".

But in theory this is how the game references stuff:

[Inge] yes the definitive reference is in the MATDs
[Inge] if they are not the same you have to obey the MATD
[Inge] but in all the ones I have seen EA have used that convention
[Inge] so while it can be a quicker and useful way to locate them, it's not the end of the story

--


Another thing I ran into, with the door in my example, was that the texture [10]: Field: 0x6CC0FD85 (DiffuseMap); Key: 0x00B2D882-0x00000000-0x1ED85DD186545957 referenced in the MODL was completely unfindable, I looked in all of the fullbuilds. Not sure what's up with that but Inge says she will look into it.

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.
Instructor
#5 Old 10th Nov 2014 at 12:51 AM
Yaaaassssss!! Thank you! I was able to follow that very well. I had tried to use the search feature but nothing ever came up. I wasn't looking in FullBuild0 and I wasn't using the filter to COBJ so I was basically stuck at the point. I followed these directions though and found everything. I ended up only actually needing 1 more file which was the backside and was literally the exact same thing as the other side (which means I just had to do a quick copy+paste!).

I have it done now and already submitted it to the uploads!



I also now have a whole long list of items that I want to do overrides for like fixing these marks on all the doors, getting those kinds of marks off some of the furniture like dressers and tables, and just recoloring some others. So, thank you for making finding these things easier and also curse you because now that I know how to do it easier I won't limit myself or give up and am now about to spend every free moment recoloring objects! lol
Screenshots
Pettifogging Legalist!
staff: moderator
Original Poster
#6 Old 10th Nov 2014 at 9:24 AM
Ah, that's good to hear =).

Say can you attach the pics in your first post directly to your post, please? They make it easier to understand what you were asking about, and now only one of them showed up .. dunno what is p with that.

Also, re. filtering in s4pe (since you say "I wasn't looking in FullBuild0 and I wasn't using the filter to COBJ so I was basically stuck at the point") -- the filter is really only to speed things up; searching an 1GB package would take a while otherwise. But when one doesn't know what type to look for, can just leave the filter off and go make a coffee instead =P.

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.
Instructor
#7 Old 10th Nov 2014 at 12:15 PM
Okay. I uploaded the pictures for my first post. The door is called Wooden Four Panel Door. And so you don't have to search the instance number to find the info in FullBuild0 is 0xC55EAAC449607A54.

I thought I'd share all this too. I copied down a few extra map files to see what they were. Here's the info from from MODL. (I also found info in two of the MLODs that I needed.)



0x024D61A8BB6F8A35 and 0x937C71E144222C2C were shadow related and just had different shapes and sizes of shadows on the img so I didn't even bother exporting them.

0x3D290B32410A3FC4 and 0x96AC646ABC7213DA are the two that are identical and are the texture/color img.



0x0AB689857060CE8E is that really small version you had mentioned seeing.


0xC2D79841419455D7 is from the Normal Map line in one of the MLODs.

The alpha basically looks the same as this but seems more detailed. I had to edit the regular RGB layer and the Alpha layer (or at least I did both because I didn't want to have to redo anything later on.)

0xC2D79841419455CA is from Field 09 ([09]: Field: 0xCEBA7E8A (3468328586); Data: 0x00B2D882-0x00000000-0xC2D79841419455CA), also in the MLOD.
(The two MLOD files that had the info are the ones with Chunkoffset 0x013E651F and 0x013E7643.)
When you see the preview for this one in S4PE and also when you first open it up in PS it looks like this:

But then the alpha looks like this:

I'm not really sure what the point of this one was condsidering the alpha basically looks identical to the textures and the alpha layer and the Green layer are the only two with any details. I still edited it though.

These are what they look like after I edited them (I saved instead of save as so I wouldn't mess up the save name which was the instance id.)The only difference being that I removed the nicks and dings. As I mentioned earlier, I edited the alpha and the main layer on pretty much all of these. If they had the markings I went ahead and edited them.

Oh and just a sidenote: the file I was originally missing was 0x3D290B32410A3FC4. The rest I found from hitting the down arrow approximately 243,578 times. lol

ETA: I went ahead and exported one of the originals again to show as a reference.
Screenshots
Pettifogging Legalist!
staff: moderator
Original Poster
#8 Old 10th Nov 2014 at 12:32 PM
0xCEBA7E8A (3468328586) could be the specular -- I never experienced this personally but people seem to have issues with some Photoshop import/export procedure mixing up the order of channels (ARGB vs RGBA or somesuch). That would explain the colours being off.

(You could try Aorta as an alternative http://sourceforge.net/projects/aorta/ -- I’ve only used the OS X version but it does a good job at converting PNG <-> DDS)


Re. specs see also here

Quote:
FYI - our spec maps are fairly complicated, a quick overview how its set up (for Characters) is as follows:

R = cube map blur control
G = cube map strength control
B = specular falloff
Alpha = specular strength


Not sure whether objects work the same as characters, but looking at your alpha it would make sense -- the metal doorknob surely is meant to be more shiny than the wood.


And good job editing the bumpmap too I wasn’t sure whether I should have mentioned that but then I thought you’d probably be aware of it already.

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.
Instructor
#9 Old 10th Nov 2014 at 6:01 PM
Quote:
Originally Posted by plasticbox
0xCEBA7E8A (3468328586) could be the specular -- I never experienced this personally but people seem to have issues with some Photoshop import/export procedure mixing up the order of channels (ARGB vs RGBA or somesuch). That would explain the colours being off.

(You could try Aorta as an alternative http://sourceforge.net/projects/aorta/ -- I’ve only used the OS X version but it does a good job at converting PNG <-> DDS)

---

And good job editing the bumpmap too I wasn’t sure whether I should have mentioned that but then I thought you’d probably be aware of it already.


I'll check out Aorta and see if it comes up different.

About the bumpmap. I had no idea it was a bumpmap when I saved it. The only ones I was absolutely sure of were the regular texture images that I'm used to seeing like with walls and clothes. Once I opened everything up in PS though I started to realize what it all was and how it went together. I got lucky on that one. I had literally no experience with any of this (except ps I have plenty of experience with ps, I'll make or edit random things just to kill time lol) before S4. I was 12 when S1 came out so I just downloaded stuff and it was all new so I couldn't exactly complain about missing things. In S2 we had the tools provided for us by Maxis. Then in S3 we had CASt which basically changed my gaming life. Now with losing that in S4 I have no choice but to learn all this and get close to the edge of breaking my brain just so things can look the way I want them!

The OCD and control freak in me is very thankful for people like you and snaitf and the people who made Sims 4 Studio and S4PE.
Pettifogging Legalist!
staff: moderator
Original Poster
#10 Old 10th Nov 2014 at 6:47 PM
You can find some good explanations of what normal/bump/spec is and does e.g. on the blender wiki and other blender documentation:

http://wiki.blender.org/index.php/D...Bump_and_Normal

Can be quite useful even when you're not actually doing anything in blender .. since they do a lot of explaining of all the terms (seeing as blender is free and thus also used by many non-professional people who need to learn the basics first).

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.
Pettifogging Legalist!
staff: moderator
Original Poster
#11 Old 10th Nov 2014 at 8:05 PM
Quote:
Originally Posted by melbrewer367
I'll check out Aorta and see if it comes up different.


Bumping to make sure you don't misunderstand me: from your in-game screens I see nothing wrong with your specular! (if they are taken with your edited version, I mean -- don't think one would notice a dfiference from that distance ..) So I didn't mean to say there is something off, just that from what the Maxis guy said the channels might be used in some rather special way which makes them look odd when they are displayed in PS.

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.
Instructor
#12 Old 10th Nov 2014 at 8:27 PM
Quote:
Originally Posted by plasticbox
Bumping to make sure you don't misunderstand me: from your in-game screens I see nothing wrong with your specular! (if they are taken with your edited version, I mean -- don't think one would notice a difference from that distance ..) So I didn't mean to say there is something off, just that from what the Maxis guy said the channels might be used in some rather special way which makes them look odd when they are displayed in PS.


Right. I get that. Those were taken with my edited ones. I will check out that link you include in your previous post though. I played around with Blender when I first got the game and kinda got the hang of making some small changes to the mesh files (like removing the flowers from the strap of the bridesmaid dress) but that took so long that I literally started naming my folders things like "Kill Me Now" and "Make This End". I would like to learn more and try again with some more knowledge ahead of time rather than going in blind like I did so that I could really edit meshes rather than just small little tweaks.

Thanks!
Forum Resident
#13 Old 9th Dec 2014 at 8:28 PM
hi! Sorry for replying in this old post. but i would like to create custom stbl for override just like plasticbox mentioned before. But i don't know what to put in instance.. how do i know that?

btw: hey mel :P
Pettifogging Legalist!
staff: moderator
Original Poster
#14 Old 9th Dec 2014 at 9:20 PM
The instance you should hash from your creator tag + some unique name (either with the built-in s4pe tool, or with a thing like Fogity's tool I can never remember the name of -- see link in Tools sticky). The languages are assigned by the first two digits -- 00 for the fallback (US English), 01 to 15 for everything else.

It's probably useful to think up some sort of easy-to-remember naming scheme for your stuff that is reliably unique, so that you don't end up colliding with yourself at some point .. like "missgothika_<EA internal name of object>_override_<rgb colour code>" or something. Not just "table1" I mean.

Also, I usually make just one STBL for US English at first, keep editing that (like when I find typos, add new stuff etc), and only when an item is completely done I copy + paste it 21 times and change the language digits for the other languages. That avoids having to fix the same error 22 times =P.

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.
Forum Resident
#15 Old 9th Dec 2014 at 10:12 PM
ww, ok! so much help Thanks. I'm still wondering if i should do it.. since i'm waiting for the cloning items to appear.. the thumb is a must.. which is fine by me. i¿m planing to release a file with all the thumbsof the items i've been releasing.

edit: wait.. there's something i dont. hash it. but what type should i copy?32.. 64.. ? and i'm seeing your override rug and there's 4 more other that start with 0A, 0B, 0C,. e .f.. what are those?
Pettifogging Legalist!
staff: moderator
Original Poster
#16 Old 9th Dec 2014 at 10:25 PM Last edited by plasticbox : 9th Dec 2014 at 10:40 PM.
FNV64 with high bit (which does not really matter here as you're replacing the first two anyway).

Did you read the Maxis Cc guide? It actually covers all this stuff ..

I don' know which language is which prefix .. maybe that's also listed in the CC guide. But I guess for most people it wouldn't matter as they woudn't actually provide translations into all those languages -- it's still a good idea to have these resources (even just with the English text), because when they don't exist people get "***DEBUG***" instead.


E: also, I forgot to say, the entries within your dictionary also need individual hashes (these are what goes in the "NameHash" and "DescriptionHash" fields). I use FNV32 + High Bit for that.

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.
Forum Resident
#17 Old 9th Dec 2014 at 10:45 PM
Quote:
Originally Posted by plasticbox
FNV64 with high bit (which does not really matter here as you're replacing the first two anyway).

Did you read the Maxis Cc guide? It actually covers all this stuff ..

I don' know which language is which prefix .. maybe that's also listed in the CC guide. But I guess for most people it wouldn't matter as they woudn't actually provide translations into all those languages -- it's still a good idea to have these resources (even just with the English text), because when they don't exist people get "***DEBUG***" instead.


E: also, I forgot to say, the entries within your dictionary also need individual hashes (these are what goes in the "NameHash" and "DescriptionHash" fields). I use FNV32 + High Bit for that.


No, i didn't. But i'm reading it right now. As far as i know.. it's intended for those who know how to mod or have any knowledge about it. I don't.. that is why i came here in search for a tutorial or help. The only bit that talks what we are discussing is referring to another part of modding.. that, yes.. it is what i needed, but only now that i know it i understand it.. but if i was looking for it.. i wouldn't find it.

Also, i still don't understand those four strings a ,b c. and so on i mentioned before.
Pettifogging Legalist!
staff: moderator
Original Poster
#18 Old 9th Dec 2014 at 10:53 PM
What do you not understand? Maybe I misunderstood which resources you were asking about -- I thought the question was which stbl is for which language. Maybe post a screenshot / the actual instance numbers of which resources you mean.

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.
Mad Poster
#19 Old 11th Dec 2014 at 2:00 AM
0A, 0B, 0C and so on are the way the system displays and stores hash values past the regular 15 numbers, if I am remembering and understand correclty. Basically the system counts with letters as well.

My deviantART, MTS Yearbook Origin ID = Alistu
Pettifogging Legalist!
staff: moderator
Original Poster
#20 Old 11th Dec 2014 at 2:18 AM
Ah OK -- yeah if the question was about the stbls that start with 0A etc, those are bog standard stbls like all of the other ones. All of the instances are numbered in hexadecimal ( http://en.wikipedia.org/wiki/Hexadecimal ) so the first two digits are 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10, 11, 12, 13, 14, 15.

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.
Moderator
staff: moderator
#21 Old 13th Dec 2014 at 3:35 AM
If 2 or more objects share the same texture is there a way to make them slaved? (Well, make the "extras" take their texture from the first.) There are 7 curtains, I've only checked 1 of the others but it uses the exact same texture as the 1 I have done. And I'm betting the other 5 do too, since their textures are the same in game.

I thought I read something about this a while back (might have been about CAS) but I can't find it again.
Pettifogging Legalist!
staff: moderator
Original Poster
#22 Old 13th Dec 2014 at 7:10 PM
Not sure whether by "share the same texture" you mean they have different textures which look identical, or have a reference to the same texture -- in any case, yes, you can simply reference whatever texture you want in the material definition. Maxis actually do this for a lot of things (e.g. specular and bump maps only exist once for everything I've seen so far, also some of the (potted) plants are referencing the same diffuse map/s too).

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.
Moderator
staff: moderator
#23 Old 13th Dec 2014 at 9:46 PM
Well, all of this TS4 stuff is so new to me. It seems like a lot of it is similar to creating for TS3 but that's something I never did. I reckon I mean that they have different textures that look identical. The curtain I've already done looks like this:



I looked at another one and it's the exact same texture. Like I said, I haven't looked at the other 5 curtains I want to default (I've no use for those 2 toned textures! If they made sense to me that would be a different story, lol.) but I do think they probably have the exact same texture.

Quote:
in any case, yes, you can simply reference whatever texture you want in the material definition


Guess I'll try to figure out how to do that. It's worth a try.
Pettifogging Legalist!
staff: moderator
Original Poster
#24 Old 13th Dec 2014 at 9:58 PM
If those are different files (with different instances but identical content), you'd have two options:

1. Override each _IMG with the one you want (that way you could also have different curtains look slightly different if you want)
2. Override each MODL/MLOD with one that references the same diffuse map, and overriding only that IMG (that way you'd only need one IMG and the curtains would be guaranteed to look identical)

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.
Moderator
staff: moderator
#25 Old 13th Dec 2014 at 10:24 PM
Thanks plasticbox. Real life needs me for a while but I'll be trying option 2. Sounds easy enough for me to do.
Back to top