Commit graph

19347 commits

Author SHA1 Message Date
Eidolon
603be1dcaa Merge branch 'gl-encoremap-leak-fix' into 'master'
Fix GLENCORE memory leak, re-enable

See merge request KartKrew/Kart!1688
2024-08-01 03:44:32 -04:00
NepDisk
00889e7001 Revert "Merge branch 'lua-action-profile' into 'master'"
This reverts commit e1c010c8ed.
2024-08-01 03:34:53 -04:00
James R.
e1c010c8ed Merge branch 'lua-action-profile' into 'master'
lua_profile: measure lua actions

See merge request KartKrew/Kart!2219
2024-08-01 03:26:46 -04:00
Hannu Hanhi
32a66b1585 Fix Lua stack overflow in LUA_UpdateSprName 2024-08-01 03:11:33 -04:00
Hannu Hanhi
6367af6cd7 LUA_EnumLib optimizations for constant value access
- constants are stored into _G after first use

- made LUA_EvalMath's dedicated Lua state permanent so it can also benefit from these optimizations
2024-08-01 03:11:20 -04:00
NepDisk
eb93c8df5b Fix possible crashes in the Lua API when accessing invalid fields
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2128\?commit_id\=6414e9db79771494f87662f902999a028aa385cd
2024-08-01 02:54:12 -04:00
Hanicef
091f781b49 Add tofixed lua function 2024-08-01 02:20:47 -04:00
NepDisk
78e15d489b Expose BASEVIDWIDTH and BASEVIDHEIGHT to Lua and SOC
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2468
2024-08-01 02:20:28 -04:00
Hanicef
73d324b2a2 Add NameChange lua hook 2024-08-01 02:12:05 -04:00
Ace Lite
0afaa1e977 Just moved Lua_HookVoid really to the end of the function. 2024-08-01 02:07:25 -04:00
Ace Lite
e6ad6a6889 Initial Commit - Hook addon load 2024-08-01 02:06:34 -04:00
hayaunderscore
be266cd691 Change some comments 2024-08-01 02:00:03 -04:00
hayaunderscore
e42008ab13 Add follower_t to userdataType() 2024-08-01 01:59:39 -04:00
hayaunderscore
94f6206c87 Expose followers[] and follower_t to lua 2024-08-01 01:58:04 -04:00
LJ Sonic
496fd82962 Expose debug library to Lua 2024-08-01 01:47:02 -04:00
Hanicef
0870707aee Fix crash if a packet fails to reach the client 2024-08-01 01:42:22 -04:00
pastel
214f9a659a don't adjust texture coords of nonexistant gpatch 2024-08-01 01:27:03 -04:00
LJ Sonic
24129e94d3 Fix HOMs in large rooms
Credits go to Lactozilla
2024-08-01 01:23:38 -04:00
LJ Sonic
a59c92842b Fix maps with more than 65535 segs not working correctly
This renders the "quadrant hack" and ZenNode largely useless
2024-08-01 01:23:31 -04:00
LJ Sonic
99c46acc14 Fix integer overflow with diagonal node splits
Fixes random invisible walls and possibly more errors
2024-08-01 01:23:24 -04:00
NepDisk
e83cf2c17f Fix tint equation shader
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2348\?commit_id\=7433137e988a359f617b05ffe7d2a98ec4322fb4
2024-08-01 01:22:25 -04:00
Zwip-Zwap Zapony
9418a3789c Clamp screen textures to OpenGL's max texture size 2024-08-01 01:15:59 -04:00
Zwip-Zwap Zapony
a56955c9fb Fix OpenGL screen texture resolution 2024-08-01 01:15:44 -04:00
NepDisk
dedfe35cc2 Use size_t instead of intptr_t 2024-08-01 01:14:27 -04:00
Alug
9fe4f13539 Fix FOFs with transferline flag and many linedefs randomly crashing
linenum could go out of bounds if you use more than 4 linedefs for such setup, hence making the game unable to retrieve textures and therefore crashing the games sometimes

