RoTK2 SNES: Data Diving!

Use this forum to discuss hex-editing or otherwise altering any Three Kingdoms game, and to promote modded titles and patches.

RoTK2 SNES: Data Diving!

Unread postby DragonAtma » Wed Oct 17, 2012 12:06 pm

Since we have a subforum for game editing data, it makes sense to copy my findings here. Obviously, these are all for the SNES version of Romance of the Three Kingdoms 2!

-=-=-

Here are the recruitment charts: http://pastebin.com/tGBtmfMh -- keep in mind that some of them are autojoiners (i.e. they join a force automatically if a specific general (usually their father) is alive and serving a force.)

-=-=-

Here's a chart of when each officer becomes active: http://pastebin.com/C4Zq8zdu -- any officer not listed is active from the start of every scenario they show up in.

-=-=-

Here's the list of autojoiners: http://pastebin.com/4rd8VKy5

-=-=-

Here's the list of officers by the game's internal order: http://pastebin.com/VjDfFAb4

-=-=-

Codes for changing the year are 7EE007xx and 7EE006xx, where xx is the year in hexadecimal. Yes, the first one will be 00 unless you're setting the year to 256 AD or later.

-=-=-

The first chunk of officer data is from to 17D74 to 19BBD. It has twenty-two columns, as such:

1: The date that officers either autojoin or can be searched for. FF means that either the officer isn't in the scenario, starts on a force, or can be searched for at the start.
2: Family data
3-8: Starting provinces in scenarios 1-6 respectively.
9-10: Internal officer #. There are 350+ officers, so it takes two bytes.
11: Unknown; I haven't nailed this down completely, but it's FF for people who aren't in the scenario. I thought it was the slot the officer fills, but there are too many inconsistencies.
12: Title used for the officer. See below!
13-14: Similar to 11-12, but for scenario 2.
15-16: Similar to 11-12, but for scenario 3.
17-18: Similar to 11-12, but for scenario 4.
19-20: Similar to 11-12, but for scenario 5.
21-22: Similar to 11-12, but for scenario 6.

-=-=-

I'm not positive on *all* the titles bytes, but here's what I have:
1: Not sure. It's a disparate group (~70 officers in scenario 1, including Cao Pi, Chen Ying, Fu Tong, Gongun Yuan, Guan Xing, Ma Liang, Sima Zhao, Wu Ban, and Zhou Fang) united only by how none of them are obtainable at the start of the scenario. Thing is, some officers that don't show up at first (such as Yi Ji and Xu Sheng) are NOT in that group.
2: Unknown and obscure. It's only used by a few minor officers.
4: Governor (includes rulers)
8: Similar to byte 1, this is a varied group that makes little sense.
10: Governor (includes rulers)
20: Officer is searchable (I *think*)
40: Advisor
80: Ruler

Presumably, bits 4 and 10 cover two different things, but they only seem to show up together...

And http://pastebin.com/S3CZN92W is a list of all the officers with the 1-byte activated.

-=-=-

The list of starting loyalties is from 11E38 to 12677. It contains six columns, one for each scenario. Loyalties of FF mean that said officer isn't originally active. Loyalties of 00 mean that said officer is hidden, and loyalties of 64 mean that said officer is either a ruler or at maximum loyalty.

-=-=-

The main officer stats (Int, War, Charm) are found from 132D8 to 136F7.

-=-=-

NOTE: This bit was found first by Marsil, but I'm including it for completeness (and because I extrapolated form it somewhat).

As Marsil pointed out quite some time ago, there's another block of officer data from 12678 to 132D7. It has nine values:

1: Overall loyalty
2: Unknown yet; see below.
3: Expansionism or activity; see below.
4: Compatibility; see below.
5-6: Family
7: Birthdate, almost; see below.
8-9: Face values (uniques ALWAYS have 00 for the second byte, and nonuniques ALWAYS have 80+ for the second byte).

The third byte may refer either to how much computers expand or merely how often they give orders. http://img207.imageshack.us/img207/2725 ... forall.png shows what happens after five years with everyone set to FF (note that the highest normal value is Cao Cao at 63), http://img17.imageshack.us/img17/5739/rotk263forall.png is what happens after five years when you set everyone to 63, and http://img839.imageshack.us/img839/6765 ... forall.png is what happens after five years when you set everyone to 01.

You know, if you set everyone to 63 or FF, that may count as a hard mode. For reference, here's a list of scenario 1 ruler activity/expansionism values:

63 Cao Cao
5F Dong Zhuo
5A Sun Jian
56 Ma Teng
55 Liu Bei
51 Yuan Shu
50 Yuan Shao
45 Gongsun Zan
38 Hain Fu
32 Tao Quian
2F Wang Lang
2A Kong Rong
21 Liu Yong
1E Liu Yan (1)
19 Liu Biao

For the compatibility byte, it does NOT depend on how large it is; instead, officers are most compatible with rulers close to their value. For reference:

