6891 Commits

Author SHA1 Message Date
UnknownShadow200
b6985480e1 Fix eb164f588ac7060008307a133594939a2754bef2 completely breaking inventory rendering with OpenGL, which usually then caused either massive graphical artifacts or crash shortly after 2023-07-01 08:30:36 +10:00
UnknownShadow200
8807e2d4b8 Allow rebinding 1 - 9 hotbar keys 2023-06-30 22:58:53 +10:00
UnknownShadow200
bb55a87bdb PSP: Switching from launcher to game now kinda works 2023-06-30 21:34:28 +10:00
UnknownShadow200
eb164f588a Launcher: Allow using escape to go back in menus
Also move inventory screen to new rendering method
2023-06-30 20:33:33 +10:00
UnknownShadow200
9b41a3312c Make the launcher more controllable via keyboard buttons
Selected button via tab now actually displays in active state, can use up/down to cycle through selected widget now too
2023-06-30 11:58:35 +10:00
UnknownShadow200
5c973cda53 PSP: Implement rudimentary controls 2023-06-29 23:22:45 +10:00
UnknownShadow200
1855213e6d Better BeOS compatibility 2023-06-29 19:46:24 +10:00
UnknownShadow200
bd56c36067 Fix SChannel SSL backend not being able to connect to websites only supporting TLS 1.2 such as dropbox 2023-06-25 22:36:47 +10:00
UnknownShadow200
85c8d22568 Windows: Return a different error code when DNS lookup cannot resolve the provided hostname to an IP address
Also slightly reorganise http client code, and support root relative URLs for redirection now
2023-06-24 21:06:15 +10:00
UnknownShadow200
e9e77ad03b Use better method for supporting platforms that run launcher/game as a single process, rather than hardcoding for mobile 2023-06-24 18:14:13 +10:00
UnknownShadow200
c4858bb8d0 Windows: Fix crash handling stackwalking code rarely crashing
Based on the CPU registers provided in the crash log, the crash was happening near the end of copying from 'ctx' to 'copy' local variable

Given that the user was running on Windows 95/98, it's quite possible that the 'ctx' CONTEXT was smaller in older operating systems - and so trying to copy a full sized CONTEXT into 'copy' would mean that memory past the smaller sized CONTEXT was wrongly read, which could thus rarely cause an access violation

I can't confirm whether this is actually the case or not though, since I couldn't easily find SDK headers for Windows 95/98.