many thanks to indev for helping me figuring this one out c:
2024-08-01 01:11:53 -04:00
NepDisk
fbb69305bf Use Kart/SRB2 console colors 2024-08-01 00:50:25 -04:00
NepDisk
4089f8fc53 port newer V_CubeApply from SRB2 2024-08-01 00:36:28 -04:00
NepDisk
2733480d8c Reapply "Fix saturation not being applied on colormaps in OpenGL"
This reverts commit 6fb38b9c7b.
2024-08-01 00:23:02 -04:00
NepDisk
6fb38b9c7b Revert "Fix saturation not being applied on colormaps in OpenGL"
This reverts commit c3e9b2edff.
2024-08-01 00:21:12 -04:00
Gustaf Alhäll
c3e9b2edff Fix saturation not being applied on colormaps in OpenGL 2024-08-01 00:18:36 -04:00
Gustaf Alhäll
2c458a14fd Fix saturation option not being applied on OpenGL 2024-08-01 00:18:02 -04:00
Gustaf Alhäll
3e46e9d553 Fix segfaults on some systems due to polyvertex being NULL 2024-08-01 00:17:13 -04:00
Lach
7d7e56d060 Invert OpenGL rollangle for papersprites to match software renderer behaviour 2024-08-01 00:15:02 -04:00
Sally Coolatta
bdf8ce3064 Paired down OS Lua library
Pretty much removed everything except for time operations. File operations steps on the toes of the IO library, and the others were useless or invasive. The only one I wasn't sure about was `os.tmpname()`, but I think that's something that could be implemented for IO library instead if necessary.

The main reason I want this is because os.time provides an OK way to initially seed RNG on game first boot. But it would also be cute to let Lua modders be able to re-implement Christmas mode / day&night cycles themselves :p
2024-08-01 00:07:17 -04:00
Sally Coolatta
711e105fe3 Handle sorting against water FOFs properly 2024-07-31 23:59:48 -04:00
Sally Coolatta
96e248490c Improve LINKDRAW with multiple objects
Multiple objects with MF2_LINKDRAW will get sorted between each other, instead of purely done with dispoffset.
2024-07-31 23:57:06 -04:00
ashifolfi
062a08914e add transparency flag support to V_DrawFill 2024-07-31 23:50:00 -04:00
toaster
8412ac9fac Merge branch 'fix-gl-sprite-rollangle' into 'master'
Fix OpenGL sprite rollangle for non-papersprites

Closes #616

See merge request KartKrew/Kart!1416
2024-07-31 23:40:08 -04:00
Arthur
1226a99894 Cut the amplitude on the underwater wave in GL 2024-07-31 23:37:09 -04:00
Zwip-Zwap Zapony
c5e00a926a Uncap water ripples 2024-07-31 23:37:04 -04:00
NepDisk
f42e9752d1 reenable model interp and lighting, fix fov not saving 2024-07-31 23:14:20 -04:00
NepDisk
515be6e6b7 make flashing more accurate and remove the need for inflictor for P_damagemobj 2024-07-31 21:49:14 -04:00
NepDisk
f162efe6db Fix forwardmove 2024-07-31 18:55:24 -04:00
Hanicef
a9e66b7044 Do not access memory on misaligned addresses 2024-07-31 18:47:35 -04:00
NepDisk
75ddcb8fef revert mode set io and specfy this is a binary config. 2024-07-31 18:36:48 -04:00
NepDisk
d7dbe97eb8 Readd oil slik, uncomment things from UZB config 2024-07-31 18:17:11 -04:00
NepDisk
9742e1775a Disable combos, restore old invin visuals, fix constant line beeping 2024-07-31 18:02:47 -04:00
NepDisk
ac72e705a6 Reimplement squishing damange 2024-07-31 17:05:16 -04:00
NepDisk
b37be52225 fix make compile 2024-07-31 12:48:35 -04:00
NepDisk
f2f1a0aa66 Remove ebrake, spindash and fastfall. cleanup unused states and sprites 2024-07-31 12:46:03 -04:00