1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
Commit graph

50 commits

Author SHA1 Message Date
75db835bfc (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
aa05eeac50 (cargo-release) version 0.5.0 2022-12-09 15:34:26 +00:00
6b3b691376 (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
fd6da211b7 (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
5d1b8e0339 (cargo-release) version 0.5.0 2022-12-09 15:34:25 +00:00
mat
631ed63dbd
Swarm (#36)
* make azalea-pathfinder dir

* start writing d* lite impl

* more work on d* lite

* work more on implementing d* lite

* full d* lite impl

* updated edges

* add next() function

* add NoPathError

* why does dstar lite not work

* fix d* lite implementation

* make the test actually check the coords

* replace while loop with if statement

* fix clippy complaints

* make W only have to be PartialOrd

* fix PartialOrd issues

* implement mtd* lite

* add a test to mtd* lite

* remove normal d* lite

* make heuristic only take in one arg

* add `success` function

* Update README.md

* evil black magic to make .entity not need dimension

* start adding moves

* slightly improve the vec3/position situation

new macro that implements all the useful functions

* moves stuff

* make it compile

* update deps in az-pathfinder

* make it compile again

* more pathfinding stuff

* add Bot::look_at

* replace EntityMut and EntityRef with just Entity

* block pos pathfinding stuff

* rename movedirection to walkdirection

* execute path every tick

* advance path

* change az-pf version

* make azalea_client keep plugin state

* fix Plugins::get

* why does it think there is air

* start debugging incorrect air

* update some From methods to use rem_euclid

* start adding swarm

* fix deadlock

i still don't understand why it was happening but the solution was to keep the Client::player lock for shorter so it didn't overlap with the Client::dimension lock

* make lookat actually work probably

* fix going too fast

* Update main.rs

* make a thing immutable

* direction_looking_at

* fix rotations

* import swarm in an example

* fix stuff from merge

* remove azalea_pathfinder import

* delete azalea-pathfinder crate

already in azalea::pathfinder module

* swarms

* start working on shared dimensions

* Shared worlds work

* start adding Swarm::add_account

* add_account works

* change "client" to "bot" in some places

* Fix issues from merge

* Update world.rs

* add SwarmEvent::Disconnect(Account)

* almost add SwarmEvent::Chat and new plugin system

it panics rn

* make plugins have to provide the State associated type

* improve comments

* make fn build slightly cleaner

* fix SwarmEvent::Chat

* change a println in bot/main.rs

* Client::shutdown -> disconnect

* polish

fix clippy warnings + improve some docs a bit

* fix shared worlds*

*there's a bug that entities and bots will have their positions exaggerated because the relative movement packet is applied for every entity once per bot

* i am being trolled by rust

for some reason some stuff is really slow for literally no reason and it makes no sense i am going insane

* make world an RwLock again

* remove debug messages

* fix skipping event ticks

unfortunately now sending events is `.send().await?` instead of just `.send()`

* fix deadlock + warnings

* turns out my floor_mod impl was wrong

and i32::rem_euclid has the correct behavior LOL

* still errors with lots of bots

* make swarm iter & fix new chunks not loading

* improve docs

* start fixing tests

* fix all the tests

except the examples i don't know how to exclude them from the tests

* improve docs some more
2022-11-27 16:25:07 -06:00
mat
5a8f50950a chore: Release 2022-11-19 15:25:55 -06:00
mat
619984fa33
Replace lazy_static with once_cell::sync::Lazy (#43)
* Remove lazy_static in azalea-chat

* replace lazy_static with once_cell everywhere

* fix

* fix import

* ignore a clippy warning in shape codegen
2022-11-19 15:21:54 -06:00
mat
7ad4b22726
Add functions to get ChatPacket author and content (#42)
* Add functions to get ChatPacket author and content

* add ChatPacket::username and ChatPacket::content
2022-11-18 21:52:09 -06:00
mat
6eee543a33
Pathfinder (#25)
Pathfinding is very much not done, but it works enough and I want to get this merged.
TODO: fast replanning, goals that aren't a single node, falling moves (it should be able to play the dropper), parkour moves
2022-11-12 23:54:05 -06:00
mat
16d0cb734c change some dependencies 2022-11-11 23:10:38 -06:00
mat
44ab1ad6ef chore: Release 2022-10-30 14:04:11 -05:00
mat
889f742696 add "repository" field to all crates 2022-10-30 14:03:13 -05:00
c0338cac35 Create cache file directory if it doesn't exist 2022-10-18 19:31:27 +00:00
051f52474d bump az-client version 2022-10-18 17:08:32 +00:00
c09d93fa8a public azalea and az-client 2022-10-17 18:02:03 +00:00
61b586b4d5 (cargo-release) version 0.2.0 2022-10-17 16:28:54 +00:00
b68bcb44d2 (cargo-release) version 0.2.0 2022-10-17 16:28:54 +00:00
f66f55955d (cargo-release) version 0.2.0 2022-10-17 16:28:53 +00:00
9a7d2d51b5 (cargo-release) version 0.2.0 2022-10-17 16:28:53 +00:00
4e8bdfe7aa (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
e4a85363b0 (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
e6f023a38b (cargo-release) version 0.2.0 2022-10-17 16:28:52 +00:00
4585504323 (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
430501f6e1 (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
2b5d972ae9 disable release on more things 2022-10-17 16:27:42 +00:00
90e33c7e87 temporarily exclude azalea & az-client again 2022-10-17 14:40:00 +00:00
8c01957458 disable bot release 2022-10-17 14:38:58 +00:00
3f7fb41255 change versions and stuff 2022-10-17 14:37:05 +00:00
46cd093ead bump az-client to 0.2 2022-10-17 14:26:34 +00:00
5c18a48976 add description and license in az-client 2022-10-17 14:22:24 +00:00
c7b65b6ec8 set versions in az-client 2022-10-17 14:19:19 +00:00
mat
ba4cfaafae
Bot API (#27)
Basically make the `azalea` crate have stuff
2022-10-07 19:57:42 -05:00
14a6f9d9f8 replace printlns with log 2022-09-19 19:53:16 +00:00
mat
9ca9519469 .walk :) 2022-09-05 01:04:16 -05:00
mat
99fcad7bc4 fix chunks not being able to be read 2022-09-04 21:24:10 -05:00
mat
f42d630544
Physics (#11)
* Put physics module in azalea-entity

* port aabb

* add more stuff to PositionXYZ

* azalea-physics

* important collision things

* more physics stuff

* backup because i'm about to delete shapes

* more shape stuff

* CubeVoxelShape

* no compile errors???

insane

* impl VoxelShape for ArrayVoxelShape

* Shapes stuff

* collide_x but it doesn't work yet

* binary_search

* it compiles

* Entity has bounding box

* Update discrete_voxel_shape.rs

* Entity::make_bounding_box

* ok i'm about to merge az-entity and az-world

might be a terrible idea which is why i'm committing first

* ok so i moved entity to world

* on_pos and move_entity compiles

* add send_position

* move collision stuff to collision module in az-physics

* dimension is no longer an Option

* start trying to do collision for the client

* collision works 🎉

* start adding palette resizing

* get_and_set (pain)

* it compiles but probably won't work

* add a test

* remove printlns

* add more tests for palette stuff

* ClientboundMoveVec3Packet -> ClientboundMoveEntityPosPacket

i think i changed this on accident once

* palette resizing works

todo: remove the printlns

* Remove printlns in palette.rs

* fix issues from merge

* fixes + work a bit more on physics

* Better entities (#19)

* well it compiles

* add tests to entity storage

* add suggestions in azalea-brigadier

* this probably causes ub

* fix brigadiersuggestions

* get rid of entityid

* test From<EntityMut> for EntityRef

* don't mention other libraries since there's too many

* fix warnings

* do todos in brigadier suggestions

* work on physics

* more physics stuff

* remove trait feature on az-block

i think rust gets confused and compiles the macro without the feature

* bump ahash

* aes tests in az-crypto

* optimize aes's deps

* fix crashes

* fix section_index for negative numbers and test

* fix BlockPos protocol implementation

* remove some debug prints

* prepare to add ai_step

* make ai step work

* clippy
2022-08-29 20:41:01 -05:00
mat
5a9fca0ca9
Better errors (#14)
* make reading use thiserror

* finish implementing all the error things

* clippy warnings related to ok_or

* fix some errors in other places

* thiserror in more places

* don't use closures in a couple places

* errors in writing packet

* rip backtraces

* change some BufReadError::Custom to UnexpectedEnumVariant

* Errors say what packet is bad

* error on leftover data and fix

it wasn't reading the properties for gameprofile
2022-08-06 02:22:19 -05:00
mat
460bdfb8bb merge ClientState and Client 2022-06-25 16:23:40 -05:00
mat
b030b0ea33 start adding moving 2022-06-24 23:10:59 -05:00
mat
438d633b83 Bump tokio 2022-06-19 22:12:19 -05:00
mat
c9a070f711 Fix some clippy warnings 2022-06-19 22:01:54 -05:00
mat
f993e79a7e Create azalea-entity 2022-06-17 20:46:16 -05:00
mat
8e42e1c5df more chunk and readme stuff 2022-05-02 23:07:06 +00:00
mat
8313952541 Simplify packet macro
Now every packet implements McBufWritable and McBufReadable and uses those so the code doesn't have to be duplicated.
2022-04-30 23:04:18 -05:00
mat
80d49a7607 azalea_auth::encryption -> azalea_crypto 2022-04-30 21:30:45 -05:00
mat
3bd32cfa00 how do i do this 2022-04-29 00:40:47 -05:00
mat
4c00bd8865 Add ServerboundKeyPacket 2022-04-24 19:28:29 -05:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
9642558f8f azalea 2021-12-15 23:10:55 -06:00
Renamed from minecraft-client/Cargo.toml (Browse further)