I was making a custom career and everything else works fine and when I added custom opportunities I got a message saying 'GroceryStore.CareerEvents: Constructor Fail ' Normally when I have an error I get something about this line or that and I can fix it easily but I'm not sure what to do here, can somebody help?
Also further down is this: Found: GroceryStore.Careers
Found: GroceryStore.CareerEvents
CareerList: Rows = 1
Row: 0
GroceryStore.CareerEvents: Found Grocery Store Events = 16
[E]GroceryStore.CareerEvents: Constructor Fail
[E]GroceryStore.CareerEvents: Bad Class
GroceryStore: Added to Rabbithole Grocery
CareerFile: Rows = 1
Row: 0
Custom Career with Opportunities issue
Custom Career with Opportunities issue
Best Answer
GO TO FULL POST ➙
I've had a look and the only thing that didn't look quite right was this:
<GroceryStore>
<EventType></EventType>
<EventName></EventName>
<BranchName></BranchName>
<Likelihood></Likelihood>
<AvailableLevels></AvailableLevels>
<TransferCareer></TransferCareer>
<TransferBranch></TransferBranch>
<TransferLevelRelative></TransferLevelRelative>
<TransferLevelAbsolute></TransferLevelAbsolute>
</GroceryStore>
This is right at the bottom of the file and I'm wondering if there's a reason? I'm not sure if the game is reading this section but if it is, it could be a problem. Don't hold me to this but the TransferLevelRelative/Absolute will be looking for the NRaas.Gameplay.OmniSpace.Events.CareerTransfer, NRaasCareer as the EventName and since that's not been added, I'm starting to suspect this could be the source of the error. Maybe take this section out (or fill it with the event, whichever) and see if that changes anything?
This is a new one for me so I could be way off. It's the only bit of code in that file that doesn't make sense.
<GroceryStore>
<EventType></EventType>
<EventName></EventName>
<BranchName></BranchName>
<Likelihood></Likelihood>
<AvailableLevels></AvailableLevels>
<TransferCareer></TransferCareer>
<TransferBranch></TransferBranch>
<TransferLevelRelative></TransferLevelRelative>
<TransferLevelAbsolute></TransferLevelAbsolute>
</GroceryStore>
This is right at the bottom of the file and I'm wondering if there's a reason? I'm not sure if the game is reading this section but if it is, it could be a problem. Don't hold me to this but the TransferLevelRelative/Absolute will be looking for the NRaas.Gameplay.OmniSpace.Events.CareerTransfer, NRaasCareer as the EventName and since that's not been added, I'm starting to suspect this could be the source of the error. Maybe take this section out (or fill it with the event, whichever) and see if that changes anything?
This is a new one for me so I could be way off. It's the only bit of code in that file that doesn't make sense.
GO TO FULL POST ➙
- Missy_Hissy
- Reactions:
- Posts: 168
- Joined: February 20th, 2013, 6:00 pm
- Location: UK
- Contact:
Custom Career with Opportunities issue
That's a new one. Are you using a custom opportunity class for any of the opportunities? Such as a Stay Late opportunity?
Custom Career with Opportunities issue
Yes, I have the very one you're mentioning, and for the other opportunities I've used none, is that significant?Missy_Hissy wrote: ↑March 31st, 2019, 5:01 amThat's a new one. Are you using a custom opportunity class for any of the opportunities? Such as a Stay Late opportunity?
The world calls for graphics/art work, and I answer. So, can I count on you to call me up for service?
http://geocities.ws/graphicalmercenary/
http://geocities.ws/graphicalmercenary/
- Missy_Hissy
- Reactions:
- Posts: 168
- Joined: February 20th, 2013, 6:00 pm
- Location: UK
- Contact:
Custom Career with Opportunities issue
It could be. Have you copied the class from an existing career, say an EA one? Because I'm wondering if there was a typo in the class.
[E]GroceryStore.CareerEvents: Constructor Fail
[E]GroceryStore.CareerEvents: Bad Class
That's what's making me suspect it could be a typo. Try copying exactly from an EA Stay Late opportunity, see if it stops the error.
[E]GroceryStore.CareerEvents: Constructor Fail
[E]GroceryStore.CareerEvents: Bad Class
That's what's making me suspect it could be a typo. Try copying exactly from an EA Stay Late opportunity, see if it stops the error.
Custom Career with Opportunities issue
As far as this part goes its copied from one of the games and so both look like this: <CustomOpportunityClass>Sims3.Gameplay.Careers.StayLateOpportunity,Sims3GameplayObjects</CustomOpportunityClass>Missy_Hissy wrote: ↑April 5th, 2019, 3:59 amIt could be. Have you copied the class from an existing career, say an EA one? Because I'm wondering if there was a typo in the class.
[E]GroceryStore.CareerEvents: Constructor Fail
[E]GroceryStore.CareerEvents: Bad Class
That's what's making me suspect it could be a typo. Try copying exactly from an EA Stay Late opportunity, see if it stops the error.
Did I forget to add something else related to class or what?
The world calls for graphics/art work, and I answer. So, can I count on you to call me up for service?
http://geocities.ws/graphicalmercenary/
http://geocities.ws/graphicalmercenary/
- Chain_Reaction
- Site Admin
- Reactions:
- Posts: 7595
- Joined: December 30th, 2011, 6:00 pm
- Contact:
Custom Career with Opportunities issue
It looks like you're trying to use a career opporunity as a career event. That's not going to work.
Custom Career with Opportunities issue
Crap, really? Thats whats wrong? Thats how its set up in -game as far as I can tell. So, how the heck doe sit really work then?Chain_Reaction wrote: ↑April 5th, 2019, 4:25 pmIt looks like you're trying to use a career opporunity as a career event. That's not going to work.
Heres how I set it up based on in-game versions:
In CareerEvents:
<GroceryStore>
<EventType>GroceryStore_StayLate</EventType>
<OpportunityName>GroceryStore_StayLate</OpportunityName>
<Likelihood>0.6</Likelihood>
<AvailableLevels>1:9</AvailableLevels>
</GroceryStore>
In opportunities:
<OpportunitiesSetup>
<GUID>GroceryStore_StayLate</GUID>
<CustomOpportunityClass>Sims3.Gameplay.Careers.StayLateOpportunity,Sims3GameplayObjects</CustomOpportunityClass>
<Icon>GroceryStore_Pic</Icon>
<RepeatLevel>Always</RepeatLevel>
<IsOrdered>False</IsOrdered>
<Timeout>WorkCanceled</Timeout>
<EventListenerInfo1>kCareerOpportunity_StayedLate</EventListenerInfo1>
</OpportunitiesSetup>
<Names>
<GUID>GroceryStore_StayLate</GUID>
<OpportunityName>GroceryStore_StayLateName</OpportunityName>
<OpportunityDescription>GroceryStore_StayLateDescription</OpportunityDescription>
<OpportunityHint>GroceryStore_StayLateHint</OpportunityHint>
<CompletionText>GroceryStore_StayLateCompletion</CompletionText>
<SecondaryCompletionText>GroceryStore_StayLateSecondaryCompletion</SecondaryCompletionText>
<FailureText>GroceryStore_StayLateFailure</FailureText>
<ProgressText>GroceryStore_StayLateProgress</ProgressText>
</Names>
<OpportunitiesRequirements>
<GUID>GroceryStore_StayLate</GUID>
</OpportunitiesRequirements>
<OpportunitiesCompletion>
<GUID>GroceryStore_StayLate</GUID>
<ShowRewardText>False</ShowRewardText>
<CompletionWinReward1>RelationshipWithBoss,20</CompletionWinReward1>
</OpportunitiesCompletion>
So, that snot right?
The world calls for graphics/art work, and I answer. So, can I count on you to call me up for service?
http://geocities.ws/graphicalmercenary/
http://geocities.ws/graphicalmercenary/
- Missy_Hissy
- Reactions:
- Posts: 168
- Joined: February 20th, 2013, 6:00 pm
- Location: UK
- Contact:
Custom Career with Opportunities issue
I cannot see a problem. That is how they're set up - I've just matched yours up to one of mine and one of EA's and the setup is fine.
What else do you have in the CareerEvents file? It's obviously not this opportunity that's having the problem so there must be another one having an issue.
What else do you have in the CareerEvents file? It's obviously not this opportunity that's having the problem so there must be another one having an issue.
Custom Career with Opportunities issue
Should I send the whole file to you or what?
The world calls for graphics/art work, and I answer. So, can I count on you to call me up for service?
http://geocities.ws/graphicalmercenary/
http://geocities.ws/graphicalmercenary/
- Missy_Hissy
- Reactions:
- Posts: 168
- Joined: February 20th, 2013, 6:00 pm
- Location: UK
- Contact:
Custom Career with Opportunities issue
I was so convinced just now that you already had but it turns out not. Obviously I'm losing my mind completely
By all means. If not, you can just copy and paste the details of that file on here. I'm not fussed either way. There's got to be one naughty line of code in there causing all the trouble.
By all means. If not, you can just copy and paste the details of that file on here. I'm not fussed either way. There's got to be one naughty line of code in there causing all the trouble.