Skip to content

Implementing the new filestore http server to speed up load times #3

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ A browser-based game client written with TypeScript, React, and ThreeJS.

This project is very much an early work-in-progress and is not able to be used to log into the game at this time. Please use the existing [Java Game Client](https://github.com/runejs/refactored-client-435) to log into the [RuneJS game server](https://github.com/runejs/server).

Running the webclient requires the filestore HTTP server to first be running. Checkout the [`kiko/http` branch of the filestore repository](https://github.com/runejs/filestore/tree/kiko/http) and run the command `npm run http` to load the game cache HTTP server. A valid RuneJS JS5 game cache must be placed within the `packed/` folder of the filestore project to use the HTTP server, like so:

![JS5 packed directory example](https://i.imgur.com/53dLQDa.png)
Running the webclient requires the filestore HTTP server to first be running with a valid filestore index.
Checkout the [`kiko/file-system` branch of the filestore repository](https://github.com/runejs/filestore/tree/kiko/file-system) and run the command `npm run index -- --build 435` to index the 435 game cache, then run `npm run http:js5` to load the game cache HTTP server.
Copy link
Collaborator

Choose a reason for hiding this comment

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

😍

25 changes: 12 additions & 13 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const webpack = require('webpack');
const webpack = require('webpack');

module.exports = function override (config, env) {
console.log('override');
let loaders = config.resolve;
loaders.fallback = {
"fs": false,
Expand All @@ -10,20 +9,20 @@ module.exports = function override (config, env) {
"https": false,
"zlib": require.resolve("browserify-zlib") ,
"path": require.resolve("path-browserify"),
"process": require.resolve("process/browser"),
"stream": require.resolve("stream-browserify"),
"util": require.resolve("util/"),
"crypto": false,
"constants": false,
"process": false
"constants": false
};

config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer']
})
])

config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser',
})
]);

return config;
}
};
Loading