Skip to content
maexahPublic
forked from OpenTPW/OpenTPW

About

An open-source re-implementation of Bullfrog's Sim Theme Park / Theme Park World (1999)

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

OpenTPW

An open-source re-implementation of Sim Theme Park / Theme Park World.

OpenTPW · File Formats · Website

The lobby looking out on Halloween World: the park gates and their name board, the tree with the carved face, a bolt of lightning over the island, and the advisor on screen

What this is

OpenTPW re-implements the engine of Theme Park World (1999) so it runs on modern computers. It reads the data files from your own copy of the game - models, textures, sounds, fonts and saves - and draws them with Vulkan.

You need your own copy of the original game. This repository ships no game content.

Can I play it yet?

Not yet. OpenTPW is a work in progress. What works today:

  • The lobby works. The four islands, the front end, the advisor, weather, the options screen and your saved players.
  • Lost Kingdom runs. Instant Action starts the park the game ships, already built. Full Simulation starts it as an empty park. Guests arrive, queue, ride and buy things. Most of its rides, shops and sideshows run.
  • You can build and manage. Buy, sell and move rides, lay paths and queues, hire, train and place staff, set the entry price and research new rides.
  • Saving works. Save, Load, Restart Park and the quicksave keys. A Full Simulation park started empty is saved too. Not saved yet: coasters bought in a park, and the pieces of a kart or water ride's track as models (a bought kart or water ride is saved, with its track).
  • Not built yet: loans, and the screen a park ends on (six months in the red ends the park, with no end screen yet). The other three islands are not worked on yet.

docs/STATUS.md lists everything that works and everything that does not.

To play the original game on Linux, tools/play-the-original sets it up with Proton. You need your own disc and your own no-CD .exe.

Which version of the game?

OpenTPW is tested only with the American release, Sim Theme Park. Theme Park World, the release sold elsewhere, uses the same engine and data and should work, but is untested. If you try it, please report how it goes.

Download

Experimental test builds for Windows, Linux and macOS are published as pre-releases on the Releases page. Each zip holds a README that says how to start it. The macOS builds are untested. You still need your own copy of the game.

The game contacts GitHub once as it starts. A weekly build asks api.github.com (no account, no token) whether a newer weekly build has been released; if one has, the lobby and the Escape menu say Update available above the build's name, and clicking the words opens that release's page in your browser. Nothing is downloaded or installed, and a build that is not a weekly one (a local build, one you made yourself) makes no request. A failed check is one line in console.log and nothing else (on Linux the check needs OpenSSL, libssl; where none is installed it is not made). To turn the request off, put the line updatecheck off in opentpw.cfg in the save folder. This is OpenTPW's own: the original has no such thing.

Build it yourself

Wanting to change something? CONTRIBUTING.md has a quick start for Linux, macOS and Windows, and says what needs the game and what does not.

  1. Install the .NET 10 SDK.
  2. Copy your game disc to a folder - see Getting the game's files.
  3. Build and run:
dotnet build source/OpenTPW.sln
dotnet source/OpenTPW/bin/Debug/net10.0/OpenTPW.dll --game "/path/to/Sim Theme Park"

The build includes every library OpenTPW needs. You may also need a Vulkan driver. On Windows and macOS your graphics driver already provides it. On Linux, install your distribution's Vulkan loader (libvulkan1, vulkan-loader or vulkan-icd-loader, depending on the distribution) and Mesa or your GPU vendor's driver.

Getting the game's files

  1. Put the game disc in your computer. If you have a disc image (an .iso file), double-click it instead.
  2. Open the disc in your file manager, the same way you open any folder.
  3. Copy everything on it into a new folder, for example Sim Theme Park in your Documents.
  4. Start OpenTPW and give it that folder, as in Build it yourself. Put the folder's name in quotes.

If OpenTPW says the file names "have been cut short", the copy went wrong. Delete the folder and copy the disc again by dragging the files in your file manager.

If OpenTPW says a folder does not hold Theme Park World, or that there is no such folder, check the folder you gave it. If you gave none and it says the game was not found, it lists every folder it looked in.

