Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Lab Assistant
Original Poster
#1 Old 12th Oct 2014 at 9:34 AM
Default There is a way to clone a package using s4pe?
sorry for (?) the stupid question.

There is a way to clone a package using s4pe? Replace... the id, I do not know ... -.-
Advertisement
Lab Assistant
#2 Old 12th Oct 2014 at 9:58 AM Last edited by Helianthea : 12th Oct 2014 at 10:10 AM.
You can clone a package (that is, turn it from a non-default appearing in the swatchlist of already existing content into a standalone with its own thumbnail) by changing the "PropertyID" of the CASP-file.
Other option: make a standalone in sims 4 studio.

EDIT: my bad, didn't realize this was in "object creation"
Lab Assistant
Original Poster
#3 Old 12th Oct 2014 at 10:05 AM
I meant an object, sorry!
Lab Assistant
#4 Old 13th Oct 2014 at 2:56 AM
Quote: Originally posted by Ronja
I meant an object, sorry!


Hi Ronja and all,

Yes it's possible if you want to clone simples objects like rugs, paintings, little sculptures, etc. I do for my french forum a little tutorial but due my bad english language, I can't write the same here. With some pictures and some words I'll try to show you a way to do it.

(
Pictures of a new rug in game are visible here:

http://www.les-dessous-des-sims.fr/...ts/ts4obj18.jpg

http://www.les-dessous-des-sims.fr/...ts/ts4obj19.jpg

http://www.les-dessous-des-sims.fr/...ts/ts4obj20.jpg
)
1.) Look for the OBJ (0xC0DB5AE7) and COBJ (0x319E4F1D) resources of the object you want to clone in ClientFullBuild0.package (I do it here with a rug as exemple) and export it. (Please see joined pictures).
2.) You will find in the OBJD resource (0xC0DB5AE7) a reference to a MODL (0x01661233) resource (see picture ts4obj09).This MODL resource contains the RK of the Texture (with another textures Rks) for your object. Take a look at this MODL resource and look for: (AlphaMap); Key: 0x00B2D882-0x00000000-0xWWWWWYYYYZZZZZ.... (in my case and for this rug). This is your texture. Look for it in CFB6-7 or 8.package and export it.

Now you must have exported: an OBJD, a COBJ and a _IMG. You can make a new simple object with these 3 things...

- Make a new package with them
- Give your OBJD resource a new unique name (picture ts4obj13) and give a new unique FNV64 Instance to your COBJ and OBJD (FNV64 with the name you give to your OBJD of course).
- You can do some modifications in the COBJ (like new object price, etc...)
- Modify your _IMG texture as you want it.

Set the high bit in the COBJ and OBJD Group if you want it. (the resulting object works fine without that, but it is a Maxis recommandation). Save and test your new package. It's enough to build a new simple object. But the new objet miss something... a new description! (normal i don't change the original object description to a new object description)... Everytime I try to add a new empty STBL resource in S4PE: it crashes...

There is more pictures which explain this simple little process, to see them you only need to type as root url:
Code:
www.les-dessous-des-sims.fr/Public/lddsimg/objets/
and the pointed pictures are from ts4obj01.jpg to ts4obj20.jpg

I hope that someone will write a real and better tutorial for that in english.

So long.

PS: This is only for a simple object recoloration but it is not difficult to add the other textures, and ressources (meshes, etc.) to build a full new object.
Screenshots

If you want to know your future...create it!
Eminence Grise
#5 Old 13th Oct 2014 at 3:31 AM
Quote: Originally posted by zano972
Yes it's possible if you want to clone simples objects like rugs, paintings, little sculptures, etc.


Congratulations, Zano972, I think you just demonstrated the very first object recolor for TS4 outside of TSR

From what I understand, simple objects are doable because they use very few textures (or only one), but most objects in TS4 use many materials, making for a lot more difficulty. Is that right?

Which doesn't make it worthless... we totally need a lot more rugs
Sir Not Appearing In This Film
#6 Old 13th Oct 2014 at 4:43 AM
OK, so, I'm so sadly sorry to say, that this does not work. Not properly, any way.

What this will do IS create a new item by cloning the original, but alas, it also overrides the texture used in the game.
So your new object AND the original, will both have been changed.

This is my new rug, next to the original rug:


Unfortunately, to create a new object with a new texture that DOESN'T affect the original, you also need to change the instance of the texture.
But when you do that, you also need to change the reference to it in the MODL file, which means cloning that too.
And also the MLOD files, which means cloning them as well.
And there are many references to the textures in all of those files that need to be changed.
(Some of these files can have over 20 references to a single texture, each.)

