- Site Map >
- Modding and Creation >
- Creator Feedback Forum >
- Sims 4 >
- Testing - Five New Sliders For The Sims 4! - Height, Hand, Neck, Bulge, and Gradual Height Growth! - 2/17/2016 Update
- Site Map >
- Modding and Creation >
- Creator Feedback Forum >
- Sims 4 >
- Testing - Five New Sliders For The Sims 4! - Height, Hand, Neck, Bulge, and Gradual Height Growth! - 2/17/2016 Update
Scholar
#1051
2nd Jun 2023 at 12:24 AM
Posts: 1,299
New update works flawlessly with new patch. Thank you again.
Advertisement
Test Subject
#1052
5th Jun 2023 at 1:08 AM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by Sweetgirl612
I really love the growth part of this, but apparently it is causing an LE. Also, would it be possible to create a config file that would allow the user to set a min/max height? |
I assume you mean the min/max auto-randomized height? Would that apply to the pie menu or no?
Lab Assistant
#1053
5th Jun 2023 at 4:12 PM
Posts: 118
Quote: Originally posted by MycroftJr
I assume you mean the min/max auto-randomized height? Would that apply to the pie menu or no? |
Yes, as I was referring to a way to set the minimum/maximum auto-randomized height for all sims. As far as I noticed, the pie menu only impacts individual sims, so I don't think it would have any effect of the pie menu. I suppose it could be possible to have that setting in the pie menu, but a config file would work just as well, so whichever would be easier create, I guess. I like the idea of having some height variety in my world (though the growth for children/teens is what I value most), but, especially since changing height also changes size/proportions, I found the effect kind of jarring and immersion-breaking due to the extremes in sizes. I hope that's clear.
Test Subject
#1054
6th Jun 2023 at 5:22 AM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by Sweetgirl612
Yes, as I was referring to a way to set the minimum/maximum auto-randomized height for all sims. As far as I noticed, the pie menu only impacts individual sims, so I don't think it would have any effect of the pie menu. I suppose it could be possible to have that setting in the pie menu, but a config file would work just as well, so whichever would be easier create, I guess. I like the idea of having some height variety in my world (though the growth for children/teens is what I value most), but, especially since changing height also changes size/proportions, I found the effect kind of jarring and immersion-breaking due to the extremes in sizes. I hope that's clear. |
ah, yes, I see how the change in width of the sim could be jarring lol. The sliders probably need some work there.
Alright, I'll add it as a config setting.
Test Subject
#1055
7th Jun 2023 at 12:56 AM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by Sweetgirl612
I tried to include the MCC file, but it said it was an unsupported file type. I'm attaching a link to a zip with both files: https://drive.google.com/file/d/1kc...iew?usp=sharing It is possible I have it installed incorrectly; I have the growth file but not the tall and short because the extreme heights were too jarring for me on adults. I have included an image of how I had it set up. |
just for clarity, did the LE still occur once all the other errors were fixed (like the venue_civic_policy_provider.py "tuple is not callable" one in the MCCC log)?
Lab Assistant
#1056
7th Jun 2023 at 4:44 AM
Posts: 118
Quote: Originally posted by MycroftJr
just for clarity, did the LE still occur once all the other errors were fixed (like the venue_civic_policy_provider.py "tuple is not callable" one in the MCCC log)? |
I removed this mod while trying to figure out the source of that one, which I'm still not sure I have figured out.
Test Subject
#1057
9th Jun 2023 at 1:24 AM
Posts: 1
Hi! I'm happy to have gradual growth, but I have a request please. Could you make a version of the mod that would only add gradual growth for the child age? I would like to not have randomized heights for all sims, and I'd like all other life stages heights to remain unaffected by the mod. (To use together with "auto shorter teens". I'd like this because teens already have kiss interactions, and I'd like to keep the animations aligned while still having teens be different from adults. Then it's easier to tell them apart)
This is because my sims growing from child to teen, the difference in age looks so big and sudden. But with height randomization/difference in other life stages, I tried it but it was not to my preference. With kids it's something I've been looking for a long time. I have tried presets to help pretend that they are younger/older, but they need to be manually changed and it is very tedious because they meet new sim kids all the time.
Please if you would like to make this sort of seperated version, I would be so happy and I think others might like it too!
This is because my sims growing from child to teen, the difference in age looks so big and sudden. But with height randomization/difference in other life stages, I tried it but it was not to my preference. With kids it's something I've been looking for a long time. I have tried presets to help pretend that they are younger/older, but they need to be manually changed and it is very tedious because they meet new sim kids all the time.
Please if you would like to make this sort of seperated version, I would be so happy and I think others might like it too!
Test Subject
#1058
11th Jun 2023 at 1:18 AM
Last edited by MycroftJr : 11th Jun 2023 at 5:41 AM.
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by Ihminen
Hi! I'm happy to have gradual growth, but I have a request please. Could you make a version of the mod that would only add gradual growth for the child age? I would like to not have randomized heights for all sims, and I'd like all other life stages heights to remain unaffected by the mod. (To use together with "auto shorter teens". I'd like this because teens already have kiss interactions, and I'd like to keep the animations aligned while still having teens be different from adults. Then it's easier to tell them apart) This is because my sims growing from child to teen, the difference in age looks so big and sudden. But with height randomization/difference in other life stages, I tried it but it was not to my preference. With kids it's something I've been looking for a long time. I have tried presets to help pretend that they are younger/older, but they need to be manually changed and it is very tedious because they meet new sim kids all the time. Please if you would like to make this sort of seperated version, I would be so happy and I think others might like it too! |
Hey, I'm just going to add a config option for this too. Ideally (with some future improved math in this mod), sims shouldn't change in height when aging up, and continue to grow from there. But I'm not really sure how to do that atm since I'm not sure where various sliders line up.
(Teens should already not be changing height when becoming young adults, lmk if that's not working)
Test Subject
#1059
11th Jun 2023 at 5:35 AM
Last edited by MycroftJr : 16th Jun 2023 at 11:10 PM.
Posts: 47
Thanks: 295 in 15 Posts
config version beta (also heights for Infants)
Please download newer version here! The beta version of the config build is attached. I wasn't able to reproduce the tracker LE, but it should no longer LE with this build, only log the error to the renamed MycroftJr_HeightSliders.log file.
Please try this version and let me know if anything goes weird. Be sure to delete the old version first as some filenames have changed.
In addition to adding the config, I manually edited the .packages so that Heights should work for Infants, although Infants and Toddlers will need their own sliders (bone poses) for Gradual Growth to be added to them. Reply to me with sliders attached if you would like to provide some.
config details:
The MycroftJr_HeightSliders.cfg is actually a JSON file. Be careful not to break the validity of the JSON when editing it manually, but the mod should either fix your errors or warn you with a pop-up when a save loads. The file should be generated when the mod is first run, and only reloaded (for now) when the game starts.
Default values in the config are ones that don't need to be present in the config file to have their effect, so feel free to remove those lines.
As with any JSON, spaces don't matter outside of quotes, and letters are only valid inside quotes, except for the values true and false.
As before, removing a .package will stop it from running, but prefer these config options over removing Tall.package or Short.package entirely.
config values:
- FormatOnNextLoad: default: false. When true, will be removed from the config on next mod load and the config will be re-formatted.
- FillInDefaultsOnNextLoad: default: false. When true, will become false on next mod load and copy ALL the default values into your config.
- RandomizeHeights: a map from AGE to boolean (true/false). The defaults are true for each key, so use i.e. "ADULT": false, for custom behavior. Controls whether the given AGE group will have their heights first-time randomized at Gradual Growth time. Observed by rhall and the Gradual Growth update; ignored by 'randomize_sim_height' and the Pie Menu.
- RandomHeightRanges: a map from AGE to [min height, max height]. The defaults for each are [-100, 100]. If changed, randomly generated heights (except via the pie menu) will be remapped to the given range before being applied.
- GrowthEnabled: a map from AGE to boolean (true/false). The default for each is true. Controls whether sims of the given AGE group will grow at Gradual Growth time. Adding keys other than CHILD or TEEN will have no effect, as the math is not present for their gradual growth. NOTE: to disable the mod from changing heights at all for the given AGE group, you must also set RandomizeHeights to false for that age group.
valid AGEs are:
- "BABY"
- "INFANT"
- "TODDLER"
- "CHILD"
- "TEEN"
- "YOUNGADULT" <- ONE WORD
- "ADULT"
- "ELDER"
The following config values determine the timing of the Gradual Growth height update. Time is only counted while the game is not paused.
Valid time labels are:
- "seconds"
- "minutes"
- "hours"
- "days"
- "weeks"
So the final config options:
- GrowthStart: a list of [amount, time label] tuples. Each tuple is added up to determine the time of the first Gradual Growth update after game load. So for example, [[1, "hours"], [33, "minutes"], [7, "seconds"]] would be 1 hour, 33 minutes and 7 seconds. The default is the empty list, so only remove all the lines inside the { } if you really mean 0 seconds.
- GrowthStartAbsolute: default true. If true, GrowthStart is applied from the beginning of a sim day (e.x. so the starting value [[1, "hours"]] means 1am, [[17, "hours"]] would mean 17:00 aka. 5pm, etc). If false, GrowthStart is applied from when the zone loads (so with "GrowthStartAbsolute": false, "GrowthStart": [[1, "minutes"]], which I like to use for testing, makes the first Gradual Growth update happen 1 sim-minute after the zone loads).
- GrowthFrequency: a list of [amount, time label] tuples. Each tuple is added up to determine how often Gradual Growth updates are run. So for example, the starting value of [[1, "days"]] means the Gradual Growth update happens daily. [[2, "weeks"]] would mean it happens every 2 weeks. The default is the empty list, so do not remove all lines inside the { }, lest the Gradual Growth update happen constantly.
Example configs:
the current default config:
Code:
{ "FormatOnNextLoad": false, "FillInDefaultsOnNextLoad": false, "RandomizeHeights": { "BABY": true, "INFANT": true, "TODDLER": true, "CHILD": true, "TEEN": true, "YOUNGADULT": true, "ADULT": true, "ELDER": true }, "RandomHeightRanges": { "BABY": [-100, 100], "INFANT": [-100, 100], "TODDLER": [-100, 100], "CHILD": [-100, 100], "TEEN": [-100, 100], "YOUNGADULT": [-100, 100], "ADULT": [-100, 100], "ELDER": [-100, 100] }, "PieMenuUseRandomHeightRanges": true, "GrowthEnabled": { "CHILD": true, "TEEN": true }, "GrowthStart": [ [1.0, "hours"] ], "GrowthStartAbsolute": true, "GrowthFrequency": [ [1.0, "days"] ] }
the shortest way to express that config (e.g. with all the defaults cut out:
Code:
{ "GrowthStart": [ [1.0, "hours"] ], "GrowthFrequency": [ [1.0, "days"] ] }
another way to write that config that still shows you how to write each setting:
Code:
{ "FormatOnNextLoad": false, "FillInDefaultsOnNextLoad": false, "RandomizeHeights": { "INFANT": true }, "RandomHeightRanges": { "INFANT": [-100, 100] }, "PieMenuUseRandomHeightRanges": true, "GrowthEnabled": { "CHILD": true }, "GrowthStart": [ [1.0, "hours"] ], "GrowthStartAbsolute": true, "GrowthFrequency": [ [1.0, "days"] ] }
That's about it. Let me know if you have any questions or would like to request additional config options. If you feel like anything isn't working, please send me the (renamed) MycroftJr_HeightSliders.log and any HTML exceptions or base game crash.txt reports you get.
Update 06/12/2022: updated the documentation and mod file with changes:
- The mod will now attempt to fix your .cfg if it is not valid JSON, after backing up the old file as .cfg_old for comparison.
- rhall will now act according RandomizeHeights (in addition to RandomHeightRanges, which it already observed) - e.g. it will no longer randomize the heights of sims you have configured to not randomize the heights of.
- Gradual Growth is now solely controlled by GrowthEnabled, not RandomizeHeights, by assuming a HeightStat of 0 if RandomizeHeights is false.
PLEASE DO NOT REDISTRIBUTE BETA BUILDS (or any builds ideally, especially outside this thread without attribution)
Test Subject
#1060
11th Jun 2023 at 5:49 AM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by Jaimes
. |
Quote: Originally posted by Sweetgirl612
. |
Quote: Originally posted by Ihminen
. |
please let me know whether https://modthesims.info/showthread....579#post5896579 addresses your issues!
Lab Assistant
#1061
11th Jun 2023 at 11:08 PM
Posts: 118
Quote: Originally posted by MycroftJr
please let me know whether https://modthesims.info/showthread....579#post5896579 addresses your issues! |
First, thank you so much for creating the config file for us! However, I cannot seem to get the configuration right for what I'm wanting: I want sims to have minor differences in height and for sims children to grow in a way that makes older children bigger than younger children (same with teens). I'm attaching two images; one with my current configuration, and one with sims in the rel panel. As you can see in the picture, the girls are much bigger than the boys, but the boys are all older than the girls. Can you help me figure out what I'm doing wrong?
Good news: so far no LEs!
Test Subject
#1062
12th Jun 2023 at 12:13 AM
Last edited by MycroftJr : 13th Jun 2023 at 8:11 AM.
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by Sweetgirl612
First, thank you so much for creating the config file for us! However, I cannot seem to get the configuration right for what I'm wanting: I want sims to have minor differences in height and for sims children to grow in a way that makes older children bigger than younger children (same with teens). I'm attaching two images; one with my current configuration, and one with sims in the rel panel. As you can see in the picture, the girls are much bigger than the boys, but the boys are all older than the girls. Can you help me figure out what I'm doing wrong? Good news: so far no LEs! |
That's... very odd. None of the code takes gender into account, and I've just triple-checked that all of the height sliders apply equally to both Male and Female.
Could I get the .log file, or the result of `get_height` on each of the sims in question? Actually, if possible, could you send me the save file as well, or the sims in question exported as a household? Don't worry about a mod list or anything like that.
Also, you set FillInDefaultsOnNextLoad to true for that screenshot, right? Because it should always change to false when the game runs...
p.s. With uneven intervals (i.e. ones where min doesn't equal negative max), the heights will tend towards whichever side is farther from 0. Shouldn't cause the issues you're describing though.
Lab Assistant
#1063
12th Jun 2023 at 3:21 AM
Last edited by Sweetgirl612 : 12th Jun 2023 at 3:33 AM.
Posts: 118
Quote: Originally posted by MycroftJr
That's... very odd. None of the code takes gender into account, and I've just triple-checked that all of the height sliders apply equally to both Male and Female. Could I get the .log file, or the result of `get_height` on each of the sims in question? Actually, if possible, could you send me the save file as well, or the sims in question exported as a household? Don't worry about a mod list or anything like that. Also, you set FillInDefaultsOnNextLoad to true for that screenshot, right? Because it should always change to false when the game runs... p.s. With uneven intervals (i.e. ones where min doesn't equal negative max), the heights will tend towards the shorter-than-basegame side. Shouldn't cause the issues you're describing though. |
I sent you a friend request on discord; (Sheila). I figured that would be easier. It is not changing back to false; I tried several different configurations and could not get the desired result. I'm not sure it has anything to do with gender; may be coincidence. Attached is a broader view of his friend list.
Test Subject
#1064
13th Jun 2023 at 7:56 AM
Last edited by MycroftJr : 13th Jun 2023 at 8:07 AM.
Posts: 47
Thanks: 295 in 15 Posts
just posted the much improved config beta to https://modthesims.info/showthread....579#post5896579 ! (also we solved Sweetgirl612's issues offline, mostly the config invisibly failing to load, TY to all for testing)
Test Subject
#1065
13th Jun 2023 at 8:03 AM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by Jaimes
Unrelated, will this mod not be released to the downloads page? |
I'm not too familiar with this site, but I don't currently plan to have the mod leave this thread, so it can honor the tradition and effort put in over the years. I assume that would prevent me from putting it on "the downloads page"? If not, please give me instructions lol
Feel free to voice y'alls opinions on this though.
Test Subject
#1066
16th Jun 2023 at 1:43 AM
Last edited by MycroftJr : 16th Jun 2023 at 4:25 AM.
Posts: 47
Thanks: 295 in 15 Posts
Sliders and Gradual Growth Mod: Config and Hotspot Update 06/15/2023
Made with my Sims 4 Script Mod Template!Images courtesy of Sweetgirl612:
Most features can be disabled either through the Config (see below) or by deleting the corresponding .package file from the mod!
Sliders:
We have 4 general sliders at the moment: Height, Neck, Hands, and Bulge.
All sliders apply to Male and Female sims except Bulge. The non-height sliders only work for Teens and older.
For use in commands, the sliders are named:
- height (-100 to 100, negative values use Height Slider Short.package and positive ones use Height Slider Tall.package)
- neck (-100 to 100)
- hand/hands (0 to 100)
- bulge (0 to 100)
- chs/childheightslider ("Height Slider Growth.package" only, -100 to 100)
- ths/teenheightslider ("Height Slider Growth.package" only, -100 to 100, positive values will use the positive "height" slider, at least until/unless I get a teen-specific positive height slider)
- set_slider [slider name] [amount] [optional Sim ID] (e.g. 'set_slider hands 75') - sets the slider to the given value for the active or specified Sim. Sliders set to 0 will technically be removed from the Sim.
- get_slider [slider name] [optional Sim ID] - gives the value of the given slider for the active or specified Sim
- set_slider_all [slider_name] [amount] - sets the slider to the given value for all Sims in the save
- random_slider_all / randomize_slider_all [slider_name] - randomizes the given slider for all Sims in the save
- print_outfit_parts [optional Sim ID] - prints the Part IDs in the Sim's current outfit
- random_outfit [optional Sim ID] - randomizes the Sim's current outfit
- set_bulge_stat [amount] [optional Sim ID] - sets the BulgeStat directly (most commands that set the bulge slider will set this as well!)
- assign_bulge_clothes [optional Part ID] [optional Sim ID] - equips the given clothing article (or else a random one meant to be compatible with bulges) to the Sim
There are 3 ways to edit Sim heights in the mod: in CAS, via Pie Menu interaction, or precisely via commands (see in spoiler above):
CAS Hotspots:
(For premade sims, these are the only things in the mod that should require 'testingcheats on', followed by 'cas.fulleditmode', then Shift-Click -> CAS Modify, or 'Edit Household in CAS' in MCCC -> CAS)
I've added a remake of CmarNYC's hotspots that I made via TS4 MorphMaker in Height Slider Hotspots.package. It should make it so that dragging a sim's foot in CAS up or down should make their height go in the direction you dragged (via the "height" slider), for any age other than Baby.
I've also added a remake of Wihi's Hand Hotspot - an optional Hotspot for the Hand slider, by dragging vertically on the upper arm/bicep. Should still be compatible with (and complement) Luumia's Hand Sliders.
Height Pie Menu:
The Pie Menu that Tedw promised has been added! It requires XMLInjector!
Gradual Growth
The Height Slider Growth.package will make your Child and Teen sims grow taller day by day as they age!
- The Gradual Growth update will run however often you configure, or daily at 1am by default
- Will randomize the height of any Sim with a default height (defined as a Sim with no custom slider settings from this mod) *see RandomizeHeights in the Config section to configure this
- Uses a hidden HeightStat to determine the Sim's height relative to the average for their age group
- On the Gradual Growth update, sets Child / Teen sim height (chs/ths) based on their HeightStat and their percentage of progress towards the next Age Up
Commands from HeightModule.py:
- set_age / sa [amount] [optional Sim ID] - sets the Sim's age in days
- set_age_and_update_height / sau [amount] [optional Sim ID] - sets the Sim's age in days, then updates their height according to the Gradual Growth module
- add_age / aa [amount] [optional Sim ID] - adds the given amount to the Sim's age in days
- add_age_and_update_height / aau [amount] [optional Sim ID] - adds the given amount to the Sim's age in days, then updates their height according to the Gradual Growth module
- get_height_stat [optional Sim ID] - gives the HeightStat on the Sim (see above)
- get_height_sliders [optional Sim ID] - gives any non-0 height-based sliders (height, chs, ths) that are set on the Sim
- get_height [optional Sim ID] - does combines the above 2 commands
- set_height_stat [amount] [optional Sim ID] - sets the HeightStat on the Sim (see above) and gives them the HeightRandomized trait
- set_height [amount] [optional Sim ID] - in addition to the above command, does the Gradual Growth update on the Sim if they are YA or below, and otherwise sets the "height" slider
- randomize_all_heights / rhall - does set_height for all Sims with a random height tending towards Average
- randomize_sim_height / rhone [optional Sim ID] - same as the above, but for one Sim
- update_all_heights - performs the Gradual Growth 1am update for all Sims
- update_sim_height [optional Sim ID] - same as the above, but for the selected or specified Sim only
Configuration
I've added configuration via a JSON file named MycroftJr_HeightSliders.cfg . Be careful not to break the validity of the JSON when editing it manually, but the mod should either fix your errors or warn you with a pop-up when a save loads. The file should be generated when the mod is first run, and only reloaded (for now) when the game starts.
As before, removing a .package will stop it from running, but prefer these config options over removing Tall.package or Short.package entirely.
Default values in the config are ones that don't need to be present in the config file to have their effect, so feel free to remove those lines.
As with any JSON, spaces don't matter outside of quotes, and letters are only valid inside quotes, except for the values true and false.
config values:
- FormatOnNextLoad: default: false. When true, will be removed from the config on next mod load and the config will be re-formatted.
- FillInDefaultsOnNextLoad: default: false. When true, will become false on next mod load and copy ALL the default values into your config.
- RandomizeHeights: a map from AGE to boolean (true/false). The defaults are true for each key, so use i.e. "ADULT": false, for custom behavior. Controls whether the given AGE group will have their heights first-time randomized at Gradual Growth time. Observed by rhall and the Gradual Growth update; ignored by 'randomize_sim_height' and the Pie Menu.
- RandomHeightRanges: a map from AGE to [min height, max height]. The defaults for each are [-100, 100]. If changed, randomly generated heights (except via the pie menu) will be remapped to the given range before being applied.
- GrowthEnabled: a map from AGE to boolean (true/false). The default for each is true. Controls whether sims of the given AGE group will grow at Gradual Growth time. Adding keys other than CHILD or TEEN will have no effect, as the math is not present for their gradual growth. NOTE: to disable the mod from changing heights at all for the given AGE group, you must also set RandomizeHeights to false for that age group.
valid AGEs are:
- "BABY"
- "INFANT"
- "TODDLER"
- "CHILD"
- "TEEN"
- "YOUNGADULT" <- ONE WORD
- "ADULT"
- "ELDER"
The following config values determine the timing of the Gradual Growth height update. Time is only counted while the game is not paused.
Valid time labels are:
- "seconds"
- "minutes"
- "hours"
- "days"
- "weeks"
So the final config options:
- GrowthStart: a list of [amount, time label] tuples. Each tuple is added up to determine the time of the first Gradual Growth update after game load. So for example, [[1, "hours"], [33, "minutes"], [7, "seconds"]] would be 1 hour, 33 minutes and 7 seconds. The default is the empty list, so only remove all the lines inside the { } if you really mean 0 seconds.
- GrowthStartAbsolute: default true. If true, GrowthStart is applied from the beginning of a sim day (e.x. so the starting value [[1, "hours"]] means 1am, [[17, "hours"]] would mean 17:00 aka. 5pm, etc). If false, GrowthStart is applied from when the zone loads (so with "GrowthStartAbsolute": false, "GrowthStart": [[1, "minutes"]], which I like to use for testing, makes the first Gradual Growth update happen 1 sim-minute after the zone loads).
- GrowthFrequency: a list of [amount, time label] tuples. Each tuple is added up to determine how often Gradual Growth updates are run. So for example, the starting value of [[1, "days"]] means the Gradual Growth update happens daily. [[2, "weeks"]] would mean it happens every 2 weeks. The default is the empty list, so do not remove all lines inside the { }, lest the Gradual Growth update happen constantly.
Example configs:
the current default config:
Code:
{ "FormatOnNextLoad": false, "FillInDefaultsOnNextLoad": false, "RandomizeHeights": { "BABY": true, "INFANT": true, "TODDLER": true, "CHILD": true, "TEEN": true, "YOUNGADULT": true, "ADULT": true, "ELDER": true }, "RandomHeightRanges": { "BABY": [-100, 100], "INFANT": [-100, 100], "TODDLER": [-100, 100], "CHILD": [-100, 100], "TEEN": [-100, 100], "YOUNGADULT": [-100, 100], "ADULT": [-100, 100], "ELDER": [-100, 100] }, "PieMenuUseRandomHeightRanges": true, "GrowthEnabled": { "CHILD": true, "TEEN": true }, "GrowthStart": [ [1.0, "hours"] ], "GrowthStartAbsolute": true, "GrowthFrequency": [ [1.0, "days"] ] }
the shortest way to express that config (e.g. with all the defaults cut out:
Code:
{ "GrowthStart": [ [1.0, "hours"] ], "GrowthFrequency": [ [1.0, "days"] ] }
another way to write that config that still shows you how to write each setting:
Code:
{ "FormatOnNextLoad": false, "FillInDefaultsOnNextLoad": false, "RandomizeHeights": { "INFANT": true }, "RandomHeightRanges": { "INFANT": [-100, 100] }, "PieMenuUseRandomHeightRanges": true, "GrowthEnabled": { "CHILD": true }, "GrowthStart": [ [1.0, "hours"] ], "GrowthStartAbsolute": true, "GrowthFrequency": [ [1.0, "days"] ] }
Tips and tricks:
- Using set_slider or set_slider_all on a Sim will prevent the Gradual Growth module from automatically changing the Sim's height until/unless set_height or set_height_stat is used on them
- Setting the bulge slider may have a temporary visual effect, but it should stop if you exit/load or go to the World Map temporarily. Since the Bulge stat is restricted to Male sims, Teen through Adult, only those Sims should still have bulges when you get back - and only if they're wearing working clothing.
Technical information:
Changes from past versions:
- The slider names should no longer be case-sensitive.
- add_slider was renamed to set_slider.
- There should no longer be any errors from removing any .packages you don't want the features of.
- The HeightVariance trait was renamed to HeightRandomized for clarity.
- Gradual Growth should no longer double-up on sliders (it used to keep the "height" slider set to HeightStat while also adjusting the chs/ths sliders. Since they now both use the HeightStat in their calculations, I hope that's no longer necessary.
- A lot of code was refactored.
- The hand sliders are now enabled for Females.
Technical details:
The commented python source code can be found in the .ts4script!
See CREDITS.txt in the zip for my best reconstruction of everyone who worked on this mod.
- All sliders are 0.0 to 1.0 under the hood. The script keeps track of what should be negative and converts/scales all input/output before it reaches the user.
- The HeightRandomized trait will be added by set_slider & set_slider_all in addition to the commands from HeightModule.py that set the HeightStat. This is so that customized Sims will not be changed by the Gradual Growth module until you give the go-ahead with set_height or set_height_stat.
- Gradual Growth will use an existing "height" slider value as the HeightStat in place of first-time randomizing height, so your YA+ Sims customized via this mod will not be effected by it, and your Child / Teen Sims will have it used as the basis of their growth.
- The visual changes won't apply without the corresponding package, but the slider data is saved in a way that should make it persist through the removal of the mod. You'll need to clear that data yourself by setting all sliders to 0.
Technical issues:
- The bulge slider is having some issues - it gives a nice, round result for ymBottom_EF01SwimShortsBoard, but gives a "spike" for ymBottom_UnderwearSexy and ymBottom_EF01SwimBriefs, and doesn't work at all on the remaining clothes it was supposed to work on (ymBottom_EF01SwimTrunks, ymBottom_EF02ShortsBoxerValentine, ymBottom_GP02SwimMid, ymBottom_GP02SwimShort, ymBottom_SP02SwimMidTrunk). If somebody could help fix that, that would be great.
- The Gradual Growth math needs some work so that sims will have a minimal "growth spurt" change in visible height when aging up. This should already be working for Teens, but I'm struggling to measure the sliders for the other cases.
- The chs/ths sliders should maybe be moved out of "Height Slider Growth.package" so they can be used without the Gradual Growth effect? Thoughts?
Integration
Lastly, the mod is pending explicit permission to incorporate various slider upgrades posted in this thread. If you'd like your upgrades incorporated into the main .zip from now on, please let me know!
Recommended upgrades:
Better Heads by WaterPearl makes the sims heads stay a more normal size when their height is changed!
OR Manderz0630's slider edit includes WaterPearl's changes and more!
(note: both upgrades may not work for Infants without minor tweaks)
Error Reporting
Please let me know if you experience any errors or if anything isn't working the way you think it should! Please share any related MCCC/BetterExceptions .html files, your MycroftJr_HeightSliders.cfg file, and the generated MycroftJr_HeightSliders.log file (the latter 2 should both be in the same folder as the ts4script). For a faster response, feel free to message MycroftJr on discord.
And lastly, you can follow or support me here! Have fun!
Attached files:
MycroftJr_HeightSliders.zip (52.3 KB, 487 downloads) |
#1067
17th Jun 2023 at 6:36 PM
Posts: 14
Thanks: 785 in 1 Posts
this is amazing, but where is the JSON file? it's not in the zip. I would like to tweak the height range for myself. thanks you!
Test Subject
#1068
18th Jun 2023 at 12:39 AM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by faithvssam
this is amazing, but where is the JSON file? it's not in the zip. I would like to tweak the height range for myself. thanks you! |
The JSON config (MycroftJr_HeightSliders.cfg) should be generated in the same folder as the .ts4script the first time a save is loaded with the mod installed. You can then go back to the main menu, tab out, and edit it.
Test Subject
#1069
18th Jun 2023 at 12:44 AM
Last edited by MycroftJr : 18th Jun 2023 at 1:41 AM.
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by MycroftJr
I'm not too familiar with this site, but I don't currently plan to have the mod leave this thread, so it can honor the tradition and effort put in over the years. I assume that would prevent me from putting it on "the downloads page"? If not, please give me instructions lol Feel free to voice y'alls opinions on this though. |
So uh... I know I just said above that I wouldn't, and that was my plan, but Scarlet's Mod List is refusing to list the mod unless its on a Downloads page, for ease of tracking links or something, and that mod list is kind of important for mod exposure. So I guess I'm gonna have to make it a Downloads page after all? Please don't be too mad, any betas will continue to be posted here, and I'll just post a link here to the Downloads page when an update happens there. Sound good?
Test Subject
#1070
18th Jun 2023 at 11:55 AM
Posts: 4
could you make the Change Height Pie Menu in the Shift+Click menu instead?
Test Subject
#1071
18th Jun 2023 at 9:26 PM
Last edited by MycroftJr : 20th Jun 2023 at 5:19 AM.
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by nkr94334
could you make the Change Height Pie Menu in the Shift+Click menu instead? |
ah, fair point! should be included in the new Downloads version, but in the meantime you can download it from here (also this one has a .cfg file included)
Attached files:
MycroftJr_HeightSliders.zip (57.7 KB, 126 downloads) |
Test Subject
#1072
22nd Jun 2023 at 2:17 PM
Posts: 4
thanks for the update.
is there a way to randomize the height of sims that don't have it applied?
an "rhall" but only for those with 0 on the slider
are the heights influenced by genetics, or is it truly random?
is there a way to randomize the height of sims that don't have it applied?
an "rhall" but only for those with 0 on the slider
are the heights influenced by genetics, or is it truly random?
Test Subject
#1073
22nd Jun 2023 at 11:35 PM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by nkr94334
thanks for the update. is there a way to randomize the height of sims that don't have it applied? an "rhall" but only for those with 0 on the slider are the heights influenced by genetics, or is it truly random? |
The heights are supposed to be influenced by genetics, but I have no idea if its working atm. I'm hopeful that it is working, because the height data is set in the facial attributes, which should be like, averaged for children, and then detected as non-0 by the mod and used to set the HeightStat for the baby. (note to test: what happens when a negative height sim has a baby with a positive height sim? what does get_height say?)
If the HeightStat isn't set when Gradual Growth starts, it will be set from non-0 slider levels, or else randomized. So setting GradualGrowth to false for all ages (to stop the process there, assuming you don't want Gradual Growth) and letting a Gradual Growth update occur should do as you requested (randomize the height of sims that don't have a randomized height).
I'll try to remember to make a more direct command for it the next time I update the mod though.
Test Subject
#1074
2nd Jul 2023 at 4:38 PM
Posts: 4
Quote: Originally posted by MycroftJr
The heights are supposed to be influenced by genetics, but I have no idea if its working atm. I'm hopeful that it is working, because the height data is set in the facial attributes, which should be like, averaged for children, and then detected as non-0 by the mod and used to set the HeightStat for the baby. (note to test: what happens when a negative height sim has a baby with a positive height sim? what does get_height say?) If the HeightStat isn't set when Gradual Growth starts, it will be set from non-0 slider levels, or else randomized. So setting GradualGrowth to false for all ages (to stop the process there, assuming you don't want Gradual Growth) and letting a Gradual Growth update occur should do as you requested (randomize the height of sims that don't have a randomized height). I'll try to remember to make a more direct command for it the next time I update the mod though. |
Sims height are reset to 0, a few adults/elders, unsure if it's because I updated the mod in-between sessions.
Sims height are resetting to 0 when aging up (from YA to Adult) a played sim and an unplayed sim.
By GradualGrowth do you mean "GrowthEnabled" in the cfg?
Test Subject
#1075
2nd Jul 2023 at 9:54 PM
Posts: 47
Thanks: 295 in 15 Posts
Quote: Originally posted by nkr94334
Sims height are reset to 0, a few adults/elders, unsure if it's because I updated the mod in-between sessions. Sims height are resetting to 0 when aging up (from YA to Adult) a played sim and an unplayed sim. By GradualGrowth do you mean "GrowthEnabled" in the cfg? |
yeah sorry, when I said it without spaces, I meant GrowthEnabled
Who Posted
|