For a small reference to changing the Free Pascal console IDE's color scheme, see here.
Ultima IX widescreen hack tool
Origin/EA's Ultima: Ascension was a very shiny 3D game in 1999. It's still not half bad, but there are some technical issues that need fixing. One of those is how parts of the interface grow out of proportion when you play in a widescreen resolution.
This little tool will edit the game executable and save games to apply a new default field of view, which the game otherwise wouldn't let you change as freely. A wider field of view makes more of the game world visible at once, and in U9 also makes some interface elements a different size.
In the above screenshots (click to view in full size!) you can see the same scene with three different FOV settings. From the top: 60 degrees, 90 degrees and 120 degrees. The game's default is 60, and you can see 120 already has significant lens distortion. Values much over 90 degrees may cause the game to grow increasingly unstable, as well - the renderer just can't keep up.
After using this tool to set a new default FOV, note that you can still use the in-game camera controls (Ctrl-Home and Ctrl-End to zoom in and out, Ctrl-Pageup and Ctrl-Pagedown to change the FOV) to make sure the camera is at a comfortable distance from your Avatar, while still benefiting from the properly-sized interface.
Download the tool here. (86kb)
The zip file contains the win32 executable, and the source code for Free Pascal.
Special thanks to the good people at the WSGF for the original hack, to WTF Dragon at the Ultima Codex for connecting people, to Sergorn for quality assurance, and to Iceblade of the premier U9 mod Forgotten World for clever allied reverse-engineering.
Vampire Hunter Girl
This is an engine demo for an interactive fiction game. You know, LOOK AROUND, OPEN DOOR, GET LAMP, PET VAMPIRE, EXPLODE CASTLE...
The full story would tell about the attempt of a young but determined girl to capture this reward. Armed with religious artifacts, sticks of wood, garlic, a refreshing drink, stylish clothing, and a handy handguide for beginning monster hunters, she is ready for some serious vampire bashing.
This particular version has 7 rooms to explore and over 60 mobjects to interact with. See if you can find the little brown imp who was traumatised by a previous vampire hunter. There's no real goal written in, but the game events and objects are all in easily editable text files.
You can change configuration options by editing the VAMPGIRL.INI file. Once in-game, type "HELP" for basic adventuring advice.
Simple is beautiful.
What does it do?
- Manages output into an ASCII console or tile-based graphical window
- The window size is somewhat freely changeable at startup
- Windowed and fullscreen modes
- Allows output through individual, logical viewports
- Uses lightness in addition to character and background color
- Loads and scales BMP images, with ASCII rendering capability
- Keyboard input reading, basic mouse input
- Rolls random numbers with a mediocre algorithm
Although I made this long ago, MoonVideo still compiles fine with Free Pascal 3.0.2, for win32. It is useful for making something like console applications but with a little extra kick, such as roguelikes, interactive fiction, or other games focusing on feature content over eye candy.
Need a quick hack to read data from MS Excel sheets? I did. The hack was not quick.
This program can read files saved by Excels 97, 2000, XP and 2003 with some success. It mostly skips formatting, and does no formula computations or even direct references to external files – it does, however, use the cached results of formulas and external references that Excel stores. To demonstrate its prowess, Excelsior can dump a loaded workbook's sheet data into very basic RTF-files.
The user interface is non-existent, but the code should be easily extendable and comes with some debug features. It used to compile fine with Free Pascal 2.2.0 and is freely usable for whatever you like, as far as I am concerned. OpenOffice.Org's commendable documentation efforts of the file format were heavily used in getting Excelsior to work.
Who needs physical instrument modeling when you've got tried and true FM?
MoonSynth is a Win32 program that plays midi files or direct input from your non-musical keyboard. Instruments are synthesized using frequency modulation and to some degree amplitude modulation, although that requires a bit more work. Polyphony has a soft 32-channel limit, but could easily be increased. The user interface is crude and console-based, accepting only keyboard commands, but it's good enough for now.
If you've got anything close to a modern computer with Windows on it, this probably works without trouble. I've tested MoonSynth on 95, 98 and XP, and encountered no problems. Sound is played through DirectSound, so you'll need at least DirectX5 or maybe 7 to be installed. The program isn't properly optimised, but doesn't seem to require much processor power anyway.
Just download and run MOONSYN.EXE to start. If no errors occur, you'll be presented with the text-based interface. Play some sounds by pressing letters and numbers. Kill all playing sounds by pressing space. Type a question mark to load a midi file. Hit the asterisk * to play and stop, and use ESC to quit. However, be warned: all midi instruments use very simple settings so don't expect anything even approximating real instruments. Also, percussion is not implemented in this version.
The old source doesn't even compile anymore, but the binary should still work fine. In the future, I will definitely return to this project, since I'll be needing a sound system for my games and I still love FM as much as ever.
Unlike MoonSynth, MoonTracker is a 32-bit protected mode DOS-based module tracker and player that I wrote as a teenager; you can compose and play music with it. To run it on a modern system, you probably want to use DosBox.
It doesn't support any other module formats than MoonTracker's own, since there are so many better players out there. This is not much more than a curiosity, unless you're interested in figuring something out from the source code for a tracker project of your own.
The distinguishing feature of MoonTracker is being a dynamic player. You may remember that LucasArts used a dynamic SysEx-based MIDI music system in some of the best adventure games ever made, including Lechuck's Revenge and Fate of Atlantis. MoonTracker allows similar music manipulation, only with module-based music rather than midi.
- 8-bit mixing routine
- 16-bit mixing routine in assembly
- Optional unfiltered Echo to output stream
- Volume ramping, removes most clicks from sound
- Stereo and Mono output, complete with surround panning
- Support for 8- and 16-bit samples
- Lossless sample packing when saving, usually to about 50-75% of original
- Samples can be saved in external libraries for use by more than one module
- User customizable colors!
- Multiple obscure bugs, probably
Included in the archive are MoonPlayer for playing MoonSoundModules and MakeMSX, a utility to pack several MSM's into one file.
Before you start the program, scan through the configuration file and adjust the settings (mainly IRQ+DMA) to work on your computer. Hit F1 for a help screen if you've never used a tracker before. Any IT users should be right at home, except there's no mouse support.