Skip to content
forked from inada-s/gdxsv

Mobile Suit Gundam: Federation vs. Zeon&DX Private Game Server

License

Notifications You must be signed in to change notification settings

htc001120/gdxsv

 
 

Repository files navigation

gdxsv

Mobile Suit Gundam: Federation vs. Zeon & DX private game server.

The brother project zdxsv is here.

Introduction

Mobile Suit Gundam: Federation vs. Zeon was released on Playstation2 and Dreamcast. This game has online mode, but the service ended in 2004. This project aims to keep the online mode alive for fans.

Running Server links


Build and Run

Requirements to build

  • Go 1.9 or newer with CGO
  • stringer. go get golang.org/x/tools/cmd/stringer
  • protoc-gen-go v1.25.0 (if modify .proto files)
  • protoc v3.6.1 (if modify .proto files)

Build and Run gdxsv

  1. Clone this repository
  2. Run make then bin/gdxsv is generated. (cgo required)
  3. Run ./bin/gdxsv initdb, then gdxsv.db is generated.
  4. Edit build_run.sh to fix server address. (set you PC's address. Don't edit the port number.)
  5. Run ./bin/gdxsv lbs. This command serves one lobby and one matching server.

LBS and MCS architecture

There are two ways to run the gdxsv binary.

  1. lbs serves a lobby and a match server one by one.
  2. mcs serves only a match server and connects to the parent lbs.

This allows one lobby server to manage match servers around the world. There is a CloudFunction script in the mcsfunc directory that launches mcs on GCP.

Using only the lbs command to act as a standalone lobby and match server. (This is especially useful during local development.)

Configulations

All settings are specified from environment variables.

  • GDXSV_LOBBY_PUBLIC_ADDR : Specifies the TCP address that used when a mcs connects to a lbs.
  • GDXSV_LOBBY_ADDR : Specifies the TCP address that the lbs listens on. Currently only the port number is used.
  • GDXSV_BATTLE_PUBLIC_ADDR : Specifies the TCP/UDP address that a client will use to connect with TCP/UDP.
  • GDXSV_BATTLE_ADDR : Specifies the TCP/UDP address that the mcs listens on. Currently only the port number is used.
  • GDXSV_BATTLE_LOG_PATH : Specifies a file path that will be used to save battle log file.
  • GDXSV_MCSFUNC_KEY : Specifies a GCP key that has permission to call mcsfunc.
  • GDXSV_MCSFUNC_URL : Specifies an URL of mcsfunc that you deployed.

Directory structures

gdxsv

The gdxsv directory contains main server program.

flycast

The flycast directory is a submodule, that is flycast fork customized for the development of this server.

It contains some dirty code for gdxsv, but I would like to deliver the artifacts upstream.

You can download the latest version of flycast built for gdxsv from the Release page of this repository.

pcsx2

The pcsx2 directory is a submodule, that is pcsx2 fork customized for the development of this server. I don't expect to play with this because of performance issues.

The PS2 version of this game has a lot of debug symbols left and useful for analysis.

ps2patch

The ps2patch directory contains source program of paches for playstation2 version to enter network mode. These patches now depends on pcsx2 fork. The c code will be compiled with ps2dev-docker and be applied as cheating codes.


LICENSE

All server-side codes are AGPL-3.0 Licensed. Submodules and dependent packages are subject to their respective licenses.

About

Mobile Suit Gundam: Federation vs. Zeon&DX Private Game Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 76.2%
  • TypeScript 9.4%
  • JavaScript 5.4%
  • Shell 3.1%
  • C 2.9%
  • CSS 1.3%
  • Other 1.7%