So basically, to do a recolor, you have to create a whole new item, with the meshes and all, and all of the references edited. And, while it is possible to do this by hand, it would take forever. Tool makers are hard at work to make non-default object recolors possible, it's just gonna be a little while, that's all.

However, if what you wanted was to replace the original, than all you need do is export the texture, edit it, and import into a new package with the same TGI. That's it, but it will replace the original, not give you a new one. The way described here will both give you a new object, AND replace the original, so you'll end up with 2 of the same object.

EDIT: Please ignore the chat message in the corner from Srikandi. I didn't even realize I had caught that with my screen shot.
Eminence Grise
#7 Old 13th Oct 2014 at 4:48 AM
OK, in light of Snaitf's research, I just had to disagree with my own post

I hate that!
Lab Assistant
#8 Old 13th Oct 2014 at 11:39 AM Last edited by zano972 : 13th Oct 2014 at 11:49 AM.
You're right Snaitf,

It was only a starting and basic point...

Quote:
So basically, to do a recolor, you have to create a whole new item, with the meshes and all, and all of the references edited. And, while it is possible to do this by hand, it would take forever.

... Unfortunately, to create a new object with a new texture that DOESN'T affect the original, you also need to change the instance of the texture.
But when you do that, you also need to change the reference to it in the MODL file, which means cloning that too.
And also the MLOD files, which means cloning them as well. And there are many references to the textures in all of those files that need to be changed.


I agree with that too... I think you didn't notice my first words was:

Quote:
Yes it's possible if you want to clone simples objects


and at least...

Quote:
PS: This is only for a simple object recoloration but it is not difficult to add the other textures, and ressources (meshes, etc.) to build a full new object


I add: and doing that will take some times...

But in fact you're fully right.

You're right tooSrikandi as Snaitf says a lot of objects need a lot of change.

So long.

If you want to know your future...create it!
Field Researcher
#9 Old 15th Oct 2014 at 10:13 PM Last edited by hazuitokage : 17th Oct 2014 at 11:13 PM.
Zano972, si jamais tu veux un peu d'aide pour traduire un tuto plus complet sur le sujet en anglais… On parle bien de créer de nouveaux objets, là ? Pas juste de simples recolors ?

(Quick translation, sorry about that : Zano972, if you need help to translate a more complete tutorial into English… You are talking about creating new objects here, are you not ? Not just recolors ?)
Test Subject
#10 Old 16th Oct 2014 at 10:25 AM
moi n'a rien compris lol even if I understand english, I'm not informatics specialist enough I think... but I'm glad to see you can help to translate it in French if I decide to connect my brain and try to save my sims' home deco
By the way, thanks to all your team for all the nice stuffs and information you give us all for the game
Lab Assistant
#11 Old 17th Oct 2014 at 4:14 PM
Thanks a lot hazuitokage but it's not necessary. I'm writing right now a little tool to automatically rename all references which need to be modified in a custom object...

So long.

If you want to know your future...create it!
Pettifogging Legalist!
retired moderator
#12 Old 17th Oct 2014 at 4:40 PM
@hazuitokage could you please add a quick translation to your post above? (Youre welcome to post in any language, but please always include an English translation -- thank you! =)

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.
Field Researcher
#13 Old 17th Oct 2014 at 11:15 PM
Quote: Originally posted by zano972
Thanks a lot hazuitokage but it's not necessary. I'm writing right now a little tool to automatically rename all references which need to be modified in a custom object...

So long.

No problem, good luck
Lab Assistant
#14 Old 22nd Oct 2014 at 12:30 PM
(Quick translation, sorry about that : Zano972, if you need help to translate a more complete tutorial into English… You are talking about creating new objects here, are you not ? Not just recolors ?)

Quote:
Not just recolors ?


(quick answer):

Not just for recolors... For full object and it's ok and working. Thanks a lot.

If you want to know your future...create it!
Test Subject
#15 Old 12th Nov 2014 at 5:41 AM
Quote: Originally posted by zano972
(Quick translation, sorry about that : Zano972, if you need help to translate a more complete tutorial into English… You are talking about creating new objects here, are you not ? Not just recolors ?)



(quick answer):

Not just for recolors... For full object and it's ok and working. Thanks a lot.


I don't suppose you've made any head way on that little tool you were talking about zano972
Back to top