Commit graph

813 commits

Author SHA1 Message Date
mat
661c3622be make the packets in events be Arc
so they're cheap to clone
2022-12-03 01:22:34 -06:00
mat
8fd88aeae8
fix doc yaml 2022-11-29 18:57:27 -06:00
Матвей Т
8e482b4588
Uploaded doc workflow (#46)
* Uploaded doc workflow

* Update .github/workflows/doc.yml

Fair

Co-authored-by: mat <27899617+mat-1@users.noreply.github.com>

Co-authored-by: mat <27899617+mat-1@users.noreply.github.com>
2022-11-29 12:59:36 -06:00
mat
36a1122010 fix some docs/examples 2022-11-27 17:51:50 -06:00
mat
1a2178959d tell the user what email they're using in auth 2022-11-27 16:29:30 -06: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
Honbra
962b9fcaae
Fix ServerboundContainerClickPacket (#45) 2022-11-27 16:24:31 -06:00
Ryan
087e056bbc
feat: PlayerCombatKill client event (#44)
* feat: PlayerCombatKill client event

* Event name changed to Death

* dead client state and respawn packet

* fix doc comment
2022-11-21 23:20:09 -06:00
mat
6dfce515bd ok shutdown doesn't actually have to consume client 2022-11-21 14:17:13 -06:00
mat
0b9d7dff03 improve shutdowns 2022-11-21 14:10:37 -06:00
mat
3ad32806dc Update README.md 2022-11-19 16:32:49 -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
befa22c1f3
Player List (#41)
* keep track of player list

* send player update events
2022-11-18 22:11:30 -06:00
mat
6c6eb5572b clippy + replace some printlns with debug 2022-11-18 22:10:34 -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
ad6da947cd
Create FUNDING.yml 2022-11-18 19:29:04 -06:00
Ubuntu
00bfcde391 move some stuff to the azalea_client::chat mod 2022-11-17 17:42:30 +00:00
mat
0d004b72ac
Rename "dimension" to "world" (#39)
* rename "dimension" to "world"

* Update mod.rs
2022-11-15 14:52:26 -06:00
Ubuntu
b9da6f7475 rephrase that 2022-11-15 20:45:03 +00:00
Ubuntu
709c5dbc19 add Client::metadata 2022-11-15 20:44:33 +00:00
Ubuntu
614c0df053 clippy 2022-11-15 20:38:32 +00:00
Honbra
9f78b3f4a7
Military-grade server implementation (#40)
* Military-grade server implementation

* Add doc comments
2022-11-14 13:25:59 -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
fa57d03627 Update Cargo.lock 2022-11-12 12:15:24 -06:00
mat
16d0cb734c change some dependencies 2022-11-11 23:10:38 -06:00
mat
d235349229 add more to optimization docs 2022-11-11 22:16:39 -06:00
mat
e6db7d5f2f add optimization stuff to azalea docs 2022-11-11 21:55:47 -06:00
Ubuntu
3530faea4e Merge branch 'main' of https://github.com/mat-1/azalea into main 2022-11-12 02:04:15 +00:00
mat
981105b2c0 fix docs 2022-11-11 20:01:54 -06:00
mat
9e09df1837 make some stuff in azalea-protocol public 2022-11-11 19:24:45 -06:00
mat
1df4f9f477 fix example in azalea_protocol::connect 2022-11-11 19:05:00 -06:00
Ubuntu
4a1ec068fc improved docs 2022-11-11 21:04:18 +00:00
Ubuntu
dc62ada865 fix clippy warnings 2022-11-10 17:50:41 +00:00
Ubuntu
0738ad038f didn't cargo check lol 2022-11-10 16:14:02 +00:00
Ubuntu
8b3fe0b241 fix another panic in bitset 2022-11-10 15:46:11 +00:00
mat
1fc42d7566 semicolon lol 2022-11-09 19:14:07 -06:00
mat
f2d21ad813 shut down on broken pipe 2022-11-09 18:18:55 -06:00
Ubuntu
ad8b1b7b24 ignore bad utf8 2022-11-09 18:59:03 +00:00
Ubuntu
8de73c336f fix warnings 2022-11-09 17:41:06 +00:00
Ubuntu
0675e05e28 don't error on bad entity data packet 2022-11-09 17:34:48 +00:00
Ubuntu
c4843b347d make some fields public in light update packet 2022-11-08 20:45:17 +00:00
Ubuntu
350f9f105e don't log light updates 2022-11-08 20:34:39 +00:00
Ubuntu
10bdcf3b4d log some more stuff 2022-11-08 20:14:45 +00:00
mat
21898627fd don't panic on kick 2022-11-07 22:06:02 -06:00
mat
7844a05650 fix edge case with clearing bitsets 2022-11-07 20:57:32 -06:00
mat
d112856ff6
Entity metadata (#37)
* add example generated metadata.rs

* metadata.rs codegen

* add the files

* add comment to top of metadata.rs

* avoid clone

* metadata

* defaults

* defaults

* fix metadata readers and writers

* fix bad bitmasks and ignore some clippy warnings in generated code

* add set_index function to entity metadatas

* applying metadata
2022-11-06 14:05:01 -06:00
mat
9bc5175116
ask for someone to do server implementation 2022-11-03 20:08:14 -05:00
Ubuntu
0a20160272 change comment to be less than 80 width 2022-11-03 18:00:29 +00:00
Ubuntu
50f1cc47fa some -> most in readme warning 2022-10-31 15:56:15 +00:00