Post by MissyHissy on May 6, 2015 14:03:41 GMT
The Careers Mod supports the ability to import and create custom Book Lists, similar to the journals in the base game Medical Career, although just about any type of book can be included. This is by using the <omnijournal> entries. Twallan's Mobster career includes a book list, so that could be opened up to see how it was implemented.
I have yet to try this out myself, but there's a small amount of information available at Nraas.
After opening up the Mobster Career myself, I've found this:
1) In the .DLL file with the XML tag, there's a BookFile entry:
<BookFile>
<Books></Books>
</BookFile>
<BookFile>
<Books>NRaas.Mobster.Books</Books>
</BookFile>
2) There's a Books XML included in the career package.
3) In the .Careers package, there's an OnmiJournal metric:
<Metric1>NRaas.Gameplay.OmniSpace.Metrics.MetricJournals, NRaasCareer</Metric1>
<Mappings1>1,3,5</Mappings1>
4) The UnhashedKeys code for the book file seems to look like this:
As I said, I haven't tried this out yet. But anyone who has, I'd be delighted to hear how you got on!
I have yet to try this out myself, but there's a small amount of information available at Nraas.
After opening up the Mobster Career myself, I've found this:
1) In the .DLL file with the XML tag, there's a BookFile entry:
<BookFile>
<Books></Books>
</BookFile>
<BookFile>
<Books>NRaas.Mobster.Books</Books>
</BookFile>
2) There's a Books XML included in the career package.
<!--?xml version="1.0"?-->
<books>
<omnijournal>
<title>Title</title>
<author>TheFamily</author>
<careername>NRaasMobster</careername>
<careerlevel>0</careerlevel>
<length>0</length>
<value>0</value>
<geometrystate>BookSmallThin</geometrystate>
<materialstate>bookMedical2</materialstate>
<pagesminnorm>1</pagesminnorm>
<pagesminbw>2</pagesminbw>
<notinbookstore>True</notinbookstore>
<allowedworldtypes>Undefined</allowedworldtypes>
<allowedworlds></allowedworlds>
<startingedition>1</startingedition>
<maxedition>1</maxedition>
</omnijournal>
<omnijournal>
<title>FollowTheLeader</title>
<careerlevel>2</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
<omnijournal>
<title>GoonLife</title>
<careerlevel>3</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
<omnijournal>
<title>EnforceTheLaw</title>
<careerlevel>4</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
<omnijournal>
<title>FamilyUnderstanding</title>
<careerlevel>5</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
</books>
<books>
<omnijournal>
<title>Title</title>
<author>TheFamily</author>
<careername>NRaasMobster</careername>
<careerlevel>0</careerlevel>
<length>0</length>
<value>0</value>
<geometrystate>BookSmallThin</geometrystate>
<materialstate>bookMedical2</materialstate>
<pagesminnorm>1</pagesminnorm>
<pagesminbw>2</pagesminbw>
<notinbookstore>True</notinbookstore>
<allowedworldtypes>Undefined</allowedworldtypes>
<allowedworlds></allowedworlds>
<startingedition>1</startingedition>
<maxedition>1</maxedition>
</omnijournal>
<omnijournal>
<title>FollowTheLeader</title>
<careerlevel>2</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
<omnijournal>
<title>GoonLife</title>
<careerlevel>3</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
<omnijournal>
<title>EnforceTheLaw</title>
<careerlevel>4</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
<omnijournal>
<title>FamilyUnderstanding</title>
<careerlevel>5</careerlevel>
<length>90</length>
<value>60</value>
<maxedition>5</maxedition>
</omnijournal>
</books>
3) In the .Careers package, there's an OnmiJournal metric:
<Metric1>NRaas.Gameplay.OmniSpace.Metrics.MetricJournals, NRaasCareer</Metric1>
<Mappings1>1,3,5</Mappings1>
4) The UnhashedKeys code for the book file seems to look like this:
[85] 0x6E3F20F39F6DAB16: Gameplay/Excel/Books/OmniJournal:FollowTheLeader
[86] 0xC2F013F7E759B650: Gameplay/Excel/Books/OmniJournal:FollowTheLeader2
[87] 0xC2F013F7E759B651: Gameplay/Excel/Books/OmniJournal:FollowTheLeader3
[88] 0xC2F013F7E759B656: Gameplay/Excel/Books/OmniJournal:FollowTheLeader4
[89] 0xC2F013F7E759B657: PackerSpace|Gameplay/Excel/Books/OmniJournal:FollowTheLeader5
[8A] 0x4CE5138582358880: Gameplay/Excel/Books/OmniJournal:GoonLife
[8B] 0xDEC8ABDC40F6F1B2: Gameplay/Excel/Books/OmniJournal:GoonLife2
[8C] 0xDEC8ABDC40F6F1B3: Gameplay/Excel/Books/OmniJournal:GoonLife3
[8D] 0xDEC8ABDC40F6F1B4: Gameplay/Excel/Books/OmniJournal:GoonLife4
[8E] 0xDEC8ABDC40F6F1B5: PackerSpace|Gameplay/Excel/Books/OmniJournal:GoonLife5
[8F] 0x6EDAB04324372F04: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw
[90] 0x94C8861689C4E3FE: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw2
[91] 0x94C8861689C4E3FF: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw3
[92] 0x94C8861689C4E3F8: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw4
[93] 0x94C8861689C4E3F9: PackerSpace|Gameplay/Excel/Books/OmniJournal:EnforceTheLaw5
[94] 0xB4FEE188FA874ADF: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding
[95] 0x14641AC1B3E438DF: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding2
[96] 0x14641AC1B3E438DE: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding3
[97] 0x14641AC1B3E438D9: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding4
[98] 0x14641AC1B3E438D8: PackerSpace|Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding5
[86] 0xC2F013F7E759B650: Gameplay/Excel/Books/OmniJournal:FollowTheLeader2
[87] 0xC2F013F7E759B651: Gameplay/Excel/Books/OmniJournal:FollowTheLeader3
[88] 0xC2F013F7E759B656: Gameplay/Excel/Books/OmniJournal:FollowTheLeader4
[89] 0xC2F013F7E759B657: PackerSpace|Gameplay/Excel/Books/OmniJournal:FollowTheLeader5
[8A] 0x4CE5138582358880: Gameplay/Excel/Books/OmniJournal:GoonLife
[8B] 0xDEC8ABDC40F6F1B2: Gameplay/Excel/Books/OmniJournal:GoonLife2
[8C] 0xDEC8ABDC40F6F1B3: Gameplay/Excel/Books/OmniJournal:GoonLife3
[8D] 0xDEC8ABDC40F6F1B4: Gameplay/Excel/Books/OmniJournal:GoonLife4
[8E] 0xDEC8ABDC40F6F1B5: PackerSpace|Gameplay/Excel/Books/OmniJournal:GoonLife5
[8F] 0x6EDAB04324372F04: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw
[90] 0x94C8861689C4E3FE: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw2
[91] 0x94C8861689C4E3FF: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw3
[92] 0x94C8861689C4E3F8: Gameplay/Excel/Books/OmniJournal:EnforceTheLaw4
[93] 0x94C8861689C4E3F9: PackerSpace|Gameplay/Excel/Books/OmniJournal:EnforceTheLaw5
[94] 0xB4FEE188FA874ADF: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding
[95] 0x14641AC1B3E438DF: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding2
[96] 0x14641AC1B3E438DE: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding3
[97] 0x14641AC1B3E438D9: Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding4
[98] 0x14641AC1B3E438D8: PackerSpace|Gameplay/Excel/Books/OmniJournal:FamilyUnderstanding5
As I said, I haven't tried this out yet. But anyone who has, I'd be delighted to hear how you got on!