Skip to content

Instantly share code, notes, and snippets.

View AlexPernot's full-sized avatar

Alex Pernot AlexPernot

View GitHub Profile
@AlexPernot
AlexPernot / MonkeyIslandSpeechInfo2Csv.js
Last active June 25, 2022 21:31
A friend of mine wanted to extract all the dialogue from the original Monkey Island into CSVs by character and language. Here's a JS script to do it, it was a fun experiment retro-engineering a 90s game localization file and working with NodeJS Buffers. Usage : put the "speech.info" file next to this script and simply run it with `node index.js`…
/**
* Reads the Monkey Island speech.info file and extract the data into several CSVs.
*/
const fs = require("fs");
// All the sound file IDs following the file order. E.g.: "GUY_32_alley_1_1". The first three letters are the actor ID.
const fileIds = [];
// All the lines following the file order
const lines = {