Post by MissyHissy on Dec 28, 2019 11:11:37 GMT
The Primary Language String
This section is now for the primary language string. This will be the part of the code that includes all your descriptions you wrote out back when you were planning this career.
I recommend you choose your primary language string as the language your game is installed in. This will make it easier to test when you finish coding the career.
First of all, open a new Notepad file and paste the following into it.
In a nutshell, the <KEY> tags are identical to the <STR> tags from the UnhashedKeys file. The <STR> tags here will be the text as you want it to appear in the game. So an example from my Archaeology career would be:
When you get to the journal entries, each one will need a different name. To illustrate, here's an excerpt from my Archaeology English strings:
As you can see, the names are all different but they're part of the same set of journals; they'll all appear at the same level but on different days.
When you get to the end of the file, save it to your working folder. Name it something like "Archaeology English".
Go back to your career package and go to Resource --> Add. This brings up a Resource Detail window.
Fill in the fields like this:
Press FNV64 but DO NOT PRESS OK yet. You need to change the first two numbers to match your language code. So for English, this is 00.
Example:
Changes and becomes
The codes for the other languages are as follows:
English: 00
Chinese: 01
Taiwanese: 02
Czech: 03
Danish: 04
Dutch: 05
Finnish: 06
French: 07
German: 08
Greek: 09
Hungarian: 0A
Italian: 0B
Japanese: 0C
Korean: 0D
Norwegian: 0E
Polish: 0F
PortugueseStandard: 10
PortugueseBrazilian: 11
Russian: 12
SpanishStandard: 13
SpanishMexican: 14
Swedish: 15
Thai: 16
Now you can press OK.
Right-click on your new STBL and select Edit STBL. This brings up the STBL Resource Editor window.
There's a small, thin field toward the bottom of this window with buttons beneath it. In this box, you need to paste the first <KEY> line of your English Strings. Then press "Add" and you should see a series of numbers appear in the large box above. In the box on the right, type in your Career name.
Follow down the rest of the file. Copy the <KEY> lines into the thin box, press Add, then paste the contents of the <STR> line into the large box on the right.
Once you've done the entire file, press Save. Select Yes to continue.
Save your career package.
The reason I don't advise you to run the language file through the STBL creator is because it becomes difficult to change the language code sometimes. I've also personally noticed that symbols from other languages don't translate well through the STBL creator, so I advise that you do copy and paste each line. It is time consuming but worth it in the end.
This section is now for the primary language string. This will be the part of the code that includes all your descriptions you wrote out back when you were planning this career.
I recommend you choose your primary language string as the language your game is installed in. This will make it easier to test when you finish coding the career.
First of all, open a new Notepad file and paste the following into it.
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "Should be your career title. Example; Estate Agent"
<KEY>Gameplay/Careers/GetJobInRabbitHole:JoinCareerNoCareer</KEY>
<STR>BLANK</STR> "Should be your get job title. Example; Join Estate Agent Career"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKOffer</KEY>
<STR>BLANK</STR> "Should be your job offer description"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKRetirement</KEY>
<STR>BLANK</STR> "Should be your retirement text"
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your co-workers title. Example; Coworker"
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your co-workers metric title. Example; Estate Agents"
<KEY>BLANKTone.BLANKCareerBLANK</KEY>
<STR>BLANK</STR> "Should be your 1st skill booster tone tile. Example; Photograph House"
<KEY>BLANKTone.BLANKCareerBLANKDescription</KEY>
<STR>BLANK</STR> "Should be your 1st skill booster tone description."
"This is where you add any extra skill booster tones and descriptions using the same format, that is if you have added any extra in the other stings file."
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "Should be your 1st tone tile. Example; Meet Agents"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKDescription</KEY>
<STR>BLANK</STR> "Should be your 1st tone description."
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "Should be your 2nd tone tile. Example; Gossip at Coffee Machine"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKDescription</KEY>
<STR>BLANK</STR> "Should be your 2nd tone description."
"This is where you add extra tones and descriptions, such as Work Hard and Take it Easy, using the same format if you have any."
"This next part is where all the career titles are added followed by the promotion descriptions for males, and females starting with the entry level going up to level 10."
"If you wish the description to be the same for both male, and female sims, then simple use the same text."
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your 1st job title. Example; Receptionist"
<KEY>Gameplay/Excel/Careers/BLANK:EntryLevel</KEY>
<STR>BLANK</STR> "Should be your 1st job description for a male sim. (Entry level description)"
<KEY>Gameplay/Excel/Careers/BLANK:EntryLevel_Female</KEY>
<STR>BLANK</STR> "Should be your 1st job description for a female sim. (Entry level description)"
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your 2nd job title. Example; Assistant"
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel2</KEY>
<STR>BLANK</STR> "Should be your 2nd job description for a male sim.£
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel2_Female</KEY>
<STR>BLANK</STR> "Should be your 2nd job description for a female sim."
"Carry on down the list adding the job titles and descriptions per career level."
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel3</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel3_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel4</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel4_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel5</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel5_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel6</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel6_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel7</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel7_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel8</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel8_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel9</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel9_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel10</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel10_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/CareerList:BLANKBranchOffer</KEY>
<STR>BLANK</STR> "This should be the text in the Branch offer screen"
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "This should be your first branch name"
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "This should be your second branch name"
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK</KEY>
<STR>BLANK</STR> "This should be your first journal name"
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK2</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK3</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK4</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK5</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKName</KEY>
<STR>BLANK</STR> "Your opportunity name"
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKDescription</KEY>
<STR>BLANK</STR> "Your opportunity description"
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKHint</KEY>
<STR>BLANK</STR> "This is the hint that appears when the opportunity is first offered to the Sim."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKCompletion</KEY>
<STR>BLANK</STR> "The text when the opportunity is completed successfully."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKSecondaryCompletion</KEY>
<STR>BLANK</STR> "The text when the opportunity is completed unsuccessfully."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKFailure</KEY>
<STR>BLANK</STR> "The text when the opportunity was failed."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKProgress</KEY>
<STR>BLANK</STR> "The text that appears above the moodlet panel, to give a hint towards what to do."
<KEY>Gameplay/Excel/Opportunities/OpportunitiesSetup:BLANK_BLANK</KEY>
<STR>BLANK</STR> "The interaction name."
<STR>BLANK</STR> "Should be your career title. Example; Estate Agent"
<KEY>Gameplay/Careers/GetJobInRabbitHole:JoinCareerNoCareer</KEY>
<STR>BLANK</STR> "Should be your get job title. Example; Join Estate Agent Career"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKOffer</KEY>
<STR>BLANK</STR> "Should be your job offer description"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKRetirement</KEY>
<STR>BLANK</STR> "Should be your retirement text"
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your co-workers title. Example; Coworker"
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your co-workers metric title. Example; Estate Agents"
<KEY>BLANKTone.BLANKCareerBLANK</KEY>
<STR>BLANK</STR> "Should be your 1st skill booster tone tile. Example; Photograph House"
<KEY>BLANKTone.BLANKCareerBLANKDescription</KEY>
<STR>BLANK</STR> "Should be your 1st skill booster tone description."
"This is where you add any extra skill booster tones and descriptions using the same format, that is if you have added any extra in the other stings file."
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "Should be your 1st tone tile. Example; Meet Agents"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKDescription</KEY>
<STR>BLANK</STR> "Should be your 1st tone description."
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "Should be your 2nd tone tile. Example; Gossip at Coffee Machine"
<KEY>Gameplay/Excel/Careers/CareerList:BLANKDescription</KEY>
<STR>BLANK</STR> "Should be your 2nd tone description."
"This is where you add extra tones and descriptions, such as Work Hard and Take it Easy, using the same format if you have any."
"This next part is where all the career titles are added followed by the promotion descriptions for males, and females starting with the entry level going up to level 10."
"If you wish the description to be the same for both male, and female sims, then simple use the same text."
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your 1st job title. Example; Receptionist"
<KEY>Gameplay/Excel/Careers/BLANK:EntryLevel</KEY>
<STR>BLANK</STR> "Should be your 1st job description for a male sim. (Entry level description)"
<KEY>Gameplay/Excel/Careers/BLANK:EntryLevel_Female</KEY>
<STR>BLANK</STR> "Should be your 1st job description for a female sim. (Entry level description)"
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR> "Should be your 2nd job title. Example; Assistant"
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel2</KEY>
<STR>BLANK</STR> "Should be your 2nd job description for a male sim.£
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel2_Female</KEY>
<STR>BLANK</STR> "Should be your 2nd job description for a female sim."
"Carry on down the list adding the job titles and descriptions per career level."
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel3</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel3_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel4</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel4_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel5</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel5_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel6</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel6_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel7</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel7_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel8</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel8_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel9</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel9_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:BLANK</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel10</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/BLANK:PromotionLevel10_Female</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Careers/CareerList:BLANKBranchOffer</KEY>
<STR>BLANK</STR> "This should be the text in the Branch offer screen"
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "This should be your first branch name"
<KEY>Gameplay/Excel/Careers/CareerList:BLANK</KEY>
<STR>BLANK</STR> "This should be your second branch name"
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK</KEY>
<STR>BLANK</STR> "This should be your first journal name"
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK2</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK3</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK4</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:BLANK5</KEY>
<STR>BLANK</STR>
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKName</KEY>
<STR>BLANK</STR> "Your opportunity name"
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKDescription</KEY>
<STR>BLANK</STR> "Your opportunity description"
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKHint</KEY>
<STR>BLANK</STR> "This is the hint that appears when the opportunity is first offered to the Sim."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKCompletion</KEY>
<STR>BLANK</STR> "The text when the opportunity is completed successfully."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKSecondaryCompletion</KEY>
<STR>BLANK</STR> "The text when the opportunity is completed unsuccessfully."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKFailure</KEY>
<STR>BLANK</STR> "The text when the opportunity was failed."
<KEY>Gameplay/Excel/Opportunities/Names:BLANK_BLANKProgress</KEY>
<STR>BLANK</STR> "The text that appears above the moodlet panel, to give a hint towards what to do."
<KEY>Gameplay/Excel/Opportunities/OpportunitiesSetup:BLANK_BLANK</KEY>
<STR>BLANK</STR> "The interaction name."
In a nutshell, the <KEY> tags are identical to the <STR> tags from the UnhashedKeys file. The <STR> tags here will be the text as you want it to appear in the game. So an example from my Archaeology career would be:
<KEY>Gameplay/Excel/Careers/CareerList:Archaeology</KEY>
<STR>Archaeology</STR>
<STR>Archaeology</STR>
When you get to the journal entries, each one will need a different name. To illustrate, here's an excerpt from my Archaeology English strings:
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand</KEY>
<STR>Digging In The Sand</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand2</KEY>
<STR>Dirt Digging</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand3</KEY>
<STR>Grassy Knolls</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand4</KEY>
<STR>Desert Digsite</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand5</KEY>
<STR>How To Dig Properly</STR>
<STR>Digging In The Sand</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand2</KEY>
<STR>Dirt Digging</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand3</KEY>
<STR>Grassy Knolls</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand4</KEY>
<STR>Desert Digsite</STR>
<KEY>Gameplay/Excel/Books/OmniJournal:DiggingInTheSand5</KEY>
<STR>How To Dig Properly</STR>
As you can see, the names are all different but they're part of the same set of journals; they'll all appear at the same level but on different days.
When you get to the end of the file, save it to your working folder. Name it something like "Archaeology English".
Go back to your career package and go to Resource --> Add. This brings up a Resource Detail window.
Fill in the fields like this:
Resource: STBL 0x220557DA
Group: 0x00000000
Name: YourCareerName English
Group: 0x00000000
Name: YourCareerName English
Press FNV64 but DO NOT PRESS OK yet. You need to change the first two numbers to match your language code. So for English, this is 00.
Example:
Resource: STBL 0x220557DA
Group: 0x00000000
Instance: 0x494292A286440200
Name: EstateAgent English
Group: 0x00000000
Instance: 0x494292A286440200
Name: EstateAgent English
Changes and becomes
Resource: STBL 0x220557DA
Group: 0x00000000
Instance: 0x004292A286440200
Name: EstateAgent English
Group: 0x00000000
Instance: 0x004292A286440200
Name: EstateAgent English
The codes for the other languages are as follows:
English: 00
Chinese: 01
Taiwanese: 02
Czech: 03
Danish: 04
Dutch: 05
Finnish: 06
French: 07
German: 08
Greek: 09
Hungarian: 0A
Italian: 0B
Japanese: 0C
Korean: 0D
Norwegian: 0E
Polish: 0F
PortugueseStandard: 10
PortugueseBrazilian: 11
Russian: 12
SpanishStandard: 13
SpanishMexican: 14
Swedish: 15
Thai: 16
Now you can press OK.
Right-click on your new STBL and select Edit STBL. This brings up the STBL Resource Editor window.
There's a small, thin field toward the bottom of this window with buttons beneath it. In this box, you need to paste the first <KEY> line of your English Strings. Then press "Add" and you should see a series of numbers appear in the large box above. In the box on the right, type in your Career name.
Follow down the rest of the file. Copy the <KEY> lines into the thin box, press Add, then paste the contents of the <STR> line into the large box on the right.
Once you've done the entire file, press Save. Select Yes to continue.
Save your career package.
The reason I don't advise you to run the language file through the STBL creator is because it becomes difficult to change the language code sometimes. I've also personally noticed that symbols from other languages don't translate well through the STBL creator, so I advise that you do copy and paste each line. It is time consuming but worth it in the end.