5226 Commits

Author SHA1 Message Date
UnknownShadow200
593b581465 If user's custom default texture zip is missing, still show error in chat instead of just silently falling back to default.zip 2020-07-27 19:08:48 +10:00
UnknownShadow200
1db73db9f2 fix web client 2020-07-27 18:35:57 +10:00
UnknownShadow200
8bcbad56f6 Consistently use OnInit/OnFree/OnReset everywhere 2020-07-27 18:32:01 +10:00
UnknownShadow200
b60cfbb856 Fix wrong textures sometimes if you change server's textures and you are using custom default textures
Previously, if you changed server's textures, textures that were not in new textures and were not in custom default textures would retain their texture from the server's old textures, instead of reverting to default.zip.

Now default.zip will always be reloaded too when you have a custom default texture pack. This does make it a little bit slower, but default.zip is simple anyways and always loading it should not really be noticable. (even on my laptop, averages ~40 ms)
2020-07-27 18:14:12 +10:00
UnknownShadow200
5c665ee067 Simplify texture pack loading code, make png/zip detection consistent 2020-07-27 16:59:52 +10:00
UnknownShadow200
56b2986e41 Condense plugin loading failure messages a little bit 2020-07-27 00:07:58 +10:00
UnknownShadow200
149fe29c23 Enforce third person camera clipping when -noclip is in motd (thanks goodly) 2020-07-26 12:50:44 +10:00
UnknownShadow200
d90b06e6a8 minor code cleanup 2020-07-24 19:36:03 +10:00
UnknownShadow200
586e7c4830 Fix when using cmd+c/cmd+v on 32 bit mac, 'c' and 'v' characters are still appended to text input
This commit makes all key character input ignored while command key is pressed
2020-07-24 12:10:37 +10:00
UnknownShadow200
3b1b13eb22 Add support for RISCV register dumping on linux 2020-07-23 23:26:51 +10:00
UnknownShadow200
65ee8fe655 Cleanup options code, simplify css on example classisphere website 2020-07-23 09:07:39 +10:00
UnknownShadow200
f55a55b3c6 Simplify options saving/loading code 2020-07-22 19:19:46 +10:00
UnknownShadow200
a0f4171209 Attempt to fix rare 'options.txt already in use' errors when using direct connect and auto close launcher (Thanks SpiralP) 2020-07-22 16:51:00 +10:00
UnknownShadow200
23c8e49280 Export NetPlayer_Init per request 2020-07-22 15:33:30 +10:00
UnknownShadow200
9d31c74d5d Don't use Game_UpdateDimensions when calculating launcher framebuffer dimensions
The launcher part should be depending on as little of the core game code as possible
2020-07-21 22:39:03 +10:00
UnknownShadow200
ae88643304 Launcher: Scale button borders (and other borders) by DPI 2020-07-21 22:28:29 +10:00
UnknownShadow200
cfd606317f Open source release packaging part of buildbot 2020-07-21 14:46:03 +10:00
UnknownShadow200
81bbc6d3a7 Less warnings compiling web client 2020-07-20 21:41:35 +10:00
UnknownShadow200
b707fef2c8 Fix in launcher if you clicked Updates -> Any button to download before update checking had actually finished, it wouldn't do anything.
This was particularly annoying, because the update checker usually finishes very quickly. So the first time you clicked the button, it didn't do anything, but the next time you clicked the button, it would actually start downloading.
2020-07-19 12:14:50 +10:00
UnknownShadow200
6b8cff6111 Properly detect mac < 10.4 and use NS api instead. Therefore 10.3 is now minimum supported macOS version 2020-07-19 00:30:32 +10:00
UnknownShadow200
40971873a6 Cleanup debug logging messages
Remove launcher web task logging, simplify http logging messages
2020-07-18 13:21:10 +10:00
UnknownShadow200
f1522b9fc9 Split up LScreen Init methods into Init/Show methods (since this was what all the screens were doing anyways) 2020-07-18 12:53:46 +10:00
UnknownShadow200
1a7c4a24f7 I am altering the API. Pray I don't alter it any further.
Readd obsolete Dynamic_Get/Load because some plugins depend on it
2020-07-17 20:07:19 +10:00
UnknownShadow200
79a22ff18c Use simpler GLContext_GetAll for loading OpenGL 1.5/1.2 functions 2020-07-17 17:18:51 +10:00
UnknownShadow200
188ea885ee Also make libcurl dynamic loading use new DynamicLib_GetAll 2020-07-17 12:32:47 +10:00
UnknownShadow200
f5095d4389 Add simpler DynamicLib_GetAll interface 2020-07-17 12:24:33 +10:00
UnknownShadow200
1ee9e86502 When disconnecting from server due to invalid opcode, also include opcode of last valid packet in message 2020-07-15 19:11:48 +10:00
UnknownShadow200
a819ca770f Don't crash if out of memory when allocating samples for writing .wav file 2020-07-14 21:48:30 +10:00
UnknownShadow200
d403ba6659 Show slightly more user friendly decimal instead of hexadecimal error number (Thanks MasterMen) 2020-07-14 21:15:07 +10:00
UnknownShadow200
b9ef7fbe70 Keep data length local instead of relying on file length when writing out .wav sounds 2020-07-14 19:40:41 +10:00
UnknownShadow200
d7299b12fd Change message from 'using nolimit mode is discouraged' to 'nolimit mode is pointless - it wastefully renders frames that you don't even see'
tired of people telling others that they should be playing in nolimit mode
2020-07-14 11:37:25 +10:00
UnknownShadow200
24e37d0658 Reduce glVertexAttribPointer calls to improve performance in
web client when low performance is due to gl call overhead.

