Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
/ mild-server Public archive

Mild is a very lightweight, very shitty multiplayer server framework via NodeJS and WebSockets.

License

Notifications You must be signed in to change notification settings

radiatoryang/mild-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#mild-server

Mild is a very lightweight, very shitty multiplayer server framework via NodeJS and WebSockets. This is the Mild server (NodeJS, for deploment on Heroku, with possibilities for deploying on OpenShift too) ... (Unity C# integration and client example is here: https://github.com/radiatoryang/mild-client)

  • technically works in browsers, but kind of poorly, in my experience
  • for simplicity, there is no authoritative server model, every client owns their own object -- and every client can technically send messages about every object -- there can, and will be, some disagreement between clients
  • easily hackable, easy to send fake requests, easy to cheat and break, if any of your players ever care to do so
  • do not use this for large commercial-scale releases... this is intended more for small prototypes, small games, and trusted player communities... this framework follows a lot of "bad practice" that you're not supposed to do, but whatever

Mild server setup (free, Heroku)

This is a very basic guide to getting your own multiplayer game server running -- it uses a cloud platform service called Heroku, which has a decent "free tier" of server features. With a bit of modification, you could also deploy this server on Redhat OpenShift as well, but this short guide will assume you're using Heroku.

  1. Register a GitHub account, and fork this mild-server repository by clicking "Fork" in the upper-right of this page. You now have your own copy of the server code.
  2. Register a Heroku account. http://heroku.com (recommended: Give them your credit card info to get "verified", they'll give you more monthly hours.)
  3. In the Heroku deploy setup, connect it to your GitHub account, then tell it to deploy automatically from your "mild-server" fork on GitHub.
  4. In the Heroku deploy setup, you might need to click the "manual deploy" button once, at the bottom of the page. Just to be safe. ("Deploy" means Heroku will grab the files off GitHub, and attempt to start the server process.)
  5. Your server should now be operational! If you want to see server logs, install a free add-on plugin called "Papertrail", then click on the "Events" button in the Papertrail dashboard.

About

Mild is a very lightweight, very shitty multiplayer server framework via NodeJS and WebSockets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published