From 67f32a505339ea7d9ce3bd02e774a3d142f6e603 Mon Sep 17 00:00:00 2001 From: gered Date: Sat, 27 Mar 2021 13:44:16 -0400 Subject: [PATCH] add quest_info.md --- README.md | 1 + quest_info.c | 14 ++++++++++++++ quest_info.md | 23 +++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 quest_info.md diff --git a/README.md b/README.md index be3883a..282782d 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,4 @@ to be prepared in order to work correctly and tools to automate that process. * [decrypt_packets](decrypt_packets.md): Decrypts server/client packet capture. * [gci_extract](gci_extract.md): Extracts quest .bin/.dat files **only** from specially prepared Gamecube memory card dumps in .gci format. This is a highly specific tool that is **not** usable on any arbitrary .gci file! * [gen_qst_header](gen_qst_header.md): Generates nicer .qst header files than what [qst_tool](https://github.com/Sylverant/pso_tools/tree/master/qst_tool) does. Can be then fed into qst_tool. +* [quest_info](quest_info.md): Displays basic information about quest files (supports both .bin/.dat and .qst formats). diff --git a/quest_info.c b/quest_info.c index 13a8f1f..f9ba248 100644 --- a/quest_info.c +++ b/quest_info.c @@ -1,3 +1,17 @@ +/* + * PSO EP1&2 (Gamecube) Quest Info Tool + * + * This tool can load Gamecube quest data from any of the following types of files: + * + * - Compressed .bin + .dat file combo + * - Online-play, unencrypted (0x44 / 0x13) .qst file (interleaved or not) + * - Download/Offline-play, encrypted (0xA6 / 0xA7) .qst file (interleaved or not) + * + * And display basic information about the quest and perform some basic validations on the data. + * + * Gered King, March 2021 + */ + #include #include #include diff --git a/quest_info.md b/quest_info.md new file mode 100644 index 0000000..66b500f --- /dev/null +++ b/quest_info.md @@ -0,0 +1,23 @@ +# PSO EP1&2 (Gamecube) Quest Info Tool + +This tool can load Gamecube quest data from any of the following types of files: + +- Compressed .bin + .dat file combo +- Online-play, unencrypted (0x44 / 0x13) .qst file (interleaved or not) +- Download/Offline-play, encrypted (0xA6 / 0xA7) .qst file (interleaved or not) + +And display basic information about the quest and perform some basic validations on the data. + +This tool was primarily written for my own benefit, as I needed something to help me quickly run through a series of +.bin/.dat files freshly extracted from a set of GCI files to validate them to make sure I had not done something silly +during the process. + +## Usage + +Simply pass either a `.bin` and `.dat` file (in that order) as arguments, or pass a single `.qst` file. + +```text +quest_info quest.bin quest.dat + +quest_info quest.qst +```