7 ms·
TrueCraft, An Open Source Implementation of Minecraft 1.7.3
- milkywayz 12y agoShould have been implemented in Java :/ > A completely clean-room implementation of Minecraft beta 1.7.3 (circa September 2011). > To get started, sign the Contributor License Agreement to establish that you have not, in fact, ever read decompiled Minecraft code. > 'Clean room design is the method of copying a design by reverse engineering and then recreating it' Not sure why it makes sense to say in the repo you reverse engineered it but then make contributors sign an agreement saying they havent read decompiled mc source. Reverse engineering is a very broad term, but generally involves analysis of decompiled source, no?
- sheetjs 12y ago> Reverse engineering is a very broad term, but generally involves analysis of decompiled source, no? Not necessarily. If you are reverse-engineering a file format for the purposes of reading and writing files compatible with the software, oftentimes you start by using the software to generate multiple files with small changes. Your analysis is limited to the output generated by the software, not the actual software itself (you treat the software as a black box).
- ekianjo 12y agoReverse engineering is usually illegal, but trying to reproduce the behavior of said software by trial and error is not. That's why they mark the difference.
- vidarh 12y agoReverse engineering is legal in a large number of countries - I'm not so sure it's accurate to say it is "usually illegal". There are exceptions, though, and it's worth people being aware of whether or not it is legal in their country, but the biggest risk with reverse engineering generally is not the legality of reverse engineering itself, but that it makes it harder to justify yourself if the newly written code happens to look surprisingly like the original code. It is not unusual for people to come up with very similar structured code if the code is largely dictated by the same functionality and requirements, and then it's easier if everyone involved can truthfully say they have never seen how the original did it.
- pshc 12y agoOr: Should have been implemented in a language without garbage collection pauses?
- asiekierka 12y agoGarbage collection pauses work very much fine on a heavily modded server I monitor as part of BuildCraft development. The server, with its 40+ mods and about 20 thousand tile entities running at any given time generates about 50-100MB of objects every second. In fact, Minecraft's own explicit chunk GC is MUCH slower than Java's and causes actual 2-3 second pauses!
- rurounijones 12y agoCLEAN-ROOM implementation, it is even linked to an explanation. this means that he DIDN'T read the source-code.
- deathcap 12y ago> Should have been implemented in Java :/ If you are looking for an open source Minecraft-compatible implementation in Java, I humbly suggest (shameless plug) checking out https://github.com/GlowstonePlusPlus/GlowstonePlusPlus https://github.com/GlowstonePlusPlus/GlowstonePlusPlus. Glowstone++ like TrueCraft currently only implements the server portion, and it has some differences such as targeting 1.8.4 compatibility not 1.7.3 beta, but being implemented in Java has some significant benefits. For those not aware there is a huge ecosystem of additions available for Minecraft written in Java. This includes thousands of "Bukkit plugins" available from http://dev.bukkit.org/categories/ http://dev.bukkit.org/categories/, Spigot plugins from http://www.spigotmc.org/resources/ http://www.spigotmc.org/resources/, and now an emerging community of Sponge plugins from https://forums.spongepowered.org/c/plugins/plugin-releases https://forums.spongepowered.org/c/plugins/plugin-releases. Writing Minecraft-compatible software in Java has the advantage of being able to potentially support these plugins. Glowstone++ in fact implements much of the Bukkit API and Spigot API, as well as (currently a small subset of) the Sponge API through a bridge. Based on the original Glowstone server, Glowstone++ is completely open source, yet it ties into the existing "Minecraft" plugin development ecosystem. Java has some disadvantages of course as well, so it's good to see alternative implementations in other languages (not only C# TrueCraft, but C++ MC-Server, Rust Hematite, JavaScript PrismarineJS, etc). The more choice the better =)
- nemo1618 12y agoGlad to see someone is doing this. Early Minecraft was so beautiful in its simplicity. Although, a big part of that (for me) was the soundtrack. Just three short piano tracks by C418. I hope there's some way to include those in TrueCraft.
- DanBC 12y agoYou can still play old versions. You can use the launcher to create a profile that uses the old alpha or beta versions. http://www.howtogeek.com/203196/how-to-change-your-minecraft-game-version-and-set-up-profiles/ http://www.howtogeek.com/203196/how-to-change-your-minecraft...
- topbru 12y agoThough multiplayer on these versions is dead for the most part, for obvious reasons. The authentication-related stuff also is broken in most (old) versions, same goes with skins. These can be fixed through mods, though I'm not really sure if it's worth the effort. TrueCraft seems pretty interesting. I'm always a fan of open source games, and voxel games interest me a bit more than other types of games. MineTest had/has some potential, though it really needs some polishing. Movement doesn't feel as smooth as in most other games, the textures aren't the best, same goes with the menus. It has a decent modding API, though it's mostly server-based which means there aren't any client-side mods (that I know of). Terasology is also an interesting open source voxel game, though the overall aesthetic of the game doesn't feel consistent. It has simple Minecraft-like textures, yet fancy effects/shaders. I'm also not a fan of the menus, though that's just me being picky. I think what makes Minecraft a bit different from these open-source games is how everything is laid out. Movement feels smooth, menus are consistent and simple, the font is legible, the controls are fine, the textures are easy to get used to and the sounds/music are great. I'm interested in seeing how TrueCraft ends up, if it will be following the style of Minecraft in terms of visuals and gameplay.
- asiekierka 12y agoFreeminer is trying to improve on Minetest in the graphical aspect, if you're curious.
- smlacy 12y ago... In C#
- scrollaway 12y agoYes? It seems like a good choice. Maybe 6 months ago I would have said it's foolish, but with C# being an actual open language now, I'd say it's a rock solid choice. What would you have done it in? C, and never get any contributor? Or Java, and do as bad as the original?
- babuskov 12y agoTake a loot at some open source projects. The Battle For Wesnoth (c++) has many more contributors than FreeCol (Java). I'm sure that number of C# developers in the world who develop open source stuff is even smaller. If your main goal is to get as many contributors as possible, perhaps JavaScript would be the best choice. And I'm still not convinced that Java is the main cause the original Minecraft was bad. Although I write all my games in C++ (native) and JavaScript (web) I did some Java games for Android and the language is rarely the bottleneck if you are careful about object life-cycles. The main bottleneck is usually the graphics hardware. I'm not saying that C# is bad choice. Actually I think it is a good choice, just not for the reasons you state.
- scrollaway 12y agoFair enough, though I didn't mean to imply those were the only good reasons. I didn't mean to say C++ would have been a bad choice, I was mocking the recurring mentality that a project is only good if it's in C (or even lower-level languages). It's quite tiresome to deal with it, I'm sorry it didn't quite get through. Java was definitely one of the reasons the original Minecraft was bad though. It (along with bad architecture) was the reason behind the massive server footprint and why hosting minecraft servers is extremely expensive and completely unscalable. Hey, remember when Notch said he'd open source Minecraft once he was done with it? I remember...
- 12y ago
- topbru 12y agoSo I assume this is currently just the server?
- Sir_Cmpwn 12y agoHi guys, I'm the author of this. Going to sleep soon but happy to answer questions when I awake if you leave them here for me.
- nightpool 12y agoNo eligible for contribution, sadly, but I really look forward to seeing how far you guys go! I too miss the "glory days" of minecraft. Good luck!
- Sir_Cmpwn 12y agoI hope we can build something that brings those good old days back for you. Thanks for your support.
- tiles 12y agoHey Sir Cmpwn, this is definitely a useful (and perhaps necessary?) project for a massive gaming phenomenon. Thanks for instigating it. If you had an army of 100 developers, what tasks would you set them to do to improve TrueCraft?
- Sir_Cmpwn 12y agoI would split them up on the following tasks: - Building a client with OpenGL - Implementing world logic (grass growth, door logic, etc) - Improving terrain generation It'd be really hard to take on 100 contributors at once, though. In my open source projects, I need time to figure out how each contributor writes code and what they like to work on so I can leverage them appropriately.
- bovermyer 12y agoI'm eligible for contribution, since I've never looked at decompiled Minecraft code. I haven't touched C# in over ten years, though, so that might be something of an impediment.
- z3t4 12y agoI hope you make it so that only the surface blocks are sent to the client. The time it takes to "mine" a block is enough for the latency to send the block behind it. This would be a major improvement to the multi-player experience. Also, send the input to the server, and not the position/speed vectors. That way you will also get rid of the speed hacks. Those "fixes" will completely rid the game from "hackers". Witch is the biggest problem with Minecraft (and most other multi-player games).
- asiekierka 12y ago>I hope you make it so that only the surface blocks are sent to the client. The time it takes to "mine" a block is enough for the latency to send the block behind it. Orebfuscator or Spigot. >Also, send the input to the server, and not the position/speed vectors. That way you will also get rid of the speed hacks. What? No. You can't make sure everyone moves the same way, and this would undoubtedly lead to desyncs. If you want to make sure players don't move too fast, use NoCheatPlus or what it was called. A far bigger issue for servers is mods like Gammabright which make all blocks have a brightness of 15, thus not requiring you to use torches or light sources, as that's very hard to work around.
- tehbeard 12y agoGameplay penalties can work wonders against Gammabright. Spending a lot of time in the darkness? enjoy blindness, nausea effect and being on fire next time you venture topside while the sun is out.
- seanp2k2 12y agohttp://fabiensanglard.net/quake3/network.php http://fabiensanglard.net/quake3/network.php Quake III was doing server-side calculated game state 16 years ago stupid fast for 32 players moving quickly on dial-up modems; I doubt it'd be much of a problem to do these days with even a lousy architecture for a game with much much slower movement, e.g. Minecraft. This problem has been solved pretty well many many times before.
- 12y ago
- asiekierka 12y agoHeh. Nice work. As a mod developer, my plan on revitalizing Minecraft and making it more of a sandbox again was always centered about designing a modpack going in that direction - I've been working on it since December. I don't really feel splitting the community into twenty reimplementations is a good idea myself, though.
- rottyguy 12y agoNot a minecrafter but interested in what the community's thought of this interpretation: http://www.businessinsider.com/minecraft-is-microsoft-hololens-killer-app-2015-4 http://www.businessinsider.com/minecraft-is-microsoft-holole... May dictate how you guys choose to build your product moving forward (you gotta love building something for fun that potentially leads to something more lucrative!)
- biafra 12y agoDoes this build and run on anything besides Windows? If so, on what, and how do I build it there? If not, a note mentioning this would be nice.
- Sir_Cmpwn 12y agoIt runs on Windows, Linux, OS X, and BSD, and probably more platforms if you tried hard enough. Build instructions are in the README. I do most of my development on Linux.
- kenbellows 12y agoWhat you're looking for is the Mono framework, a crossplatform .NET implementation. That is mentioned directly in the README
- integraton 12y agoThe mono information was only just added to the Readme, apparently after the parent's comment was posted. Previously it only mentioned Windows.
- axx 12y agoAwesome project! Reminds me of something like OpenTTD (http://de.wikipedia.org/wiki/OpenTTD http://de.wikipedia.org/wiki/OpenTTD) et al. Good job!
- avianbc 12y agohttp://en.wikipedia.org/wiki/OpenTTD http://en.wikipedia.org/wiki/OpenTTD English link
- VikingCoder 12y agoHas anyone made a similarly licensed Minecraft 1.7.3 (or close to it) client that's worth looking at? Or let me put it differently - what's the most popular open source client?
- Sir_Cmpwn 12y agoThere are no popular open source clients. Hopefully TrueCraft will become one.
- VikingCoder 12y agoHuh - so, I'd wager that Minetest is the most popular open source thing that's KIND OF like a Minecraft client, but your point is that it's not ACTUALLY a Minecraft client, right?
- Sir_Cmpwn 12y agoMinetest is a Minecraft clone. TrueCraft is a Minecraft implementation.
- banthar 12y agoI've made this some years ago: https://github.com/banthar/mine3d https://github.com/banthar/mine3d It's just the basics - only renders terrain and some static blocks. But it's also based on 1.7.3 protocol. I've just checked and it kinda works with TrueCraft server: http://i.imgur.com/Brf2NXg.png http://i.imgur.com/Brf2NXg.png
- VikingCoder 12y agoWhat license is that under?
- andolanra 12y agoThere's a Rust client in the making called Hematite[1], but it currently will only allow you to move around static worlds, with no other interaction. The focus so far has been on making the rendering as close to pixel-per-pixel identical as possible: [2] [1]: http://hematite.piston.rs/ http://hematite.piston.rs/ [2]: http://imgur.com/a/bHcLD#0 http://imgur.com/a/bHcLD#0
- debacle 12y agoThis is fantastic. A true undertaking. I have seen this attempted almost a dozen times before, but everyone gives up summarily far too soon. Eager to investigate modding this.
- spapin 12y agoIt should have been called Yourscraft
- skrowl 12y agoCool project! Can't wait to see a pure .NET client with OpenGL down the road. I don't install Java on anything anymore (mostly due to all the security issues) so I haven't played Minecraft in years.
- Alupis 12y ago> I don't install Java on anything anymore (mostly due to all the security issues) There's been no security issues in Java... there been security issues in the java web browser plugin. Just don't install the plugin. There's zero risk of installing java and playing minecraft.
- lurkinggrue 12y agoI install java but remove it from the browser.
- maaaats 12y agoRunning other people's code is unsafe whether it's java or not. Your comment is misguided.
- derefr 12y agoJava was originally marketed as a secure VM sandbox allowing for untrusted mobile code execution: centrally web "applets", but also zero-install desktop apps. Basically, it was attempting to do what Javascript (especially with ASM.js coupled to a browser's desktop-app integrations) eventually succeeded at doing. When held to those standards, Java has been kind of disappointing—repeatedly oscillating between "just about good enough" and "major hole preventing this setup from working." Likewise, many things Javascript got right immediately (like the FS API providing per-origin virtual filesystem containers rather than a view of the actual OS) were never even considered. Despite the marketing, safe execution of untrusted code was never much of a real goal for the platform, and disappeared entirely as a "tentpole" after 1997 or so (despite everyone still remembering the marketing and thinking Java "should" be capable of that.) When taken as just another bytecode-VM-based runtime platform like the .NET or Erlang runtimes, used for executing code already granted the same level of trust as the other native code on the system, Java is great.
- MrZongle2 12y agoAs someone who has spent some time playing Minecraft (and has kids who have spent even more time doing so), I'm really happy to see this effort. FTA: "Most of what Mojang has added since beta 1.7.3 is fluff, life support for a game that was “done” years ago." I don't know if Minecraft really has ever been done, but I couldn't agree more with the statement that Mojang has just added fluff. I'm amazed at what they accomplished in 2012 and most of 2013, but things seemed to come to a near-halt in 2014...with a major release taking ~8 months that resulted in flags, a handful of new blocks, and still no sign of the oft-requested, oft-promised Mod API. If there was one feature that would greatly expand the lifespan of the game, it would be a consistent modding interface. Anybody who has been begged by their kids to install a mod knows what a nightmare it can be, just from an end-user standpoint. Why the development team didn't make this top priority remains a mystery. I can't help but think that once Mojang finished counting their money, they decided to sit on their laurels...Alexander weeping and all that. The Microsoft purchase, while appearing disastrous at first, may be the best thing for the game at this point as the remaining Mojang staff don't appear to be very interested in doing much other than bringing the Xbox version up to PC capabilities. At least Microsoft will want to get their money's worth out of the franchise.
- yarrel 12y agoSadly it's in C#.
- tgdn 12y agoCould you at least add explanations on how to compile your thing on different platforms? All this code is really nice, but if it doesn't actually compile and do something it's quite pointless. Besides, bear in mind that not everyone is running on Windows on this planet.
- Alupis 12y agoThere's an entire compiling section in the readme[1]... and mono is for 'nix platforms. [1] https://github.com/SirCmpwn/TrueCraft/blob/master/README.md https://github.com/SirCmpwn/TrueCraft/blob/master/README.md
- lurkinggrue 12y ago...So hipster Minecraft? Still, nice job.