PDA

View Full Version : Extracting color preset informations from patterns


Simlicious
29th Oct 2012, 12:23 PM
I just created 60 patterns of wool fabric and used Delphy's Pattern Packager to create most of them. I just recently discovered that it can also save to sims3pack, I used TSR Workshop pattern tool previously to be able to have both sims3pack and package.

Anyway, The sims3packs I created with Delphy's Pattern Packager are not working in-game. Now I only have the working packages and would like to extract the color presets so that I can recreate the sims3packs using the TSRW Pattern tool so they look exactly like their package counterparts. I assume you would have to extract some information from the xml, but I don't know which part and how to convert the data into hex color codes. I appreciate any help!

Inge Jones
29th Oct 2012, 12:57 PM
Well, my TextureTweaker exports *object* presets as xml, but the format may not be compatible with the one you can import to Workshop patterns. Actually, perhaps I will look into producing a compatible version, if it's possible. Thanks for the idea :)

Simlicious
29th Oct 2012, 3:17 PM
Well, my TextureTweaker exports *object* presets as xml, but the format may not be compatible with the one you can import to Workshop patterns. Actually, perhaps I will look into producing a compatible version, if it's possible. Thanks for the idea :)
That would be wonderful! :)

So far, I am able to locate the colors in the xml- file of the pattern, but I don't understand it's format.
param type="color" name="Color 0" default="0.2627451,0.3647059,0.5333334,1.0000000"[/IMG]
This is part of the xml-data of one color channel.
The colors seem to be expressed in numbers ranging from 0 to 1. I don't know how I can convert those numbers to hex color codes that the TSR workshop pattern tool can actually read. Any ideas on how to do that? Is there a converter, a formula, something? :) I would do everything manually if I have to.

Edit: Never mind, figured it out! Numbers from 0 to 1 are used in the CMYK color model . Now I am able to convert those to hex color code.

metisqueen
17th Nov 2012, 4:49 AM
I just created 60 patterns of wool fabric and used Delphy's Pattern Packager to create most of them. I just recently discovered that it can also save to sims3pack, I used TSR Workshop pattern tool previously to be able to have both sims3pack and package.

Anyway, The sims3packs I created with Delphy's Pattern Packager are not working in-game. Now I only have the working packages and would like to extract the color presets so that I can recreate the sims3packs using the TSRW Pattern tool so they look exactly like their package counterparts. I assume you would have to extract some information from the xml, but I don't know which part and how to convert the data into hex color codes. I appreciate any help!

Hi,

Not that this will be of great help, but for some reason (as I have discovered myself) don't work in sims 3 if they are sims 3pack...instead if you use the pattern packager and make it a package file, it will work in the game