Debian Codegraph @

README

raw
1 ScummVM Tools README
2 Last updated: $Date$
3 ------------------------------------------------------------------------
4
5 For more information on ScummVM, visit https://www.scummvm.org/.
6 More on the tools can be found on our Wiki under
7 https://wiki.scummvm.org/index.php?title=ScummVM_Tools
8
9 ------------------------------------------------------------------------
10
11 This is a collection of various tools that may be useful to use in conjunction
12 with ScummVM. Please note that this module is not always in-sync with the latest
13 STABLE version of ScummVM.
14
15 This means that although a tool may support a feature, certain
16 ScummVM versions may not. ScummVM 0.6.x does not support FLAC audio, for
17 example.
18
19 The extraction and compression tools can either be run from the command line or
20 using the GUI wizard. All other tools are only available in command line.
21
22 The command line executable for the compression and extraction tools can be
23 invoked with the following syntax:
24 scummvm-tools-cli [audio params] [params] [-o output] [extract|compress] <inputfile>
25
26 This will auto-detect the tool to use depending on the input file(s). You can hint
27 which tool to use by specifying if you want to extract or compress data.
28 Alternatively you can give the name of the tool to use:
29 scummvm-tools-cli --tool <tool name> [audio params] [params] [-o output] <inputfile>
30
31
32 You can get a list of the supported tools using --list:
33 scummvm-tools-cli --list
34
35
36 [audio params] is used for compression tools to define which audio format to
37 compress to. Use --mp3, --flac or --vorbis first to select a special format,
38 default is MP3. Then you can give additional information such as the bit rate
39 you want to use. Use --help to get the list of all the options you can use:
40 scummvm-tools-cli --help <tool name>
41
42 This will also list additional options that each tool might support.
43
44 Use the -o or --output flag to specify the output file or directory. By default
45 most tools will output to the directory out/ relative to the input file.
46
47 Extraction Tools:
48 extract_agos
49 Extracts the packed files used in the Amiga and AtariST
50 versions of Elvira 1/2, Waxworks and Simon the Sorcerer 1.
51
52 Example of usage:
53 ./scummvm-tools-cli --tool extract_agos <infile 1> ... <infile n>
54
55 extract_asylum
56 Extracts Sanitarium resource packs.
57
58 If resourceindex is provided, only that resource is extracted.
59
60 Example of usage:
61 ./scummvm-tools-cli --tool extract_asylum [-o outputdir] [-R resourceindex] <inputfile>
62
63 extract_cge
64 Unpacks Soltys and Sfinx game data files.
65
66 Example of usage:
67 ./scummvm-tools-cli --tool extract_cge [-o outputdir] <inputfile>
68
69 pack_cge
70 Packs Soltys and Sfinx game data files.
71
72 Example of usage:
73 ./scummvm-tools-cli --tool pack_cge [-o outputdir] <inputdir>
74
75 extract_cine
76 Unpacks Delphine's Cinematique engine's archive files.
77
78 Should work at least with Future Wars and Operation Stealth.
79 It seems to work also with Cruise for a Corpse. It accepts only
80 one input file. This may be either one of the archive file, in
81 which case only this file is unpacked, or the 'vol.cnf' file,
82 in which case all archive files listed in the 'vol.cnf' file are
83 unpacked.
84
85 Example of usage:
86 ./scummvm-tools-cli --tool extract_cine [-o outputdir] <infile>
87
88 extract_cruise_pc
89 Unpack the E1, E4 and E5 files found in some versions of
90 Cruise for a Corpse. To extract the D1 to D5 files, use the
91 extract_cine tool instead.
92
93 Example of usage:
94 ./scummvm-tools-cli --tool extract_cruise_pc [-o outputdir] <infile>
95
96 extract_cryo
97 Extracts Lost Eden archives.
98
99 Example of usage:
100 ./scummvm-tools-cli --tool extract_cryo [-o outputdir] <infile>
101
102 extract_gob_stk
103 Extracts data files from STK/ITK files from Coktel Vision
104 games.
105
106 Example of usage:
107 ./scummvm-tools-cli --tool extract_gob_stk [-o outputdir] <infile>
108
109 extract_hdb
110 Extracts Hyperspace Delivery Boy! archives.
111
112 Example of usage:
113 ./scummvm-tools-cli --tool extract_hdb [-o outputdir] <hyperspace.msd>
114
115 extract_kyra
116 Unpacks .PAK files from Kyrandia games.
117
118 It is also able to extract the installer package files from
119 Hand of Fate DOS floppy version. You should make sure you got
120 all WESTWOOD.### files for that, since they are one big package
121 file splitted into several, so with -x you will extract *all*
122 files from the installer files.
123
124 Example of usage:
125 ./scummvm-tools-cli --tool extract_kyra -x [-o outputdir] <infile>
126
127 NOTE: Takes some additional arguments, run extract_kyra --help
128 for details.
129
130 extract_loom_tg16
131 Extracts data files from the PC-Engine version of Loom.
132
133 Example of usage:
134 ./scummvm-tools-cli --tool extract_loom_tg16 [-o outputdir] <infile>
135
136 NOTE: See https://wiki.scummvm.org/index.php?title=HOWTO-LoomTG16
137 for instructions on how to dump the code tracks on the CD.
138
139 extract_mm_apple
140 Extracts data files from the Apple II version of Maniac
141 Mansion.
142
143 Example of usage:
144 ./scummvm-tools-cli --tool extract_mm_apple [-o outputdir] <disk1.dsk> <disk2.dsk>
145
146 extract_mm_c64
147 Extracts data files from the Commodore 64 version of Maniac
148 Mansion.
149
150 Example of usage:
151 ./scummvm-tools-cli --tool extract_mm_c64 [-o outputdir] <disk1.d64> <disk2.d64>
152
153 extract_mm_nes
154 Extracts data files from the NES version of Maniac Mansion.
155
156 Example of usage:
157 ./scummvm-tools-cli --tool extract_mm_nes [-o outputdir] <infile.PRG>
158
159 NOTE: Japanese version is _not_ supported.
160
161 extract_parallaction
162 Extracts the contents of archives used in Nippon Safes.
163
164 Example of usage:
165 ./scummvm-tools-cli --tool extract_parallaction [--small] [-o outputdir] <infile>
166
167 extract_scumm_mac
168 Extracts Macintosh "single file" SCUMM games into their
169 component parts, for use with ScummVM.
170
171 Example of usage:
172 ./scummvm-tools-cli --tool extract_scumm_mac [-o outputdir] <infile>
173
174 NOTE: This is required for ScummVM up to version 0.6.x; all
175 later versions directly support reading this file format.
176
177 extract_zak_c64
178 Extracts data files from the Commodore 64 version of Zak
179 McKracken.
180
181 Example of usage:
182 ./scummvm-tools-cli --tool extract_zak_c64 [-o outputdir] <disk1.d64> <disk2.d64>
183
184 Compression Tools:
185 compress_agos
186 Used to compress the Feeble Files or Simon the Sorcerer 1/2
187 voc/wav files to MP3, Vorbis or FLAC.
188
189 Example of usage:
190 ./scummvm-tools-cli --tool compress_agos --vorbis -q 7 SIMON2.WAV
191
192 NOTE: Specify --mac for the mac version (obviously).
193 Default output is input with changed extension.
194
195 compress_gob
196 Compresses Gobliiins! data files.
197
198 Example of usage:
199 ./scummvm-tools-cli --tool compress_gob [-o outputpath] -f <conf_file>
200
201 <conf file> is a .gob file generated by extract_gob_stk.
202 -f forces compression for all files.
203 The stick archive (STK/ITK/LTK/JTK) will be created in the directory
204 specified by the '-o' parameter.
205
206 compress_kyra
207 Used to compress The Legend of Kyrandia, The Legend of
208 Kyrandia: Hand of Fate, The Legend of Kyrandia: Malcolm's
209 Revenge and Lands of Lore: The Throne of Chaos audio files
210 with MP3, Vorbis or FLAC.
211
212 Example of usage:
213 ./scummvm-tools-cli --tool compress_kyra <flags here> input/GEMCUT.VRM
214
215 You have to keep the file extension the tool will append
216 else it will NOT work. Use it as shown above, copy all speech
217 files to a directory and let the tool put the output file in
218 another directory.
219
220 compress_queen
221 Used to rebuild the datafile of Flight of the Amazon Queen,
222 and allow optional MP3, Vorbis or FLAC compression.
223
224 Example of usage:
225 ./scummvm-tools-cli --tool compress_queen [mode params] [-o outputfile] queen.1
226
227 Default output file is "queen.1c"
228
229 compress_saga
230 Used to compress SAGA engine digital sound files to MP3, Vorbis
231 or FLAC.
232
233 Example of usage:
234 ./scummvm-tools-cli --tool compress_saga [mode params] [-o outputfile] <infile>
235
236 Where <infile> is the sound file you wish to compress, without
237 the extension.
238 Default output file is input file with the extensions ".cmp"
239
240 For Inherit the Earth, the digital music (music.rsc), speech
241 (voices.rsc or "Inherit the Earth voices") and sound effects
242 (sounds.rsc) files can be compressed. For I have no Mouth, the
243 speech (voices*.res) files can be compressed.
244
245 The compressed files have the ".cmp" extension. Once compressed,
246 you only need the respective .cmp files.
247
248 Note: There is no compression support yet for the following
249 versions:
250 - The Mac CD Guild version of Inherit the Earth (uses MacBinary
251 *.bin files).
252 - The unsupported early DOS demo of Inherit the Earth.
253
254 compress_sci
255 Used to compress Sierra resource.aud/.sfx and AUDIO001.002
256 audio files with MP3, Vorbis or FLAC. This tool is NOT
257 compatible with the newer SCI32 games yet.
258
259 Example of usage:
260 ./scummvm-tools-cli --tool compress_sci [mode params] [-o outputfile] <infile>
261
262 The name of the output file is required. Use a temporary name,
263 and after the tool finishes compressing it, replace the original
264 uncompressed file with the compressed one. So, if for example
265 your original audio resource file is resource.aud, you can use
266 a temporary name like resource.tmp. Then, move the original
267 resource.aud file elsewhere and rename resource.tmp to
268 resource.aud.
269
270 compress_scumm_bun
271 Used to compress '.bun' music/voice files with MP3, Vorbis
272 or FLAC.
273
274 Example of usage:
275 ./scummvm-tools-cli --tool compress_scumm_bun [mode params] [-o outputfile] <infile>
276
277 Default outputfile is inputfile with the extension ".bun".
278
279 Note: For "The Curse of Monkey Island", FLAC compression will
280 produce larger files than in the original game.
281
282 compress_scumm_san
283 Compresses '.san' smush animation files. It uses lossless
284 zlib for compressing FOBJ gfx chunks inside a san file.
285 It can also create a separate Ogg file with the audio track.
286
287 Example of usage:
288 ./scummvm-tools-cli --tool compress_scumm_san [mode params] [-o outputfile] <infile>
289
290 Default output is inputfile with the extension ".san".
291
292 In order to use such compressed files, your ScummVM binary
293 must have been built with zlib support enabled (you can find
294 out whether that's the case by looking at the About dialog).
295 For the Ogg or MP3 compression feature, your ScummVM binary
296 naturally must have been built with Ogg or MP3 support enabled.
297
298 NOTE: For some '.san' files there is a corresponding '.flu'
299 file, which contains offsets into the '.san' file. Hence, the
300 compress_scumm_san has to modify the '.flu' file. This happens
301 automatically, if the '.san' and '.flu' files are in the
302 same directory (which is normally the case). If you want to
303 move the '.san' files before compressing them, make sure to
304 move the '.flu' files, too!
305
306 compress_scumm_sou
307 Used to compress .sou files to .so3 (MP3), .sog (Vorbis),
308 or .sof (FLAC).
309
310 Example of usage:
311 ./scummvm-tools-cli --tool compress_scumm_sou [mode params] [-o outpufile] <infile>
312 ./scummvm-tools-cli --mp3 MONSTER.SOU
313
314 Default output file is inputfile with changed extensions,
315 depending on the compression method used.
316
317 compress_sword1
318 Used to compress Broken Sword 1's music and speech .clu files
319 to .cl3 (MP3), .clg (Vorbis) or .clf (FLAC).
320
321 Example of usage:
322 ./scummvm-tools-cli --tool compress_sword1 --vorbis -q 7 BS1/swordres.rif
323
324 NOTE: Only the PC and Mac versions are currently supported.
325 The PSX version is not supported by this tool.
326
327 compress_sword2
328 Used to compress Broken Sword 2's music and speech .clu
329 files to .cl3 (MP3), .clg (Vorbis) or .clf (FLAC).
330
331 Example of usage:
332 ./scummvm-tools-cli --tool compress_sword2 [params] <file>
333
334 NOTE: FLAC compression will produce larger files than the original!
335 This is because the original files already use lossy compression.
336
337 compress_tinsel
338 Used to compress tinsel .smp files.
339
340 The corresponding .idx file must be part of the command.
341
342 Example of usage:
343 ./scummvm-tools-cli --tool compress_tinsel [mode_params] [-o outputfile] <infile.smp> <infile.idx>
344 ./scummvm-tools-cli --tool compress_tinsel --vorbis -q 9 ENGLISH.SMP ENGLISH.IDX
345
346 compress_touche
347 Used to compress and pack Touche speech files ('Vxxx' and
348 'OBJ') to MP3, Vorbis or FLAC to a single file named
349 TOUCHE.SO3 (MP3), TOUCHE.SOG (Vorbis) or TOUCHE.SOF (FLAC).
350
351 Once compressed, only TOUCHE.DAT and TOUCHE.SOx files are
352 required to play the game under ScummVM.
353
354 Example of usage:
355 ./scummvm-tools-cli --tool compress_touche [mode params] [-o outputfile] <inputdir>
356
357 NOTE: Default outputfile is TOUCHE.* (depending on the compression method).
358 Files in the input folder should be uppercase.
359
360 compress_tucker
361 Used to compress sound and speech files from AUDIO/FX/MUSIC/SPEECH
362 directories to a single file named TUCKER.SO3 (MP3), TUCKER.SOG
363 (Vorbis) or TUCKER.SOF (FLAC).
364
365 Once compressed, the four directories are not required to play
366 the game under ScummVM anymore.
367
368 Example of usage:
369 ./scummvm-tools-cli --tool compress_tucker [mode params] [-o outputfile] <inputdir>
370
371 NOTE: Default outputfile is TUCKER.SOx (depending on the compression method).
372 Files in the input folder should be uppercase.
373
374 Script Tools:
375 decine
376 Decompiles Delphine's Cinematique engine's scripts.
377 Should work at least with Future Wars and Operation Stealth.
378
379 Example of usage:
380 decine [type] [version] [filename]
381 type: -prc or -rel (Use -prc for *.prc-files, -rel for *.rel-files)
382 version: -v1 or -v2 (Use -v1 for Future Wars, -v2 for Operation Stealth)
383 filename: The name of the script file to decode.
384
385 degob
386 Decompiles TOT scripts used in Coktel Vision games.
387
388 Example of usage:
389 degob <version> <file.tot> [<file.ext>] [<commun.ext>]
390
391 "<version>" describes from which game the script file
392 was taken and is one of "Gob1", "Gob2", "Gob3", "Ween",
393 "Bargon", "Fascination, "Lost", "Woodruff", "Dynasty"
394 and "Urban".
395
396 If the script file calls loadMult(), the script file's
397 EXT file must be supplied on the command line as well;
398 some script files also require a commun.ext. degob throws
399 an error to let you know if any of the two should be the
400 case.
401
402 dekyra
403 Basic script disassembler for Legend of Kyrandia games.
404
405 descumm
406 Decompiles SCUMM scripts.
407
408 desword2
409 Disassembles Broken Sword II scripts.
410
411
412 Encoder Tools:
413 encode_dxa [params] <file>
414
415 Creates DXA file out of extracted Smacker video.
416
417 To extract a video use RAD Game Tools and perform 2 passes
418 on it. For example, if your video is called 'intro.smk':
419
420 1. Extract the video to PNG, 256 colors (choose PNG format
421 and tick the checkbox). It will create a bunch of files named
422 'introXXX.png', where XXX is frame number. Make sure you have
423 extracted 256 colors PNGs, otherwise encode_dxa will complain.
424
425 2. Extract the audio to WAV format, you will get an
426 'intro.wav' file.
427
428 3. Put files 'intro.smk', 'intro.wav' and 'intro*.png' into a
429 single directory.
430
431 4. Run `encode_dxa intro.smk` in that directory.
432
433 5. You will get an intro.dxa file and intro.flac/mp3/ogg file
434 in result.
435
436 Additionally you may use the batch processing mode of SMK files
437 in RAD Game Tools. Just select more than one file and push the
438 'Convert' button. It will ask you either you want them
439 processed in batch mode and will do this for you. All buttons
440 and conversion options work the same.
441
442 convert_dxa.bat
443
444 To ease your life we also provide batch files to autoconvert
445 all files. It should work with any game version.
446
447 1. Copy *.smk files from all CDs to some directory.
448
449 2. Edit paths in convert_dxa.bat file.
450
451 3. Run the batch. If you set everything correct, it will be
452 an almost unattended conversion.
453 Just for several files which don't have audio, RAD Game Tools
454 converter will ask you to press OK.
455
456 convert_dxa.sh
457
458 Same as the above convert_dxa.bat, just for *nix-based systems.
459 It uses FFmpeg to extract Smacker videos.
460
461 Other Tools:
462 extract_loom_tg16.sh
463 UNIX shell script used to extract the game data and audio from
464 the PC-Engine Loom CD.
465
466 It uses cdrdao, bchunk and - optionally - flac to extract the
467 data needed for the final extraction by scumm-tools-cli. Use
468 The --help parameter for a list of options.
469
470 pack_bladerunner
471 Used to combine Blade Runner CDFRAMES.DAT files into HDFRAMES.DAT.
472
473 1. Copy CDFRAMES.DAT files from CDs 1-4 to the same directory
474 but name them CDFRAMES1.DAT - CDFRAMES4.DAT respectively.
475
476 2. Run the tool:
477 ./scummvm-tools-cli --tool pack_bladerunner [-o outputfile] <inputdir>/CDFRAMES1.DAT
478
479 3. Copy the resulting HDFRAMES.DAT file to the game directory.