mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 07:55:33 +01:00
Add multi-region launcher support
Add custom launcher as well as support for both the original TW and JP launchers.
This commit is contained in:
62
README.md
62
README.md
@@ -1,31 +1,65 @@
|
||||
# Erupe
|
||||
## WARNING
|
||||
This project is in it's infancy and currently doesn't do anything worth noting. Additionally, it has no documentation, no support, and cannot be used without binary resources that are not in the repo.
|
||||
This project is in its infancy and currently doesn't do anything worth noting. Additionally, it has no documentation, no support, and cannot be used without binary resources that are not in the repo.
|
||||
|
||||
# General info
|
||||
Based on the TW version. Requires a local mirror of the original launcher site to be placed in `./www/g6_launcher` until I can RE the launcher and figure out which JS callbacks it requires.
|
||||
Originally based on the TW version, but (slowly) transitioning to JP.
|
||||
|
||||
## Installation
|
||||
Clone the repo
|
||||
Install PostgreSQL, launch psql shell, `CREATE DATABASE erupe;`.
|
||||
# Installation
|
||||
1. Clone the repo with `git clone https://github.com/Andoryuuta/Erupe.git`
|
||||
2. Install PostgreSQL
|
||||
3. Launch psql shell, `CREATE DATABASE erupe;`.
|
||||
|
||||
Setup db with golang-migrate:
|
||||
`go get -tags 'postgres' -u github.com/golang-migrate/migrate/cmd/migrate`
|
||||
`set POSTGRESQL_URL=postgres://postgres:password@localhost:5432/erupe?sslmode=disable`
|
||||
`migrate -database %POSTGRESQL_URL% -path migrations up`
|
||||
4. Setup database with golang-migrate:
|
||||
```
|
||||
> go get -tags 'postgres' -u github.com/golang-migrate/migrate/cmd/migrate
|
||||
|
||||
Open psql shell and manually insert an account into the users table.
|
||||
> set POSTGRESQL_URL=postgres://postgres:password@localhost:5432/erupe?sslmode=disable
|
||||
|
||||
Run `test.py` with python 3 to generate an entrance server response binary because the code isn't ported to Go yet.
|
||||
> migrate -database %POSTGRESQL_URL% -path migrations up
|
||||
```
|
||||
|
||||
Place a copy of the original TW launcher html/js/css in `./www/g6_launcher/`, and a copy of the serverlist at `./www/server/serverlist.xml`.
|
||||
5. Open psql shell and manually insert an account into the users table.
|
||||
|
||||
Manually extract the binary response from a pcap, strip the header, and decrypt the ~50 packets that are used in `./channelserver/session.go`, and place them in `./bin_resp/{OPCODE}_resp.bin`.
|
||||
6. Run `test.py` with python 3 to generate an entrance server response binary because the code isn't ported to Go yet. (**This requires a binary response that is not included in the repo**)
|
||||
|
||||
7. Manually extract the binary response from a pcap, strip the header, and decrypt the ~50 packets that are used in `./channelserver/session.go`, and place them in `./bin_resp/{OPCODE}_resp.bin`. (**These are not included in the repo**)
|
||||
|
||||
|
||||
# Use
|
||||
|
||||
|
||||
## Launcher
|
||||
Erupe now ships with a rudimentary custom launcher, so you don't need to obtain the original TW/JP files to simply get ingame. However, it does still support using the original files if you choose to. To set this up, place a copy of the original launcher html/js/css in `./www/tw/`, and `/www/jp/` for the TW and JP files respectively.
|
||||
|
||||
Then, modify the the `/launcher/js/launcher.js` file as such:
|
||||
* Find the call to `startUpdateProcess();` in a case statement and replace it with `finishUpdateProcess();`. (This disables the file check and updating)
|
||||
* (JP ONLY): replace all uses of "https://" with "http://" in the file.
|
||||
|
||||
Finally, edit `main.go` and change:
|
||||
|
||||
`go serveLauncherHTML(":80", false)`
|
||||
|
||||
to:
|
||||
|
||||
`go serveLauncherHTML(":80", true)`
|
||||
|
||||
# Usage
|
||||
### Note: If you are switching to/from the custom launcher html, you will have to clear your IE cache @ `C:\Users\<user>\AppData\Local\Microsoft\Windows\INetCache`.
|
||||
|
||||
## Server
|
||||
```
|
||||
cd Erupe
|
||||
go run .
|
||||
```
|
||||
|
||||
## Client
|
||||
Add to hosts:
|
||||
```
|
||||
127.0.0.1 mhfg.capcom.com.tw
|
||||
127.0.0.1 mhf-n.capcom.com.tw
|
||||
127.0.0.1 cog-members.mhf-z.jp
|
||||
127.0.0.1 www.capcom-onlinegames.jp
|
||||
127.0.0.1 srv-mhf.capcom-networks.jp
|
||||
```
|
||||
|
||||
Run mhf.exe normally (with locale emulator or appropriate timezone).
|
||||
|
||||
Reference in New Issue
Block a user