Return to Castle Wolfenstein - single player for AmigaOS 3.x
============================================================
A port of the Return to Castle Wolfenstein single player game to 68k
AmigaOS 3.x, based on the MorphOS port of the GPL source release. It
renders through minigl.library and was written for PiStorm3D, the
hardware MiniGL for Raspberry Pi 4 / CM4 based PiStorm systems (Emu68).
Source code, build instructions and notes:
https://github.com/Sdursun/ReturnToCastleWolfenstein_Minigl68k
About this project
------------------
The code of this port was written entirely with Claude Code, an AI coding
assistant, working together with me on real hardware: I ran every build
on my Amiga and sent back the logs, and Claude Code found the problems and
wrote the fixes. I do not normally port games; this is an experimental
project for me. I believe a good programmer can do wonderful things with
this code base and with PiStorm3D.
Status
------
Tested on AmigaOS 3.2, PiStorm with Raspberry Pi 4 (Emu68) and the
PiStorm3D minigl.library 30.0:
- Menus, levels, cutscenes, sound, keyboard, mouse and console work.
- First level, standing: 56 fps at 640x480, 50 at 800x600, 42 at
1024x768 (the default), 37 at 1280x720, 20 at 1920x1080; 31 in the
open (dam, 1024x768). Slower while moving and fighting;
r_vertexlight 1 adds about 10 fps.
- A level loaded in about 20-25 s from an FFS partition; 0.4 takes about
4 s off that. With 1 GB of RAM a RAM cache makes later loads faster.
This is a test release. Other minigl.library implementations have not
been tested.
History
-------
0.4.1 - Fixed: after a few minutes of play the player froze while the
world went on, keys and mouse stopped and the sound looped. The
game's task priority stayed at 20 and starved everything else; it
is now put back after each frame.
- Faster in open areas: dynamic lights skip vertexes they cannot
reach, sound is mixed at 22 kHz instead of 48 kHz.
- Dynamic lights: only the ones the game forces, r_dynamiclight 2
(about 3 fps more in open areas). For torches, fire and muzzle
flashes lighting the walls again: /r_dynamiclight 1 in the console.
- GL_ADD on (r_ext_texture_env_add 0 turns it off).
0.4 - Tested on hardware with minigl.library 29.3 and 30.0.
- Faster: about 41 -> 47 fps at 640x480 (newer compiler with FPU
code, a cheaper clock through Emu68, minigl.library 30.0).
- Level loading about 4 s shorter.
- 1280x720 and 1920x1080 in the menu (Options > System > Video Mode).
- Default mode 1024x768. amiga.cfg no longer sets r_mode,
r_vertexlight 1 or r_picmip 1 (lightmaps on).
- Full size textures by default (r_picmip 0): no frame rate cost
on PiStorm3D, about 1 s more loading. r_picmip 1 saves memory.
- Fixed: console text disappeared on PiStorm3D.
- Fixed: starting with +map/+devmap stopped on the logo (the intro
video was started over the level).
- Fixed: the MiniGL screen could stay open after a fatal error.
- Absolute pointer input (tablets, remote tools) moves the cursor.
- Workbench icon (64x64 GlowIcon, 32 colours, with a 4 colour
image for older Workbenches).
0.3 - Built for minigl.library 29.1 (needed; 0.1 and 0.2 need 27.x).
- New modes: r_mode 13 = 1280x720, r_mode 14 = 1920x1080.
0.2 - Fixed crackling sound (the AHI buffer was far too small with the
Paula 14-bit modes).
- Sound memory is 96 MB by default (com_soundMegs), fights play
smoother.
- RAM cache for files read from the pk3s (fs_ramcache), switched on
automatically when at least 600 MB of Fast RAM are free.
- Fixed an "Unknown command lower" message caused by amiga.cfg.
0.1 - First public test release.
Requirements
------------
- AmigaOS 3.x, 68040 or better with an FPU (Emu68 qualifies)
- RTG (Picasso96 or CyberGraphX)
- minigl.library in LIBS: (from PiStorm3D, not included)
- AHI
- About 200 MB of free Fast RAM (25 MB program, 96 MB sound, game data);
with less, start with +set com_soundMegs 24
- The game data of the PC version patched to 1.41: pak0.pk3,
sp_pak1.pk3, sp_pak2.pk3, sp_pak3.pk3. The data is NOT included in this
archive and is not freely distributable; use your own copy of the game.
Installation
------------
1. Copy the main/ directory of your PC installation to e.g.
Games:RTCW/main
2. Copy rtcw-sp and its icon rtcw-sp.info to Games:RTCW and
main/amiga.cfg from this archive to Games:RTCW/main
3. Double-click the icon on Workbench, or start it from a Shell:
cd Games:RTCW
rtcw-sp +exec amiga.cfg
To keep the settings (also when starting from Workbench), add
"exec amiga.cfg" to main/autoexec.cfg.
Notes
-----
- Console commands need a leading slash in game (/god, /cg_drawFPS 1).
Cheats need the level to be started with +devmap, e.g.
rtcw-sp +exec amiga.cfg +devmap escape1
- Use a Paula mode in AHI prefs (e.g. "Paula: HiFi 14 bit stereo++"). A
sound card through AHI costs a lot of speed on PiStorm.
- The MiniGL warning about a small stack at startup can be ignored; the
game switches to its own 2 MB stack.
- The default mode is 1024x768 (r_mode 6). 640x480 (r_mode 3) is the
fastest; lower resolutions are slower.
- Not supported: networking, stencil shadows, clip planes for mirrors
and portals, gamma control, the mouse pointer in windowed mode.
More details are in README.txt (English) and OKUBENI.txt (Turkish) in
the archive.
Credits
-------
- id Software - Return to Castle Wolfenstein and its GPL source release
- Mark Olsen and Sigbjorn Skjaeret - the MorphOS port
- Hyperion Entertainment - MiniGL
- Steffen Haeuser and the PiStorm3D contributors - PiStorm3D
- Stefan "Bebbo" Franke - the m68k-amigaos-gcc toolchain
- Sean Barrett - stb_sprintf
Licence
-------
GNU General Public License version 3 with id Software's additional terms
(COPYING.txt in the archive). This is a modified version of the Return to
Castle Wolfenstein single player GPL source code; it is not made or
endorsed by id Software or ZeniMax Media. "Return to Castle Wolfenstein"
and "Wolfenstein" are trademarks of their owners.
The complete source code is available at the address above.
|