Examples of FPS differences:
-- CR 83/FF 78/IE 11 (Win7 desktop nvidia, 512 viewdist)
-------------------------------------------------------
NA2 FB :  60->60,   38->47,   25->39
PR main:  90->100,  60->76,   42->70
TGA FB :  60->80,   49->62,   35->56
NB  FB :  60->60,   44->47,   32->37
Au70 FB: 140->167,  72->92,   60->99
Lag map:  30->60,   25->40,   15->30
CR  FB : 160->162, 100->108, 112->124
Fltgras: 200->200, 185->185, 310->320

-- CR 83/IE 11 (Win 7 laptop intel, 256 viewdist)
NA2 FB :  40-70 ->  50-80 ,  14->24
PR main:  25-35 ->  25-40 ,  22->27
TGA FB :  20-30 ->  20-40 ,  18->22
NB  FB :  40-50 ->  40-80 ,  17->55
Au70 FB:  30-70 ->  40-80 ,  20->35
Lag map:  20-30 ->  30-60 ,  10->20
CR FB  :  70-120->  70-130,  30->45
Fltgras: 150-170-> 150-170,  66->66

-- CR/FF mobile (Android, 128 viewdist)
PR main:  16->17,    8->  8
TGA FB :  50->60,   20-> 22
Au70 FB:  70->80,   30-> 30
Lag map:  17->23,    8-> 11
Fltgras: 150->150,  57->60

So to the best of my knowledge, there are no performance regressions.
Raspberry pi/android should also improve a little bit, but untested.
(benefit will be less as GLES calls are much cheaper compared to WebGL calls)

These measurements should be looked at as relative percent improvements, not
as absolute FPS comparisons. I did not try to properly benchmark here -
especially for the laptop, where FPS wildly varied. All these are averages.
2020-07-13 23:30:55 +10:00
UnknownShadow200
c45442554f
Add note about having to disable mouse integration for virtualbox, improve compiling section in readme
Added documentation for compiling using visual studio command line, clarified mingw/mingw-w64 steps, add larger titles separating compiling instructions by OS
2020-07-12 09:36:31 +10:00
UnknownShadow200
2edbcd411f Always define OpenGL constants for versions > 1.1 instead of relying on GL.h 2020-07-11 11:12:38 +10:00
UnknownShadow200
891ebe1942 Fix CC_BUILD_GLMODERN having messed up fog (thanks picat) 2020-07-10 09:28:50 +10:00
UnknownShadow200
fa3a9ab3d7 Also include Geneva in default fonts list, fixes crashing on macOS panther 2020-07-09 22:52:30 +10:00
UnknownShadow200
04b7cd62ee Use DynamicLib_Get2 instead of dlsym for GetMenuBarEventTarget
using -2 for lib probably breaks powerpc, which I will get around to fixing eventually
2020-07-09 21:35:16 +10:00
UnknownShadow200
35ed41ab81 Fix wrong link in hosting-webclient.md and simplify hosting-flask.md by combining the 3 html template files into 1 2020-07-08 18:27:13 +10:00
UnknownShadow200
eb68cb9026
Merge pull request #688 from SpiralP/master
Custom Models v2
2020-07-07 19:19:15 +10:00
SpiralP
2faeccd5e8 fix head 2020-07-07 01:28:50 -07:00
SpiralP
21b97d2dc4 oop 2020-07-07 00:41:07 -07:00
SpiralP
331651bf34 cleaner code, each anim now chooses which axis to modify 2020-07-07 00:37:35 -07:00
SpiralP
79e3e0beed change protocol for anims: anim type byte now contains which axis to apply to 2020-07-07 00:14:37 -07:00
SpiralP
18ad212279 remove CustomModel_DrawArmPart, added by mistake 2020-07-06 23:43:35 -07:00
UnknownShadow200
08a5cd880f Fix mac/linux builds being broken, oops 2020-07-06 20:22:32 +10:00
UnknownShadow200
3e539a45a5
Merge pull request #689 from UnknownShadow200/AnimsOptimise
Optimise partial texture updates
2020-07-06 20:15:11 +10:00
SpiralP
0a0b2a841b Custom Models v2
now allows 4 modifier numbers per animation, and 4 animations per part
2020-07-05 17:11:36 -07:00
UnknownShadow200
0046c544f4 Bump up max number of arguments for client commands from 10 to 50 2020-07-05 22:00:28 +10:00
UnknownShadow200
e140731504 Make Bitmap use BitmapCol* instead of u8*, make fields lowercase for consistency 2020-07-05 19:57:23 +10:00
UnknownShadow200
7821fa3ab3 Use rowWidth argument for texture animations, avoids a pointless copy for D3D9 backend 2020-07-05 16:39:21 +10:00