From: Alex Young Date: 2007-11-16T22:01:29+09:00 Subject: Re: Beginner needs help... Caesar Salad wrote: >> What's the platform? Windows? I suspect the answer's no, but there may >> be hooks to do this that I don't know about. > Yes, the platform is Windows XP, but I intend to make it available to > Linux as well. I'm working on an add-on for Age of Empires 2 that > enables the player to choose a modpack before starting the game. Is offering a separate interface that launches the executable with the relevant modpack in place not an option? >>> 2) Can I make Ruby read *.dat files and convert them into *.txt? > The file is empires2_x1.dat, the data file from Age of Empires 2: > Conquerors Expansion. There's a program that does that already (for > modpack production), but it works quite slowly (30 minutes to produce a > modded data file from an edited txt). If you can see the source to that program, it's probably worth taking a look to see what the file format is. To implement a reader in Ruby, take a look at the bitstruct library - it's probably got everything you'll need. -- Alex