@SimGuruModSquad Running into an issue involving school career and hoping you can point me in the right direction. I will, of course, keep looking in the mean time. What I'm trying to find is what it is that sets Child and Teen as being in school by default; if I can find the file that contains that, I think it will lead to clearing the roadblock I've currently got in front of me. I thought it would be something intuitive and obvious, but if it is, it's right in front of me and I'm missing it.
I tried looking under traits, under career, under tuning, under buffs... just about every I could find that would have a link to the life stage and tell the game to make it happen, but nothing. Maybe it's not in the XML? I can't imagine why though, if not.
Mods moved from MTS, now hosted at:
https://triplis.github.io
Comments
<T n="SCHOOL_CAREER">12895</T>
<T n="HIGH_SCHOOL_CAREER">9541</T>
which are used by update_school_career in Python (sim_info.py).
which is used (through verify_school) in advance_age (aging_mixin.py) and _startup_sim_gen (sim.py)
Is that what your were looking for ?
I think that's what I'm looking for, more or less. I just have to figure out now if I can use an injection to tell this part to take a running jump:
Or rather, figure out what the injection would be. From the research I've done, it's definitely possible to do the sort of thing I want to do.
And it appears the part I quoted is the part that ensures that when the ensure_age_based_career function gets called for Child and Teen, a career (in this case, school) is added if there isn't one already. And from the look of it, disabling its add would be the least intrusive way of messing with their code, while accomplishing what I want to accomplish.
Since I'm planning to use it in conjunction with other functionality that allows Child and Teen to quit/join school, I'm just going to turn off auto-enrolling completely for now.
But I may set up the other one as an option, too, if I can figure out how (I'm not sure I'm totally following you on using from_age_up, or it just doesn't work how imagined). In the verify_school function, I tried nesting "self.update_school_career()" inside of an if with a reference to from_age_up in various ways, but I think I'm not fully grasping how the reference to age_up is utilized.
At least I got the other method working though. After hours of trying things lol.
Thanks again for pointing me in the right direction on where to look!