Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"sourceMaps": true,
"presets": [
"@babel/preset-typescript",
[ "@babel/preset-env", {
"targets": {
"node": "13"
},
"modules": "commonjs"
} ]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
[ "babel-plugin-module-resolver", {
"root": [ "./src" ],
"alias": {
"@server": "./dist"
}
} ]
]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ The server runs on the 435 revision of the game, which was a game update made on
- A simplified JavaScript plugin system for quickly and easily bootstrapping game content
- Flexible quest and dialogue systems for more advanced content development

## Usage
## Setup

1. Download and install NodeJS **version 13 or higher**: https://nodejs.org/en/
2. Clone the Github Repo: https://github.com/rune-js/server
3. Install dependencies by navigating to the project in your Terminal or command prompt and running the command npm install
4. Copy the `data/config/server-config-default.yaml` and paste it into the same folder using the name `server-config.yaml`
5. Go into your new `server-config.yaml` file and modify your RSA modulus and exponent with the ones matching your game client
- You may also modify the server's port and host address from this configuration file
6. Run the game server and REST service by inputting the command npm run server
6. Run the game server and REST service by inputting the command `npm start`

The game server will spin up and be accessible via port 43594. The REST service can be accessed via port 8888.

Expand Down
Loading