4 ms·
Minecraft server built in Node.js
- ludwig 16y agoYou linked to a fork of the original project http://github.com/nornagon/nodecraft http://github.com/nornagon/nodecraft
- chapel 16y agoAh, thanks. I didn't notice at first. Though the fork has more recent commits where as the main hasn't had any for a while now. Still pretty cool and hope it goes somewhere.
- daredevildave 16y agoThey might want to switch that to the UDP server ( dgram ) Networked games over TCP is not usually recommended: http://gafferongames.com/networking-for-game-programmers/udp-vs-tcp/ http://gafferongames.com/networking-for-game-programmers/udp...
- maushu 16y agoThey can't if the minecraft client uses TCP.
- daredevildave 16y agoDoh, sorry, obviously. In which case, I wonder whether he (notch) is going to have trouble with the online performance. I've tried online play briefly and it didn't seem bad, I guess it isn't really twitch based.
- jasondavies 16y agoI've played online (a few weeks ago) and there did seem to be problems with the server due to periodic GC causing massive lag and disconnections every so often.
- xtacy 16y agoMaybe DCCP [1] would be better. Non-congestion controlled protocols are bad for the internet. [1]: Datagram Congestion Control Protocol: http://read.cs.ucla.edu/dccp/ http://read.cs.ucla.edu/dccp/
- metachris 16y agoUDP is not always the best protocol for networked games. TCP can be a good choice for games which exchange only or mostly important messages which must not be dropped and delivered in sending order (eg. most round-based games). To make that work with UDP you'd end up re-implementing a lot of already existing functionality inside TCP. UDP is supposed to be better for real-time games, but both Minecraft and World of Warcraft actually do great with TCP.
- digispaghetti 16y agoYea, I just found out about this today as well - seems to run, but dies on any connection at the moment - but hopefully it will be working soon
- robinduckett 16y agoI knew this was coming..
- abronte 16y agoThis is pretty awesome, can't wait to try it out. The current minecraft server is such a memory hog and can be sort of hard to run a decent server on a small VPS. I wonder how this version compares.
- andrewgodwin 16y agoEven more impressively, this appears to be for the new protocol version - the new protocol is significantly harder to implement a server for than the old one (I say this having written custom servers for both in Python), and requires, among other things, a full lighting implementation in the server. I'd be curious to see how this compares to the Java one for speed (and some other SMP servers that are springing up) - it's quite difficult to store an infinite size map efficiently in memory and still keep good random access times.
- FrancescoRizzi 16y agoFor a sec, I thought it said "Node.js built in Minecraft" and didn't even find it a bit weird...