Presenting: MCNodeSrv
A minecraft server wrapper written in NodeJS, using the express framework.
I wrote it as a replacement for giving away SSH access, which can screw a box up alot harder if done right/wrong. ![]()
Features thus far include:
- Webinterface (derp) styled by Bootstrap
- Starting/Stopping/Killing the server process
- Web-based settings for changing command line arguments as well as environment variables of the server process
- Monitor stdout/stderr (it even highlights lines with the word ‘error’ in it, cool eh?)
- (planned) Send data to stdin
- JSON based config file(s)
… and I’m not done yet. ![]()
Next up will be hardening the node.js instance so it won’t take the minecraft server down with it, if it should happen to crash. I’m also thinking about adding a command-line interface to do simple stuff.. oh! *mental note: gracefully stop server process on ^C and other harmful signals*
Bottom line: NodeJS is just awesome. ![]()
I recently started developing with NodeJS and noticed something peculiar:
var a = {"test": "moo"}; // Define an object var b = a; // Copy the object b.test = "meh"; alert(a.test); // alert: "meh" // wait- what? b = a makes a reference instead of a copy, doh!
One way to get around this is:
var b = JSON.parse(JSON.stringify(a)) // This is one ugly hack
but it feels.. wrong.. and probably doesn’t work with nested functions and stuff like that.![]()
Huzzah, my new 6950 finally arrived!
It may not be a as big as a step-up as going from 8800GTS to 4870 but the DX11 support is just awesome.
Unigine Heaven suddenly looks.. awesome ![]()
To quote XNovaCore: “Its a beast!” – it truly is. And best of all: In its beastiness it still sucks less power when idling/coding. <3
marketing
What am I doing?- Nichijou 1. January, 2012
- Mashiroiro Symphony 15. November, 2011
- Yuru Yuri 18. August, 2011
- Hanasaku Iroha 13. July, 2011
Interesting stuff
Archives







