0aa062f4b8
Replaces the use of gl_generator with the glow wrapper: * Add glow dependency, based on glow 0.6.1 * Pin version of glow fork for https://github.com/iceiix/glow/pull/1 until #442 renderbuffer * Remove gl module, steven_gl Porting details: * Initialize glow in src/gl/mod.rs * Call gl methods on glow context * glow uses camelcase * Import glow::HasContext trait, finds draw_elements etc. * Fix mismatched types, glow uses Option and &str instead of raw pointers * Fix uniform_location, glow already returns Some(u32) * uniform_location: convert i32 to u32 for Uniform * Fix attribute_location * Fix shader creation Result u32 type * Fix passing GLvoid and 2d/3d * Fix missing Options type mismatches * Offsets are i32 in glow, not GLvoid * Fix clear_buffer using _f32_slice * Delete methods are singular not plural * glBufferData -> buffer_data_u8_slice * buffer_sub_data_u8_slice * Update more glow method wrapper names found by reviewing glow native platform * Remove unused multi_draw_elements, can be replaced by draw_elements in a loop and it has no WebGL equivalent * glow implements glMapBufferRange * Remove unused read_buffer * glow's deletes automatically pass 1 and take no reference * shader_source() accepts &str directly; removes last of std::ptr * Pass uniform Option<u32> * Fix bool passing normalized parameter * Fix draw_buffers parameter * Stop unnecessarily returning context from gl::init * Getting shader info is unsafe * Unwrapping static mut is unsafe * Use unsafe raw pointers for global mutable context * Fix initializing GL objects wrappers from glow wrappers * Unbinding framebuffers uses None * Uppercase global to fix warning * Shaders return Some instead of None * Unbox the context to a raw pointer * Use tex_image_2d_multisample added in glow fork * Implement uniform_location, fixing unwrap None failed * Add tex_sub_image_3d, using PixelUnpackData::Slice * set_matrix4: transmute the Matrix4 since it is repr(C) * get_pixels -> get_tex_image -> glGetTexImage, with PixelPackData::Slice * Wrap sub_image_2d (glTexSubImage2D) and fix warnings * Implement set_float_multi_raw and set_matrix4_multi, using from_raw_parts |
||
---|---|---|
.cargo | ||
.github/workflows | ||
blocks | ||
protocol | ||
resources | ||
shared | ||
src | ||
std_or_web | ||
www | ||
.gitignore | ||
.travis.yml | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
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
IRC channels: #stevenarella
on irc.freenode.net, or #stevenarella
on irc.esper.net.
Discussion forum: https://github.com/iceiix/stevenarella/discussions.
Protocol support
Game version | Protocol version | Supported? |
---|---|---|
1.16.4 | 754 | ✓ |
1.16.3 | 753 | ✓ |
1.16.2 | 751 | ✓ |
1.16.1 | 736 | ✓ |
1.16 | 735 | ✓ |
1.15.2 | 578 | ✓ |
1.15.1 | 575 | ✓ |
1.14.4 | 498 | ✓ |
1.14.3 | 490 | ✓ |
1.14.2 | 485 | ✓ |
1.14.1 | 480 | ✓ |
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 | 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.
Forge servers are currently supported on 1.7.10 - 1.12.2.
Support for older protocols will not be dropped as newer protocols are added.
Downloads
Windows, Ubuntu Linux, and macOS users can download pre-compiled builds from GitHub Actions. (Click the artifacts drop-down and select your platform.)
Dependencies
Requires Rust stable version 1.48.0 or newer.
Debian/Ubuntu
sudo apt-get install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxcb-composite0-dev
Alpine Linux
sudo apk add openssl-dev xcb-util-dev
Building
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.
Contributions
Stevenarella is an OPEN Open Source Project:
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
Rules
There are a few basic ground-rules for contributors:
- No
--force
pushes or modifying the Git history on themaster
branch. - Non-master branches ought to be used for ongoing work.
- External API changes and significant modifications ought to be subject to an internal pull-request to solicit feedback from other contributors.
- Internal pull-requests to solicit feedback are encouraged for any other non-trivial contribution but left to the discretion of the contributor.
- Contributors should attempt to adhere to the prevailing code-style. Please install and run cargo fmt before merging any changes.
Changes to this arrangement
This is an experiment and feedback is welcome! This document may also be subject to pull-requests or changes by contributors where you believe you have something valuable to add or change.
Credits
Thanks to @thinkofname for the original Steven (Rust), which Stevenarella is an updated and enhanced version of.
License
Dual-licensed MIT and ApacheV2