6592 Commits

Author SHA1 Message Date
UnknownShadow200
6f3d40da20 Fix launcher always telling the windowing backend to redraw entire window, not just the actually (usually quite small) changed region 2022-09-23 16:46:16 +10:00
UnknownShadow200
239b800788 SDL: Fix launcher usually overwriting random memory and crashing when framebuffer depth isn't 32 bits per pixel 2022-09-23 13:02:00 +10:00
UnknownShadow200
46a7cc9e25 Make texture pack code better prepared to support texture packs outside of texpacks folder 2022-09-22 20:17:06 +10:00
UnknownShadow200
996bff6430 Webclient: Save uploaded texture packs to IndexedDB too 2022-09-22 17:33:17 +10:00
UnknownShadow200
3f6d9d4d20
Merge pull request #967 from UnknownShadow200/WebStartup1
Load IndexedDB and textures asynchronously in webclient
2022-09-22 10:29:26 +10:00
UnknownShadow200
54f14fc650 Fix downloading default.zip from wrong location when game html page isn't at site root 2022-09-22 09:26:53 +10:00
UnknownShadow200
24a54e1b1b Importing preclassic and classic 0.13 maps now defaults to spawning at above ground in centre of the map
Previously you used spawned at same position as spawn position from previous level, which typically resulted in spawning underground somewhere

Also fix Visual Studio Command Line compilation instructions not actually compiling due to missing comdlg32 link library (Thanks popgoesme700)
2022-09-20 20:46:18 +10:00
UnknownShadow200
5a6f356a27 Make NBT parser soft instead of hard error in all cases now and improve error messages, begins to address #966 2022-09-20 08:44:39 +10:00
UnknownShadow200
7366c9a749 WIP on making NBT tag parsing soft instead of hard error when encountering unexpected tag type, begins to address #966 2022-09-19 22:20:29 +10:00
UnknownShadow200
1787c92ca5 Completely obsolete Gfx_SetTexturing, also fixes chat input background sometimes missing on Direct3D9 backend (Thanks Flux3on)
Issue was introduced in 3e34665941867cb3b7691a3da864923e4366a3b8
2022-09-14 19:08:07 +10:00
UnknownShadow200
a05aea21ca more minor documentation/example fixes, and remove some unnecessary code 2022-09-12 23:26:55 +10:00
UnknownShadow200
9f76f39cc7 Fix files not being loaded after saving, and fix documentation for changes 2022-09-12 20:23:31 +10:00
UnknownShadow200
96551c620e Make the game load required resources asynchronously, instead of rewriting --preload-file (for texture pack) and prerun (for IndexedDB) 2022-09-12 20:00:36 +10:00
UnknownShadow200
e0658edfd5 Rewrite FS to avoid using directories 2022-09-11 17:27:08 +10:00
UnknownShadow200
bec38c5cf1 Remove more unnecessary stuff 2022-09-11 15:39:41 +10:00
UnknownShadow200
e009bc94a7 Remove stuff don't need 2022-09-11 13:56:06 +10:00
UnknownShadow200
480111d6c1 Integrate emscripten FS directly into interop_web.js, part 1
Breaks loading default.zip currently
2022-09-11 13:23:27 +10:00
UnknownShadow200
21b934a4c6 Mobile: Fix server defined hotkeys still persisting after you quit the server, and then join a different server or singleplayer 2022-09-10 18:10:52 +10:00
UnknownShadow200
3b0f02bb0f Prevent picking grass/double slabs in pure classic mode, fixes getting kicked by vanilla classic server software 2022-09-10 15:33:37 +10:00
UnknownShadow200
3e34665941 Web mobile: Make text input dark instead of light, and don't render chat input behind it at all 2022-09-10 14:19:24 +10:00
UnknownShadow200
e287e8db26 Avoid duplicate entries in input log, to simplify navigation through input history (Thanks Neonium) 2022-09-04 23:35:17 +10:00
UnknownShadow200
9f94ec814b iOS: Add ios-specific app name, and fix User-Agent not being set to app name in http requests 2022-09-03 12:21:17 +10:00
UnknownShadow200
64e27dd570 Simplify OpenGL 1 backend to avoid needing to call Gfx_SetTexturing()
Results in glEnable(GL_TEXTURE_2D) and glDisable(GL_TEXTURE_2D) being called much less often:
23 times --> 4 times (not looking at a block)
23 times --> 6 times (looking at a block)
25 times --> 8 times (all chat with input open)
2022-09-03 10:36:28 +10:00
UnknownShadow200
bf8e52de45
Merge pull request #964 from aurxenon/alpha
Get the game to compile for Alpha architecture
2022-08-29 11:56:46 +10:00
aurxenon
c5f4a49289 Get the game to compile for Alpha architecture 2022-08-28 18:47:58 -04:00
UnknownShadow200
4bc9842e4e Simply block define api again by avoiding need to call Block_SetCollide/Block_RecalculateBB 2022-08-27 17:07:48 +10:00
UnknownShadow200
e525c6ae0e Simplify block define/undefine APIs 2022-08-27 15:44:35 +10:00
UnknownShadow200
36fff5a416 Make block 'blocks TNT' calculation more generic
Note that this means Crate block now no longer blocks TNT, whereas it did before
2022-08-27 15:10:21 +10:00
UnknownShadow200
bc6d1d40e6 Simplify core block declarations by integrating name into default blockdefs table 2022-08-27 14:39:05 +10:00
UnknownShadow200
2cdf7d2969 Remove unused Freetype monochrome rasteriser 2022-08-27 14:08:38 +10:00
UnknownShadow200
720f7af4fa Get undocumented protocol version support working 2022-08-27 13:26:19 +10:00
UnknownShadow200
922110ec43 Add undocumented protocol version (WIP) 2022-08-27 10:39:20 +10:00
UnknownShadow200
dc4bb0caf3 Fix one in a million crash when trying to play music
What happened was that
a) Original thread executes 'music_thread = Thread_Create(Music_RunLoop);'
b) Thread_Create in turn is essentially implemented as
..  StartThread(function)
..  return thread;