For technical users

File names. A CD holds two sets of file names. The short set is uppercase and cut to eight letters (CHALLE~0.SAM instead of Challenges.sam), and the game cannot use it. Mount the disc and copy from the mount, or use a tool that keeps the long (Joliet) names.

Where OpenTPW looks. A folder counts as the game when it has a data folder with levels inside it, in any capitalisation. OpenTPW tries, in order: --game on the command line, OPENTPW_GAME_PATH, the GamePath setting if you have changed it, the folder the build sits in, the working directory, and then, on Windows, the folder the game's uninstall entry in the registry names (Theme Park World or SimTheme Park), the original's default C:\Program Files (x86)\Bullfrog\Theme Park World and Sim Theme Park's C:\Program Files (x86)\SimTheme Park. It does not search parent folders.

Saves go to save/ beside the game's data, where the original keeps them, so the original and OpenTPW share options and players.

If save/ cannot be written (a game installed under Program Files that your account may not change), OpenTPW keeps its saves in save in your own data folder instead (%AppData%\OpenTPW\save on Windows, ~/.local/share/OpenTPW/save on Linux, ~/Library/Application Support/OpenTPW/save on macOS) and plays as usual; console.log says which folder it chose. This is a deviation from the original, which would keep them in the game's folder. The test is a file really made there, so a folder you can write is kept. A save/ that already holds players but cannot be written is read by nothing: the players in it are not copied (Q902 is open), and the game says so once on screen (YOUR GAME SAVES IN A NEW FOLDER, no folder in the box; the log names both). The other way round, a save/ that can be written is kept, and where your own data folder still holds players from an earlier fallback, the game says so once on screen (CAN'T SEE YOUR PLAYERS?): they are safe, not read and not copied. Each box is shown once and remembered by a told line in opentpw.cfg in the save folder the game uses (save/, or save in your own data folder where it moved); delete the line to see the box again. Where that file cannot be written either, the box comes at every start. Where that folder exists but cannot be written either, the game still runs and says on screen when a save, the options or a player is lost: a box reading PARK NOT SAVED, OPTIONS NOT SAVED or PLAYER NOT SAVED (the log, console.log, names the folder). Where it cannot be made at all, OpenTPW stops and a box says why.

Controls

Key Does
Escape Game menu - or, in a park, first let go of what you are holding, or leave the ground view
Ctrl+H Show or hide the help bar
F2 Hide the interface
X Freeze the lobby camera
[ ] Move between islands
W A S D Move the park camera
← → Turn the park camera
Mouse wheel Zoom the park camera
C In a park: walk on the ground and look around, and back again
B / H Buy screen / hire screen
O / E / V All rides and shops / all staff / all visitors
Space Park map
Ctrl+S / Ctrl+V Find a member of staff / find a visitor
Alt+S / Alt+L Quicksave / quickload

O and E differ from the original game, which uses A and S: here those move the camera.

Platforms

Platform Builds Runs
Linux x64 ✅ ✅ Developed and tested here
Linux arm64 ✅ ❔ Never run
Windows x64 ✅ ✅ Tested 2026-10-31 (Windows 11)
Windows arm64 ✅ ❔ Not run
macOS Intel, Apple Silicon ✅ ❔ Never run

Every platform draws with Vulkan; on macOS through MoltenVK, which ships with the build. Linux x64 and Windows x64 are tested. Bug reports from other platforms are very welcome.

Two graphics cards (a built-in GPU and a graphics card). OpenTPW lists the Vulkan devices in console.log (the Graphics card: lines) and draws with a discrete card in preference to a built-in one; the GPU: line names the one in use. To choose another, put a line in opentpw.cfg in the save folder in use (save/, or the fallback under Saves): gpu GTX 1650 (the first card whose name holds that text), gpu #1 (the second card of the logged list) or gpu auto (the default). The Options screen's Video Card row is the original's own Primary or Secondary: Primary is the card above, Secondary the next one (offered only where there is more than one card), and it is drawn on from the next start. gpu names a card exactly and wins over the row; that line is OpenTPW's own. On macOS the card is not chosen: MoltenVK's own is used, and the gpu line and the row do nothing. Two cards of one maker (an AMD built-in GPU beside a Radeon, an Intel one beside an Arc) cannot be told apart on Windows: the log warns and the first device is drawn on.