1 Cao Cao, etc.
5 Kong Rong
10 Yang Feng
15 Gongsun Yuan
20 Wang Lang
30 Jin Xuan
30 Liu Biao
35 Meng Huo
40 Yuan Shao
40 Zhao Fan
45 Lu Bu
45 Ma Teng
50 Liu Bei
60 Dong Zhuo
60 Gongsun Zan
60 Li Jue
60 Tao Quian
75 Liu yan, etc.
75 Yuan Shu
75 Liu Du
75 Han Xuan
80 Liu Yong
80 Zhang Lu
90 Hain Fu
100 Sun Jian, etc.

Birthdates are close, but off by one. Cao Rui, for example, is born in 204 in-game, but has a value of CD (205). Similarly, everyone else also has a birthdate one above what they SHOULD have.

Finally, we still don't know what value #2 does. it's very similar to charm values, though; top ten are Liu Bei, Zhou Yu, Zhuge Liang, Pang Tong, Guan Yu, Lu Xun, Sun Ce, Ma Teng, Liu Yan (ruler), and Zhao Yun, while the bottom ten are Lu Bu, Gongsun Yuan, Ahui Nan, Han Xuan, Sun Yi, Mi Fang, Jinhuan Jie, Zhu Bao, Yang Qiu, and Cao Bao.

-=-=-

