c8e13c38bd
Movement packets were handled incorrectly, because although the fields are specified as integers they are actually fixed-point values, which need to be converted to floating-point before use. These fields were converted with `as f64`, but they actually need to be scaled. To fix this add several new types, FixedPoint5 for 5-bit fractional fixed-point and FixedPoint12 for 12-bit. Both are parameterized by an integer type: FixedPoint5<i32> and FixedPoint5<i8> for 1.7.10/1.8.9, FixedPoint12<i16> for 1.9+. This moves the calculation into the packet field parsing, so it no longer has to be calculated in src/server/mod.rs since the scaling is taken care of as part of the field type. This fixes the long-standing invisible or actually misplaced players bug on 1.7.10 and 1.8.9, closes #139. * Add new FixedPoint5<T> type for 1.7/8, https://wiki.vg/Data_types#Fixed-point_numbers * Add FixedPoint12<i16> for 1.9+, moving type conversion into packet type https://wiki.vg/index.php?title=Protocol#Entity_Relative_Move * Add num-traits 0.2.6 dependency for NumCast to use instead of From * Use FixedPoint5<i32> in spawn object, experience orb, global entity, mob, player, teleport * Use FixedPoint5<i8> and FixedPoint12<i16> in entity move, look and move * Update packet handling bouncer functions, using f64::from for each conversion |
||
---|---|---|
blocks | ||
gl | ||
resources | ||
shared | ||
src | ||
www | ||
.gitignore | ||
.travis.yml | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md | ||
appveyor.yml |
README.md
Stevenarella
Multi-protocol Minecraft-compatible client written in Rust
Don't expect it to go anywhere, just doing this for fun.
Images
In action: http://gfycat.com/NeedyElaborateGypsymoth
Community chatroom
We have a chatroom on EsperNet: irc.esper.net
server, #stevenarella
channel.
Join with your favorite IRC client or Matrix.
Protocol support
Game version | Protocol version | Supported? |
---|---|---|
1.14 | 477 | ✓ |
19w02a | 452 | ✓ |
18w50a | 451 | ✓ |
1.13.2 | 404 | ✓ |
1.12.2 | 340 | ✓ |
1.11.2 | 316 | ✓ |
1.11 | 315 | ✓ |
1.10.2 | 210 | ✓ |
1.9.2 | 109 | ✓ |
1.9 | 107 | ✓ |
15w39c | 74 | ✓ |
1.8.9 | 47 | ✓ |
1.7.10 + Forge | 5 | ✓ |
Stevenarella is designed to support multiple protocol versions, so that client development is not in lock-step with the server version. The level of support varies, but the goal is to support major versions from 1.7.10 up to the current latest major version. Occasionally, snapshots are also supported.
Support for older protocols will not be dropped as newer protocols are added.
Credits
Thanks to @thinkofname for the original Steven (Rust), which Stevenarella is an updated and enhanced version of.
Downloads
Windows users can download pre-compiled builds from here: https://ci.appveyor.com/project/iceiix/stevenarella (Select your platform, Click the artifacts tab and download Steven.zip)
The Visual Studio 2017 Redistributable is required to run these builds.
Building
Requires Rust stable version 1.34.1 or newer to build.
Compile and run:
cargo run --release
Just compile:
cargo build --release
For progress on web support, see www/.
Running
Standalone
Just running Stevenarella via a double click (Windows) or ./stevenarella
(everything else)
will bring up a login screen followed by a server list which you can select a server
from.
License
Dual-licensed MIT and ApacheV2