1105 Commits

Author SHA1 Message Date
ikabod-kee
07ab2c8e58
Swamp Revamp (#931)
* Added New Swamp

* Renamed Wetlands internally

* Bam

* Updated Wetlands height

* Update base.zig.zon

* Increased average biome size
2025-01-15 18:14:16 +01:00
IntegratedQuantum
7d3a348863 Water shouldn't drop any blocks when destroyed.
fixes #925
2025-01-14 21:47:39 +01:00
OneAvargeCoder193
137b7e4706 make / open chat 2025-01-14 20:20:36 +01:00
IntegratedQuantum
d47a4ab62a Prevent crashes from recursively opening the error prompt and fix error message from the inventory_crafting window.
fixes #921
2025-01-13 16:52:10 +01:00
IntegratedQuantum
2c681fbffb Simplify the process of sending formatted messages to the user chat entry, as is done often by commands. 2025-01-12 19:20:38 +01:00
IntegratedQuantum
36c38dca2d Show an error prompt every time there is an error message added to the log.
This should make it easier to find and fix problems in the assets.

fixes #911
2025-01-12 16:41:32 +01:00
IntegratedQuantum
1908a487cb Fix the remaining error messages in the console.
fixes #910

Warnings remain in the game, since they serve a different purpose.
2025-01-12 16:10:47 +01:00
IntegratedQuantum
1b1f61cae9 Change some warning messages to error messages.
Errors are things that come from actual problems, like incorrect parametrizations.
Warnings are things that hint at potential problems, but could also occur during regular runtime, like for example server lag.

progress towards #911
2025-01-12 15:54:53 +01:00
IntegratedQuantum
bf2a78a0e6 Load the block breaking textures into the block texture array.
progress towards #620
2025-01-12 14:59:12 +01:00
OneAvargeCoder193
2d783c9ece
Let the player set the default gamemode and disable cheats during world creation (#915)
* let the user change the default world gamemode and enable or disable cheats

* changes

* make old worlds not have gamerules

* fixes
2025-01-11 23:40:31 +01:00
IntegratedQuantum
16dde882e8 Show the biome properties in the F3 debug menu.
fixes #918
2025-01-11 23:00:43 +01:00
IntegratedQuantum
eae85ce519 Fix mistake in the caching of the ItemSlot amount string.
fixes #913 and should make rendering a bit faster.
2025-01-11 21:00:34 +01:00
ikabod-kee
a2d8ce5fb5
Hot, Dry Biomes (Terrain Revamp 1.0) (#903)
* Desert

* Change 1

* Changes 2

* Update ferrock_mountains.zig.zon

* Some Issues Addressed

* Added vegetation to savannah

* Increased radius of desert and ferrock mountains

* Exposed stone more!

* Updated Prairie

* Did the thing

* Addressed issues

* Butte Fix

* Move Cactus

* No Widow

* Get rid of it

* Put savannah into its own folder

* As you wish

* Update prairie.zig.zon

* Update elevated.zig.zon
2025-01-11 20:47:41 +01:00
careeoki
7ffbfb9445
Dry & Lush grass item textures + tweaks and colour edits (#912)
* New dry grass texture, new grass_vegetation textures and items

* Darken baobab leaves, make dead leaves more brown, tweak lush grass plant
2025-01-10 20:15:16 +01:00
IntegratedQuantum
14e475dc2a Add new climate parameters for the amount of vegetation.
fixes #877
2025-01-09 22:04:59 +01:00
IntegratedQuantum
71e0554ed2 Fix memory leak when a parent of a sub biome couldn't be found 2025-01-08 22:43:03 +01:00
ikabod-kee
4992176274 Change Mud Grass to Lush Grass 2025-01-08 22:19:39 +01:00
ikabod-kee
fecadc1a14
Default Climate Changes (#899)
* Added Blocks

* More consistent naming for grass types

* Source Code Changes
2025-01-08 21:44:10 +01:00
ikabod-kee
f492a51d63
Blocks + Block Changes necessary for Terrain Revamp 1.0 (#898)
* Added Blocks

* More consistent naming for grass types
2025-01-08 20:27:32 +01:00
careeoki
7631be234f
Update glow crystals to new coloured blocks palette (#894)
* Update glowcrystal texture, update to new coloured block palette, start on special textures

* Fixes + more work on special textures

* Tweak special textures and emmision vlalues

* Tweaks

* Final edit

* Geen

* Revert glass changes
2025-01-08 00:11:40 +01:00
IntegratedQuantum
a85237ba2e Track durability changes in inventory operations when breaking blocks.
fixes #847
2025-01-04 20:25:22 +01:00
IntegratedQuantum
72796f9905 Fix buffer overflow in the item drop shader.
should fix #891
2025-01-04 14:22:00 +01:00
IntegratedQuantum
850956b0af Reduce latency of itemdrops by sending item drop updates instantly instead of waiting for the next server tick.
progress towards #868
2025-01-03 23:38:23 +01:00
IntegratedQuantum
2202cd01da Use a hash for the tool seed to ensure that server and client side have the same seed.
This does mean that the same source materials always result in the same tool, but I guess that is just a minor change.

fixes #879
2025-01-02 20:06:28 +01:00
careeoki
6de4924146
Willow & Baobab trees (#881)
* Add willow blocks and textures

* Add baobab and tweaks

* Add recipies

* Fix willow leaves absorption
2025-01-02 19:53:51 +01:00
IntegratedQuantum
b2a6c45518 Open the chat on release instead of on press.
fixes #885
2025-01-02 19:39:25 +01:00
IntegratedQuantum
c316017322 Fix rejoining issue.
fixes #876
2025-01-02 16:28:23 +01:00
IntegratedQuantum
59cbde3f03 Don't propagate sunlight from light emitting blocks.
Previously there was a (mostly invisible) layer of sunlight being emitted around every block.

fixes #880 and should also make light propagation on placing blocks faster.
2025-01-02 16:08:02 +01:00
OneAvargeCoder193
5986c76c45
Add player and inventory saving (#878)
* Save the player's location and inventory, and also added the ability to load the player's location

* remove the comment from utils

* make the player save every 5 seconds

* fix gamemode loading

* remove comment

* added inventory loading

* fix bug

* fix unintentional changes

* fix segfault

* fixes

* Some small fixes.

---------

Co-authored-by: IntegratedQuantum <jahe788@gmail.com>
2025-01-02 15:14:22 +01:00
IntegratedQuantum
0a69ab7d18 Fix integer overflow when setting the gameTime to a high value.
fixes #860
2025-01-01 21:40:33 +01:00
IntegratedQuantum
e718a4fc43 Remove the function inheritance pattern from the item drop manager.
My old java brain was responsible for this, and it has bothered me for a while.

A simple if can achieve the same with much less indirection.
2025-01-01 21:13:19 +01:00
IntegratedQuantum
de2e4aedb4 Rename ZonElement.free to deinit to follow zig convention. 2025-01-01 20:27:31 +01:00
IntegratedQuantum
1c5229e480 Reduce air drag and reduce intitial velocity of item drops when breaking a block.
Also offset their initial position randomly within the block.

progress towards #868
2025-01-01 17:22:23 +01:00
IntegratedQuantum
613498d048 Don't execute empty commands when an item cannot be collected to a given item stack.
fixes #871 (technically it fixes only the symptoms, not the root cause. The root cause is probably #865
2025-01-01 16:22:50 +01:00
IntegratedQuantum
a40a854123 Blocks drop items in survival mode.
fixes #645

also fixes an issue where the torch couldn't be broken in survival mode.
2024-12-31 23:58:04 +01:00
IntegratedQuantum
9f3c63ebff Split the server mutex into multiple different mutexes that are used in smaller scopes.
fixes #864
Also fixed a data race in the itemdrop manager
2024-12-31 14:53:42 +01:00
IntegratedQuantum
47ed704e49 Refactor the ItemDropManager to reduce the usage of mutexes.
This is done by ensuring all the critical things are done on the server thread, while all remaining things are locked tightly with a mutex or a better data structure.

fixes #863

Also fixes a bug where item drop collection was not collecting the right amount.
2024-12-31 00:53:06 +01:00
IntegratedQuantum
de90b4ede3 Introduce a ConcurrentQueue to reduce the number of raw mutexes used throughout the code to simplify the code reduce the chance of (multithreaded) deadlocks.
For now it's just a queue with a mutex.

this might help with #863 and #864 in the future.
2024-12-30 00:59:45 +01:00
IntegratedQuantum
19b1e7e002 improve how block drops are configured. 2024-12-29 16:10:28 +01:00
somatcha
62a4b5499b fix: /invite error rename 2024-12-28 23:21:45 +01:00
IntegratedQuantum
79c38b8ccc Store the gamemode on the server and add a command to change it. The gamemode is also now used in inventory operations.
fixes #846
2024-12-27 21:36:31 +01:00
IntegratedQuantum
0c0ca2ed15 Synchronize block breaking and placing throug the inventory synchronization system.
fixes #751
This allowed reenabling item consumption when placing blocks. Durability and item drops are still work in progress.
Currently all game modes consume items. Temporarily reverts some changes from #739, until the game mode is synchronized to the server as well.

progress towards #670
2024-12-24 23:52:11 +01:00
IntegratedQuantum
363edfb22d Set the climate zone wavelength to 4096 by default and make it configurable per world. 2024-12-20 21:53:13 +01:00
IntegratedQuantum
84afe1a189 Allow teleporting to a biome with /tp. 2024-12-20 20:40:06 +01:00
ikabod-kee
c784f16c19
Added a void to separate the cave world from the root world. (#833)
* Add files via upload

* Move the files because I love github

* ACTUALLY replace the files. I love github

* Changed it to 50k

* Folder for void biomes + other changes

Made torches rarer,
Fixed void caverns generating too high,
Made the fog lighter,
Added a root crystals biome (it's a bit rare, I haven't seen it generate, but hypothetically it should be there)

* Removed air patches

* Various Void Changes

Made void spawn lower,
Made void root torches more common,
Changed fog color

* Fixed Fog Color and Made Fog Thicker

* Made the void 1500 blocks tall

* Added caves parameter to Void

* Removed stoneblock replacement
2024-12-19 20:58:49 +01:00
careeoki
afcef76cdf
Stone Walls (#825)
* Add wall model, add stone walls with wip textures

* Some work on textures...

* More work on texture. Tweak Voidstone bricsk

* Add voidstone and ferrock tiles, tweak their textures, more work on twall textures

* Add voidstone and ferrock walls., more work on textures

* Add remaining textures and add missing recipies

* undo change

* Remove mtl references

* Optimized (but z-fighting) wall model

* Fix a thing *backflip*

* Update fence and wall model for new code

* Improve how the fence rotation handles UVs on the top and bottom faces.

---------

Co-authored-by: IntegratedQuantum <jahe788@gmail.com>
2024-12-19 17:52:56 +01:00
IntegratedQuantum
07888c7600 Fix bug in the conservative range calculation of the RandomBiomeDistribution 2024-12-17 22:05:50 +01:00
IntegratedQuantum
458dd20ade Allow setting the highestLod parameter when in the menu.
I decided to avoid the trouble of making this dynamic, by just only allowing to change it in the menu.
fixes #747
2024-12-17 14:37:45 +01:00
IntegratedQuantum
3bdc1dd83d Introduce LOD0.5 which renders all leaves opaque.
This allows removing a bunch of internal faces, improving frametime greatly when looking at a distant forest.

fixes #579

makes #823 more important, since this doubled the cost
2024-12-16 23:27:51 +01:00
IntegratedQuantum
3f0f2f7dcb Allow asset file names to just end in .zon instead of .zig.zon
.zig.zon should still be preferred due to having syntax highlighting on github.
2024-12-16 15:57:32 +01:00