Commit graph

515 commits

Author SHA1 Message Date
notmatthewbeshay 09896918cd Use standard wide string returns in game rules 2026-03-11 15:38:47 +11:00
notmatthewbeshay dd726f8ba1 Use standard callback params in common app 2026-03-11 15:38:47 +11:00
notmatthewbeshay d0a741544c Use standard action helper types in common app 2026-03-11 15:38:47 +11:00
notmatthewbeshay f7e6b02835 Use standard callback types in 4J input headers 2026-03-11 15:38:47 +11:00
notmatthewbeshay d285f41969 Use standard types in keyboard request APIs 2026-03-11 15:38:47 +11:00
notmatthewbeshay b82e0af700 Use portable file reads for debug save transfer 2026-03-11 15:38:47 +11:00
notmatthewbeshay fdf2a6fa78 Remove DWORD from UI thumbnail callback headers 2026-03-11 15:38:47 +11:00
notmatthewbeshay 02d3bba5f0 Use standard buffer types in load or join save transfer 2026-03-11 15:38:46 +11:00
notmatthewbeshay bd5b092357 Remove Win32 local state from common UI helpers 2026-03-11 15:38:46 +11:00
notmatthewbeshay dc342c092d Remove Win32 wide char aliases from DLC UI flows 2026-03-11 15:38:46 +11:00
notmatthewbeshay c17c613692 Remove Win32 wide char aliases from debug UI scenes 2026-03-11 15:38:46 +11:00
notmatthewbeshay 6b149fdc38 Remove Win32 wide char aliases from world load menus 2026-03-11 15:38:46 +11:00
notmatthewbeshay 124b3becb6 Remove Win32 wide char aliases from settings menus 2026-03-11 15:38:46 +11:00
notmatthewbeshay cf1670579f Remove Win32 exit code types from fullscreen progress 2026-03-11 15:38:46 +11:00
notmatthewbeshay 4e102e1391 Remove Win32 local state types from create world menu 2026-03-11 15:38:46 +11:00
notmatthewbeshay e2bbccf7eb Remove Win32 local state types from join and load menus 2026-03-11 15:38:46 +11:00
notmatthewbeshay 7f29aa5d99 Remove Win32 local types from UI controller 2026-03-11 15:38:46 +11:00
notmatthewbeshay 015cdd3824 Remove Win32 string aliases from UI menus 2026-03-11 15:38:46 +11:00
notmatthewbeshay 986dbd60ef Remove Win32 callback types from pause menu helpers 2026-03-11 15:38:45 +11:00
notmatthewbeshay 35035cfe4d Remove Win32 wide char types from leaderboard UI 2026-03-11 15:38:45 +11:00
notmatthewbeshay 56f6bb8da6 Remove Win32 wide char aliases from skin select menu 2026-03-11 15:38:45 +11:00
notmatthewbeshay 4506a204f9 Remove Win32 preview state types from skin select menu 2026-03-11 15:38:45 +11:00
notmatthewbeshay 86c900239b Remove Win32 index types from skin select menu 2026-03-11 15:38:45 +11:00
notmatthewbeshay e20cd0acd0 Remove Win32 callback types from load or join transfers 2026-03-11 15:38:45 +11:00
notmatthewbeshay 470fc532f8 Remove Win32 count types from leaderboard UI 2026-03-11 15:38:45 +11:00
notmatthewbeshay 147ce20bc5 Remove Win32 wide string aliases from common UI 2026-03-11 15:38:45 +11:00
notmatthewbeshay 3b199b9ba2 Remove Win32 input types from abstract container menus 2026-03-11 15:38:45 +11:00
notmatthewbeshay 12bc5aa597 Remove Win32 state types from player skin preview 2026-03-11 15:38:45 +11:00
notmatthewbeshay 305d5f0812 Use standard player IDs in kick confirmation callbacks 2026-03-11 15:38:44 +11:00
notmatthewbeshay b40e716b2c Remove Win32 player ID types from in-game info menu 2026-03-11 15:38:44 +11:00
notmatthewbeshay 4306e80068 Remove Win32 player ID types from teleport menu 2026-03-11 15:38:44 +11:00
notmatthewbeshay 7f917af01c Use standard save image buffers in load or join menu 2026-03-11 15:38:44 +11:00
notmatthewbeshay a55fddf270 Use standard image buffers in UI scenes 2026-03-11 15:38:44 +11:00
notmatthewbeshay b9b2e51bc8 Remove Win32 callback types from UI helper scenes 2026-03-11 15:38:44 +11:00
notmatthewbeshay c50aa9c152 Use portable file IO for UI TTF fonts 2026-03-11 15:38:44 +11:00
notmatthewbeshay 594e799089 Remove Win32 callback types from progress scenes 2026-03-11 15:38:44 +11:00
notmatthewbeshay 9daa8f9c1a Remove Win32 callback types from common UI scenes 2026-03-11 15:38:44 +11:00
notmatthewbeshay 80f1a8d1b5 Remove Win32 callback types from UI keyboard scenes 2026-03-11 15:38:44 +11:00
notmatthewbeshay 3b785b6787 Remove Win32 callback types from save management menu 2026-03-11 15:38:44 +11:00
notmatthewbeshay b28f6bdbe8 Remove Win32 callback types from join and load menus 2026-03-11 15:38:43 +11:00
notmatthewbeshay db4ea77ed9 Use standard timer types in UIController 2026-03-11 15:38:43 +11:00
notmatthewbeshay 7f1c1ce7f8 Use bool for tooltip enable state 2026-03-11 15:38:43 +11:00
notmatthewbeshay b4a005fb8c Remove Win32 callback types from launch menus 2026-03-11 15:38:43 +11:00
notmatthewbeshay 7b3b49c662 Remove LPCWSTR from shared UI text structs 2026-03-11 15:38:43 +11:00
notmatthewbeshay c3f3bc5a66 Use bool launch option flags in XUI 2026-03-11 15:38:43 +11:00
notmatthewbeshay 74650536f7 Use bool launch option flags in common UI 2026-03-11 15:38:43 +11:00
notmatthewbeshay 3e40aa45af Remove BOOLs from launch option params 2026-03-11 15:38:43 +11:00
notmatthewbeshay 4e975540a9 Remove Win32 types from UI message boxes 2026-03-11 15:38:43 +11:00
notmatthewbeshay d89db4917a Use standard small-id types in player options 2026-03-11 15:38:43 +11:00
notmatthewbeshay c72b3d757a Use standard pointers and bools in UI structs 2026-03-11 15:38:43 +11:00
notmatthewbeshay 9e20f8007f Use standard thumbnail types in save list data 2026-03-11 15:38:43 +11:00
notmatthewbeshay ca72052b4c Remove Win32 types from UI substitution textures 2026-03-11 15:38:42 +11:00
notmatthewbeshay e83cf9a2f3 Use standard buffer types for TMS files 2026-03-11 15:38:42 +11:00
notmatthewbeshay eb52911d25 Use standard buffer types for TPD extraction 2026-03-11 15:38:42 +11:00
notmatthewbeshay 5f991ccd6a Use standard buffer types for in-memory TPD data 2026-03-11 15:38:42 +11:00
notmatthewbeshay 37aa3463be Use standard buffer types for in-memory textures 2026-03-11 15:38:42 +11:00
notmatthewbeshay c4947ce99a Use standard screenshot buffer types 2026-03-11 15:38:42 +11:00
notmatthewbeshay d2db55e050 Use standard thumbnail buffer types 2026-03-11 15:38:42 +11:00
notmatthewbeshay 3e89da8dff Use standard byte buffers for save image metadata 2026-03-11 15:38:42 +11:00
notmatthewbeshay 2bc55b838d Remove Win32 byte types from game rule helpers 2026-03-11 15:38:42 +11:00
notmatthewbeshay 0437fb921f Use standard byte counts for base save data 2026-03-11 15:38:42 +11:00
notmatthewbeshay 0ab0fd9209 Standardise fixed-width integer usage in touched files 2026-03-11 15:38:42 +11:00
notmatthewbeshay 83ba8d8384 Use a portable seek origin for save files 2026-03-11 15:38:41 +11:00
Tropical 19bc286818 chore: remove another test print 2026-03-10 23:33:12 -05:00
Tropical 559cdfd281 chore: remove test prints 2026-03-10 23:31:13 -05:00
Emily 723f741a8e Merge branch 'dev' of https://github.com/urzuline/4jcraft-urzuline into dev 2026-03-11 00:30:00 -04:00
Nikita Edel b64280a978
Merge branch '4jcraft:dev' into fix-with-ubsan 2026-03-11 05:29:51 +01:00
Emily 4e286dd92c ifdef the option 3 2026-03-11 00:29:19 -04:00
Emily 1a261de1ba
Merge branch '4jcraft:dev' into dev 2026-03-11 00:21:49 -04:00
Sally Knight c42f71ba22 fix: restore and fix entity, block and hand lighting
Block and entity light layers are done differently for now due to some caveats with light map transformation
2026-03-11 07:13:48 +03:00
Emily 0f605b8997 mrrrp (V-Sync Changes) 2026-03-11 00:09:07 -04:00
DecalOverdose 3f7a53ad50
Merge pull request #173 from 4jcraft/fix/leaderboard-manager-null
fix: add dummy `LinuxLeaderboardManager` implementation
2026-03-11 07:53:56 +04:00
Tropical c774e1eb18 feat(input): add sprint keys 2026-03-10 22:42:14 -05:00
Nikita Edel 142e41e1ca fix sort function 2026-03-11 04:08:40 +01:00
Nikita Edel 56955ad935 shift of negative values, added casts 2026-03-11 03:59:41 +01:00
Nikita Edel caadcfe9db faulty casts of templated classes 2026-03-11 03:45:56 +01:00
Tropical 35a45063b1 fix: remove the fallback null LeaderboardManager 2026-03-10 21:39:46 -05:00
Nikita Edel e76ec32824 dangerous alignment issues
the processDLCData() fn, was constantly casting a raw byte pointer to scalars/structs, replaced those calls with memcpy, also optimized and improved the guards for __linux__ at the top of the file
2026-03-11 03:24:46 +01:00
Tropical deeee2a5d5 fix: add dummy LinuxLeaderboardManager implementation 2026-03-10 20:56:57 -05:00
Tropical ca9ac8e7f7 fix: hotbarSlot is zero-indexed, move max hotbar slots into a constant
Some checks are pending
Build (Linux, x86_64) / build-linux (push) Waiting to run
Build (Linux, x86_64) / build-linux-debug (push) Waiting to run
2026-03-10 20:18:03 -05:00
Tropical 28018e5022 refactor: die FPS flamegraph 2026-03-10 20:11:35 -05:00
Tropical 304c591512 fix: hotbarSlot bounds check 2026-03-10 20:08:54 -05:00
Tropical 9752dec5e7 fix: remove juicey's visionary offhand implementation 2026-03-10 20:08:01 -05:00
JuiceyDev c2728cd2d9 SDL scroll wheel w/ hotbar & numbr support !!!!!! 2026-03-11 01:52:27 +01:00
Tropical c606302808 fix: dl dep is gone 2026-03-10 18:09:03 -05:00
Tropical 197bf0033f Merge branch 'dev' into feat/sdl-support 2026-03-10 17:38:52 -05:00
Tropical fe631bcff8 chore: undo unintentional meson changes, update README 2026-03-10 17:32:53 -05: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
Nikita Edel 8865194e47 uninitialized data 2026-03-10 21:59:51 +01:00
Leah Anderson 4e39635f20
Merge pull request #167 from 4jcraft/fix/missing-asset-error
Some checks are pending
Build Linux Release / build-linux (push) Waiting to run
Build Linux Release / build-linux-debug (push) Waiting to run
fix: remove unused console-only asset archive imports
2026-03-10 14:31:36 -06:00
Tropical 12ede0691a fix: remove unused console-only asset archive imports 2026-03-10 15:22:37 -05:00
Nikita Edel c86bfe35f3
Merge branch '4jcraft:dev' into dev 2026-03-10 20:51:42 +01:00
MatthewBeshay ca942717cb
Merge branch '4jcraft:dev' into issue/51-phase-1-portable-win32-cleanup 2026-03-11 06:44:56 +11:00
Nikita Edel 0ff6f767e5 formailize comments 2026-03-10 20:30:31 +01:00
Tropical 750436d815
Merge pull request #165 from 4jcraft/fix/fatal-load-error
fix: implement `CConsoleMinecraftApp::FatalLoadError` on linux
2026-03-10 13:57:00 -05:00
Nikita Edel f9fc430c43
Merge branch '4jcraft:dev' into dev 2026-03-10 19:34:42 +01:00
Echo J. 8a8280b242
GameNetworkManager: Fix incorrect infinity value redefinition
WaitForSingleObject() uses the maximum 32-bit value for specifying infinite timeout (while INFINITY might overflow that sized value back to 0) which caused the server wait event to not actually wait when compiled with Clang (and the game to be forever stuck on a black screen due to abnormal server state)
2026-03-10 20:00:07 +02:00
Tropical 5406648692 fix: implement CConsoleMinecraftApp::FatalLoadError on linux 2026-03-10 11:16:42 -05:00
JuiceyDev 1c67f134b2 added files from pr 2026-03-10 09:18:20 +01:00
MatthewBeshay 2a2558ace3
Merge branch '4jcraft:dev' into issue/51-phase-1-portable-win32-cleanup 2026-03-10 18:39:30 +11:00
Nikita Edel 6be6aadf0e another delete operator missmatch 2026-03-10 02:27:16 +01: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 344921bb26 Remove DWORD from tesselator TLS storage 2026-03-10 10:14:01 +11:00
notmatthewbeshay 96a7519f5d Remove DWORD from chunk TLS storage 2026-03-10 10:14:01 +11:00
notmatthewbeshay 529ecb8185 Remove LPVOID from level renderer rebuild threads 2026-03-10 10:14:01 +11:00
notmatthewbeshay 8da27c59ad Remove LPVOID from game renderer update thread 2026-03-10 10:14:01 +11:00
notmatthewbeshay b59ab4a4b8 Remove LPVOID from server chunk save threads 2026-03-10 10:14:01 +11:00
notmatthewbeshay 5d72f9214a Remove DWORD from client connection user index 2026-03-10 10:14:01 +11:00
notmatthewbeshay 97d12ae2d8 Remove LPVOID from save data thread params 2026-03-10 10:14:00 +11:00
notmatthewbeshay c247f918f1 Remove DWORD from server init settings 2026-03-10 10:14:00 +11:00
notmatthewbeshay 238bf98cad Remove DWORD from server UGC version state 2026-03-10 10:14:00 +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 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 f5326bfe3b Remove Win32 byte types from colour tables 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 6026f078ac Remove Win32 byte types from memory texture loaders 2026-03-10 10:14:00 +11:00
notmatthewbeshay e76f427e34 Remove DWORD from GUI chat accessors 2026-03-10 10:13:59 +11:00
notmatthewbeshay 26c3ac6197 Remove DWORD texture pack IDs from image metadata APIs 2026-03-10 10:13:59 +11:00
notmatthewbeshay fc1e696409 Remove DWORD texture pack IDs from app path helpers 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 91c8698358 Remove DWORD from required texture pack app state 2026-03-10 10:13:59 +11:00
notmatthewbeshay e372b25075 Remove DWORD texture pack IDs from UI launch params 2026-03-10 10:13:59 +11:00
notmatthewbeshay 2dbce494d1 Remove DWORD texture pack IDs from pack interfaces 2026-03-10 10:13:59 +11:00
notmatthewbeshay b47ed0af98 Remove Win32 metadata types from level generation interfaces 2026-03-10 10:13:59 +11:00
notmatthewbeshay c10b1a1706 Remove DWORD sizes from DLC payload APIs 2026-03-10 10:13:59 +11:00
notmatthewbeshay 7bdf4c8ced Remove Win32 byte counts from texture pack images 2026-03-10 10:13:59 +11:00
notmatthewbeshay 65dc775e84 Remove Win32 byte aliases from DLC texture loading 2026-03-10 10:13:58 +11:00
notmatthewbeshay 61808e925a Remove Win32 byte pointers from DLC pack blobs 2026-03-10 10:13:58 +11:00
notmatthewbeshay 66538b67f2 Remove Win32 byte pointers from DLC file interfaces 2026-03-10 10:13:58 +11:00
notmatthewbeshay b02bcd27f5 Remove Win32 byte pointers from texture pack icons 2026-03-10 10:13:58 +11:00
notmatthewbeshay e4cc79387a Remove Win32 byte types from ArchiveFile 2026-03-10 10:13:58 +11:00
notmatthewbeshay 88ffcab9a1 Remove Win32 types from WstringLookup 2026-03-10 10:13:58 +11:00
notmatthewbeshay e38e7c1fc0 Remove Win32 types from StringTable 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 e1a66b0ad0 Modernise portable file and timing utilities 2026-03-10 10:13:58 +11:00
Nikita Edel 2ae8ac3b80
fix typos in comment 2026-03-09 23:15:34 +01:00
Nikita Edel 66b31669c3 new batch of delete operator missmatch 2026-03-09 22:48:36 +01:00
Nikita Edel 5265eef759 first patch of UB 2026-03-09 21:54:43 +01:00
MathiewMay 3f1c95418f removed the turnOnLightLayer on handRenderer so that it renders correctly (similar to how chunk renderer had to be disbaled for proper rednering)
Add nullptr check before calling redner on itemInHandRenderre to prevent a occasional seg fault.
2026-03-09 13:25:56 -04:00
Emily e13c573ecc disable vsync and force maxFps to zero 2026-03-09 13:03:23 -04:00
JuiceyDev 6753364573
Merge pull request #128 from 4jcraft/fix/remove-vibecode
fix: remove LLM-generated socket initialization fix
2026-03-09 16:13:36 +01:00
Tropical 66b10b8226 fix: remove vibecoded socket initialization fix 2026-03-09 09:52:47 -05:00
sewn bf5f416ba5
fix: support backtrace only on glibc systems
execinfo is glibc only, and prevents compiling on
other systems.
2026-03-09 15:12:39 +03:00
Sally Knight 63bed1be5d fix: remove hardcoded interpolation
fixes the game feeling like low fps
2026-03-09 14:12:02 +04:00
DecalOverdose a73e6e145f
Merge pull request #107 from 4jcraft/refactor/untangle-assets-mess
refactor: untangle assets from source
2026-03-09 11:10:27 +04:00
Tropical c1d9413968 feat: render HUD 2026-03-09 02:04:02 -05:00