VSync and a frame limit. Each frame waits for the display's refresh (VSync), as it always has, and the frame rate is capped at the monitor's refresh rate, which the first launch reads and opentpw.cfg keeps. To change either, edit opentpw.cfg in the save folder in use: vsync off, and framelimit 30 (any number from 30 up) or framelimit unlimited. console.log names the settings as the game starts (Frames:) and the frame time it measured over the first five seconds. The Options screen has no row for them yet. This is OpenTPW's own: the original has no such settings.

Linux on Wayland

The SDL that ships with OpenTPW has no Wayland backend, so it runs through XWayland. Scaling and input then differ a little, and without XWayland it does not start. To use your distribution's SDL2 instead:

OPENTPW_SYSTEM_SDL=1 dotnet source/OpenTPW/bin/Debug/net10.0/OpenTPW.dll --game "/path/to/Sim Theme Park"

Troubleshooting

"Theme Park World was not found", or "does not hold Theme Park World". Check the folder you gave OpenTPW - see Getting the game's files.

"its names have been cut short." The disc was copied without its long file names. Copy it again - see Getting the game's files.

It stops before a window appears, saying it could not load a native library. Install your distribution's Vulkan loader and your GPU's driver.

On Wayland the window scales oddly, or SDL says "No available video device". Install XWayland, or see Linux on Wayland.

No sound. Not fatal - OpenTPW warns and carries on.

A start that fails. When OpenTPW cannot find the game, a message box says where it looked and how to put it right. If something else goes wrong before the game's main loop begins, the box names the error. Either box says where the log is, and OpenTPW then exits. With no display there is no box, only the log and the terminal. The original had no such box (a deviation). Started from a terminal, the same lines are printed there too. The Windows download opens no terminal window of its own. If an error stops the game once it is running, a box titled "OpenTPW stopped" names it and says where the log is, and OpenTPW exits; the sound stops first. Nothing is saved as it stops (not the park, not the player), so a half-changed park is never written over a good save: your last save is kept as it was. An error while the game is closing, as it saves the park and then the player, says either may not have been saved. This is OpenTPW's own too.

Reporting a problem. Every start writes console.log in the game's folder, beside save. If the game's folder cannot be written, or OpenTPW cannot find the game, it is in your own data folder instead (%AppData%\OpenTPW on Windows, ~/.local/share/OpenTPW on Linux, ~/Library/Application Support/OpenTPW on macOS). It names the build, your system and your graphics card. The start before is kept beside it as console-prev.log. Your home folder is written as ~ in it, but read it before you attach it to a public page. Open an issue and attach it.

For developers

dotnet build source/OpenTPW.sln
dotnet test source/OpenTPW.sln

Most tests read the real game files and skip when the game is not found; set OPENTPW_GAME_PATH to run them all. That variable is the only place the tests look: never your working directory, the build's folder or, on Windows, an install the registry names, so a run on a PC with the game installed does not touch your copy.

Launch options and the debug console

Launch options

Option Does
--game <folder> Use the game in this folder. --game=<folder> also works.
OPENTPW_GAME_PATH=<folder> The same, as an environment variable.
OPENTPW_SYSTEM_SDL=1 Use your system's SDL2 instead of the one in the build.
OPENTPW_DEBUG_CONSOLE=1 Turn on the debug console.
OPENTPW_LOG_DIR=<folder> Write console.log there instead of the game's folder.
OPENTPW_NO_MESSAGE_BOX=1 Do not show the message box of a failed start (a script that fails a start on purpose).
OPENTPW_PROFILE=1 Log the frame time, frames a second and memory use every 120 frames.
OPENTPW_TEXT_CENSUS=1 Log every piece of interface text with its drawn size and box.
OPENTPW_SHADER_WATCH=1 or =0 Compile a shader again when its file changes on disk (1) or never (0). Unset, a Debug build does and a Release build does not.

