Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

2004Scape/Server

Repository files navigation

Lost City - May 18, 2004

Important

We are changing to LostCityRS/Server for future updates. This repo will remain up as an archive to look back on. We have moved away from a monorepo for the engine and content here.

This new structure is as follows:

1. move data/src/ to ../content, this is the new Content repo
2. rename this Server folder to engine, this is the new Engine-TS repo
3. edit src/util/Environment.ts to change data/src/ to ../content
4. make sure everything still runs

At this point you are on separate git history and can't git pull for updates, but you can copy anything manually from upstream!

Note

Learn about our history and ethos on our forum: https://lostcity.rs/t/faq-what-is-lost-city/16

Getting Started

Important

If you run into issues, please see our common issues.

  1. Download and extract this repo somewhere on your computer.
  2. Install our dependencies.
  3. Open the folder you downloaded: Run the quickstart script and follow the on-screen prompts. You may disregard any severity warnings you see.

Once your setup process has completed, wait for it to tell you the world has started before trying to play.

The server includes its own web client, so you don't have to download a client!

Dependencies

Tip

If you're using VS Code (recommended), we have an extension to install on the marketplace.

Workflow

Content developers should run npm start. The server will watch for changes to scripts and configs, then automatically repack everything.

Engine developers should run npm run dev. This does what npm start does above, but also completely restarts the server when engine code has changed.

Common Issues

  • bad option: --import

You are using an older version of Node. Reinstall and re-run.

  • '"java"' is not recognized as an internal or external command

You do not have Java installed.

  • XXXXX has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

You are using Java 8 or Java 11. If you have multiple Java versions, you will need to set JAVA_PATH=path-to-java.exe in your .env file.

License

This project is licensed under the MIT License. See the LICENSE file for details.