Skip to content

Commit d323fbd

Browse files
committed
Updated version
1 parent a62e2d7 commit d323fbd

39 files changed

+1930
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,6 @@ cython_debug/
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161+
162+
#Private data
163+
.private

README.md

+147-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,147 @@
1-
# TS4-CopyOutfits
1+
# Copy Outfits
2+
`Copy Outfits` allows to copy outfits and more. It is basically the same as [Outfit Tools - Copy Any Outfit v4](https://modthesims.info/d/541770/outfit-tools-copy-any-outfit-v4.html)
3+
by scumbumbo while the code has been written from scratch and menu interactions have been added to replace the cheat console input.
4+
With the current update the sims appearance can be cloned completely.
5+
6+
It allows to copy outfits from one sim to the other and also to and from special categories.
7+
Outfits for Toddlers are only available for Toddlers, the same applies to Children.
8+
Outfits for Teen, Young Adult, Adult and Elder are shared for these age groups.
9+
10+
`Copy Outfits` is a 'hidden' debug menu as it is meant to fix issues or to prepare sims but not for normal game play.
11+
Enable cheats with `testingcheats true` to activate it and Shift-click on sims to use it.
12+
13+
## Menu 'Copy Outfits'
14+
* The most simple option is to use 'Copy' to copy the current outfit to the internal clipboard #0 and 'Paste' to paste from #0 to the current outfit.
15+
* Appearance modifiers are not taken into account. If the sim wears no shoes due to an appearance modifier (Snowy Escape DLC) the shoes will still be copied - and of course vice versa. If the sim wears boots due to an appearance modifier the boots will not be copied.
16+
* The 'Copy/Paste ...' > '(X-)Picker ...' menus allow to select a specific outfit. It will be copied to/from clipboard 0. See `Menu Special-Picker` for details.
17+
* 'Transfer ...' allows to copy other things from clipboard 0 to the current outfit. See `Menu Transfer` for details.
18+
19+
The other menu options may be used rarely:
20+
* The 'Copy/Paste ...' > '(X-)Category ...' menus allow to copy/paste all outfits, up to five.
21+
* 'Copy to ...' allows to copy the current outfit to one of the other clipboards [1..4].
22+
* 'Paste from ...' allows to paste the outfit from another clipboards [1..4] to the current outfit.
23+
* 'Paste to ...' allows to paste the outfit from clipboard 0 to the current outfit category but to a specific index [0..4].
24+
25+
### Menu Special-Picker (X-Picker)
26+
It allows to select individual special outfits. These include:
27+
* Bathing[0] (Nude)
28+
* Situation[0]
29+
* Special[0..1] (0=Special 1=Nude with Towel)
30+
* Career[0]
31+
* Batuu[0..4]
32+
33+
### Menu Transfer
34+
* 'Sim' includes everything (no sliders) which defines a sim. These are the head, teeth, hair, eye colors, and many skin details.
35+
* 'Cloth' pastes the hat, full body or upper and lower outfit, shoes, cummerbund, gloves, socks, tights. The 'Paste' commands from above pastes these items.
36+
* 'Body Paint' pastes all body paint. This includes tattoos, skin overlays, acne and nails.
37+
* 'Hand Accessories' pastes bracelets and rings and other accessories attached to writs or fingers.
38+
* 'Head Accessories' pastes ear rings, glasses and the necklace.
39+
* 'Head Paint' includes lipstick, eyebrows, shadow and liner, blush, mascara and face paint.
40+
* 'Head Piercings' includes brow, lip and nose piercings.
41+
* 'occult_scars' includes all occult scars and also the non-occult forearm scar.
42+
* 'Pet' includes the fur body, ears and tail (not tested).
43+
* 'Complete Outfit' (previously All) pastes everything (see above) to the selected sim. Sliders are not transferred but the sims will look very similar.
44+
45+
### Menu X-Transfer
46+
This is the sub menu which does not really has something to do with 'Copy Outfits'.
47+
* 'Age & Gender' includes age, gender, '¿extended_species?', walk styles, body frame, clothing preferences and whether the sim can give/receive pregnancy. Existing pregnancies will neither be canceled or transferred.
48+
* 'Genetics' is only '¿genetics?', whatever it is.
49+
* 'Physics & Genetics' includes '?genetics?', physic, sliders, voice, skin and if available also pelt and/or '¿base_traits?', whatever this is.
50+
* 'Traits' includes all traits.
51+
* 'All' includes 'Complete Outfit' and everything from above.
52+
* ~~'Sliders'~~ - not implemented as a standalone interaction, use 'All' or 'Physics & Genetics'
53+
* ~~'Walkstyles'~~ - not implemented as a standalone interaction, use 'All' or 'Age & Gender'
54+
* ~~'Relationships'~~ - not implemented
55+
* ~~'Only Face Sliders'~~ - not implemented
56+
* ~~'Only Body Sliders'~~ - not implemented
57+
*
58+
### Menu More
59+
* 'Print Clipboard' prints the copied outfits including the source sim. Outfit IDs are logged to the log file where you can copy them and will not flood the notification area.
60+
* 'Clear All' removes all outfits from the cache.
61+
* 'Clear ...' allows to remove a specific outfit from the cache.
62+
63+
## Random sims
64+
### Mermaids (Tail)
65+
Special outfit categories aren't supported.
66+
### Aliens (Disguise)
67+
Special outfit categories aren't supported.
68+
### Pets (Cats & Dogs)
69+
Do not copy outfits from cats to dogs and vice versa. Technically it works but it looks odd.
70+
### Witch, Vampire
71+
These should work as every other sim
72+
### Robots, Plant Sim, Ghost, Skeleton
73+
Not tested. It is possible that they do not support special outfits and may throw an exception.
74+
75+
## Technical Details
76+
There are five groups to store outfits:
77+
* A: Teen, Young Adult, Adult and Elder
78+
* B: Children
79+
* C: Toddler
80+
* D: Infants
81+
* E: Unknown (non-sims, could be pets - not tested)
82+
83+
There are five clipboards [0..4] for the outfits. Each sim can have up to five outfits [0..4] for each normal category and 1 to 5 for special categories.
84+
85+
### History:
86+
This mod has been inspired by 'Copy Any Outfit'. All code has been written from scratch.
87+
88+
### Update 2023-06
89+
1.0.2 Conversion / update of links
90+
1.0.1 Fix LE caused by non-functional code
91+
1.0.0 Supports infants.
92+
93+
94+
95+
# Addendum
96+
97+
## Game compatibility
98+
This mod has been tested with `The Sims 4` 1.98.158 (2023-06), S4CL 2.7 (2023-06), TS4Lib 0.0.24 (2023-06).
99+
It is expected to be compatible with many upcoming releases of TS4, S4CL and TS4Lib.
100+
101+
## Dependencies
102+
* [The Sims 4](https://www.ea.com/games/the-sims/the-sims-4)
103+
* [S4CL](https://github.com/ColonolNutty/Sims4CommunityLibrary/releases/latest)
104+
* [TS4Lib](https://github.com/Oops19/TS4-Library/releases/latest)
105+
106+
If not installed download and install TS4 and these mods.
107+
All are available for free.
108+
109+
## Installation
110+
* Locate the localized `The Sims 4` folder which contains the `Mods` folder.
111+
* Extract the ZIP file into this `The Sims 4` folder.
112+
* It will create the directories/files `Mods/_o19_/$mod_name.ts4script`, `Mods/_o19_/$mod_name.package`, `mod_data/$mod_name/*` and/or `mod_documentation/$mod_name/*`
113+
* `mod_logs/$mod_name.txt` will be created as soon as data is logged.
114+
115+
### Manual Installation
116+
If you don't want to extract the ZIP file into `The Sims 4` folder you might want to read this.
117+
* The files in `ZIP-File/mod_data` are usually required and should be extracted to `The Sims 4/mod_data`.
118+
* The files in `ZIP-File/mod_documentation` are for you to read it. They are not needed to use this mod.
119+
* The `Mods/_o19_/*.ts4script` files can be stored in a random folder within `Mods` or directly in `Mods`. I highly recommend to store it in `_o19_` so you know who created it.
120+
121+
## Usage Tracking / Privacy
122+
This mod does not send any data to tracking servers. The code is open source, not obfuscated, and can be reviewed.
123+
124+
Some log entries in the log file ('mod_logs' folder) may contain the local username, especially if files are not found (WARN, ERROR).
125+
126+
## External Links
127+
[Sources](https://github.com/Oops19/)
128+
[Support](https://discord.gg/d8X9aQ3jbm)
129+
[Donations](https://www.patreon.com/o19)
130+
131+
## Copyright and License
132+
* © 2023 [Oops19](https://github.com/Oops19)
133+
* License for '.package' files: [Electronic Arts TOS for UGC](https://tos.ea.com/legalapp/WEBTERMS/US/en/PC/)
134+
* License for other media unless specified differently: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) unless the Electronic Arts TOS for UGC overrides it.
135+
This allows you to use this mod and re-use the code even if you don't own The Sims 4.
136+
Have fun extending this mod and/or integrating it with your mods.
137+
138+
Oops19 / o19 is not endorsed by or affiliated with Electronic Arts or its licensors.
139+
Game content and materials copyright Electronic Arts Inc. and its licensors.
140+
Trademarks are the property of their respective owners.
141+
142+
### TOS
143+
* Please don't put it behind a paywall.
144+
* Please don't create mods which break with every TS4 update.
145+
* For simple tuning modifications use [Patch-XML](https://github.com/Oops19/TS4-PatchXML)
146+
* or [LiveXML](https://github.com/Oops19/TS4-LiveXML).
147+
* To check the XML structure of custom tunings use [VanillaLogs](https://github.com/Oops19/TS4-VanillaLogs).

_TS4/Mods/_o19_/copy_outfits.package

66.5 KB
Binary file not shown.

_TS4/mod_data/README.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Keep this file and folder in 'The Sims 4/mod_data/'.
2+
Do not move this mod_data folder into 'Mods' even if there is a 'mod_data' folder.
3+
4+
'The Sims 4/mod_data/' is used by me for my mods which are usually located in 'The Sims 4/Mods/_o19_'and others.
5+
'The Sims 4/Mods/mod_data/' is also used by mod creators. As TS4 does not need to read this data I believe it should be placed in 'The Sims 4/'.
6+
7+
Logs will be written to 'The Sims 4/mod_logs/' by many mods. Only a few older mods write their logs in the directory where they are installed.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# Copy Outfits
2+
`Copy Outfits` allows to copy outfits and more. It is basically the same as [Outfit Tools - Copy Any Outfit v4](https://modthesims.info/d/541770/outfit-tools-copy-any-outfit-v4.html)
3+
by scumbumbo while the code has been written from scratch and menu interactions have been added to replace the cheat console input.
4+
With the current update the sims appearance can be cloned completely.
5+
6+
It allows to copy outfits from one sim to the other and also to and from special categories.
7+
Outfits for Toddlers are only available for Toddlers, the same applies to Children.
8+
Outfits for Teen, Young Adult, Adult and Elder are shared for these age groups.
9+
10+
`Copy Outfits` is a 'hidden' debug menu as it is meant to fix issues or to prepare sims but not for normal game play.
11+
Enable cheats with `testingcheats true` to activate it and Shift-click on sims to use it.
12+
13+
## Menu 'Copy Outfits'
14+
* The most simple option is to use 'Copy' to copy the current outfit to the internal clipboard #0 and 'Paste' to paste from #0 to the current outfit.
15+
* Appearance modifiers are not taken into account. If the sim wears no shoes due to an appearance modifier (Snowy Escape DLC) the shoes will still be copied - and of course vice versa. If the sim wears boots due to an appearance modifier the boots will not be copied.
16+
* The 'Copy/Paste ...' > '(X-)Picker ...' menus allow to select a specific outfit. It will be copied to/from clipboard 0. See `Menu Special-Picker` for details.
17+
* 'Transfer ...' allows to copy other things from clipboard 0 to the current outfit. See `Menu Transfer` for details.
18+
19+
The other menu options may be used rarely:
20+
* The 'Copy/Paste ...' > '(X-)Category ...' menus allow to copy/paste all outfits, up to five.
21+
* 'Copy to ...' allows to copy the current outfit to one of the other clipboards [1..4].
22+
* 'Paste from ...' allows to paste the outfit from another clipboards [1..4] to the current outfit.
23+
* 'Paste to ...' allows to paste the outfit from clipboard 0 to the current outfit category but to a specific index [0..4].
24+
25+
### Menu Special-Picker (X-Picker)
26+
It allows to select individual special outfits. These include:
27+
* Bathing[0] (Nude)
28+
* Situation[0]
29+
* Special[0..1] (0=Special 1=Nude with Towel)
30+
* Career[0]
31+
* Batuu[0..4]
32+
33+
### Menu Transfer
34+
* 'Sim' includes everything (no sliders) which defines a sim. These are the head, teeth, hair, eye colors, and many skin details.
35+
* 'Cloth' pastes the hat, full body or upper and lower outfit, shoes, cummerbund, gloves, socks, tights. The 'Paste' commands from above pastes these items.
36+
* 'Body Paint' pastes all body paint. This includes tattoos, skin overlays, acne and nails.
37+
* 'Hand Accessories' pastes bracelets and rings and other accessories attached to writs or fingers.
38+
* 'Head Accessories' pastes ear rings, glasses and the necklace.
39+
* 'Head Paint' includes lipstick, eyebrows, shadow and liner, blush, mascara and face paint.
40+
* 'Head Piercings' includes brow, lip and nose piercings.
41+
* 'occult_scars' includes all occult scars and also the non-occult forearm scar.
42+
* 'Pet' includes the fur body, ears and tail (not tested).
43+
* 'Complete Outfit' (previously All) pastes everything (see above) to the selected sim. Sliders are not transferred but the sims will look very similar.
44+
45+
### Menu X-Transfer
46+
This is the sub menu which does not really has something to do with 'Copy Outfits'.
47+
* 'Age & Gender' includes age, gender, '¿extended_species?', walk styles, body frame, clothing preferences and whether the sim can give/receive pregnancy. Existing pregnancies will neither be canceled or transferred.
48+
* 'Genetics' is only '¿genetics?', whatever it is.
49+
* 'Physics & Genetics' includes '?genetics?', physic, sliders, voice, skin and if available also pelt and/or '¿base_traits?', whatever this is.
50+
* 'Traits' includes all traits.
51+
* 'All' includes 'Complete Outfit' and everything from above.
52+
* ~~'Sliders'~~ - not implemented as a standalone interaction, use 'All' or 'Physics & Genetics'
53+
* ~~'Walkstyles'~~ - not implemented as a standalone interaction, use 'All' or 'Age & Gender'
54+
* ~~'Relationships'~~ - not implemented
55+
* ~~'Only Face Sliders'~~ - not implemented
56+
* ~~'Only Body Sliders'~~ - not implemented
57+
*
58+
### Menu More
59+
* 'Print Clipboard' prints the copied outfits including the source sim. Outfit IDs are logged to the log file where you can copy them and will not flood the notification area.
60+
* 'Clear All' removes all outfits from the cache.
61+
* 'Clear ...' allows to remove a specific outfit from the cache.
62+
63+
## Random sims
64+
### Mermaids (Tail)
65+
Special outfit categories aren't supported.
66+
### Aliens (Disguise)
67+
Special outfit categories aren't supported.
68+
### Pets (Cats & Dogs)
69+
Do not copy outfits from cats to dogs and vice versa. Technically it works but it looks odd.
70+
### Witch, Vampire
71+
These should work as every other sim
72+
### Robots, Plant Sim, Ghost, Skeleton
73+
Not tested. It is possible that they do not support special outfits and may throw an exception.
74+
75+
## Technical Details
76+
There are five groups to store outfits:
77+
* A: Teen, Young Adult, Adult and Elder
78+
* B: Children
79+
* C: Toddler
80+
* D: Infants
81+
* E: Unknown (non-sims, could be pets - not tested)
82+
83+
There are five clipboards [0..4] for the outfits. Each sim can have up to five outfits [0..4] for each normal category and 1 to 5 for special categories.
84+
85+
### History:
86+
This mod has been inspired by 'Copy Any Outfit'. All code has been written from scratch.
87+
88+
### Update 2023-06
89+
1.0.2 Conversion / update of links
90+
1.0.1 Fix LE caused by non-functional code
91+
1.0.0 Supports infants.
92+
93+
94+
95+
# Addendum
96+
97+
## Game compatibility
98+
This mod has been tested with `The Sims 4` 1.98.158 (2023-06), S4CL 2.7 (2023-06), TS4Lib 0.0.24 (2023-06).
99+
It is expected to be compatible with many upcoming releases of TS4, S4CL and TS4Lib.
100+
101+
## Dependencies
102+
* [The Sims 4](https://www.ea.com/games/the-sims/the-sims-4)
103+
* [S4CL](https://github.com/ColonolNutty/Sims4CommunityLibrary/releases/latest)
104+
* [TS4Lib](https://github.com/Oops19/TS4-Library/releases/latest)
105+
106+
If not installed download and install TS4 and these mods.
107+
All are available for free.
108+
109+
## Installation
110+
* Locate the localized `The Sims 4` folder which contains the `Mods` folder.
111+
* Extract the ZIP file into this `The Sims 4` folder.
112+
* It will create the directories/files `Mods/_o19_/$mod_name.ts4script`, `Mods/_o19_/$mod_name.package`, `mod_data/$mod_name/*` and/or `mod_documentation/$mod_name/*`
113+
* `mod_logs/$mod_name.txt` will be created as soon as data is logged.
114+
115+
### Manual Installation
116+
If you don't want to extract the ZIP file into `The Sims 4` folder you might want to read this.
117+
* The files in `ZIP-File/mod_data` are usually required and should be extracted to `The Sims 4/mod_data`.
118+
* The files in `ZIP-File/mod_documentation` are for you to read it. They are not needed to use this mod.
119+
* The `Mods/_o19_/*.ts4script` files can be stored in a random folder within `Mods` or directly in `Mods`. I highly recommend to store it in `_o19_` so you know who created it.
120+
121+
## Usage Tracking / Privacy
122+
This mod does not send any data to tracking servers. The code is open source, not obfuscated, and can be reviewed.
123+
124+
Some log entries in the log file ('mod_logs' folder) may contain the local username, especially if files are not found (WARN, ERROR).
125+
126+
## External Links
127+
[Sources](https://github.com/Oops19/)
128+
[Support](https://discord.gg/d8X9aQ3jbm)
129+
[Donations](https://www.patreon.com/o19)
130+
131+
## Copyright and License
132+
* © 2023 [Oops19](https://github.com/Oops19)
133+
* License for '.package' files: [Electronic Arts TOS for UGC](https://tos.ea.com/legalapp/WEBTERMS/US/en/PC/)
134+
* License for other media unless specified differently: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) unless the Electronic Arts TOS for UGC overrides it.
135+
This allows you to use this mod and re-use the code even if you don't own The Sims 4.
136+
Have fun extending this mod and/or integrating it with your mods.
137+
138+
Oops19 / o19 is not endorsed by or affiliated with Electronic Arts or its licensors.
139+
Game content and materials copyright Electronic Arts Inc. and its licensors.
140+
Trademarks are the property of their respective owners.
141+
142+
### TOS
143+
* Please don't put it behind a paywall.
144+
* Please don't create mods which break with every TS4 update.
145+
* For simple tuning modifications use [Patch-XML](https://github.com/Oops19/TS4-PatchXML)
146+
* or [LiveXML](https://github.com/Oops19/TS4-LiveXML).
147+
* To check the XML structure of custom tunings use [VanillaLogs](https://github.com/Oops19/TS4-VanillaLogs).

_compile/compile.ini

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
'additional_directories': (),
3+
'exclude_folders': (),
4+
'include_sources': False,
5+
}

0 commit comments

Comments
 (0)