Skip to content

A web tool and API for checking mod compatibility with the Rimworld Multiplayer Mod by Zetrith.

License

Notifications You must be signed in to change notification settings

rwmt/modlist-consultant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modlist Consultant

A web tool and API for checking mod compatibility with the Rimworld Multiplayer Mod by Zetrith.

Table of Contents

Usage
Running Locally
Contributing
Resources
Contact

Usage

User website <-- Click here to use the tool!

To use the API: curl -d "@/path/to/ModsConfig.xml" -H "Content-Type: text/xml" -X POST https://modlist-consultant.herokuapp.com/consult

Accepts application/xml or text/xml

Returns application/json in the format:

interface ResponseFormat {
  [steamId: string]: {
    steamId: string                  // The steamID of the mod
    modName: string                  // The name of the mod
    compatibility: CompatibilityType // Level of compatibility (enum)
  }
}

enum  Compatibility {
  Unknown, // (0) Compatibility for this mod is not tested
  No,      // (1) Not compatible
  Minor,   // (2) Some features working
  Major,   // (3) Most features working
  Full,    // (4) All features working
}

Running Locally

You can host your own server at http://localhost:3000 with the following steps.

1. Setup your .env

The .env file contains private credentials that cannot be shared on a repository. You will have to create a set of credentials for yourself. It has the following format

G_SPREADSHEET_ID='<spreadsheetID>' # This should be 1jaDxV8F7bcz4E9zeIRmZGKuaX7d0kvWWq28aKckISaY
G_SPREADSHEET_CREDENTIALS='<secretKey>' # Stringified JSON of your Google Service Account Key

You must provide a Google service account for two-legged OAuth2 with the Google Spreadsheets API. You can create one for free with usage limits.

2. Build and run the server

Install the dependencies. This will automatically build the project.

npm i

Then run the project.

npm start

To build the project manually without installing dependencies, use

npm run build

Contributing

Pull requests are welcome. Feel free to contact me if you would like some help.

Resources

Google spreadsheet data source (Thank-you maintainers!)

Rimworld Multiplayer Mod by Zetrith

Rimworld Multiplayer Discord You can find me here as ZenonX

Contact

Please file an issue, or contact me in the Discord.

About

A web tool and API for checking mod compatibility with the Rimworld Multiplayer Mod by Zetrith.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published