Estarra Posted October 16, 2021 Posted October 16, 2021 7 hours ago, HanaImakura said: I ave one other question now if that's okay. Maybe a few, actually. I'm trying to mess around with the physical growth of Sims with the body sliders. Do you happen to know where they are located or what they are called in the py files? I am also having trouble compiling my edited files. I did not have these issues when I compiled the first mod in the tutorial. Also, these lines of code are what I am currently thinking are the parameters that affect the growth that I am looking for. class SimInfo(SimInfoWithOccultTracker, SimInfoCreationSource.SimInfoCreationSourceMixin, AgingMixin, PregnancyClientMixin, SimInfoFavoriteMixin, ComponentContainer, HasStatisticComponent): class BodyBlendTypes(enum.Int, export=False): BODYBLENDTYPE_HEAVY = 0 BODYBLENDTYPE_FIT = 1 BODYBLENDTYPE_LEAN = 2 BODYBLENDTYPE_BONY = 3 BODYBLENDTYPE_PREGNANT = 4 BODYBLENDTYPE_HIPS_WIDE = 5 BODYBLENDTYPE_HIPS_NARROW = 6 BODYBLENDTYPE_WAIST_WIDE = 7 BODYBLENDTYPE_WAIST_NARROW = 8 " Since I only use already available mods I never concerned myself with what's where. That's something hopefully someone else can answer. For your other problem, it looks like sim_info.pyc can't be completely decompiled. If you look at line 2077 you find the comment "--- This code section failed: ---" Which means, you can't compile it again in this state and the reason for the thrown error.
LydiaJoystickDeetz Posted October 23, 2021 Author Posted October 23, 2021 On 10/16/2021 at 11:03 AM, Estarra said: Since I only use already available mods I never concerned myself with what's where. That's something hopefully someone else can answer. For your other problem, it looks like sim_info.pyc can't be completely decompiled. If you look at line 2077 you find the comment "--- This code section failed: ---" Which means, you can't compile it again in this state and the reason for the thrown error. Hmmm... Well, I'm going to take a good long break from attempting this mod. Maybe some time away from it will help me out. I'm trying to focus my attention now on starting with simpler mods so I can learn more.
Oops19 Posted October 23, 2021 Posted October 23, 2021 On 10/16/2021 at 11:51 AM, HanaImakura said: I ave one other question now if that's okay. Maybe a few, actually. I'm trying to mess around with the physical growth of Sims with the body sliders. Do you happen to know where they are located or what they are called in the py files? If you want to create it from scratch and not use a library to edit sliders you may either take a look at CSF https://github.com/ColonolNutty/CustomSliderFramework or my HighHeels mod Oops19/preview-HighHeels (github.com) which also modifies sliders. One day I will replace my slider code with calls to CSF to make my mod more easy to manage. It would have saved my some days if I knew about this lib when I wrote my mod. I highly recommend to use the API, also S4CL https://github.com/ColonolNutty/Sims4CommunityLibrary so you don't need to care too much about TS4 internals. Some modders will ban you from their discord if you go for the simple and not really innovative way to use existing libs instead of writing every single line on your own.
LydiaJoystickDeetz Posted October 24, 2021 Author Posted October 24, 2021 On 10/23/2021 at 12:03 AM, Oops19 said: If you want to create it from scratch and not use a library to edit sliders you may either take a look at CSF https://github.com/ColonolNutty/CustomSliderFramework or my HighHeels mod Oops19/preview-HighHeels (github.com) which also modifies sliders. One day I will replace my slider code with calls to CSF to make my mod more easy to manage. It would have saved my some days if I knew about this lib when I wrote my mod. I highly recommend to use the API, also S4CL https://github.com/ColonolNutty/Sims4CommunityLibrary so you don't need to care too much about TS4 internals. Some modders will ban you from their discord if you go for the simple and not really innovative way to use existing libs instead of writing every single line on your own. Well... I may have to look first at a premade one to see how the code is written correctly since I'm still learning the coding. But you can bet I won't publicly release a mod that I didn't create from scratch. I've seen one too many modder copyright warnings. Thank you for the links, by the way. I'll take a look at them as soon as I'm ready to resume learning. ^^
Oops19 Posted October 24, 2021 Posted October 24, 2021 If you ever need to copy a whole function written by EA or someone else then there is definitely something wrong. I tried to re-invent injections, logging, ... and now I use s4cl to be able to focus on the mod itself.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.