[HN Gopher] Writing a Minecraft server from scratch in Bash (2022)
___________________________________________________________________
Writing a Minecraft server from scratch in Bash (2022)
Author : LorenDB
Score : 193 points
Date : 2024-03-02 14:42 UTC (8 hours ago)
(HTM) web link (sdomi.pl)
(TXT) w3m dump (sdomi.pl)
| pvg wrote:
| Discussion at the time
| https://news.ycombinator.com/item?id=30347501 92 comments
| dang wrote:
| Thanks! Macroexpanded:
|
| _My thoughts on writing a Minecraft server from scratch in
| Bash_ - https://news.ycombinator.com/item?id=30347501 - Feb
| 2022 (90 comments)
| dinkleberg wrote:
| Now this is a proper hacker site. This is great.
| TeaVMFan wrote:
| As someone who's done a lot of work with scriptable Minecraft
| servers for both Java and Bedrock (ScraM), this is impressive.
| Bonus points for using "duckduckgoing" in a sentence.
| SunlitCat wrote:
| Just wondering, but is writing custom servers for commercial
| games still a thing?
| petee wrote:
| I think it will always be a thing for those who play games &
| like to dabble with tech, either to fix a bug, learn a
| language, or just see how the sausage is made.
| madeofpalk wrote:
| For Minecraft, very much so. Minecraft, especially the Java
| version, is in a comparatively odd place in that it receives
| significant free content updates AND officially supports
| running any historical version AND has an extremely vibrant
| modding community.
|
| Minecraft (Java) is as much of a game engine for others to
| build on as it is a game itself.
| Filligree wrote:
| The four great game engines: Unreal, Unity, Minecraft and
| Godot.
|
| I don't think Minecraft is number four on the list. It might
| be number two.
| jasonjayr wrote:
| Roblox is somewhere on that list too ....
| themoonisachees wrote:
| This is because in addition to being the most sold video game
| of all time, minecraft is effectively open source. It's not
| literally open source, but you can decompile java bytecode
| with standard tooling, and symbols are available, either
| community-reversed, or official.
| teaearlgraycold wrote:
| Frustrating how game studios can see Minecraft's success
| here and not change a thing about their development
| practices.
| Aurornis wrote:
| There's actually a very large and vibrant community for
| modding Unity games like this.
|
| More competitive games can't afford any type of easy
| reverse engineering due to the cheating factor.
| darknavi wrote:
| Mods are the (amazing) end game for Lethal Company. So
| many fun, new tweaks and content.
| noah91734 wrote:
| For the curious: https://thunderstore.io/c/lethal-
| company/
|
| Click on any mod, and you can see the decompiled source.
| The mods use function hooking to run before or after
| certain functions are called rather than the event based
| system you see in Minecraft plugins.
| firtoz wrote:
| AFAIK yes, the RE scene is still active.
| haunter wrote:
| Not just servers but for some games clients too
| https://runelite.net/
| static_motion wrote:
| I find RuneLite a fascinatingly well-built piece of software.
| The lead dev, Adam, did a fantastic job with it, and good on
| Jagex for allowing its use, even as far as advertising it on
| their own front page.
| hoten wrote:
| It really papers over (some of) the tedium of the game and
| let's you enjoy the rest easier. Love it.
| BearOso wrote:
| A negative power, i.e. 2^(-n) is just 1/(2^n). I'm surprised the
| author didn't remember that with their own 2^-1 = 0.5 example and
| eventually reached out to awk for it.
| tryauuum wrote:
| I don't understand how this would help the author. Since the
| bash doesn't support floating point numbers anyway
| taviso wrote:
| They should have used my (dumb?) library, ctypes.sh:
|
| https://github.com/taviso/ctypes.sh
|
| Then they can access libm, poll(), select() and so on from bash
| :)
| lagniappe wrote:
| woah that's cool :) also hello tavis
| MrBuddyCasino wrote:
| I'm not sure you should have done that, but it is impressive
| for the sheer chuzpa of it. Like reanimating Frankenstein.
| jethro_tell wrote:
| Lol, holy shit what did I just read?
|
| Amazing, installing now. I want to be part of the problem.
___________________________________________________________________
(page generated 2024-03-02 23:00 UTC)