Skip to content

Xenia Web Services is a REST API designed to support the Xenia Xbox 360 emulator in providing online and multiplayer functionality.

License

Notifications You must be signed in to change notification settings

AdrianCassar/Xenia-WebServices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hero

Xenia Web Services

This is a Web API designed to support the Xenia Xbox 360 emulator in providing Online and Multiplayer functionality. A fork of Xenia-Canary has been created for use with this Web API. It has been designed and developed specifically for Xenia, and does not represent or resemble any first-party Xbox API.

If you'd like to help improve this project, you may report issues or contribute by submitting PRs.

Project architecture

This project uses NestJS a Node.js framework using Typescript which follows the CQRS model. In addition, MongoDB a document-oriented database (NoSQL database).

Project Setup

  1. Install NodeJS.

  2. Install MongoDB Compass, details below.

  3. Copy the provided .env.template and rename it to .env.

  4. Configure the .env file if needed.

  5. Run setup.bat script to automatically install and build the project.

  6. Check the server is running by accessing the frontend at http://127.0.0.1:36000/.

MongoDB Compass

Install MongoDB Community Server to manage your database (tutorial).

If you plan to create a local database using MongoDB Compass it must be installed as a network service or use MongoDB Atlas a cloud database for free.

Hosting Services

Heroku
You can easily setup and host this REST API on Heroku, however they do not offer a free tier.

Vercel
Vercel is another option and it offers a free tier. However, i don't know how easy it will be to setup and configure.

Adding Title Support

Expand for details

If you would like to add a title to this API, check out the titles folder for examples!

Titles can provide a 'title server' address, which is basically an IP address the game will try to connect to and use as a game-server. Not all games use the 'title server' system.

Titles can also provide 'port mappings', wherein you can reroute game ports for title servers or player communication. We recommend using ports 3600X for players and 3601X for title servers. If a title uses a random port, this can be captured as port 0, and mapped accordingly.

Port mappings are not a requirement it's an optional feature. It may be useful to map ports which conflict with Windows or Linux. Some titles may fail to work if ports are changed for example Source Engine games.

To find the ports the title opens you can use cports and filter by process or you can search through xenia.log with logging = true.

Titles must provide leaderboard configuration to push statistics to the API. This is more complicated and takes trial and error. I'd recommend self-hosting the API to debug this.

Finally, you can also throw any title-specific netplay related patches in the patches folder!

About

Xenia Web Services is a REST API designed to support the Xenia Xbox 360 emulator in providing online and multiplayer functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • TypeScript 86.2%
  • HTML 5.8%
  • JavaScript 3.7%
  • PowerShell 2.5%
  • CSS 1.6%
  • Batchfile 0.2%