Custom Active Careers

Talk nerdy to us here.
zoeoe
Reactions:
Posts: 15
Joined: September 27th, 2020, 6:46 am

Custom Active Careers

Post by zoeoe » December 29th, 2020, 11:57 am

Hi there!
I have been thinking about making a Librarian career but would love to make it an active one at a Library lot (similar to Firefighter career from Ambitions). I haven't done career modding before but looking around I could only find tutorials and info on making rabbithole careers, rather than active careers.
My question is basically, is it possible to make custom active careers with NRaas Careers, and if so how do I go about it? And how may it differ from the regular career process?

I found the ActiveCareers xml in Gamedata with the info for the Ambitions and Showtime careers and for each one there isn't much data but it points to the FullClassName which seems to have most of the info for the individual career. The xml code for active careers seems very different than the regular careers, so I'm wondering if the way they work are so different that making them would be a completely different process to making rabbithole careers with nraas careers, and if so it would probably involve a lot of scripting?
But I still don't fully understand how regular career modding works so that's really why I'm asking here, in case it's actually very similar :P

I also looked at the Homemaker career, which mentioned SkillBasedCareer, so I'm guessing that's like self-employed careers? That xml code also seemed very different to the rabbithole ones (I looked at MissyHissy's tutorial there), so maybe making an active career would work in a similar way to that?

These are all just things I looked at when I was trying to see if it's done before, or if I could follow the rabbithole career tutorials to work out active careers but it turns out I don't have any idea what I'm doing :P
So if someone could point me in the right direction or knows how active careers work in relation to regular ones or whatever, I'd appreciate it :)
Thank you!

KevinL5275
Reactions:
Posts: 393
Joined: October 27th, 2017, 6:00 pm
Answers: 4

Custom Active Careers

Post by KevinL5275 » December 30th, 2020, 10:00 pm

I thought MissyHissy had something like Librarian career, but I guess not. Maybe you can find some help at her site though.
https://missyhissysjobcentre.wordpress. ... job-board/

zoeoe
Reactions:
Posts: 15
Joined: September 27th, 2020, 6:46 am

Custom Active Careers

Post by zoeoe » January 1st, 2021, 4:16 pm

Thanks for your reply
I believe there was a Librarian career by Cinderellimouse but it was a rabbithole one I think. I am really wanting to make an active career specifically.

I looked further into it and I found Arsil's mangaka career which seems to be the only custom active career out there, at least one that I can find. It loads all the xml data itself though rather than using NRaas Careers, so I am wondering if I were to make an active career, if I would need to use Arsil's code to load the career xml data, or if it's possible to do already with nraas?

I tried to look at how careers loads the data in ILSpy, and I saw there was a Job booter, but from what I can tell that loads the event type things that happen in active careers like a kitchen redesign for the interior designer, rather than the active career data itself.
I most definitely could be wrong about this because I don't really know what I'm doing, which is why I'm asking here, if nraas careers can load active careers or if it would need to be done separately :)

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7618
Joined: December 30th, 2011, 6:00 pm
Answers: 82
Contact:

Custom Active Careers

Post by Chain_Reaction » January 2nd, 2021, 11:59 am

Careers doesn't support active careers I'm afraid. Those would require custom scripting. :)

zoeoe
Reactions:
Posts: 15
Joined: September 27th, 2020, 6:46 am

Custom Active Careers

Post by zoeoe » January 2nd, 2021, 6:29 pm

Ah thanks for the clarification!
I've been looking through Arsil's active career code to try and figure out how to get my own career working, but maybe making an active career loader would be possible and make it easier to add them - is that something I could get help with here, if I get to that point?
Thanks :)
​​​

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7618
Joined: December 30th, 2011, 6:00 pm
Answers: 82
Contact:

Custom Active Careers

Post by Chain_Reaction » January 3rd, 2021, 1:00 pm

If an active career loader were possible, we'd have made one. You could make a loader to load the XML data sure but without a lot of scripting, it's not going to do anything. Thus when making them, it's best to just inject it the way Arsil does and add your scripting around it. :)

zoeoe
Reactions:
Posts: 15
Joined: September 27th, 2020, 6:46 am

Custom Active Careers

