22w10a fixed skin issue, added 'run' command for mac, fixed bukkit server security issue
This commit is contained in:
parent
37bfa17c72
commit
2a011f6766
16
README.md
16
README.md
|
@ -20,10 +20,20 @@ Note that the server may be down - if you want a gameplay demo download the file
|
|||
|
||||
Eaglercraft is real Minecraft 1.5.2 that you can play in any regular web browser. That includes school chromebooks, it works on all chromebooks. You can join real Minecraft 1.5.2 servers with it through a custom proxy based on Bungeecord.
|
||||
|
||||
## Singleplayer?
|
||||
|
||||
I successfully created Singleplayer for this version of eaglercraft and it works 100%, **but after many rounds of very thorough testing**, I found that TeaVM is unable to optimize certain aspects of terrain generation and world ticking as well as it can optimize the rendering for a multiplayer-only build. On an [i9-11900K]( https://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i9-11900K+%40+3.50GHz&id=3904) a render distance of 'Tiny' struggles to pass 12 TPS while standing still, and drops below 1 TPS as soon as a couple new chunks have to be generated and trigger lighting updates. The playerbase of this game **will bother me every f\*\*king day if what I release as singleplayer is not perfect** and therefore singleplayer will remain private indefinetly and I will not answer any further questions about it or share the source code unless you are just looking to repurpose some of the base OS emulation code.
|
||||
|
||||
**Minecraft Alpha singleplayer will be ported in the coming weeks but that is not a promise I should be obligated to fulfill**
|
||||
|
||||
## How does it work?
|
||||
|
||||
Eaglercraft uses the decompiled source code of the official build of Minecraft 1.5.2 direct from Mojang. It is decompiled by [MCP](http://www.modcoderpack.com/) and then recompiled to Javascript using [TeaVM](https://teavm.org/). Therefore it can join real Minecraft 1.5.2 servers, as it is really running Minecraft 1.5.2 in the browser. However, due to security limitations in modern browsers, it must use javascript Websocket objects for multiplayer instead of direct TCP connections to it's servers. A modified version of Bungeecord is included with Eaglercraft which accepts browser HTTP Websocket connections from Eaglercraft clients and unwraps the streams internally to regular TCP so they can be forwarded to regular Bukkit servers with no plugins. For graphics, a custom GPU compatibility layer allows Mojang's fixed function OpenGL 1.3 based rendering engine to render directly to an HTML5 WebGL 2.0 canvas on the page with minimal changes to the source, preserving the game's graphics to look exactly the same as desktop vanilla Minecraft 1.5.2.
|
||||
|
||||
## Issues?
|
||||
|
||||
I got tired of closing duplicate 'how to maek sever' and 'add single player' issues almost every day so I disabled it because honestly I don't really care anymore, [join discord](https://discord.gg/KMQW9Uvjyq) if you've got an issue to report that you are confident can be backed up with source code
|
||||
|
||||
## Installing
|
||||
|
||||
If you want to use this project but don't want to compile it from scratch, download [stable-download/stable-download.zip](https://github.com/LAX1DUDE/eaglercraft/raw/main/stable-download/stable-download.zip) and extract
|
||||
|
@ -38,9 +48,9 @@ If you want SSL, set up [nginx](https://www.nginx.com/) as a reverse proxy from
|
|||
|
||||
**To change the default servers on the server list, download [stable-download/servers_template.dat](https://github.com/LAX1DUDE/eaglercraft/raw/main/stable-download/servers_template.dat) and open the file with NBTExplorer (the minecraft one). You will see the list of default servers in a 'servers' tag stored as NBT components, and you can edit them and add more as long as you follow the same format the existing servers have. When you're done, save the file and encode the file back to base64 using the upload option on [base64encode.org](base64encode.org), then download the encoded file and open it and replace the base64 between the quotes on line 8 of your index.html with the new base64 in the encoded file you downloaded.**
|
||||
|
||||
There is a plugin hard coded into the bungeecord server to synchronize the eaglercraft profile skins, and also a plugin like authme for creating a secure isolated authentication lobby on the proxy. The authentication lobby plugin has not been implemented though, it is non-functional. For now you'll just have to use a different 3rd party bungeecord lobby authentication plugin like AuthMeBungee if you want authentication, which unfortunately is a must for any public server to prevent people from stealing each other's usernames. Just ignore the existing EaglerAuth plugin and it's configuration section in the main config.yml and just install and use some 3rd party plugin like AuthMeBungee instead.
|
||||
There is a plugin hard coded into the bungeecord server to auto synchronize the eaglercraft profile skins between players and worlds
|
||||
|
||||
Someday I'll finish implementing EaglerAuth but right now I have bigger fish to fry
|
||||
You should probably use a plugin like [AuthMe](https://dev.bukkit.org/projects/authme-reloaded/files/682502) to keep griefers from logging in to other people's profiles
|
||||
|
||||
## Compiling
|
||||
|
||||
|
@ -52,7 +62,7 @@ To complile to regular desktop Java for quick debugging, using native OpenGL for
|
|||
- Create a run configuration and add a jvm argument pointing to the lwjgl natives folder (lwjgl-rundir/natives) like this: `-Djava.library.path=natives`, and make sure the working directory for the run configuration is the lwjgl-rundir folder.
|
||||
|
||||
|
||||
To modify the game's assets repository (javascript/assets.epk), make your changes in lwjgl-runtime/resources/ and use the Eclipse project located in epkcompiler/ to regenerate the assets.epk file and copy it to the Javascript directory.
|
||||
To modify the game's resource pack (javascript/assets.epk), view the readme in the [/epkcompiler](https://github.com/LAX1DUDE/eaglercraft/tree/main/epkcompiler) directory
|
||||
|
||||
this project is just a proof of concept to show what can be accomplished when using TeaVM to cross compile an existing java program to javascript. It is not very fast or stable, and the only real useful portion is the emulator code which creates a makeshift fixed function OpenGL 1.3 context using webgl (based on OpenGL 3.3) operational in the browser. Maybe it can be used to port other games in the future.
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ teavm {
|
|||
maxTopLevelNames = 10000;
|
||||
properties = null;
|
||||
debugInformationGenerated = false;
|
||||
sourceMapsGenerated = false;
|
||||
sourceMapsGenerated = true;
|
||||
sourceFilesCopied = false;
|
||||
incremental = false;
|
||||
transformers = null;
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
Use this tool like this:
|
||||
TO QUICKLY MAKE RESOURCE PACK:
|
||||
1. make your changes to the files in '/lwjgl-rundir/resources'
|
||||
2. double click 'run.bat' on windows, or run './run_unix.sh' in terminal on mac
|
||||
3. copy 'assets.epk from '/javascript' to your web directory
|
||||
|
||||
To manually use the CompilePackage.jar on a custom directory, run the jar file like this:
|
||||
|
||||
java -jar CompilePackage.jar <source directory> <output file>
|
||||
|
||||
To recompile the assets.epk file found in /javascript, make your changes to the game's resources in /lwjgl-rundir/resources and then run this command within this /epkcompiler directory:
|
||||
To recompile the assets.epk file found in /javascript, run:
|
||||
|
||||
java -jar CompilePackage.jar "../lwjgl-rundir/resources" "../javascript/assets.epk"
|
2
epkcompiler/run.bat
Normal file
2
epkcompiler/run.bat
Normal file
|
@ -0,0 +1,2 @@
|
|||
@echo off
|
||||
java -jar CompilePackage.jar "../lwjgl-rundir/resources" "../javascript/assets.epk"
|
2
epkcompiler/run_unix.sh
Normal file
2
epkcompiler/run_unix.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
java -jar CompilePackage.jar "../lwjgl-rundir/resources" "../javascript/assets.epk"
|
10814
javascript/classes.js
10814
javascript/classes.js
File diff suppressed because it is too large
Load Diff
1
javascript/classes.js.map
Normal file
1
javascript/classes.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
stable-download/java/bukkit_command/BitchFilterPlugin.jar
Normal file
BIN
stable-download/java/bukkit_command/BitchFilterPlugin.jar
Normal file
Binary file not shown.
|
@ -0,0 +1,14 @@
|
|||
|
||||
DO NOT IGNORE THIS MESSAGE, USE YOUR BRAIN AND READ!
|
||||
|
||||
Bukkit is a piece of shit, if you "/op LAX1DUDE", a player joining as 'laX1DUDE' or 'LaX1dUdE' or 'lax1dude' will all have /op too
|
||||
|
||||
Either don't use /op and install an actual permissions plugin, or move "BitchFilerPlugin.jar" into this server's "/plugins" folder and use only lowercase letters in your /op profile names!
|
||||
|
||||
Again, if you install the bitchfilter plugin, you need to /op yourself with all lowercase letters like "/op lax1dude", and then when you want to join as an op you don't type 'LAX1DUDE' you have to join as 'lax1dude' or you will be kicked by the plugin for security
|
||||
|
||||
PLEASE PLEASE PLEASE DO NOT IGNORE THIS MESSAGE!!!
|
||||
|
||||
IF YOU IGNORE THIS AND USE /op WITH MIXED CASE THEN YOU WILL BE HACKED!!!
|
||||
|
||||
DO NOT MAKE THIS MISTAKE OR YOU CAN LOSE YOUR WHOLE SERVER IN MINUTES!!!
|
|
@ -1,3 +0,0 @@
|
|||
# Updated 12/17/21, 6:40 PM by Minecraft 1.5.2
|
||||
# victim name | ban date | banned by | banned until | reason
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# Updated 12/17/21, 6:40 PM by Minecraft 1.5.2
|
||||
# victim name | ban date | banned by | banned until | reason
|
||||
|
2
stable-download/java/bukkit_command/run_unix.sh
Normal file
2
stable-download/java/bukkit_command/run_unix.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
java -Xmx512M -Xms512M -jar craftbukkit-1.5.2-R1.0.jar
|
|
@ -1,87 +0,0 @@
|
|||
# This is the main configuration file for Spigot.
|
||||
# As you can see, there's tons to configure. Some options may impact gameplay, so use
|
||||
# with caution, and make sure you know what each option does before configuring.
|
||||
# For a reference for any variable inside this file, check out the Spigot wiki at
|
||||
# http://www.spigotmc.org/wiki/spigot-configuration/
|
||||
#
|
||||
# If you need help with the configuration or have any questions related to Spigot,
|
||||
# join us at the IRC or drop by our forums and leave a post.
|
||||
#
|
||||
# IRC: #spigot @ irc.esper.net ( http://webchat.esper.net/?channel=spigot )
|
||||
# Forums: http://www.spigotmc.org/forum/
|
||||
|
||||
config-version: 1
|
||||
settings:
|
||||
log-filters:
|
||||
- ^(.*)(/login)(.*)$
|
||||
netty-threads: 3
|
||||
prevent-proxies: false
|
||||
bungeecord-addresses:
|
||||
- 127.0.0.1
|
||||
bungeecord: true
|
||||
timeout-time: 60
|
||||
restart-on-crash: true
|
||||
restart-script: ./start.sh
|
||||
listeners:
|
||||
- port: default
|
||||
host: default
|
||||
netty: true
|
||||
commands:
|
||||
tab-complete: true
|
||||
log: true
|
||||
spam-exclusions:
|
||||
- /skill
|
||||
messages:
|
||||
whitelist: You are not whitelisted on this server!
|
||||
unknown-command: Unknown command. Type "help" for help.
|
||||
server-full: The server is full!
|
||||
world-settings:
|
||||
default:
|
||||
verbose: true
|
||||
chunks-per-tick: 650
|
||||
merge-radius:
|
||||
exp: 3.0
|
||||
item: 2.5
|
||||
view-distance: 10
|
||||
growth:
|
||||
cactus-modifier: 100
|
||||
cane-modifier: 100
|
||||
melon-modifier: 100
|
||||
mushroom-modifier: 100
|
||||
pumpkin-modifier: 100
|
||||
sapling-modifier: 100
|
||||
wheat-modifier: 100
|
||||
entity-activation-range:
|
||||
animals: 32
|
||||
monsters: 32
|
||||
misc: 16
|
||||
entity-tracking-range:
|
||||
players: 48
|
||||
animals: 48
|
||||
monsters: 48
|
||||
misc: 32
|
||||
other: 64
|
||||
random-light-updates: false
|
||||
ticks-per:
|
||||
hopper-check: 8
|
||||
hopper-transfer: 8
|
||||
mob-spawn-range: 4
|
||||
anti-xray:
|
||||
enabled: true
|
||||
engine-mode: 1
|
||||
blocks:
|
||||
- 1
|
||||
- 5
|
||||
- 14
|
||||
- 15
|
||||
- 16
|
||||
- 21
|
||||
- 48
|
||||
- 49
|
||||
- 54
|
||||
- 56
|
||||
- 73
|
||||
- 74
|
||||
- 82
|
||||
- 129
|
||||
- 130
|
Binary file not shown.
2
stable-download/java/bungee_command/run_unix.sh
Normal file
2
stable-download/java/bungee_command/run_unix.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
java -Xmx32M -Xms32M -jar bungee-dist.jar
|
25
stable-download/readme.txt
Normal file
25
stable-download/readme.txt
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
Download 'stable-download.zip' to get started quickly
|
||||
|
||||
Downloading 'Offline_Download_Version.html' will allow you to play without hosting an HTTP server
|
||||
|
||||
========================================
|
||||
|
||||
!!!! TO ANYONE SETTING UP A SERVER: !!!
|
||||
|
||||
DO NOT IGNORE THIS, USE YOUR BRAIN AND READ!
|
||||
|
||||
Bukkit is a piece of shit, if you "/op LAX1DUDE", a player joining as 'laX1DUDE' or 'LaX1dUdE' or 'lax1dude' will all have /op too
|
||||
|
||||
Either don't use /op and install an actual permissions plugin, or move "BitchFilerPlugin.jar" that is in the "java/bukkit_server" folder into the bukkit_server's "/plugins" folder and use only lowercase letters in your /op profile names!
|
||||
|
||||
Again, if you install the BitchFilterPlugin, you need to /op yourself with all lowercase letters like "/op lax1dude", and then when you want to join as an op you don't type 'LAX1DUDE' you have to join as 'lax1dude' or you will be kicked by the plugin for security
|
||||
|
||||
PLEASE PLEASE PLEASE DO NOT IGNORE THIS MESSAGE!!!
|
||||
|
||||
IF YOU IGNORE THIS AND USE /op WITH MIXED CASE THEN YOU WILL BE HACKED!!!
|
||||
|
||||
DO NOT MAKE THIS MISTAKE OR YOU CAN LOSE YOUR WHOLE SERVER IN MINUTES!!!
|
||||
|
||||
========================================
|
||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user