Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing the existing compilation process with Babel #172

Merged
merged 4 commits into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ 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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "src/game-server.ts",
"scripts": {
"start": "concurrently \"npm run build:watch\" \"node --max-old-space-size=4096 dist/main.js\"",
"start:server": "concurrently \"npm run build\" \"node --max-old-space-size=4096 dist/main.js\"",
"lint": "tslint --project tsconfig.json",
"fake-players": "concurrently \"npm run build:watch\" \"node --max-old-space-size=4096 dist/main.js -fakePlayers\"",
"fake-players-tick": "concurrently \"npm run build:watch\" \"node --max-old-space-size=4096 dist/main.js -fakePlayers -tickTime\"",
Expand Down
7 changes: 7 additions & 0 deletions src/game-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,17 @@ export function runGameServer(): void {
});
generateCrcTable();

delete cache.dataChannel;
delete cache.metaChannel;
delete cache.indexChannels;
delete cache.indices;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeet


world = new World();
injectPlugins().then(() => {
world.init();

delete cache.mapData;

if(process.argv.indexOf('-fakePlayers') !== -1) {
world.generateFakePlayers();
}
Expand Down
2 changes: 1 addition & 1 deletion src/world/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export class World {

const spawnChunk = this.chunkManager.getChunkForWorldPosition(new Position(x, y, 0));

for(let i = 0; i < 990; i++) {
for(let i = 0; i < 1500; i++) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More POWER

const player = new Player(null, null, null, i, `test${i}`, 'abs', true);
this.registerPlayer(player);
player.activeWidget = null;
Expand Down