Hi everyone,
As I stated on this topic I have improved the Electron solution for roBrowser.
Features:
Windowed desktop application with multiple platform support
Custom client with full source control (roBrowser)
Support to parse local data files using bundled "remote client" (replaces roBrowser's PHP one) *
Bundled client X server proxy
No need for a web host to run the client
* The GRF files parse still needs to be implemented. Currently only reading unpacked files.
It may look weird to use a browser client locally, so to put it simple:
- Why would I use this instead of the regular client?
A: To have full control over the client source code
- Why would I use this instead of the default roBrowser client?
A: To avoid the need of a web host. To fix the slow loading time of the files remotely. To provide your players a standalone application.
Set-up Guide
1. Clone the repository below:
git clone https://github.com/wjrosa/roBrowser-electron
2. Create your .env file using .env.example as base (copy it, rename and put in the same folder). Do not change the remote client and proxy configurations if you want to use everything locally.
3. Install the dependencies:
yarn install
4. Copy robrowser's source code to the folder: src/robrowser/
5. Extract your data into roBrowser's data folder: robrowser/client/data
6. Copy the proxy source code to the folder: src/wsproxy/
7. Install the proxy dependencies:
yarn install
8. Start the client:
yarn start
To build the client for distribution you need to run:
yarn make
PS: Make sure you have Packet Obfuscation disabled on the server and that you use the same PACKETVER as the client.
this can be done by creating a new item_bonus such as bonus2 bReduceReqZeny,MC_MAMMONITE,1000;(Flat 1000 Zeny) or bonus bReduceReqZenyPer,MC_MAMMONITE,80;(80%)..
After creating that. you can simply just add it as random option or add it via autobonus or an item.