Post by zoeoe » January 3rd, 2021, 1:30 pm

Chain_Reaction wrote:
January 3rd, 2021, 1:00 pm
If an active career loader were possible, we'd have made one.
Haha fair enough!
Even still, there does seem to be a lot of generic code in Arsil's mod for reading the data and such, so it might still be worth making some kind of mod that would do it, and then to make an active career would only involve having the xmls and image files, and a smaller script with the active career class and specific interactions, no? I guess I will find out how much easier it makes it when I am further into this project...
Anyway, really appreciate your quick replies!

zoeoe
Reactions:
Posts: 15
Joined: September 27th, 2020, 6:46 am

Custom Active Careers

Post by zoeoe » May 20th, 2021, 3:55 pm

Hello again,
So I have made some progress with a custom active career - though not much.
I'm having some issues and I would really appreciate any advice/insight?
My current struggle is getting the carpool to show up. It seems that even though the carpool is supposedly being scheduled, and the correct times and locations used to do it, it will only show up when mIsSpecialWorkTime is set to true.

Even when that's the case, the carpool doesn't show up to take the sim home and there's another problem where when the sim is inside the car, there is no further automatic interaction to take the sim to the library lot. Once the sim is in the car, I can send the sim to work with the career panel button, or click Go To Work at the lot itself, and the car will take the sim there, but unless I do that the sim just gets out the car again.
Just thought I'd mention this last issue in case it's part of the same problem, but I'm guessing that I will need to fix the first issue first, which is getting the carpool to show up on schedule normally.

Weirdly, if I assign my Librarian career, and then the firefighter career, the librarian carpool (a pink limo) actually shows up as well as the firefighter truck. I guess that happens because I haven't implemented any of the sim-has-quit-librarian-career methods yet to cancel the old carpool, but it's interesting because assigning back to librarian means that the carpool doesn't show up, but then again to firefighter, the two carpools show up together! So there's something about the firefighter active career that recognises the work hours should have the carpool come normally, but that my librarian career doesn't - it instead requires it to be a "special" work time.

But so far I just can't see what the firefighter code does differently to my code, so I'm pretty lost with it :p

zoeoe
Reactions:
Posts: 15
Joined: September 27th, 2020, 6:46 am

Custom Active Careers

Post by zoeoe » May 22nd, 2021, 7:44 am

I've done a bit more testing, and I think I've found something related.
I have the GoToWork button set up, but it is working differently to the firefighter one.
The firefighter career allows your sim to go to work 2 hours before the official start time, which is one hour before the carpool arrives.
For my career, even though my ShowFailureToGoToWorkTns bool is the same, the GoToWork button only allows my sim to go to work at the beginning of the work day, so one hour after the carpool should arrive.

To me, this seems like it's related to the regular work hours not functioning properly, and only them working if considered a "special work time". Though I did try setting the carpool time to be at the beginning of the work day, and a bit after as well, but the carpool still didn't show up.

So I haven't really discovered anything new, but I think it's another indication of something going wrong with the normal work day functions?
But I just don't understand where it's going wrong, as the firefighter career doesn't do anything different to determine when the sim can go to work, but if it's a feature of an ActiveCareer or Occupation, then my career should also function like that already right?
Much confusion :p

zoeoe
Reactions:
Posts: 15
Joined: September 27th, 2020, 6:46 am

Custom Active Careers

Post by zoeoe » May 22nd, 2021, 10:54 am

I do apologise for all the posts but I have (nearly) fixed it! It was the NumHoursEarlyCanShowUpForWork value that has to be set (firefighter has it set to 2) and then the carpool showed up to take my sim to work, and also to take her home!
Also it did actually automatically take my sim home, but there is still the issue where once inside the carpool, it won't automatically go to the work location. But I have one idea for that, so hopefully it'll work :p
At least I'm finally getting there with it!

edit: okay so THAT didn't work :p
It seems like the sim enters the carpool, there's no automatic interaction to go to the lot so she's kicked out, then the carpool teleports right outside the library before driving away. I thought it would be the GetInteractionToTakeSimToJobLocation() function but it seems that it's for taking sims to and from jobs and doesn't include the regular carpool

Post Reply