734 Commits

Author SHA1 Message Date
IntegratedQuantum
a6bcab4268 Fix freeing of undefined pointer.
fixes #410
2024-05-27 16:19:27 +02:00
IntegratedQuantum
8ea482fb09 Fix some data races. 2024-05-26 20:55:00 +02:00
IntegratedQuantum
3a5b5ecdd3 Fix Ctrl+C/Ctrl+V 2024-05-26 15:14:00 +02:00
IntegratedQuantum
268b87f8b0 Use a square image for the logo, so it doesn't get squished on windows.
fixes #397
2024-05-26 14:49:41 +02:00
IntegratedQuantum
d99c9ede01 Don't open windows when typing into a text field.
fixes #392
2024-05-26 14:39:35 +02:00
IntegratedQuantum
ca37eb97d7 Use press/release actions for the break/place buttons
Fixes #391
2024-05-26 13:31:52 +02:00
IntegratedQuantum
6013b579d9 Avoid sending empty entityPosition packets. 2024-05-26 12:45:51 +02:00
IntegratedQuantum
62a5642f9c Add F7 and improve congestion control so it prioritizes resending unconfirmed packets even more.
Should fix #390
2024-05-26 12:05:55 +02:00
Weltspear
342393c408
Made deinitLogging create a copy of latest.log which is named after a calendar timestamp (#398)
* Made deinitLogging create a copy of latest.log which is named after a calendar timestamp

* Now logToFile simultaneously logs to both logFile and logFileTs

* Implement suggested changes

* Implement suggested change

---------

Co-authored-by: Weltspear <>
2024-05-26 11:54:03 +02:00
Archbirdplus
a71c4c5f16 build.zig: make release deps default on Mac 2024-05-26 09:22:28 +02:00
Archbirdplus
a851de9ed2 renderer: measure meshing time on its own 2024-05-26 09:22:07 +02:00
tillpp
82a127db1c
Qol shortcuts (#382)
* better shortcuts: no more arthritis simulator

* remove auto-format

* better shortcuts + back to menue option (without world exit tho)

* WIP exiting the world

* Requested changes

* no crash and better exit message.

* Localizers have fun translating this!
2024-05-26 09:10:28 +02:00
archbirdplus
662cbdc77a
Mac: fix goofy mouse motion (#394)
* Mac: fix goofy mouse motion

* Window.zig: indent

* Window.zig: use tabs
2024-05-26 08:36:52 +02:00
IntegratedQuantum
bd54310841 Make user disconnects more thread safe.
fixes #389
2024-05-25 15:15:32 +02:00
IntegratedQuantum
373795fa29 Properly disconnect users on timeout.
Makes #389 worse
2024-05-25 12:01:53 +02:00
IntegratedQuantum
ab8ac4e7f2 Remove the arthritis simulator game mode.
Till++ will be happy.

fixes #377
2024-05-25 10:26:49 +02:00
IntegratedQuantum
f5544a4fee Add the logo. 2024-05-24 20:54:08 +02:00
careeoki
8db5c00857
Texture Update 3 (#387)
* Update many block textures

* Update material items

* Update Chisel item
2024-05-24 20:39:32 +02:00
IntegratedQuantum
f64ba68231 Allow making stairs from more blocks.
Also removed reference to the multi_texture rotation, this should not be implemented as a rotation mode anyways.
2024-05-24 20:19:58 +02:00
IntegratedQuantum
e552a9a34a Change size of all window icons to 9×9 2024-05-24 20:08:23 +02:00
IntegratedQuantum
448f2b0f1f Use a 9-slice texture to draw a button outline.
fixes #379

Also using separate texture for the selection/pressed state of buttons and checkboxes to allow more artistic freedom.
2024-05-24 14:53:43 +02:00
IntegratedQuantum
a9c21ed93f Change the window outline to a simple border and change icons as requested in #380
fixes #380
2024-05-24 13:36:30 +02:00
IntegratedQuantum
5495c3732f Fix the chat window and hide its scrollbar when in the game.
Fixes #383
2024-05-24 13:21:45 +02:00
IntegratedQuantum
1487d7046a Flush during the handshake to reduce latency by a bit (maybe ~150 ms on average). 2024-05-24 11:20:37 +02:00
IntegratedQuantum
843512eae6 Add Congestion control to the network protocol.
Packets are now sent more evenly spaces to avoid congestion on the send buffer of the operating system.

Expensive protocols, like the chunkTransmission protocol, are now executed in parallel to avoid congestion from unpacking large chunks of data in the network thread.

And finally the base protocol now tries to estimate the available bandwidth of the connection based on data of last 1.6 seconds (sorry to the people who live on the moon, your bandwidth cannot be estimated and is set to 100000 kB/s, so you will have trouble playing with your friends on earth).

fixes #216
fixes #212
2024-05-23 18:00:17 +02:00
IntegratedQuantum
6109b117e7 Increase contrast of the game and items.
Addresses some of things discussed in #372

Also changes the resolution of the crafting button icon in the inventory. (remainder of #378)
2024-05-22 13:47:58 +02:00
IntegratedQuantum
0941e46b71 Change ItemSlot size to 32×32 instead of 24×24. Adjusted default window scale for inventories to ensure that the window has the same size on most screen resolutions.
fixes #378
2024-05-21 20:59:16 +02:00
IntegratedQuantum
f2e750ff4d Fix #375 2024-05-20 17:31:49 +02:00
IntegratedQuantum
78ed38dae0 Reduce size of player name labels 2024-05-20 16:45:29 +02:00
IntegratedQuantum
37a43db06d A couple of things:
Increase minimum render distance to 4 (3 still commonly had rendering artifacts).
Lock infinite loop detection behind a developer setting. fixes #374
Fix day night cycle. fixes #368
Properly disconnect users. fixes #370
Fix chat history. fixes #366
2024-05-20 13:33:12 +02:00
IntegratedQuantum
d1e47241aa Send player positions to the clients and fix some small bugs.
fixes #365
2024-05-19 17:46:32 +02:00
IntegratedQuantum
7ede5af011 Send block updates back to the clients
fixes #364
2024-05-19 15:36:19 +02:00
IntegratedQuantum
a4315b9547 Fix client-side block palette.
fixes #363
2024-05-19 14:44:17 +02:00
IntegratedQuantum
6f2973e440 Add the invite screen and fix a few small issues.
Progress for #100
2024-05-19 12:57:39 +02:00
IntegratedQuantum
0e04734c68 Adda pause menu.
Progress on #100
2024-05-18 18:23:07 +02:00
archbirdplus
a47b6851e6
Upgrade deps (#347)
* build.zig: add ../Library RPath to Mac

* build.zig: pull from specific package by system

* build.zig: MacOS: Don't link GL, redundant

* Add extra dependency for headers

* Fill the missing hashes and work around problems for linux-gnu targets.

* Update macos libraries using the glfw fork.

---------

Co-authored-by: IntegratedQuantum <jahe788@gmail.com>
2024-05-17 21:24:01 +02:00
IntegratedQuantum
bb25c0181e Show internal leaves faces.
Fixes #217 at a heavy performance cost.
2024-05-17 20:50:04 +02:00
careeoki
2d73ebdc0a
Pine Trees + Updated Taiga (#356)
* Pine Tree assets

* Pine Tree textures

* Update Taiga with Pine Trees

Note that I didn't make a "pine log top" block.

* Update Taiga with Pine trees

Now with a pine log top. I really dont liike the log tops. Not that they dont look good just how they would be for gameplay

* Add Pine fence and Pine top

* Update pine needles

* Pine Trees Taiga

* Fix line endings for Pine blocks

* Fix Taiga line endings
2024-05-17 20:03:07 +02:00
IntegratedQuantum
0aa143a285 I accidentally committed some debug code that stored all chunks. 2024-05-17 17:39:28 +02:00
IntegratedQuantum
001416dde6 Refactor the Chunk, sperating the Server-specific functionality into a new struct.
Also fixes some data races and changes the default compression so it no longer includes the (redundant) chunk position.
2024-05-17 17:28:53 +02:00
IntegratedQuantum
0628c24b6c Fix chunk saving
fixes #359
2024-05-17 11:31:32 +02:00
IntegratedQuantum
1ba81dc62f Fix the python script so it detects \r correctly. 2024-05-16 21:18:38 +02:00
IntegratedQuantum
48bf2a6d0a Refcount the chunks and fix a crash when placing blocks at a chunk border.
Fixes #338
2024-05-16 20:47:53 +02:00
IntegratedQuantum
13f27a605f Update neighbor block state on the server.
fixes #354
2024-05-15 20:51:34 +02:00
IntegratedQuantum
814bcedcba Ensures that all chunks are stored within 5 seconds of an update.
Closes #348
2024-05-14 20:44:28 +02:00
IntegratedQuantum
cca1c14242 Fix incorrect loading of the block palette.
Fixes #351
2024-05-14 11:27:54 +02:00
IntegratedQuantum
2295ddf310 Fix compiler error on windows after update. 2024-05-14 09:45:30 +02:00
IntegratedQuantum
628404393c Store all chunks when the world is closed and generate lods for the chunks that need to be stored.
Closes #80
2024-05-13 22:20:25 +02:00
IntegratedQuantum
73b8229b24 Update zig 2024-05-13 12:44:05 +02:00
IntegratedQuantum
b62c7d8cb3 Insert missing mutex.lock that caused a crash on mac. 2024-05-13 09:06:06 +02:00