(more info coming, we don't need a huge post...)
Unless I specifically say otherwise, assume I am talking about historical Three Kingdoms, and not the novel.
DragonAtma
Scholar of Shen Zhou
 
Posts: 872
Joined: Wed Aug 15, 2012 2:19 pm
Location: Long Island, NY

Re: RoTK2 SNES: Data Diving!

Unread postby DragonAtma » Wed Oct 17, 2012 12:07 pm

Province info is 0FF70 through 11775, sorted first by province and then by scenario. There are twenty five columns as such:

1-8: 00 00 00 00 00 00 00 00! (seriously, they're as empty as the Dong Zhuo fan club)
9-10: Gold (remember, the 1's byte comes BEFORE the 256 byte, so 300 gold appears as 2C 01 not 01 2C!)
11-12: Food (again, 1's before 256's)
13-14: Population (again, 1's before 256's)
15: Force (chart is below)
16: FF! (Always FF, never 00)
17: 00! (again, as empty as the Lu Bu Trusters Convention)
18: Merchant byte (01 means merchants always there, 00 means sometimes there; in every scenario, 10, 12, 17, 24, and 33 are 01)
19-20: FF FF (Always FFFF, never UUUU!)
21: Land!
22: People's loyalty!
23: Flood control!
24: Horse count!
25: 32! (Always 32; they support FDR!)

-=-

And the chart of which force is which!

00 Cao Cao
01 Liu Bei
02 Sun Jian
03 Yuan Shao
04 Yuan Shu
05 Ma Teng
06 Liu Yan
07 Liu Biao
08 Dong Zhuo
09 Gongsun Zan
0A Tao Quian
0B Hain Fu
0C Kong Rong
0D Wang Lang
0E Liu Yong

00 Cao Cao
01 Liu Bei
02 Sun Ce
03 Yuan Shao
04 Yuan Shu
05 Ma Teng
06 Liu Zhang
07 Liu Biao
08 Lu Bu
09 Gongsun Zan
0A Li Jue
0B Zhang Lu
0C Kong Rong
0D Yang Feng
0E Liu Yong

00 Cao Cao
01 Liu Bei
02 Sun Quan
03 Yuan Shao
04 Liu Zhang
05 Ma Teng
06 Zhang Lu
07 Liu Biao

00 Cao Cao
01 Liu Bei
02 Sun Quan
03 Ma Teng
04 Liu Zhang
05 Jin Xuan
06 Han Xuan
07 Zhao Fan
08 Liu Du
09 Zhang Lu

00 Cao Cao
01 Liu Bei
02 Sun Quan
03 Meng Huo

00 Cao Pi
01 Liu Bei
02 Sun Quan
03 Meng Huo

Yes, some (especially Zhang Lu) move around a bit...

-=-=-

19DAE through 19EA3 shows adjacencies for invasions. It does not cover messenger adjacencies, so if you only change this and the map, messengers will wander like a drunken Zhang Fei: http://img841.imageshack.us/img841/6821/drunkpath.png

1AE94 through 1BA1B shows adjacencies and distances for messengers. Columns are stored in this order:

x x x x x 2 1 x
x x x 4 3 6 x x
x x x 5 7 9 8 x
15 x x 11 10 17 16 24
14 13 12 20 19 28 18 25
x 30 29 31 21 22 27 26
x 33 32 40 23 38 37 x
x 35 34 41 39 x x x
x x 36 x x x x x

Since that's a very ugly chart, here, have it lined up properly: http://img12.imageshack.us/img12/3753/paths.png

-=-=-

Anyway, that's all I have for now; I'm not a programmer, so all of this info had to be found by hand. Enjoy.
Unless I specifically say otherwise, assume I am talking about historical Three Kingdoms, and not the novel.
DragonAtma
Scholar of Shen Zhou
 
Posts: 872
Joined: Wed Aug 15, 2012 2:19 pm
Location: Long Island, NY

Re: RoTK2 SNES: Data Diving!

Unread postby DragonAtma » Wed Oct 23, 2013 8:21 am

Pretty much all of the data I've discovered on modding rotk2: http://www.mediafire.com/download/d0qnf ... a-Atma.ods

Most stuff is self-explanatory; on the first sheet, "blah" is just for sorting purposes, and postgap is the length of unmarked stuff (e.g. programming) after that section.

And yes, there's a bit of junk sitting around as selfnotes.

-=-=-

Info on changing officer locations is here, courtesy of Servant of Magnus: http://www.gamefaqs.com/boards/588628-romance-of-the-three-kingdoms-ii/66684930

-=-=-

Between those two, we've got enough to make a full rotk2 mod!
Unless I specifically say otherwise, assume I am talking about historical Three Kingdoms, and not the novel.
DragonAtma
Scholar of Shen Zhou
 
Posts: 872
Joined: Wed Aug 15, 2012 2:19 pm
Location: Long Island, NY

Re: RoTK2 SNES: Data Diving!

Unread postby jony33 » Sun Oct 19, 2014 2:20 pm

Finally, we still don't know what value #2 does. it's very similar to charm values, though; top ten are Liu Bei, Zhou Yu, Zhuge Liang, Pang Tong, Guan Yu, Lu Xun, Sun Ce, Ma Teng, Liu Yan (ruler), and Zhao Yun, while the bottom ten are Lu Bu, Gongsun Yuan, Ahui Nan, Han Xuan, Sun Yi, Mi Fang, Jinhuan Jie, Zhu Bao, Yang Qiu, and Cao Bao.
Mohsin
jony33
Tyro
 
Posts: 2
Joined: Sun Oct 19, 2014 2:18 pm

Re: RoTK2 SNES: Data Diving!

Unread postby DragonAtma » Sun Oct 19, 2014 6:08 pm

Has it really been a year since the last update? I suppose it's time to point out that there have been some discoveries at Gamefaqs SNES ROTK2 board.

Apparently values 1-3 in the 12678 block are labeled in the PC version; the unknown one is titled "vrt" (virtue), and according to darkmoon2321 it only seems to affect the odds of the AI trying to capture a messenger (he puts the chance at 50 - Virtue/2 + Hostility/2).

I really should add the data we've found at gamefaqs to this thread. In the meantime, here are links to gamefaqs RoTK2 data (mostly courtesy of darkmoon2321, ServantOfMagnus, and sometimes even.... DragonAtma!?):

Huge amounts of data, including map changing and a Koei SNES data compressor/decompressor:
* http://www.gamefaqs.com/boards/588628-r ... i/70015768

More info on Duty ("Overall Loyalty") and Virtue:
* http://www.gamefaqs.com/boards/588628-r ... i/69940653
* http://www.gamefaqs.com/boards/588628-r ... i/70072047

Increasing the officer count past 352:
* http://www.gamefaqs.com/boards/588628-r ... i/70228800

Formula behind getting extremely rare items:
* http://www.gamefaqs.com/boards/588628-r ... i/69460743

Data on getting Threaten to work:
* http://www.gamefaqs.com/boards/588628-r ... i/70111924

How to reassign officers:
* http://www.gamefaqs.com/boards/588628-r ... i/66684930
* http://www.gamefaqs.com/boards/588628-r ... i/68336592

More info on changing the map:
* http://www.gamefaqs.com/boards/588628-r ... i/68995273

Changing battlemaps:
* http://www.gamefaqs.com/boards/588628-r ... i/68600011

There's a maximum of 216 officers active at once:
* http://www.gamefaqs.com/boards/588628-r ... i/68363737

Changing officers:
* http://www.gamefaqs.com/boards/588628-r ... i/67879444
* http://www.gamefaqs.com/boards/588628-r ... i/68095720

Changing portraits:
* http://www.gamefaqs.com/boards/588628-r ... i/68097306

Nine officers die early:
* http://www.gamefaqs.com/boards/588628-r ... i/67857202

Yes, I really should copy the important info to this thread (crediting the discoverers, of course!)
Unless I specifically say otherwise, assume I am talking about historical Three Kingdoms, and not the novel.
DragonAtma
Scholar of Shen Zhou
 
Posts: 872
Joined: Wed Aug 15, 2012 2:19 pm
Location: Long Island, NY


Return to Three Kingdoms Game Editing & Mods

Who is online

Users browsing this forum: No registered users and 1 guest

Copyright © 2002–2008 Kongming’s Archives. All Rights Reserved