Opening the debug console. Start OpenTPW from a terminal with OPENTPW_DEBUG_CONSOLE=1 set, then type commands into that terminal and press Enter. Every reply starts with [dbg].

OPENTPW_DEBUG_CONSOLE=1 dotnet source/OpenTPW/bin/Debug/net10.0/OpenTPW.dll --game "/path/to/Sim Theme Park"

On Windows, run set OPENTPW_DEBUG_CONSOLE=1 first, then start OpenTPW in the same window. The debug console reads its commands from the console of a Debug build (dotnet build); the Release build, which the Windows download is, has no console window of its own.

Commands. Most take numbers after the name, for example island 2 or step 10. Many work only in a park.

For Commands
Going places lobby, island, enter, park, reload, savepark, quit
Time pause, resume, step, clock, sweeps
Lobby camera and weather orbit, freeze, unfreeze, attract, aim, settle, near, rain, weather, strike, bolt, flags
Park camera and drawing camera, camcorder, facing, walk, keys, fog, sea, shadows, sprites, meshes, circle, cut
Sound and the advisor volume, mute, sound, voices, place, speech, advisor, greet, duck, music, crowd, bus, placed, parkcue, scriptsounds, sayas, advisorgame, tutorial
Reading the park guests, peeps, staff, candidates, rides, vehicles, paths, arrivals, objects, catalogue, money, loans, budgets, research, tickets, outlets, happiness, rings, spend, why, cell, ground, drawn, scriptvar, bumpers, gate, boundary, hoardings, strikes, effects, emitters, particles, endfeature, thingids, track, pylons, rim, scripts, built
Changing guests arrive, admit, send, load, depart, happy, cash, thirst, balloon, toilet, need, pin
Building and staff buy, put, sell, move, path, delpath, queue, delqueue, hire, fire, pickup, putstaff, carry, carrystaff, drop, hand, strip, tool, staffrest, forcestrike
Mouse, keys and windows pick, pickray, click, rightclick, rmbcancel, worldclick, hover, pointer, backspace, stall, menu, buyscreen, hirescreen, researchscreen, openthing, shopwindow, staffwindow, visitorwindow, screen, windows, control, state, footprint, buymoney, preview, map, locator, tags, helpbar
Measuring stats, assets, parks, huds, water, size, strings, thingfill, mem, unimplemented, throw (ends the run on an error, as a failure would)

Each command's arguments are in DebugConsole.cs, one case per command. Add a new command to this table.

File format support

❌ Not implemented    ⚠️ Partially implemented    ✅ Implemented

Format Status
Archives (.WAD, .SDT) ✅
Textures (.WCT) ✅
Settings (.SAM) ✅
Sounds (.SDT, .MP2) ✅
Strings (.BFMU, .BFST) ⚠️ Read; a few long strings are cut short
Fonts (.BF4) ✅
Lip sync (.LIP) ✅
Particles (.PLB, .ESP, .TPC) ✅
Machine and player saves (Config.tcf, gms.dat) ✅
Map data (.MAP) ✅
Texture tables (.TCT) ✅
Models (.MD2) ⚠️ Meshes load; some animation channel kinds are not decoded yet
Sound categories (cat_*.map) ⚠️ Decoded; a few fields are unnamed
Park signs (.SGN) ⚠️ Read and drawn; a gradient fill is drawn flat
Park saves (.TPWS) ⚠️ Read and written, Lost Kingdom only, a park started empty included; not yet coasters bought, nor the pieces of a kart's or water ride's track as models
Ride scripts (.RSE) ⚠️ Every shipped script runs; some instructions are not built yet
Materials (.MTR) ❌
Video (.TGQ) ❌

Contributing

Contributions are very welcome, from people and from people working with coding agents. CONTRIBUTING.md says how to set up, how the work is checked and how a pull request reaches main; AGENTS.md holds the project's rules, which your agent should read.

License

MIT - see LICENSE.md.

About

An open-source re-implementation of Bullfrog's Sim Theme Park / Theme Park World (1999)

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages