Commit graph

267 commits

Author SHA1 Message Date
notmatthewbeshay 83ba8d8384 Use a portable seek origin for save files 2026-03-11 15:38:41 +11:00
notmatthewbeshay 45c22ab6cc Use bool for save file IO results 2026-03-11 15:38:41 +11:00
Nikita Edel caadcfe9db faulty casts of templated classes 2026-03-11 03:45:56 +01:00
Nikita Edel dfb200d037 integer oferflow, shift of negative value 2026-03-11 00:26:31 +01:00
Nikita Edel a006cc5aa0 uninitialized vptr
the vptr to isSolidRender() is not known before contruction of the Tile. Its true by default. if false, need to pass false. that is what i did. i verfied what isSolidRender() is in every file. and did exactly what isSolidRender() would return
2026-03-10 23:22:34 +01:00
MathiewMay 41d8202c47 applied changes requested by tropicaaal
"i would prefer that these be cast to sized integer types int8_t for portability reasons."

 "The light layer changes are ultimately a hack over the broken renderer implementation and probably out of scope for this PR. There's an in-progress fix for the root cause of this, so this should be removed."

 "std::numeric_limits<int16_t>::max()"
2026-03-10 18:20:33 -04:00
Nikita Edel af16088015 improved a change 2026-03-10 20:13:01 +01:00
Nikita Edel f9fc430c43
Merge branch '4jcraft:dev' into dev 2026-03-10 19:34:42 +01:00
MatthewBeshay 2a2558ace3
Merge branch '4jcraft:dev' into issue/51-phase-1-portable-win32-cleanup 2026-03-10 18:39:30 +11:00
MathiewMay dac0e883b6 Rewrote the entity movement packets to use full 16-bit signed short increasing the entity ID limit from 2048 (artifical lce limit) to 32768 ids (0 to 32767) 2026-03-09 21:45:08 -04:00
Nikita Edel 021c2809f4 purged -Wdelete-non-abstract-non-virtual-dtor 2026-03-10 02:13:56 +01:00
Tropical e4868446bd chore: add comments for 4jcraft-added functionality, undo #135 2026-03-09 19:46:54 -05:00
notmatthewbeshay d1b2b8cedb Use standard byte counts in save file IO 2026-03-10 10:20:17 +11:00
notmatthewbeshay 8be51f6270 Use standard pointers in save file IO 2026-03-10 10:14:02 +11:00
notmatthewbeshay 2b3c688b44 Use bool for save file close handles 2026-03-10 10:14:02 +11:00
notmatthewbeshay 0db324debd Remove LPVOID from split save file memory 2026-03-10 10:14:01 +11:00
notmatthewbeshay 647b3c6352 Remove LPVOID from original save file memory 2026-03-10 10:14:01 +11:00
notmatthewbeshay 32773137e1 Remove VOID from compression helpers 2026-03-10 10:14:01 +11:00
notmatthewbeshay afca289848 Remove DWORD from compression TLS storage 2026-03-10 10:14:01 +11:00
notmatthewbeshay fb3e4947c6 Remove LPVOID from file header APIs 2026-03-10 10:14:01 +11:00
notmatthewbeshay cc8c956358 Use standard byte types in socket queues 2026-03-10 10:14:01 +11:00
notmatthewbeshay 3da761347f Remove BYTE from mob effect packets 2026-03-10 10:14:01 +11:00
notmatthewbeshay 3aeb023869 Remove Win32 types from prelogin packets 2026-03-10 10:14:00 +11:00
notmatthewbeshay d041044000 Remove BYTE from network player IDs 2026-03-10 10:14:00 +11:00
notmatthewbeshay 990d3a9986 Remove BYTE from player user types 2026-03-10 10:14:00 +11:00
notmatthewbeshay b1de3b9065 Remove DWORD player indices from player state 2026-03-10 10:14:00 +11:00
notmatthewbeshay 3f374cecad Remove DWORD skin IDs from player customisation APIs 2026-03-10 10:14:00 +11:00
notmatthewbeshay 62a1aea3fc Remove Win32 types from login packets 2026-03-10 10:14:00 +11:00
notmatthewbeshay a3e09a5fd9 Remove Win32 types from add player packets 2026-03-10 10:14:00 +11:00
notmatthewbeshay bd2c3fca18 Remove DWORD skin IDs from texture geometry packets 2026-03-10 10:14:00 +11:00
notmatthewbeshay 85ddd0cca0 Remove Win32 byte types from texture and geometry packets 2026-03-10 10:14:00 +11:00
notmatthewbeshay 474d8b2896 Remove Win32 byte types from texture packets 2026-03-10 10:14:00 +11:00
notmatthewbeshay fca297538b Remove BYTE from block generation helpers 2026-03-10 10:13:59 +11:00
notmatthewbeshay b5ad58f65c Remove BYTE from entity event constants 2026-03-10 10:13:59 +11:00
notmatthewbeshay 52b462fffd Remove DWORD texture pack IDs from server prelogin state 2026-03-10 10:13:59 +11:00
notmatthewbeshay 3880df481a Remove DWORD from utility TLS headers 2026-03-10 10:13:58 +11:00
notmatthewbeshay 1687568ff7 Remove DWORD from FileHeader interface 2026-03-10 10:13:58 +11:00
notmatthewbeshay 22757b4b51 Remove HANDLE from zoned chunk storage headers 2026-03-10 10:13:58 +11:00
notmatthewbeshay 37d9439be3 Use portable file writes for debug save dumps 2026-03-10 10:13:58 +11:00
notmatthewbeshay 62a5c364f2 Use portable file reads for DLC texture data 2026-03-10 10:13:58 +11:00
notmatthewbeshay 2cc7a74e6f Remove HANDLE from portable file streams 2026-03-10 10:13:58 +11:00
notmatthewbeshay e1a66b0ad0 Modernise portable file and timing utilities 2026-03-10 10:13:58 +11:00
Nikita Edel 66b31669c3 new batch of delete operator missmatch 2026-03-09 22:48:36 +01:00
Nikita Edel 10ee2085ff
Merge branch '4jcraft:dev' into dev 2026-03-09 22:10:47 +01:00
Nikita Edel 5265eef759 first patch of UB 2026-03-09 21:54:43 +01:00
MathiewMay 9c254bbf4d SetEntityMotionPacket::write() was sending raw entity ID without masking, changing it to mask the ID to 11 bits first since large entity IDs were accidentally setting the compression flag bit and causing wrong number of bytes to be read by receiver. 2026-03-09 15:34:08 -04:00
sewn 37d285dba1
fix: compile ConsoleSaveFileSplit for standard C++ 2026-03-09 15:08:59 +03:00
Tropical e571795e99 Merge remote-tracking branch 'origin/dev' into refactor/untangle-assets-mess 2026-03-09 00:58:36 -05:00
Tropical dd46307e4a Merge branch 'dev' into refactor/untangle-assets-mess 2026-03-09 00:38:30 -05:00
Tropical ad1e8369bc refactor: move Common to Platform/Common 2026-03-09 00:17:42 -05:00
MathiewMay 7de4c8a408 Fixed typo in my System::currentTimeMillis which was resulting in very slow or no passed time on world ticks. 2026-03-09 01:04:52 -04:00
Tropical 54dab7708d refactor: rename Build -> Platform in Minecraft.World 2026-03-08 21:33:18 -05:00
MathiewMay 2ca66673b4 Fix System::currentTimeMillis() not returning correct numbers for linux and preventing the game tick, which then broke the input system. 2026-03-08 22:09:37 -04:00
JuiceyDev f12cd2e1f2 Merge origin/dev into reapply/dev-on-upstream-202603082259 - auto-resolved conflicts preferring origin/dev 2026-03-08 23:19:14 +01:00
JuiceyDev e631a62620 Fix: Ensure host-local socket streams created before any Connection is built 2026-03-08 22:59:57 +01:00
JuiceyDev aadb7172a9 buffer fix 2026-03-08 22:59:57 +01:00
Tropical 66248339e5 refactor: unglob std::dynamic_pointer_cast 2026-03-08 22:44:00 +01:00
Tropical 5045acb86e fix: unglob everything else and make it build 2026-03-08 22:44:00 +01:00
Tropical a2e6957383 fix: unglob std::{min, max}, manual stuff 2026-03-08 22:43:59 +01:00
Tropical cce3b0fdfe refactor: unglob std::deque 2026-03-08 22:43:59 +01:00
Tropical a05a15eb73 fix: stupid 2026-03-08 22:43:59 +01:00
Tropical a744f8f471 refactor: deglob std::weak_ptr 2026-03-08 22:43:59 +01:00
Tropical 6e56e07c6b refactor: unglob std::pair 2026-03-08 22:43:59 +01:00
Tropical 78ba464b8a refactor: unglob std::list 2026-03-08 22:43:59 +01:00
Tropical 9a1e4e7752 refactor: byebye using namespace std
shoo
2026-03-08 22:43:44 +01:00
Tropical 31ba56f277 refactor: unglob std::type_info 2026-03-08 22:43:43 +01:00
Tropical 6c4c3a9c94 refactor: unglob std::unordered_set 2026-03-08 22:43:43 +01:00
Tropical 4516cf2e30 refactor: unglob std::enable_shared_from_this 2026-03-08 22:43:43 +01:00
Tropical 6260238f5e refactor: unglob std::(w)ostream 2026-03-08 22:43:43 +01:00
Tropical 40d039c962 refactor: unglob std::endl 2026-03-08 22:43:43 +01:00
Tropical 5fad08b9fd refactor: begin unglobbing std::vector 2026-03-08 22:43:43 +01:00
Tropical d2e8a0f9f5 chore: resolve some void* memset cast warnings 2026-03-08 22:43:43 +01:00
Tropical cff2fc5f44 refactor: unglob std::wstring 2026-03-08 22:43:43 +01:00
Tropical c571014bc9 refactor: unglob std::unordered_map 2026-03-08 22:43:43 +01:00
Tropical 8812c3967b refactor: unglob std::shared_ptr 2026-03-08 22:43:43 +01:00
Pyogenics 1e06432842 Sort localisation strings alphabetically like 4j does 2026-03-08 22:42:33 +01:00
Pyogenics 5c7485144c Create dedicated assets project to enable localisation header generation 2026-03-08 22:42:32 +01:00
zukrmn c122bff122 fix: address PR reviewer feedback regarding random_shuffle and queue.empty() 2026-03-08 22:40:41 +01:00
zukrmn 42b0352ec3 fix: resolve all remaining compilation warnings 2026-03-08 22:40:41 +01:00
zukrmn 387fa1515a fix: resolve high-severity Linux compiler warnings 2026-03-08 22:39:41 +01:00
Tropical b0d0457f7d docs: undo accidental comment replacement 2026-03-08 22:39:41 +01:00
Tropical 052a656673 fix: remove byte type alias 2026-03-08 22:39:40 +01:00
Tropical 43a28fc490
Merge pull request #71 from 4jcraft/refactor/no-std-wildcard
refactor: remove `using namespace std`
2026-03-08 10:09:33 -05:00
DecalOverdose a508412246
Merge pull request #75 from Pyogenics/assetbuild
Asset build on compile
2026-03-07 20:44:12 +04:00
Pyogenics dc54566cd4 Sort localisation strings alphabetically like 4j does 2026-03-07 16:08:44 +00:00
Pyogenics edae8c85c9 Create dedicated assets project to enable localisation header generation 2026-03-07 14:36:34 +00:00
zukrmn 7f4c6bf480 fix: address PR reviewer feedback regarding random_shuffle and queue.empty() 2026-03-07 04:57:43 +00:00
zukrmn ca11afdfca fix: resolve all remaining compilation warnings 2026-03-07 04:43:50 +00:00
Tropical ed551d8658 refactor: unglob std::dynamic_pointer_cast 2026-03-06 22:13:29 -06:00
Tropical e0479e90b4 fix: unglob everything else and make it build 2026-03-06 21:06:31 -06:00
Tropical 04ff82ba70 fix: unglob std::{min, max}, manual stuff 2026-03-06 20:47:11 -06:00
Tropical 967ffbb2a6 refactor: unglob std::deque 2026-03-06 20:41:22 -06:00
Tropical 653a2c4289 fix: stupid 2026-03-06 20:39:58 -06:00
Tropical 6131826226 refactor: deglob std::weak_ptr 2026-03-06 20:38:50 -06:00
Tropical e506b8fe7a refactor: unglob std::pair 2026-03-06 20:37:41 -06:00
Tropical e918160231 refactor: unglob std::list 2026-03-06 20:37:02 -06:00
ThePixelMoon 87c9733e09
Merge pull request #80 from zukrmn/fix/linux-compiler-warnings
fix: resolve high-severity Linux compiler warnings
2026-03-07 03:23:05 +02:00
zukrmn e3fc6ebe52 fix: resolve high-severity Linux compiler warnings 2026-03-06 22:57:02 +00:00
JuiceyDev 3f489a4202 fixed a bunch of shit, might fix renderer ? 2026-03-06 20:09:37 +01:00
Tropical bc7d4ff1d8 refactor: byebye using namespace std
shoo
2026-03-06 12:16:41 -06:00