cbdca4b7c1
feat(client/movement): support inverse goal
2025-03-01 03:33:51 -05:00
663873ba59
feat(client): pass owner uuid to find_entities
2025-03-01 01:02:29 -05:00
29a8c9fcf2
feat(client): add specialized find_players method as an optimization
2025-03-01 00:22:06 -05:00
2fee108f62
fix: properly prevent deadlock on container cleanup
...
`ecs` was being locked once in find_entities, and another time when
`ContainerRef::close()` called by the garbage collector from table.set.
2025-02-28 23:20:48 -05:00
88141d74e7
fix: add back lua.gc_stop()
...
There seems to be a (more severe) deadlock again, due to commit
b55207a55936105549d2724c0723a78e9a12c45c. Need to investigate further.
This is possibly because of azalea's ContainerRef::close(), which
locks some mutex.
2025-02-28 22:49:17 -05:00
bf9891247f
refactor: style and micro performance improvements
2025-02-28 22:34:01 -05:00
3e74399e5b
refactor: rename tables to table
2025-02-28 22:04:59 -05:00
6c7156f70d
refactor: make some more things async
2025-02-28 22:02:52 -05:00
b55207a559
perf: put lua behind an arc
...
This prevents it from running garbage collection on every event,
drastically reducing CPU usage.
2025-02-28 20:04:27 -05:00
f572aaf958
feat: add console-subscriber feature
2025-02-27 20:22:53 -05:00
c1e4530358
feat(client): add more client information fields
2025-02-27 20:22:53 -05:00
74aac62994
style: fix unmerged import
2025-02-26 22:20:51 -05:00
76fd9ea82e
refactor(http): don't return 500 on reload error
2025-02-26 22:08:15 -05:00
d633820d19
refactor: try removing gc_stop
...
This used to cause deadlocks, but it's been a while with many things
rewritten. Let's try enabling it again to see if any issues surface.
Performance should increase as this was called on every event (packet?).
2025-02-26 17:38:04 -05:00
9b0f8ec406
feat(client): add menu field
2025-02-26 17:37:50 -05:00
543f0af741
refactor(lua/system): return command output as strings
2025-02-25 18:19:11 -05:00
e081813ba4
fix: flip direction table values
2025-02-25 18:12:33 -05:00
2b9bf1987b
refactor: minor improvements
2025-02-25 18:07:01 -05:00
d7f863b680
feat: add set_health event
2025-02-24 18:27:50 -05:00
247612fad0
refactor: use a RwLock for event listeners
2025-02-24 16:56:10 -05:00
36054ced03
refactor: random cleanups and efficiency improvements
2025-02-24 01:31:51 -05:00
2ea7ec9e7e
fix(events): manipulate listeners in a task to avoid deadlocks
2025-02-23 17:18:55 -05:00
168ac1bb46
feat: switch to luajit for more features
2025-02-23 15:32:34 -05:00
b1dbfa6110
feat: add file logging via LOG_FILE environment variable
2025-02-23 15:20:15 -05:00
6e75c4e586
refactor(player): pass gamemode as u8
2025-02-23 02:49:09 -05:00
85cb2702f4
refactor: allow too many lines on handle_event
2025-02-23 02:20:28 -05:00
c959e14f80
feat: add set_passengers event
2025-02-23 02:00:05 -05:00
164ccd3a7f
refactor: only capitalize initial for globals
2025-02-22 16:44:24 -05:00
4e64bc6ac4
feat(client): pass entity pose in find_entities
2025-02-22 15:34:10 -05:00
3a93bb9e33
feat(client): pass entity direction in find_entities
2025-02-22 15:24:36 -05:00
3236c4c32e
feat(client): add set_position method
2025-02-22 14:51:48 -05:00
aaad1fe78a
refactor: utils -> system
2025-02-22 14:03:04 -05:00
9b9ccfd2b9
chore(cargo): update dependencies
2025-02-22 12:53:00 -05:00
9b586e9b47
feat: add system command utils
2025-02-22 12:53:00 -05:00
3fc917efae
feat: expose command sender to code from in-game
2025-02-22 00:29:13 -05:00
6fa586829c
fix: exit on server disconnect
...
azalea currently seems to just block forever.
2025-02-21 23:15:41 -05:00
70c1a83eb2
feat(client): bring a few commands from v0.1.0
2025-02-21 23:04:52 -05:00
a4606e68e4
feat(client): add dimension field
2025-02-21 22:20:51 -05:00
ea7a370715
refactor: impl From for Vec3
2025-02-21 22:20:51 -05:00
6f0f3938a7
feat: add last few wrapped events
2025-02-21 22:20:51 -05:00
2f9e4f50cf
refactor: convert to Player struct
2025-02-21 21:52:05 -05:00
bd6698c4b4
feat: add event listeners
2025-02-21 21:52:04 -05:00
c2da997b71
refactor: a few small efficiency improvements
2025-02-21 21:29:20 -05:00
324cb2d6d8
refactor(client): make more methods async
2025-02-18 23:08:22 -05:00
75d4a9c183
refactor(client): simplify usage with deref
2025-02-18 23:08:22 -05:00
93a2dda8c6
feat: accept more lua types for Vec3 and Direction
2025-02-18 23:08:22 -05:00
0303244897
refactor: remove redundant lua type wrappers
2025-02-18 23:08:21 -05:00
2cba4d797f
fix(client): split long replies into multiple chunks
2025-02-18 23:08:21 -05:00
dde489a8ed
refactor: random fixes and usage improvements
2025-02-17 22:52:33 -05:00
8f2fbf11da
feat(client): add last few fields and methods
2025-02-17 15:50:41 -05:00