271 Commits

Author SHA1 Message Date
Eliot Byte
ed9cf8800a
fix correct line generation algorithm and bounds calculation (#657)
* fix correct line generation algorithm and bounds calculation

- Fix closest_point_on_segment algorithm using proper dot product projection
- Correct loop bounds calculation for radius=0 lines
- Use precise integer arithmetic to avoid rounding errors
- Resolves missing blocks in vertical line structures

* fix ai hallucinations

* polishing closest_point_on_segment

* refactor: extract dot product calculation
2025-10-23 12:29:04 +03:00
MihailRis
47cdc02137 fix std::bad_alloc caused by corrupted regions 2025-09-30 00:28:51 +03:00
MihailRis
98e9f5a2a9 Merge branch 'dev' into pathfinding 2025-08-24 17:32:13 +03:00
MihailRis
383dacf616 Merge branch 'main' into dev 2025-08-24 17:31:34 +03:00
MihailRis
a46aafa562
fix fragment:place rotation (#593)
* fix fragment:place rotation
2025-08-22 22:26:43 +03:00
MihailRis
ca1b761c8c Merge branch 'dev' into pathfinding 2025-08-19 19:47:10 +03:00
MihailRis
53ce219127 add 'is_new' argument to on_world_open 2025-08-15 23:48:04 +03:00
MihailRis
3eae377024 refactor Entities 2025-08-09 21:19:01 +03:00
MihailRis
9bb50db297 add pathfinding 2025-07-31 23:29:22 +03:00
MihailRis
436a89b066 feat: post-effects array parameters & add gfx.posteffects.set_array & make shadows opacity depending on clouds opacity 2025-06-14 20:06:05 +03:00
MihailRis
12c7d4dfb4 feat: voxel fragment rotation applying to 'stairs' profile 2025-04-30 21:56:04 +03:00
MihailRis
7749675a61 add EnumMetadata 2025-04-13 13:53:59 +03:00
MihailRis
98813472a8 fix generator area centering 2025-04-11 20:37:08 +03:00
MihailRis
bf79f6bc75 fix "upgrade square is not fully inside of area" error 2025-04-10 23:10:49 +03:00
MihailRis
ecdf87ce0d fix windows build 2025-04-02 18:21:19 +03:00
MihailRis
b3feb5945b reduce extra includes 2025-04-02 14:55:53 +03:00
MihailRis
3d22de761f fix compiler warnings (GCC + Clang) 2025-03-20 22:04:29 +03:00
MihailRis
a1860ff668 cleanup 2025-03-10 14:51:59 +03:00
MihailRis
db620010a3 move weather back to gfx & add world:client/environment.json file 2025-03-09 22:50:45 +03:00
MihailRis
9c4db8fa10 refactor: move Weather instance to WorldInfo 2025-02-28 18:49:44 +03:00
MihailRis
0649419485 randomize rotatable plants in world generation 2025-02-21 19:35:37 +03:00
MihailRis
347d76870a add io::directory_iterator 2025-01-31 10:07:05 +03:00
MihailRis
e0314803c0 migrate from std::filesystem::path to io::path (WIP) 2025-01-30 22:23:13 +03:00
MihailRis
1e22882284 rename 'files' to 'io' 2025-01-30 16:53:52 +03:00
MihailRis
e5d558d357 move world-related sources from files/ to world/files 2025-01-30 15:02:28 +03:00
MihailRis
2f93d38fde fix biome choosing 2025-01-25 02:10:44 +03:00
MihailRis
f772d527e2 feat: nameless worlds 2025-01-13 05:40:43 +03:00
MihailRis
22c7cb8398 add on_chunk_present and on_chunk_remove events 2025-01-12 05:41:42 +03:00
MihailRis
c1b311f3c4 refactor: change pointer parameters to references for Level and Content in various classes 2024-12-25 18:53:53 +03:00
MihailRis
ed7dc1f901 feat: add app.save_world() function and update documentation 2024-12-25 15:15:11 +03:00
MihailRis
fa1646a9bd add '--script', '--version' command line arguments 2024-12-18 00:48:29 +03:00
MihailRis
48d94036fd rename Level.chunksStorage to Level.chunks 2024-12-17 23:57:00 +03:00
MihailRis
b1fc666448 fix 2024-12-17 20:56:25 +03:00
MihailRis
1c18c02092 move Chunks from Level to Player 2024-12-17 19:40:00 +03:00
MihailRis
b7664b4188 move Lighting instance to ChunksController 2024-12-17 05:13:49 +03:00
MihailRis
87c19d69dc move block set logic to the blocks_agent 2024-12-16 20:46:06 +03:00
MihailRis
e713412a6d rename ChunksStorage to GlobalChunks 2024-12-14 18:58:51 +03:00
MihailRis
e0b3425eff migrate blocks interaction (scripting) to global chunks storage (WIP) 2024-12-13 05:54:41 +03:00
MihailRis
436bfd24ba update ChunksStorage 2024-12-11 16:30:19 +03:00
MihailRis
cfc16679cb add test.open_world 2024-12-11 14:49:52 +03:00
MihailRis
c67f158e62 remove default player from headless mode 2024-12-11 00:31:08 +03:00
MihailRis
9b4dd8f65e refactor & add test.new_world 2024-12-10 18:41:39 +03:00
MihailRis
7027bd6f28 add Players 2024-11-23 05:14:12 +03:00
MihailRis
404fa3d0e2 fix msvc build 2024-11-22 16:28:53 +03:00
MihailRis
bd2acd5766 refactor players 2024-11-22 16:17:13 +03:00
MihailRis
9e02f1122f add BlockWrapsRenderer (WIP) 2024-11-20 14:42:53 +03:00
MihailRis
e70d30b9a2 feat: auto patch invalid inventory id pre 0.25 2024-11-19 12:18:59 +03:00
MihailRis
371fdaedce fix World::nextInventoryId 2024-11-19 12:04:56 +03:00
MihailRis
c4170c07c5 refactor 2024-11-14 09:30:41 +03:00
MihailRis
c29db60fa4 Merge branch 'main' into text3d 2024-11-13 01:14:19 +03:00