Post by X_Xenith on Aug 15, 2022 21:33:32 GMT -5
Hi, I'm fairly new to the custom creation aspect of the game, and am mainly experimenting, following tutorials and reverse-engineering code and packages with S4S and PyCharm to figure things out as I like to learn through trial-and-error and find it really interesting to look through.
I wanted to make a simple mod that adds a new skill book into the game to level up one of the minor skills which don't generally have skill books (as far as I'm aware), there are just a few things I found whilst reverse-engineering code that I couldn't find any documentation on (I looked, but if explanations do exist please post a link as I'd love to see).
I thought I'd try here for answers and hopefully someone looking in the future can find this thread too.
I cloned and extracted book_Mischief_Beginner for this. The tuning references two things I can't find any reference to anywhere else in EA's python scripts or tuning scripts, the package itself, TDESC or in the Game File Cruiser.
Starting on line 280 in the book_Mischief_Beginner tuning file:
I have no idea what mesh_gS_single or Cover11 are referencing, though I understand it's to do with the shape and texture of the object, and I'd like to know where these files are, even if only to satisfy my own understanding of how the code works together.
A separate thing I've noticed while playtesting my book as well as the skill books that come with the game is that the skill can progress past the max level it's designed for (e.g Cooking vol 1's max skill is 4 but it can go beyond to 5 and over) as long as the sim is still reading it.
Is this a bug or a feature?
If you cheat the sims needs and turn off autonomy so they are reading the book perpetually, then volume 1 of a skill book can take you to the max skill level after a few sim days.
Obviously, the actual gameplay isn't designed to be played with cheats, so the min time and max time in the skill books tuning, as well as need decay and autonomy searching for better things to do (e.g play violin) will mean that the sim will eventually put the book down, and if they reached above the max skill level for the book while reading it then they no longer gain skill from reading it again, and become bored, as intended.
I still find it a little bit annoying that the skill continues to grow outside the max skill, even if it's not game-breaking, would anyone know a way of editing the tuning so that the sim puts the book down once they've hit the max skill required?
I've seen other CC skill books do this with their accompanying CC skills but I obviously don't want to just copy/paste someone else's CC code, I want to understand EA's tuning code enough to write my own.
I wanted to make a simple mod that adds a new skill book into the game to level up one of the minor skills which don't generally have skill books (as far as I'm aware), there are just a few things I found whilst reverse-engineering code that I couldn't find any documentation on (I looked, but if explanations do exist please post a link as I'd love to see).
I thought I'd try here for answers and hopefully someone looking in the future can find this thread too.
I cloned and extracted book_Mischief_Beginner for this. The tuning references two things I can't find any reference to anywhere else in EA's python scripts or tuning scripts, the package itself, TDESC or in the Game File Cruiser.
Starting on line 280 in the book_Mischief_Beginner tuning file:
<V n="geometry_state" t="apply_new_value">
<V n="apply_new_value" t="set_to_custom_value">
<T n="set_to_custom_value">mesh_gS_single</T><!--The first thing I don't understand-->
</V>
</V>
<V n="material_state" t="apply_new_value">
<U n="apply_new_value">
<V n="state_name" t="set_to_custom_value">
<T n="set_to_custom_value">Cover11</T><!--The second thing I don't understand-->
</V>
</U>
</V>
I have no idea what mesh_gS_single or Cover11 are referencing, though I understand it's to do with the shape and texture of the object, and I'd like to know where these files are, even if only to satisfy my own understanding of how the code works together.
A separate thing I've noticed while playtesting my book as well as the skill books that come with the game is that the skill can progress past the max level it's designed for (e.g Cooking vol 1's max skill is 4 but it can go beyond to 5 and over) as long as the sim is still reading it.
Is this a bug or a feature?
If you cheat the sims needs and turn off autonomy so they are reading the book perpetually, then volume 1 of a skill book can take you to the max skill level after a few sim days.
Obviously, the actual gameplay isn't designed to be played with cheats, so the min time and max time in the skill books tuning, as well as need decay and autonomy searching for better things to do (e.g play violin) will mean that the sim will eventually put the book down, and if they reached above the max skill level for the book while reading it then they no longer gain skill from reading it again, and become bored, as intended.
I still find it a little bit annoying that the skill continues to grow outside the max skill, even if it's not game-breaking, would anyone know a way of editing the tuning so that the sim puts the book down once they've hit the max skill required?
I've seen other CC skill books do this with their accompanying CC skills but I obviously don't want to just copy/paste someone else's CC code, I want to understand EA's tuning code enough to write my own.