lukas0008
8bb00e26be
Make ChunkData use Vector2 instead of ChunkCoordinates
2024-08-30 17:40:55 +02:00
lukas0008
5f05a1886b
Change coordinates, and add .get_block to ChunkBlocks
...
- Renamed ChunkRelativeScalar to ChunkRelativeOffset
- Added more traits to Height and ChunkRelativeOffset
- Added .get_block to ChunkBlocks
2024-08-30 15:07:54 +02:00
lukas0008
0c79d38de9
Update .gitignore
2024-08-30 14:46:49 +02:00
lukas0008
e1a1a22047
Fix clippy warnings
2024-08-22 14:02:12 +02:00
lukas0008
10ed8c0472
ci: Separate clippy and build for build release job
2024-08-22 13:58:03 +02:00
lukas0008
b27f6c245b
Update names of jobs
2024-08-22 13:53:36 +02:00
lukas0008
6f9ce489ca
Split ci into multiple jobs
2024-08-22 13:52:00 +02:00
lukas0008
c02200c7fd
Cargo fmt + added *.local.nbt to .gitignore
2024-08-21 18:06:57 +02:00
lukas0008
0d05e5ef36
Add .set_block on ChunkData
2024-08-21 17:31:43 +02:00
lukas0008
e23587b698
Create a basic structure guide
2024-08-21 16:30:38 +02:00
lukas0008
e6f0e126ca
Cargo fmt
2024-08-21 16:16:37 +02:00
lukas0008
8eb894ef13
Create pumpkin-core, and move pumpkin-text
2024-08-21 16:12:09 +02:00
lukas0008
5d023e696c
Delete unused pumpkin-command
2024-08-21 15:53:28 +02:00
lukas0008
3b55bc428c
Fix: make PacketEncoder work again
2024-08-20 00:11:08 +02:00
lukas0008
7b9b35e437
Basic handling of Set creative mod slot packet
2024-08-17 21:11:56 +02:00
lukas0008
9a10ea4ed9
Slot type
2024-08-17 21:11:31 +02:00
lukas0008
fdb94d43fa
Fix: Place block on correct side
2024-08-17 20:40:26 +02:00
lukas0008
94748859c6
Make Vector3 use a generic
2024-08-17 20:40:06 +02:00
lukas0008
2d3990bfa6
Fix rotation
...
- The rotation was previously not taking the modulus of the degree (which is incorrect).
- `head_yaw` is currently not used, since the server only receives the yaw and pitch packet, it can be assumed that head yaw can be identical to yaw.
2024-08-14 01:07:20 +02:00
lukas0008
02a9d79044
Fix: remove test feature
2024-08-14 00:00:58 +02:00
lukas0008
b38e6af2f3
Add s_player_action packet
...
Note: this packet is currently only parsed, not handled.
2024-08-13 23:57:30 +02:00
lukas0008
cce0161e3d
Add WorldPosition struct for packets
...
Add WorldPosition struct that deserialises according to:
https://wiki.vg/Data_types#Type:Position
2024-08-13 23:56:40 +02:00
lukas0008
03f9b377d5
Optimize chunk loading
...
- Chunk loading now is done in a more simple manner. Instead of splitting it into regions and having one file handle for all chunks in the same region, now all chunks make their own file handle for the region, the previous overhead was not worth it, since this seemed to increase performance.
- Speed up of ~15%
- Now the `.read_chunks` function does not return anything, instead it sends event to an mpsc channel.
- Dramatically decreased memory footprint.
2024-08-13 23:30:20 +02:00
lukas0008
96b86f1e9b
Add a stop command
...
Note that this command does not stop gracefully for now
2024-08-13 23:25:11 +02:00
lukas0008
ade661d5b8
Add dhat and rayon
...
- Set up dhat, when dhat-heap feature, the dhap memory profiler will run. Due to this tokio needs to be manually built.
- Rayon now explicitly built outside of tokio runtime.
2024-08-13 23:25:11 +02:00
lukas0008
5075c97faa
Load the world radially
2024-08-13 14:59:52 +02:00
lukas0008
85785c9ebe
Fix: Server panics when loading certain chunks
...
Cause:
The size that is given in the file for the length of the chunk includes the compression byte, thus when reading a chunk that is at the end of the file, it would read 1 byte more that should be possible, causing a panic.
2024-08-13 14:53:55 +02:00
lukas0008
59749af69c
Remove unnecessary logs and loading
...
- Load chunk (0,0) only in debug mode. This prevents crashes when the chunk for (0,0) does not exist, since this is only used for checking the size of the chunk packet.
- Remove log: `Getting chunks x, from region file y`
2024-08-13 14:14:19 +02:00
lukas0008
b68e9b809f
Use rayon for processing chunks
2024-08-13 14:09:49 +02:00
lukas0008
435cd3b365
Remove development things
2024-08-12 20:43:15 +02:00
lukas0008
7a5984984f
Merge fixes
2024-08-12 20:35:07 +02:00
lukas0008
5d6c38d1b2
Merge remote-tracking branch 'upstream/master'
2024-08-12 20:30:52 +02:00
lukas0008
eaf806a928
NOW IT FULLY WORKS
2024-08-12 20:23:15 +02:00
lukas0008
a991ce214b
CHUNK LOADING KINDA WORKS
2024-08-12 20:22:59 +02:00
lukas0008
b9de0839fa
Reapply "Remove reqwest blocking feature"
...
This reverts commit 33df6b0b1f .
2024-08-07 21:16:40 +02:00
lukas0008
f91ee4e9eb
Reapply "Reapply "Tokio""
...
This reverts commit fc4c9b3b98 .
2024-08-07 21:16:33 +02:00
lukas0008
fc4c9b3b98
Revert "Reapply "Tokio""
...
This reverts commit f1b7d649db .
2024-08-07 21:16:03 +02:00
lukas0008
33df6b0b1f
Revert "Remove reqwest blocking feature"
...
This reverts commit 76ce44e58d .
2024-08-07 21:16:00 +02:00
lukas0008
76ce44e58d
Remove reqwest blocking feature
2024-08-07 21:13:00 +02:00
lukas0008
f1b7d649db
Reapply "Tokio"
...
This reverts commit 7891d2848d .
2024-08-07 20:45:22 +02:00
lukas0008
7891d2848d
Revert "Tokio"
...
This reverts commit fa8969d6a2 .
2024-08-07 20:44:04 +02:00
lukas0008
873df335b8
Merge remote-tracking branch 'upstream/master'
2024-08-07 20:34:36 +02:00
lukas0008
2fd8686fea
todo to TODO
2024-08-07 20:33:51 +02:00
lukas0008
fa8969d6a2
Tokio
2024-08-07 19:57:36 +02:00
lukas0008
96c9a573de
fix: unwrap SSwingArm
2024-08-07 17:21:40 +02:00
lukas0008
aab13de89a
Re-add SSwingArm
2024-08-07 17:18:09 +02:00
lukas0008
2e31fda6de
Merge remote-tracking branch 'upstream/master'
2024-08-07 17:14:32 +02:00
lukas0008
298389a10a
Clippy + fmt
2024-08-07 17:08:13 +02:00
lukas0008
11eb08a46c
FINALLY DESERIALIZER WORKS YIPEEEE
2024-08-07 17:07:30 +02:00
lukas0008
e079b23bd9
Remove unnecessary trait
2024-08-05 15:23:04 +02:00
lukas0008
3378b76b36
Remove unused + fmt
2024-08-05 14:14:12 +02:00
lukas0008
1fed6dca5f
Update serializer for more types
2024-08-05 14:12:56 +02:00
lukas0008
a5110eb939
Packet proc macro
2024-08-05 12:56:46 +02:00
lukas0008
4fa1cced79
Split all client requests into seperate files
2024-08-05 12:56:46 +02:00
lukas0008
284db803f9
Serde serialize for automatic packet serialization
2024-08-05 12:56:14 +02:00
lukas0008
02337adbdf
Add default gamemode to configuration
2024-08-04 21:29:10 +02:00