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

758 commits

Author SHA1 Message Date
8139246055 client builder 2023-01-24 17:59:29 +00:00
mat
9e42b61fc7 fix death event 2023-01-23 20:49:04 -06:00
mat
8940e90863 make swarm use builder
still have to fix some stuff and make client use builder
2023-01-22 17:07:24 -06:00
mat
f8230e40af continue switching swarm to builder and fix stuff 2023-01-21 20:11:10 -06:00
228e53adad start converting swarm to use builder 2023-01-21 18:39:27 +00:00
8ea3d728c1 everything compiles 2023-01-20 19:01:52 +00:00
8921ae4887 try to make entity_by work
well it does work but i couldn't figure out how to make it look not terrible. Will hopefully change in the future
2023-01-20 17:57:09 +00:00
a971a30fd1 merge main 2023-01-18 17:56:09 +00:00
c6b5664972 update a thing in cargo.toml 2023-01-18 17:52:40 +00:00
mat
9e4e417e50 try to add a .entity_by function
still doesn't work because i want to make the predicate magic
2023-01-16 22:58:20 -06:00
mat
3dc910f079 physics (ticking) works 2023-01-15 22:53:29 -06:00
mat
a3033321f2 the repo is NOT called Cargo.toml 2023-01-15 22:05:31 -06:00
mat
89cee81276 fix entities
basically moved some stuff from being in the world to just being components
2023-01-15 22:03:06 -06:00
EightFactorial
54e00eb3df
Add function to get message sender's UUID (#56)
* Add uuid function for chat messages

* Does this please you, clippy?
2023-01-14 21:56:09 -06:00
c74ffc03ec use systemstate for packet handler 2023-01-13 22:05:51 +00:00
9f634a4d83 azalea compiles lol 2023-01-13 19:53:04 +00:00
mat
259e7b44ce use the default plugins 2023-01-11 23:08:28 -06:00
473b9f9297 make physicsstate its own component 2023-01-12 02:24:18 +00:00
1b83277a0c maybe fix deadlock idk
can't test it rn lmao
2023-01-11 19:13:23 +00:00
mat
6da1bced1e 🐛 2023-01-10 23:21:06 -06:00
c0829e6d0e simple example for azalea-client 2023-01-11 04:56:11 +00:00
dependabot[bot]
b86a89fa1e
Bump tokio from 1.22.0 to 1.23.1 (#55)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.22.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.22.0...tokio-1.23.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 22:01:50 -06:00
45fd8a0e98 ok what if i just have a bunch of queries and a single packet handler system 2023-01-11 03:58:52 +00:00
f02db24e8c fix warnings 2023-01-10 18:05:38 +00:00
mat
a928d83ade make packet handler work
i still haven't actually tested any of this yet lol but in theory it should all work

i'll probably either actually test az-client and fix all the remaining issues or update the azalea crate next

ok also one thing that i'm not particularly happy with is how the packet handlers are doing ugly queries like
```rs
let local_player = ecs
    .query::<&LocalPlayer>()
    .get_mut(ecs, player_entity)
    .unwrap();
```
i think the right way to solve it would be by putting every packet handler in its own system but i haven't come up with a way to make that not be really annoying yet
2023-01-08 23:30:09 -06:00
109418de21 Merge branch 'improve-entities' of https://github.com/mat-1/azalea into improve-entities 2023-01-07 01:05:42 +00:00
590a5ded8d start fixing some packets 2023-01-07 01:05:27 +00:00
mat
c7a4e88a06 Merge branch 'main' into improve-entities 2023-01-06 18:52:56 -06:00
EightFactorial
0c30138d26
Add reason for disconnect (#54)
* Add reason for disconnect

Handles messages like "The server is full!" and "Banned by an operator."
Ban reasons are shown like "You are banned from this server.\nReason: foo"

* keep the kick reason as a Component in the error

Co-authored-by: mat <github@matdoes.dev>
2023-01-06 18:30:55 -06:00
mat
0bca3d8f5d log headers on unknown sessionserver error 2023-01-05 19:24:21 -06:00
mat
4760488c4a fix 2023-01-05 18:36:44 -06:00
mat
82fad00240 fix auto reauthentication
THANKS MOJANG
2023-01-05 18:28:35 -06:00
Shayne Hartford
fc88dabd95
Fix binary compilation (#53)
* Fix binary compilation

* Unnecessary reference
2023-01-05 14:31:25 -06:00
cf7b2423d0 start fixing stuff 2023-01-05 20:08:04 +00:00
64fea0f660 huh az-client compiles 2023-01-03 21:18:02 +00:00
13794dd79a make writing packets work synchronously* 2023-01-03 21:00:46 +00:00
mat
21c08013b7 start figuring out how functions in Client will work
generally just lifetimes being annoying but i think i can get it all to work
2023-01-02 23:16:45 -06:00
mat
50f6578794 packet handling
now it runs the schedule only when we get a tick or packet 😄

also i systemified some more functions and did other random fixes so az-world and az-physics compile

making azalea-client use the ecs is almost done! all the hard parts are done now i hope, i just have to finish writing all the code so it actually works
2023-01-02 18:59:29 -06:00
mat
9193c1b408 separate minecraft entity ids from azalea entity ids + more ecs stuff
i guess i'm using bevy_app now too huh
it's necessary for plugins and it lets us control the tick rate anyways so it's fine i think

i'm still not 100% sure how packet handling that interacts with the world will work, but i think if i can sneak the ecs world into there it'll be fine. Can't put packet handling in the schedule because that'd make it tick-bound, which it's not (technically it'd still work but it'd be wrong and anticheats might realize).
2023-01-01 03:12:48 -06:00
mat
2de5a39f31 start splitting client
i'm probably gonna change it so azalea entity ids are separate from minecraft entity ids next (so stuff like player ids can be consistent and we don't have to wait for the login packet)
2022-12-29 18:58:56 -06:00
mat
12269a9dc0 start converting some functions in az-client into systems
committing because i'm about to try something that might go horribly wrong
2022-12-26 20:50:37 -06:00
mat
24fc8dc188 packet handler uses the ecs now
and other fun changes

i still need to make ticking use the ecs but that's tricker, i'm considering using bevy_ecs systems for those

bevy_ecs systems can't be async but the only async things in ticking is just sending packets which can just be done as a tokio task so that's not a big deal
2022-12-25 17:12:14 -06:00
mat
8a93a2c158 some ecs stuff in az-client 2022-12-24 20:13:53 -06:00
mat
13fc403484 change a bunch of entity things to use the components 2022-12-24 19:21:11 -06:00
mat
ba5b7b5cab random fixes 2022-12-24 17:43:33 -06:00
mat
eff339661f ok well it compiles but
it definitely doesn't work
2022-12-22 20:09:03 -06:00
mat
f6689e62fe more ecs stuff for entity storage 2022-12-20 13:55:33 -06:00
mat
1436a88ca2 start switching more entity stuff to use ecs 2022-12-17 21:47:40 -06:00
mat
1d26604ec6 generate metadata.rs correctly for bevy_ecs 2022-12-17 19:09:36 -06:00
mat
52772afe85 rename Component to FormattedText
also start making the metadata use bevy_ecs but bevy_ecs doesn't let you query on Bundles so it's annoying
2022-12-13 19:08:49 -06:00