diff options
author | Paul Gilbert | 2016-05-31 21:01:13 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:17:50 -0400 |
commit | f51a428f8b32323a4328d69dff7c5afd48630224 (patch) | |
tree | aca8786da8e0b8a321c8918816729cc64fe7e579 /devtools | |
parent | ec33749157a18780b7df13733f23af831d4cb096 (diff) | |
download | scummvm-rg350-f51a428f8b32323a4328d69dff7c5afd48630224.tar.gz scummvm-rg350-f51a428f8b32323a4328d69dff7c5afd48630224.tar.bz2 scummvm-rg350-f51a428f8b32323a4328d69dff7c5afd48630224.zip |
DEVTOOLS: Fixes to Deskbot responses in create_titanic
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/create_titanic/create_titanic_dat.cpp | 6 | ||||
-rw-r--r-- | devtools/create_titanic/script_responses.cpp | 48 | ||||
-rw-r--r-- | devtools/create_titanic/script_responses.h | 2 |
3 files changed, 21 insertions, 35 deletions
diff --git a/devtools/create_titanic/create_titanic_dat.cpp b/devtools/create_titanic/create_titanic_dat.cpp index 133bad577d..11b963c37f 100644 --- a/devtools/create_titanic/create_titanic_dat.cpp +++ b/devtools/create_titanic/create_titanic_dat.cpp @@ -353,7 +353,7 @@ void writeData() { writeStringArray("TEXT/PRONOUNS", 0x22F718, 15); writeNumbers(); - writeAllScriptTags(); + writeAllScriptResponses(); } // Support method used for translating IDA debugger's output for @@ -365,7 +365,7 @@ void createScriptResponses() { char c[2]; c[0] = c[1] = '\0'; - inFile.open("d:\\temp\\bellbot.txt"); + inFile.open("d:\\temp\\deskbot.txt"); printf("static const int xxxx_RESPONSES[][5] = {\n"); do { @@ -396,8 +396,6 @@ void createScriptResponses() { } int main(int argc, char *argv[]) { - createScriptResponses(); - if (argc != 3) { printf("Format: %s ST.exe titanic.dat\n", argv[0]); exit(0); diff --git a/devtools/create_titanic/script_responses.cpp b/devtools/create_titanic/script_responses.cpp index aa342396db..1c43eb0e20 100644 --- a/devtools/create_titanic/script_responses.cpp +++ b/devtools/create_titanic/script_responses.cpp @@ -35,26 +35,24 @@ static const int DESKBOT_RESPONSES[128][5] = { { MKTAG('P', 'K', 'U', 'P'), 240573, 0, 0, 0 }, { MKTAG('S', 'E', 'X', '1'), 240573, 0, 0, 0 }, - { MKTAG('R', 'E', 'S', '1'), 240354, 0, 0, 0 }, - { MKTAG('R', 'E', 'S', '2'), 240547, 0, 0, 0 }, + { MKTAG('D', 'E', 'S', '1'), 240354, 0, 0, 0 }, + { MKTAG('D', 'E', 'S', '2'), 240547, 0, 0, 0 }, { MKTAG('S', 'W', 'E', 'R'), 240578, 0, 0, 0 }, { MKTAG('B', 'Y', 'Z', 'A'), 241173, 0, 0, 0 }, { MKTAG('S', 'A', 'S', 'S'), 240986, 0, 0, 0 }, - { MKTAG('S', 'H', 'M', 'S'), 240453, 0, 0, 0 }, + { MKTAG('S', 'U', 'M', 'S'), 240453, 0, 0, 0 }, { MKTAG('F', 'O', 'O', 'D'), 240849, 0, 0, 0 }, { MKTAG('J', 'F', 'O', 'D'), 240849, 0, 0, 0 }, - { MKTAG('C', 'H', 'S', 'E'), 240849, 0, 0, 0 }, { MKTAG('A', 'C', 'T', 'R'), 240654, 0, 0, 0 }, { MKTAG('A', 'C', 'T', 'S'), 240655, 0, 0, 0 }, - { MKTAG('M', 'U', 'S', 'I'), 240681, 240849, 0, 0 }, - { MKTAG('S', 'A', 'N', 'G'), 240681, 240657, 0, 0 }, + { MKTAG('M', 'U', 'S', 'I'), 240681, 241621, 0, 0 }, + { MKTAG('S', 'O', 'N', 'G'), 240681, 241621, 0, 0 }, { MKTAG('S', 'O', 'A', 'P'), 240681, 0, 0, 0 }, { MKTAG('T', 'V', 'S', 'H'), 240681, 0, 0, 0 }, { MKTAG('A', 'R', 'T', 'I'), 240657, 0, 0, 0 }, { MKTAG('A', 'U', 'T', 'H'), 240657, 0, 0, 0 }, { MKTAG('C', 'O', 'M', 'D'), 240657, 240785, 0, 0 }, - { MKTAG('C', 'O', 'O', 'K'), 240657, 0, 0, 0 }, { MKTAG('C', 'O', 'P', 'S'), 240657, 0, 0, 0 }, { MKTAG('H', 'E', 'R', 'O'), 240657, 0, 0, 0 }, @@ -65,7 +63,6 @@ static const int DESKBOT_RESPONSES[128][5] = { { MKTAG('P', 'L', 'A', 'N'), 240728, 0, 0, 0 }, { MKTAG('F', 'I', 'L', 'M'), 240939, 0, 0, 0 }, { MKTAG('F', 'I', 'S', 'H'), 240437, 0, 0, 0 }, - { MKTAG('H', 'H', 'G', 'Q'), 241065, 240453, 0, 0 }, { MKTAG('L', 'I', 'Q', 'D'), 241167, 0, 0, 0 }, { MKTAG('P', 'H', 'I', 'L'), 240607, 0, 0, 0 }, @@ -75,9 +72,8 @@ static const int DESKBOT_RESPONSES[128][5] = { { MKTAG('S', 'C', 'I', 'T'), 240968, 241617, 0, 0 }, { MKTAG('S', 'C', 'I', 'E'), 240967, 241616, 0, 0 }, { MKTAG('S', 'L', 'O', 'W'), 241614, 0, 0, 0 }, - { MKTAG('T', 'H', 'A', 'T'), 240760, 241615, 0, 0 }, - - { MKTAG('T', 'D', 'U', 'P'), 241161, 241618, 0, 0 }, + { MKTAG('T', 'H', 'R', 'T'), 240760, 241615, 0, 0 }, + { MKTAG('T', 'D', 'V', 'P'), 241161, 241618, 0, 0 }, { MKTAG('T', 'I', 'T', 'A'), 241619, 0, 0, 0 }, { MKTAG('C', 'S', 'P', 'Y'), 241620, 0, 0, 0 }, { MKTAG('M', 'I', 'N', 'S'), 241621, 0, 0, 0 }, @@ -87,8 +83,7 @@ static const int DESKBOT_RESPONSES[128][5] = { { MKTAG('A', 'D', 'V', 'T'), 240939, 241622, 0, 0 }, { MKTAG('A', 'N', 'S', 'W'), 240453, 0, 0, 0 }, { MKTAG('A', 'R', 'T', 'Y'), 240658, 0, 0, 0 }, - - { MKTAG('B', 'A', 'R', 'T'), 240491, 0, 0, 0 }, + { MKTAG('B', 'A', 'R', '1'), 240491, 0, 0, 0 }, { MKTAG('B', 'A', 'R', '3'), 240610, 0, 0, 0 }, { MKTAG('B', 'A', 'R', 'K'), 240768, 0, 0, 0 }, { MKTAG('B', 'A', 'R', 'U'), 240768, 0, 0, 0 }, @@ -98,7 +93,6 @@ static const int DESKBOT_RESPONSES[128][5] = { { MKTAG('B', 'E', 'L', '4'), 240558, 0, 0, 0 }, { MKTAG('B', 'E', 'L', '5'), 240336, 0, 0, 0 }, { MKTAG('B', 'E', 'L', '6'), 240759, 240760, 0, 0 }, - { MKTAG('B', 'E', 'L', '7'), 240726, 0, 0, 0 }, { MKTAG('B', 'L', 'F', '1'), 241652, 0, 0, 0 }, { MKTAG('B', 'L', 'F', '2'), 240939, 0, 0, 0 }, @@ -109,40 +103,36 @@ static const int DESKBOT_RESPONSES[128][5] = { { MKTAG('B', 'L', 'R', '1'), 240654, 0, 0, 0 }, { MKTAG('B', 'L', 'R', '2'), 240655, 0, 0, 0 }, { MKTAG('B', 'L', 'T', '1'), 240718, 0, 0, 0 }, - { MKTAG('B', 'L', 'T', '2'), 240681, 0, 0, 0 }, { MKTAG('B', 'L', 'T', '3'), 240655, 0, 0, 0 }, { MKTAG('B', 'L', 'T', '4'), 240664, 0, 0, 0 }, - { MKTAG('B', 'T', 'T', '5'), 240681, 0, 0, 0 }, + { MKTAG('B', 'L', 'T', '5'), 240681, 0, 0, 0 }, { MKTAG('B', 'O', 'D', 'Y'), 240596, 0, 0, 0 }, { MKTAG('B', 'O', 'Y', 'S'), 240654, 0, 0, 0 }, { MKTAG('B', 'R', 'N', 'D'), 240939, 241622, 0, 0 }, { MKTAG('C', 'L', 'U', 'B'), 241675, 240681, 241623, 0 }, { MKTAG('C', 'M', 'N', 'T'), 240849, 0, 0, 0 }, { MKTAG('C', 'R', 'I', 'M'), 241096, 240725, 240729, 0 }, - - { MKTAG('D', 'C', 'T', 'R'), 240725, 0, 0, 0 }, + { MKTAG('D', 'C', 'T', 'R'), 240681, 0, 0, 0 }, { MKTAG('D', 'O', 'R', '2'), 241405, 241404, 241403, 241402 }, - { MKTAG('D', 'B', 'U', 'G'), 240922, 240931, 0, 0 }, + { MKTAG('D', 'R', 'U', 'G'), 240922, 240931, 0, 0 }, { MKTAG('F', 'A', 'M', 'E'), 240726, 0, 0, 0 }, { MKTAG('F', 'A', 'S', 'H'), 241172, 0, 0, 0 }, { MKTAG('F', 'A', 'U', 'N'), 240939, 0, 0, 0 }, { MKTAG('F', 'L', 'O', 'R'), 240825, 0, 0, 0 }, { MKTAG('F', 'U', 'L', 'N'), 240864, 241072, 0, 0 }, - { MKTAG('G', 'I', 'R', 'L'), 241144, 0, 0, 0 }, + { MKTAG('G', 'I', 'R', 'L'), 240655, 0, 0, 0 }, { MKTAG('H', 'B', 'B', 'Y'), 241144, 0, 0, 0 }, - { MKTAG('H', 'H', 'L', 'D'), 241144, 0, 0, 0 }, { MKTAG('H', 'O', 'M', 'E'), 240844, 240626, 0, 0 }, { MKTAG('I', 'S', 'H', 'E'), 240731, 0, 0, 0 }, - { MKTAG('J', 'N', 'A', 'M'), 240785, 240657, 0, 0 }, + { MKTAG('J', 'N', 'A', 'M'), 240785, 0, 0, 0 }, { MKTAG('J', 'O', 'K', 'E'), 240785, 0, 0, 0 }, { MKTAG('K', 'N', 'O', 'B'), 240657, 0, 0, 0 }, { MKTAG('K', 'P', 'L', 'C'), 240844, 240626, 0, 0 }, { MKTAG('L', 'I', 'F', '3'), 240722, 0, 0, 0 }, { MKTAG('L', 'I', 'T', 'E'), 240785, 0, 0, 0 }, { MKTAG('L', 'I', 'T', 'R'), 241404, 241405, 241403, 241406 }, - { MKTAG('M', 'A', 'D', '1'), 241124, 240971, 241615, 0 }, { MKTAG('M', 'A', 'D', '4'), 241341, 0, 0, 0 }, { MKTAG('M', 'A', 'D', '6'), 240860, 241114, 0, 0 }, @@ -153,18 +143,16 @@ static const int DESKBOT_RESPONSES[128][5] = { { MKTAG('N', 'P', 'L', 'C'), 240844, 240626, 0, 0 }, { MKTAG('O', 'R', 'D', '1'), 240695, 0, 0, 0 }, { MKTAG('O', 'R', 'D', '2'), 240744, 240650, 0, 0 }, - { MKTAG('O', 'R', 'D', '3'), 240647, 0, 0, 0 }, { MKTAG('O', 'R', 'D', '4'), 240647, 0, 0, 0 }, { MKTAG('O', 'R', 'D', '5'), 241191, 0, 0, 0 }, - { MKTAG('P', 'G', 'R', 'P'), 240725, 0, 0, 0 }, + { MKTAG('P', 'G', 'R', 'P'), 240681, 0, 0, 0 }, { MKTAG('P', 'L', 'A', 'C'), 240728, 0, 0, 0 }, { MKTAG('R', 'C', 'K', 'T'), 241070, 241161, 0, 0 }, { MKTAG('S', 'F', 'S', 'F'), 241172, 0, 0, 0 }, { MKTAG('S', 'P', 'R', 'T'), 241172, 0, 0, 0 }, { MKTAG('S', 'U', 'C', '1'), 240467, 0, 0, 0 }, { MKTAG('T', 'E', 'A', 'M'), 241172, 0, 0, 0 }, - { MKTAG('T', 'L', 'A', ' '), 240727, 240658, 0, 0 }, { MKTAG('T', 'O', 'Y', 'S'), 240607, 240606, 0, 0 }, { MKTAG('T', 'R', 'A', '2'), 240611, 0, 0, 0 }, @@ -307,7 +295,7 @@ static const int BELLBOT_RESPONSES[130][5] = { { MKTAG('Y', 'E', 'S', 'S'), 201525, 201529, 0, 0 }, }; -void writeScriptTags(const char *name, const int *tags, uint count) { +void writeScriptResponses(const char *name, const int *tags, uint count) { outputFile.seek(dataOffset); for (int idx = 0; idx < count * 5; ++idx, ++tags) @@ -317,7 +305,7 @@ void writeScriptTags(const char *name, const int *tags, uint count) { dataOffset += count * 5 * 4; } -void writeAllScriptTags() { - writeScriptTags("Responses/Deskbot", &DESKBOT_RESPONSES[0][0], 128); - writeScriptTags("Responses/Bellbot", &BELLBOT_RESPONSES[0][0], 130); +void writeAllScriptResponses() { + writeScriptResponses("Responses/Deskbot", &DESKBOT_RESPONSES[0][0], 128); + writeScriptResponses("Responses/Bellbot", &BELLBOT_RESPONSES[0][0], 130); }
\ No newline at end of file diff --git a/devtools/create_titanic/script_responses.h b/devtools/create_titanic/script_responses.h index 86cd1e6aed..ca927e0ccd 100644 --- a/devtools/create_titanic/script_responses.h +++ b/devtools/create_titanic/script_responses.h @@ -25,7 +25,7 @@ #include "common/scummsys.h" -extern void writeAllScriptTags(); +extern void writeAllScriptResponses(); extern void writeEntryHeader(const char *name, uint offset, uint size); extern uint dataOffset; |