-
Notifications
You must be signed in to change notification settings - Fork 25
Setup guide
This page is a high-level explanation of how to set up a Bayshore server on your own computer.
In order to use this service, you are required to have:
- A computer running Microsoft Windows 10 with a dedicated graphics adapter
- A clean copy of the Japanese version of Wangan Midnight Maximum Tune 6, with everything included
- Understanding of the hosts file and what it does
- Visual Studio 2022 with the C++, .NET and UWP desktop development packs installed
- An understanding of how to operate Visual Studio 2022
- git for Windows or another way to clone Git repositories
- A recent version of Node.js
- 20GB of free disk space
- The Microsoft Visual C++ 2010 Redistributable (required for Wangan Midnight Maximum Tune 6 to run.)
- PockyWitch's terminal emulator (ask her or browse the Wangan Midnight Emulation Discord server. Alternatively, you can use two computers, one running WMMT6 in terminal mode.)
- An understanding of local networking, LAN IPs, and how to find out which devices have what IP on your local network
Do this in case things go wrong.
Download and install a modern version of Node.js from its website.
Once that is installed, open a command prompt, and type the command npm i -g yarn
to install the Yarn package manager.
Download and install the Visual Studio Installer from Microsoft's website. Install Visual Studio Community 2022, and make sure these three options are checked:
- .NET desktop development
- Desktop development with C++
- Universal Windows Platform development
After that, continue. This will take a while, and you will have to restart your computer a few times.
Clone Asakura-OpenParrot into a directory of your choice.
Then, run premake5.bat
and open the resulting .sln file in Visual Studio 2022.
It will prompt you to upgrade, say yes.
Make sure "x64" is selected in the target dropdown, then press Ctrl+Shift+B
to compile OpenParrot.
Clone Asakura-TeknoParrotUI into a directory of your choice.
Then, open the .sln file in Visual Studio 2022, and select yes to the upgrade prompts, if any appear.
The solution will not compile yet. Delete FodyWeavers.xml
from inside TeknoParrotUi
.
Afterwards, hit Ctrl+Shift+B
to compile.
Open your favourite text editor as an administrator, and open the file located at C:\Windows\System32\drivers\etc\hosts
.
Then, add these lines to the end of it, substituting the local network IP placeholders with your actual IP addresses:
LOCAL_NETWORK_ROUTER_IP tenporouter.loc
LOCAL_NETWORK_ROUTER_IP bbrouter.loc
COMPUTER_RUNNING_BAYSHORE naominet.jp
Clone Bayshore's repository into a directory of your choice.
Afterwards, copy config.example.json
to config.json
, and open it in your favourite text editor.
Change its contents to match your environment.
Then, run yarn install
to install the necessary dependencies, and then yarn build_protos
to compile the game's networking definitions.
Launch the compiled TeknoParrotUi.exe file as an administrator, and add Wangan Midnight Maximum Tune 6 as a game.
Once the game is added, click on the "CUSTOM SETTINGS (WMMT)" button, and set the OpenParrot path to where your compiled copy of OpenParrotLoader64.exe
is.
Click on the "GAME SETTINGS" button, and change "TerminalIP", "RouterIP", and "Cab1IP" to the correct values for your local network.
Go to your Wangan Midnight Maximum Tune 6 folder, and open the "AMCUS" folder. If you do not have one, your dump of the game is bad.
Open an admin command prompt in this folder, and type regsvr32 iauthdll.dll
. You should get a message box affirming success.
Afterwards, open amconfig.ini
in your favourite text editor, making sure to open the file as Shift-JIS encoding. Saving it without Shift-JIS will corrupt the file!
Change these lines in this file:
-
cacfg-auth_server_url=https://v388-front.mucha-prd.nbgi-amnet.jp:10082/mucha_front/
->cacfg-auth_server_url=https://BAYSHORE_IP:10082/
-
cacfg-auth_server_sslverify=1
->cacfg-auth_server_sslverify=0
-
dtcfg-dl_image_path=\\.\I:
->dtcfg-dl_image_path=YOUR_GAME_FOLDER\AMCUS\dl_image
amdcfg-writableConfig=YOUR_GAME_FOLDER\AMCUS\WritableConfig.ini
Afterwards, save the file with the Shift-JIS encoding.
Then, create a new text file in the AMCUS folder called WritableConfig.ini
.
Fill out its contents as such:
[RuntimeConfig]
mode=
netID=1234
serialID=280811990002
By default, AMAuthd will set your system date to a different timezone. To prevent that, open AMAuthd.exe
in a hex editor and write 0x909090909090
to file offset 0x3BB3
.
In your Wangan Midnight Maximum Tune 6 folder, navigate to data_jp\network\certs
, and replace terminal-cert_v388.pem
and v388-ca-cert.pem
with the server_wangan.crt
file in the Bayshore repository.
Then, navigate to data_jp\network\private
and replace terminal-key_v388.pem
with the server_wangan.key
file in the Bayshore repository.
Clone OpenBanapass into a directory of your choice.
Then, open the .sln file in Visual Studio 2022, and select yes to the upgrade prompts, if any appear.
Afterwards, hit Ctrl+Shift+B
to compile.
Copy the generated bngrw.dll
to WMMT6's game folder.
Go to your Bayshore folder, and open a command prompt if you haven't already. Issue the command yarn dev
.
This command will compile and execute Bayshore itself.
You'll know things worked correctly if Bayshore outputs messages about listening on specific ports.
Warning! AMAuthd.exe will change your computer's clock!
In the AMCUS
folder, locate AMAuthd.exe
. Run this file as administrator. You should see some messages appear in Bayshore's console.
Now, you are finally ready to launch Wangan Midnight Maximum Tune 6. In TeknoParrotUi's game settings, make sure everything is unchecked or blank except for the various IPs, and set up your controller.
After that, launch the game, and you should be online!
To launch the game again, simply repeat steps 9 through 11.