Linux engine for Interplays Lord of the Rings
The Lord of the Rings game engine which plays famous Interplays game The Lord of the Rings, by many regarded as the best Middle-Earth game ever. It is an old-fashioned RPG game which keeps close to the plot of Fellowship of the Ring but have many good side-quests.
License: free
Requirements: Original Interplays Lord of the Rings game data.
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | no | yes |
- Lord of the Rings engine home page
- Download Lord of the Rings engine
- Demo data and RH9 binary
- Demo data and Debian Lenny amd64 binary
Submitted by Daeglin on 2003-07-16.

Sorry i destroyed all 286 Games for many years. *g*
Sorry for that sarkasm, but the word engine is more then a joke.
-Erwos
.b
Nice hack, guys!
#include "SDL.h"
near the top of lord.c in order to make it compile properly on Mac OS X.
I looked at the debug listings for some of the spots in the game, such as the Hobbiton Mill (spot 0x14):
USE: 03
-- 05, 00 (silver pennies), ff (anybody): goto 04ba
-- 05, 01 (Illuminate), ff (anybody): goto 04ba
-- 05, 03 (Firefinger), ff (anybody): goto 04ba
This does not seem to be quite right. After all, you cannot 'use' silver pennies at all, and spells have no effect here (in the original game). I don't know though if the engine misinterprets game data or if it's simply printing the wrong information.
Instead of 'USE:', I would write something like 'SCOPE:', since it refers to the number of user options available (including attacking, moving, or doing nothing at all) -- not just to using stuff. In the original game, when you leave a spot the 'scope' is set to 0, but the commands themselves are not cleared from memory. So, if the next spot you enter has two commands, two of the old commands are overwritten but the third one stays in memory. The original game uses the 'scope' to tell what commands in the list are actually valid at the current spot.
05 is "move", followed by a direction. So I would parse the data above as:
SCOPE: 03
-- 05 (move), 00 (north), ff (anybody): goto 04ba
-- 05 (move), 01 (east), ff (anybody): goto 04ba
-- 05 (move), 03 (west), ff (anybody): goto 04ba
This corresponds to what actually happens at this spot in the game.
As for Illuminate, it would be "03 (magic), 01 (Illuminate)":
00 -- object (00, a7 = use Bag End Key)
01 -- skill (01, 4e = 'sneak' skill)
02 -- ?
03 -- magic (03, 01 = 'Illuminate' spell)
04 -- ?
05 -- move (05, 00 = move north)
06 -- wait/ do nothing (sets a timer)
07 -- trade (07, a7, b0 = trade Bag End Key to Lobelia)
08 -- attack (if you attack Ted and Lotho, human guards appear)
09 -- ... I forget. "If object present"?
0a -- talk (if you ask Willa about 'magic' she attacks you)
I don't know if the engine needs revising to account for this but it looks to me as if some of the spots do not work the way they should. In the Green Hills, for example, the Black Rider should attack you if you hit 'his' spot from the west (moving east). If you hit the spot from any other direction, the Elves appear. Just thought I'd mention this. /Fredrik
This is right. The debug (cheat :) prints are quite confusing. One day I'll implement better ones. I have already renamed the USE command to ACTION what makes better sense.
The ingame scripts are interpreted correctly (up to very few inacurances). I do not see the problem with Black rider in Green Hills, he really appears (at least in my version of the game data).
Thanks for 'ACTIONS', it's better than my suggestion.
By the way, there is a spot south of the rider where a message is triggered: it says something like "you hear heavy hoofbeats" (at night only). The message is reused (for some strange reason) in a spot in the NW corner of the Shire map, north of Daddy Twofoot's place (at night only). In the CD version you get to see a movie instead, at both occurrences (it's quite out of place north of The Hill!). Does the spot in the northwest corner work correctly with the engine? Nothing seemed to happen by the tree, and there's a spot among the trees that you can't reach. (But then again I've been wrong before ... :)
Tha game is written with portability on mind. I know it has been compiled on Linux, Mac OS X and Solaris. I suppose it should compile on any UNIX-like system supported by SDL.
I do not think it would be complicated to compile the game for Windows but I can not try it. Nevertheless, I welcome patches/binaries for Windows.
It's located here: http://sourceforge.net/projects/qlordres
To compile it, you will need Qt4 (sorry).
The data decompression and the format handling is massively based on this engine.
Also, I've made a port from the older 0.6.1 version to Allegro (so it works under DOS, like the original game :) ), if someone is interested, I may upload it.
Thanks,
rabyte
Yes and no. Currently, I'm not developing it further. FOTR is fully playable and more or less complete. I might be interested in reviving this project if somebody is willing to add new content to this game. There is already some support for python scripting.
Please use my e-mail if you have further questions.
Please, do not use this forum for support, It unnecessary clutters them with lenghty logs. E-mail would work too. You are probably missing SDL_mixer, installing package libsdl-mixer1.2-dev should fix your problem.
The dependencies are now documented in HEAD. One day, I will setup autoconf stuff for the project.