The last thing that Music_RunLoop normally does is 'Thread_Deatch(music_thread)'

This meant that in the extremely rare case
1) Original thread was suspended after executing StartThread (i.e. so music_thread had not yet been assigned)
2) Music_RunLoop entirely completed in the rest of the thread's timeslice
..
then Thread_Detach would be called while music_thread was still NULL (since original thread was still suspended), thereby causing the game to crash due to attempting to detach a non-existent thread
2022-08-24 20:59:19 +10:00
UnknownShadow200
c43495b293 Launcher: Split up Options/Updates to two buttons on main menu 2022-08-23 23:13:58 +10:00
UnknownShadow200
345904244f Android/iOS: Options now save immediately after changing instead of after clicking Quit Game, addresses #962 2022-08-21 22:05:11 +10:00
UnknownShadow200
dcbd7d8b94 Simplify mingw compiling instructions 2022-08-21 20:58:12 +10:00
UnknownShadow200
0fae073703 Fix minor water/lava offset being in opposite direction compared to original minecraft classic 2022-08-21 10:33:23 +10:00
UnknownShadow200
4bf0cda6e2 iOS: Get CoreText text rendering backend closer to matching FreeType output 2022-08-20 23:14:20 +10:00
UnknownShadow200
224df71aac Improve ios/android instructions in readme, and also get rid of one redundant frame in stacktraces on some platforms 2022-08-17 21:17:09 +10:00
UnknownShadow200
85bca0cb23 Make stacktraces slightly smaller by avoiding 0x at start, also avoid redundantly logging Logger_Backtrace frame on macOS/iOS
Also fix for commands that specify to split arguments, 'argsCount' was still 1 when command arguments was empty string
2022-08-17 20:33:25 +10:00
UnknownShadow200
543a991559 Save/Load map generation seed to/from .cw files 2022-08-14 15:05:50 +10:00
UnknownShadow200
431c3e427e
Improve plugin compiling instructions and also document for macOS 2022-08-12 23:01:21 +10:00
UnknownShadow200
fa456f991d In classic mode, fix entity positions not being slightly offset into the ground (thanks icanttellyou) 2022-08-08 07:45:29 +10:00
UnknownShadow200
59b70501fa macOS: Add XBUTTON1/2 mouse button support 2022-08-01 19:27:05 +10:00
UnknownShadow200
3bbe889177 Make wrong smooth lighting as wrong as it was before instead of even more wrong 2022-07-31 13:37:15 +10:00
UnknownShadow200
48bf0e3edd Fix light top/bottom face offset calculation being different from other faces (Thanks Goodly, backport from ModernLighting branch) 2022-07-31 13:09:25 +10:00
UnknownShadow200
0f87c2f23f Copy paste fail 2022-07-28 22:23:19 +10:00
UnknownShadow200
6a09a9c662 Android: Fix after going to server list, then going in-game, then quitting game, then going back to server list, all text in the server list is blank/empty (Thanks Action_play) 2022-07-28 22:13:40 +10:00
UnknownShadow200
626b35a993 Change Drawer2D_UNSAFE_NextPart to return color code instead of color 2022-07-28 20:05:08 +10:00
UnknownShadow200
882b437912 Web mobile: Fix test getting pasted twice (Thanks Action_play) 2022-07-27 18:49:45 +10:00