Go to file
iceiix c8e13c38bd Fix movement fixed-point packets, misplaced players on 1.7/8 (#140)
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
2019-05-11 13:28:25 -07:00
blocks Update cgmath and collision. Closes #97, closes #126 (#138) 2019-05-10 15:39:56 -07:00
gl Remove unnecessary 'extern crate's in Rust 2018 edition, import macros 2018-11-04 12:39:23 -08:00
resources Rename project to Stevenarella (#83) 2019-01-11 20:41:19 -08:00
shared 1.13.2 (404) multiprotocol support (#67) 2018-12-28 21:22:58 -08:00
src Fix movement fixed-point packets, misplaced players on 1.7/8 (#140) 2019-05-11 13:28:25 -07:00
www Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
.gitignore Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
.travis.yml Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
Cargo.lock Fix movement fixed-point packets, misplaced players on 1.7/8 (#140) 2019-05-11 13:28:25 -07:00
Cargo.toml Fix movement fixed-point packets, misplaced players on 1.7/8 (#140) 2019-05-11 13:28:25 -07:00
LICENSE-APACHE Duel license under MIT and ApacheV2 2016-03-26 17:34:47 +00:00
LICENSE-MIT Duel license under MIT and ApacheV2 2016-03-26 17:34:47 +00:00
README.md Add Forge handshake support. Closes #88 (#134) 2019-05-05 18:39:58 -07:00
appveyor.yml Update to Rust stable 1.34.1 2019-05-05 06:22:31 -07:00

README.md

Stevenarella

Build Status

Multi-protocol Minecraft-compatible client written in Rust

Don't expect it to go anywhere, just doing this for fun.

Images

Steven on Hypixel Steven

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