But since we don't care about StackWalk modifying the CONTEXT provided as an argument anyways (given that the process will be terminated right after this), the simplest solution is to just pass the original 'ctx' to StackWalk instead of passing a copy of the CONTEXT
2023-06-23 20:42:12 +10:00
UnknownShadow200
9809e34e78 3DS: Implement rudimentary controls and support for clicking Singleplayer/Multiplayer from main menu 2023-06-22 20:40:33 +10:00
UnknownShadow200
28aba23a1a Rename KEY enum to IPT enum
Given that KEY enum was being misused for e.g. KEY_LMOUSE
2023-06-22 18:22:58 +10:00
UnknownShadow200
3ad0966590 macOS: Add option for not showing dialogs, and revert the try/catch for showing dialog 2023-06-21 23:22:47 +10:00
UnknownShadow200
f34c725d8c Fix not compiling on haiku OS 2023-06-19 21:28:02 +10:00
UnknownShadow200
678da53658 Direct3D9: Add a workaround for translucent blocks not rendering properly when Direct3D9 device doesn't support D3DRS_COLORWRITEENABLE
Since I was concerned that automatically detecting and enabling fallback mode might get falsely activated on some GPU drivers that actually support D3DRS_COLORWRITEENABLE, you have to manually add 'fallback-rendering=true' to options.txt
2023-06-17 20:05:33 +10:00
UnknownShadow200
e9ddb97f56 Redesign map importing to not be so hardcoded 2023-06-17 18:32:09 +10:00
UnknownShadow200
7204116ad1 Add indev .mclevel map importer support 2023-06-17 17:31:44 +10:00
UnknownShadow200
265280f8ed 0.0.23 and earlier now use a slightly different default texture pack, which patches the gold texture to be the older gold texture 2023-06-17 16:12:17 +10:00
UnknownShadow200
2c56162e36 Move default.zip to new method too 2023-06-17 13:26:32 +10:00
UnknownShadow200
4a3bae7dce Add more CPU architectures for register dumping on haiku OS, avoid copying mcontext_t on most operating systems 2023-06-15 22:56:15 +10:00
UnknownShadow200
a6e226ce94 Add CC_BACKTRACE_BUILTIN for a stacktrace backend that works without needing an external library. Probably only works on x86/x86_64 and probably unreliable 2023-06-15 20:48:23 +10:00
UnknownShadow200
1a5c62e155 WIP on moving classicube textures to new asset system, and make them always required now 2023-06-14 22:45:43 +10:00
UnknownShadow200
946fb1f773 WIP on redesigning how asset checking/downloading works in the launcher 2023-06-14 21:49:41 +10:00
UnknownShadow200
9f951893a1 macOS: Try to prevent errors when showing a dialog from crashing the game
Also try to use descriptive error names in crash message box on Windows
2023-06-13 23:41:34 +10:00
UnknownShadow200
1a7ed4e60f
Merge pull request #1027 from UnknownShadow200/GfxCreateIB2
WIP on better index buffer creation function
2023-06-13 19:02:05 +10:00
UnknownShadow200
ea2e57907f Fix buffer overflow when creating default indices on 3DS/PSP/Wii/GC 2023-06-13 18:30:56 +10:00
UnknownShadow200
b379cdfee4 Fix if running with non-classic functionality turned off and a protocol version before 0.30, but still running in Enhanced mode, that the inventory would unexpectedly show invalid all grass blocks (thanks 5parkSprained89) 2023-06-13 11:52:05 +10:00
UnknownShadow200
3a3986ad65 WIP on new Gfx_CreateIB2 which takes a callback function to initialise the index buffer, instead of requiring all the data to be allocated by the caller (on the stack with current InitDefaultResources implementation)
This was problematic for the Wii/Gamecube, as while the default index buffer is 192 kb in size, libogc only initialises the stack to be ~128 kb in size
2023-06-13 00:17:31 +10:00
UnknownShadow200
0498a2a748 macOS: Add logging for unhandled NSExceptions 2023-06-12 21:44:04 +10:00
UnknownShadow200
cca8ff64a3 Fix isometric rendered blocks being slightly misaligned on OpenGL/Direct3D 11 (Thanks 123DMWM), fix sometimes not compiling on recent macOS due to CGDisplayBitsPerPixel no longer being defined 2023-06-12 18:59:22 +10:00
UnknownShadow200
d453eb3d97 Add /client blockedit command that allows changing some properties of blocks 2023-06-11 23:22:40 +10:00
UnknownShadow200
33217d464d Render sprites as flat in inventory and hotbar 2023-06-11 20:48:52 +10:00
UnknownShadow200
5f7526e732 Switch to ldexp in Vorbis float32_unpack 2023-06-10 17:37:22 +10:00
UnknownShadow200
896b6bf8f0 Wii/Gamecube: Fix UI not rendering properly sometimes, fix clouds not moving 2023-06-10 15:17:15 +10:00
UnknownShadow200
e87b3fe1dc Gamecube/Wii: Fix textures not being animated (sorta), fix see-through blocks being drawn opaquely, fix backfaces of blocks (e.g. leaves) not being culled, fix sockets not connecting 2023-06-10 12:23:09 +10:00
UnknownShadow200
fd6301a840 Update buildbot.sh with more recent changes, and minorly tidy up readme 2023-06-09 23:25:21 +10:00
UnknownShadow200
20277e4dec Fix clicking links not working on Windows 95/98, improve readme a bit to be clearer about OpenGL 1.1 support and link to WIP compiling with overriden defaults 2023-06-08 22:15:37 +10:00
UnknownShadow200
56e140428f Reduce size of DeflateState struct, fixes #1022 2023-06-06 20:59:47 +10:00
UnknownShadow200
e2798dcebe Refactor isometric block drawing to only update the vertex buffer once 2023-06-06 17:19:22 +10:00
UnknownShadow200
654ce2079b Fix getting build time in Updates menu not working on Windows 95/98 2023-06-04 21:50:05 +10:00
UnknownShadow200
ed92eab3e5 Gamecube/Wii can kinda connect to servers 2023-06-03 18:02:38 +10:00
UnknownShadow200
230611f736 Running on gamecube kinda works now 2023-06-03 16:55:46 +10:00
UnknownShadow200
54e1e47ada 3DS: Add untested SSL support and log what's in argv
Also for LOWMEM platforms (3DS/PSP etc), reduce size of initial singleplayer world to 64x64x64
2023-06-03 11:06:21 +10:00
UnknownShadow200
2851e02dcf Fix SSL failing with SEC_E_SECPKG_NOT_FOUND on Win 9x 2023-06-02 22:27:46 +10:00
UnknownShadow200
4323e6d0f5 Fix SSL connection sometimes failing, and show some appropriate error messages for SSL certificate validation failure
Windows XP before:
- by default: error 12157 (An error occurred in the secure channel support)
- after enabling TLS 1.0 in IE options: error 10245
- and after disabling https-verify: works

Windows XP after:
- by default: error 80090325 (SEC_E_UNTRUSTED_ROOT)
- and after disabling https-verify: works

older Windows NT before:
- by default: error 12157 (An error occurred in the secure channel support)
- after enabling TLS 1.0 in IE options: 80096004 (TRUST_E_CERT_SIGNATURE)
- and after disabling https-verify: still 80096004 (TRUST_E_CERT_SIGNATURE)

older Windows NT after:
- by default: sometimes error 80096004 (TRUST_E_CERT_SIGNATURE)
- and after disabling https-verify: works

older Windows 9x before:
- by default: error 12157 (An error occurred in the secure channel support)
- after enabling TLS 1.0 in IE options: 80096004 (TRUST_E_CERT_SIGNATURE)
- and after disabling https-verify: still 80096004 (TRUST_E_CERT_SIGNATURE)

older Windows 9x after:
- error 80090305 (SEC_E_SECPKG_NOT_FOUND)
2023-05-31 17:48:16 +10:00
UnknownShadow200
dbf908bc64 WIP on better SSL compatibility with pre Windows 2000 operating systems 2023-05-31 08:47:11 +10:00
UnknownShadow200
deafec54b3 WIP on TLS support for http client on Windows using SChannel 2023-05-30 20:25:47 +10:00
UnknownShadow200
37e22a6ab2 More fixes for 3D rendering 2023-05-28 12:18:52 +10:00
UnknownShadow200
52f11d2679 3D rendering now sort of works 2023-05-27 23:06:54 +10:00