Commit graph

170 commits

Author SHA1 Message Date
NepDisk
fc53a73f9b Kill ->localfile 2025-10-13 11:43:35 -04:00
GenericHeroGuy
a56213921e Let's see if initializing localfile properly closes #131 2025-09-29 16:37:11 +02:00
NepDisk
b665744f45 Revert "Fix addon rejoins (Closes #131)"
This reverts commit 81bd0046b6.
2025-09-28 16:38:59 -04:00
NepDisk
81bd0046b6 Fix addon rejoins (Closes #131) 2025-09-28 14:53:11 -04:00
NepDisk
4dc40f0256 Remove maxsend limit, default to 200MB maxsend
https://gitlab.com/kart-krew-dev/ring-racers/-/merge_requests/14
2025-09-16 10:36:45 -04:00
NepDisk
72596e8d03 Port addfilelocal from saturn
Modified to turn off features we don't have / prevent resyncs
2025-09-14 01:06:05 -04:00
Antonio Martinez
7a27d853f9 Always omit unimportant files from fileneeded (fixes rejoining modded always failing in DEVELOP) 2025-09-12 01:03:55 -04:00
toaster
2baf834265 Threaded HTTP downloader
Composite of the work of:
- Hacinef (SRB2 repository, https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2322 )
- alufolie91 (SRB2Kart-Saturn repository, 84bfb3991e )
This advancement made possible by Indev in the KKD discord

Untested because I don't know how to set up a HTTP download server
2025-09-12 00:33:26 -04:00
NepDisk
69ad164bbc Get rid of netbuffer global
Thx SRB2classic
2025-08-13 19:49:22 -04:00
NepDisk
2f84779d41 Update rest of the existing files to use blankart branding 2025-07-01 00:23:30 -04:00
NepDisk
b93a8215c8 Make bonuschars.kart an Iwad 2025-06-10 18:41:20 -04:00
NepDisk
575c6551ea Add mappatch.pk3, Allow patches to remove existing mapthings. 2025-05-16 08:41:14 -04:00
GenericHeroGuy
4e9ffdaf13 Scrub more references to MD5 2025-04-26 00:57:51 +02:00
GenericHeroGuy
b7f4effe9b Replace MD5 with xxHash for file hashing
Yes, I had to do everything in one sweep, everything's connected...
Incremented demoversion since this changes the header format
2025-04-26 00:25:23 +02:00
Eidolon
7a0949b99c Prevent integer div by 0 in curl progress callback
If the curl callback is called at the exact same time as the
download begins, this callback would cause an integer division by
zero.
2025-04-19 03:11:38 -04:00
GenericHeroGuy
c936c24d15 Replace mainwads with an enum
The mainwads check in G_SetGameModified is replaced by a modifiedgame check
in D_SRB2Main
2025-04-03 17:36:13 +02:00
NepDisk
7229a2828f Move Hashes and filename 2025-03-25 10:05:44 -04:00
James R
b31e79b742 Kill last of DJGPP, WATTCP, _WINDOWS (ol' DirectDraw) 2025-02-25 00:42:42 +01:00
James R
febde8d181 Remove NONET 2025-02-25 00:31:59 +01:00
LJ Sonic
edbc5660a7 Fix io.open() crashing the client sometimes 2025-02-11 17:12:44 -05:00
NepDisk
229f3cc2e1 Use chars.kart 2025-01-26 15:48:15 -05:00
GenericHeroGuy
f6f43943d7 Networked compatmode 2025-01-24 18:26:49 +01:00
Sal
67fa70affe Merge branch 'legacydl-16' into 'master'
Direct file downloader changes ported from 1.6

See merge request KartKrew/Kart!759
2025-01-09 12:46:38 -05:00
NepDisk
1e678f660f Remove TESTERS and HOSTTESTES and use v1 assets where applicable 2024-12-16 14:23:14 -05:00
SteelT
a68e6fb10c Set curl_failedwebdownload to true for corrupt or modified HTTP downloads.
So that it actually falls back to direct downloading
2024-11-18 10:20:05 -05:00
SteelT
1fc0499d7e Add MD5 checking to HTTP downloading
In cases of where the file mismatches from what the server expects, it will fall back to direct downloading of the file.
2024-11-18 10:19:57 -05:00
Alug
9a15f21236 fix a few more compiler warnings 2024-10-23 13:44:30 +02:00
NepDisk
049c182288 Massive warning clean up 2024-10-23 00:01:03 -04:00
James R
f296e55e50 d_netfil: use CURLOPT_PROTOCOLS_STR if libcurl >= 7.85.0 (2022-08-31) 2024-10-22 01:05:54 -04:00
James R
4f7551c58e d_netfil: use CURLOPT_XFERINFOFUNCTION
Fixes deprecated warning since libcurl 7.32.0 (2013-08-12).
2024-10-18 04:14:59 -04:00
Wumbo
d1a9080187 Un-rebrand back to SRB2Kart 2024-08-13 21:54:52 -04:00
NepDisk
45fe2754e6 P_AddWadFile partial stages 2024-08-02 03:00:51 -04:00
James R
2adeff2488 Merge remote-tracking branch 'origin/cvar-default-ports' 2024-07-31 03:05:44 -04:00
NepDisk
de4bfad6b9 Get this working 2024-07-28 22:37:38 -04:00
toaster
38e6cba181 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart.git into uncapped-absolution
# Conflicts:
#	src/f_finale.c
#	src/sdl/i_video.c
#	src/st_stuff.c
2022-05-21 13:40:20 +01:00
Sally Coolatta
852e9b8ce9 Rebrand all console / window stuff 2022-05-19 15:10:47 -04:00
James R
11f97049b1 Merge remote-tracking branch 'origin/master' into uncapped-absolution 2022-05-11 17:09:59 -07:00
James R
b89bf775df DEVELOP: don't let clients download mainwads 2022-05-11 17:04:18 -07:00
Eidolon
f7ec2f182f Uncapped (squashed v2)
Squashed SRB2 2.2 Public uncapped without UDMF merge

Implement interpolation at the renderer level

Instead of interpolating thinkers, we interpolate mobjs inside the
renderer. Further interpolation is TBI.

Place Frame Interpolation in "Experimental" video options header

This seems like an appropriate way to describe the feature for now.

Add smooth level platter under interpolation, `renderdeltatics`

`renderdeltatics` can be used as a standard delta time in any place,
allowing for smooth menus. It will always be equal to `realtics`
when frame interpolation is turned off, producing consistent
framerate behavior everywhere it is used.

Add smooth rendering to save select screen

Add smooth rendering to Record/NiGHTS Attack, F_SkyScroll

Ensure viewsector is accurate to viewx/viewy

This fixes a potential crash in OpenGL when changing between levels.

Ensure + commands get executed before map start

Always have precise_t defined

Fix misc dropshadow issues

Reset view interpolation on level load

Remove unnecessary precipmobj thinker hack

Add reset interpolation state functions

Reset precip interpolation on snap to ceil

Reset mobj interp state on TeleportMove

Only swap view interp state if a tick is run

Run anti-lag chasecam at tic frequency

Fixes jittery and unstable chasecam in high latency netgames

Homogenize mobj interpolations

Add sector plane level interpolations

Add SectorScroll interpolator

Add SideScroll interpolator

Add Polyobj interpolator

Intialize interpolator list at a better time

Delete interpolators associated with thinkers

Interpolate mobj angles and player drawangle

Interpolate HWR_DrawModel

Add functions to handle interpolation

Much less code duplication

P_InitAngle, to fix angle interpolation on spawning objects

Fully fix drop shadows

It used the thing's floorz / ceilingz directly -- that wouldn't account for interpolated coordinates.

Do not speed up underwater/heatwave effect in OpenGL

Closer OpenGL underwater/heatwave effect to Software

Interpolate from time of previous tic

Previously interpolated from last 35th of a second, which
may be offset from game time due to connection lag.

Consider this the proper fix to 6ecac4159a too.

Calculate FPS stuff even if frame is skipped

I decided ultimately to actually keep the frame skip optimization disabled, because I think it is actually a little bit helpful that you can still get accurate rendering perfstats while paused, however if we decide otherwise then we can have this optimization back without making the game act like it's lagging.

Keep rect in memory

Feel better about this than creating one all da time

Lots of FPS stuff

- Disabled VSync, due to the numerous problems it has.
- Instead, added an FPS cap.
- Frame interpolation is now tied to fpscap != 35.
- By default, the FPS cap is set to the monitor's refresh rate.
- Rewrote the FPS counter.

(This also consolidates several more commits ahead of this
fixing various issues. -eid)

Misc changes after Kart cherry-picks

Fix renderdeltatics with new timing data

Update mobj oldstates before all thinkers

Allow FPS cap values

Adjust how FPS cap is checked to improve FPS stability

Fix precip crash from missing vars

Improve the framerate limiter's timing for extreme stable FPS

Handle the sleep at the end of D_SRB2Loop instead of the start

Simplifies logic in the other parts of the loop, and fixes problems with it frequently waiting too long.

Reset mobj interp state on add

Add mobj interpolator on load netgame

Move mobj interpolators to r_fps

Dynamic slope interpolators

I_GetFrameTime to try and improve frame pace

(It doesn't feel that much better though.)

Move I_FinishUpdate to D_SRB2Loop to sync screen updates with FPS cap, use timestamps in I_FrameCapSleep to simplify the code

Fix plane interpolation light level flickering

Fix flickering plane interpolation for OpenGL in the exact same way

Funny OpenGL renderer being at least 50% copy-pasted Software code :)

P_SetOrigin & P_MoveOrigin to replace P_TeleportMove

Convert P_TeleportMove use to origin funcs

Revert "P_InitAngle, to fix angle interpolation on spawning objects"

This reverts commit a80c98bd164a2748cbbfad9027b34601185d93f5.

Waypoint polyobjects interpolate z & children

Add interpolation to more moving plane types

Adds interpolation to the following:
- Crumbling platforms
- Mario blocks
- Floatbob platforms (this one works really strangely due to two thinkers, maybe double-check this one?)

Reset overlays interp states each TryRunTics

Interpolate model interpolation (lol)

Use interp tracer pos for GL linkdraw

Papersprite angle interpolation

Makes the ending signpost smooth

Move intermission emerald bounce to ticker

Bring back shadows on polyobjects

Also optimizes the method used so rings can show their shadows too. Using just the subsector is a tad bit imprecise admittedly but any more precise methods get really laggy.

Fix a bunch of ticking in hu_ drawing functions

Revert "Reset overlays interp states each TryRunTics"

This reverts commit a71a216faa20e8751b3bd0157354e8d748940c92.

Move intro ticking out of the drawer

Adjust 1up monitor icon z offsets

Fixes interpolation issues with 1up monitors.

Delta time choose player menu animations

Add drawerlib deltaTime function

Interpolate afterimages further back

Use old sleep in dedicated mode

Clamp cechotimer to 0

Fixes issues with cechos staying on-screen and glitching out
(NiGHTS items for example).

Revert "Remove unnecessary precipmobj thinker hack"

This reverts commit 0e38208620d19ec2ab690740438ac2fc7862a49e.

Fix frame pacing when game lags behind

The frame timestamp should've been made at the start of the frame, not the end.

Fix I_FrameCapSleep not respecting cpusleep

Jonathan Joestar bruh

Allow dedicated to use precise sleep timing again

Instead of only using one old sleep, just enforce framerate cap to match TICRATE.

Make Lua TeleportMove call MoveOrigin

Reset Metal fume interp state on appear

Add interpdebug

Put interpdebug stuff in perfstats instead

Add timescale cvar

Slow the game down to debug animations / interpolation problems! Speed it up if you need to get somewhere quickly while mapping!

Enable timescale outside of DEVELOP builds

It has NETVAR, so it should be fine -- put an end to useful debugging features excluded in multiplayer!

Force interpolation when timescale != 1.0

Reset old_z in MT_LOCKON think

Fixes interpolation artifacting due to spawn pos.

Fix cutscenes in interp

Fix boss1 laser in interp

Interpolate mobj scale

Precalculate refresh rate

Slower PCs can have issue querying mode over and over. This might kinda suck for windowed mode if you have different refresh rate displays but oh well

Fix interp scaling crashing software

Reset interp scale when Lua sets .scale

Disable angle interp on fresh mobjs

Fix interp scale crash for hires sprites

Interp shadow scales

Copy interp state in P_SpawnMobjFromMobj

Fix multiplayer character select

Don't interpolate mobj state if frac = 1.0

Fix Mario block item placement

Interpolate spritescale/offset x/y

Fix offset copies for SpawnMobjFromMobj

THANKS SAL

Add Lua HUD drawlists

Buffers draw calls between tics to ensure hooks
run at the originally intended rate.

Rename drawerlib deltaTime to getDeltaTime

Make renderisnewtic is false between tics

I know what I'm doing! I swear

Completely refactor timing system

Time is now tracked internally in the game using I_GetPreciseTime
and I_UpdateTime. I_Time now pulls from this internal timer. The
system code no longer needs to keep track of time itself.

This significantly improves frame and tic timing in interp mode,
resulting in a much smoother image with essentially no judder at
any framerate.

Ensure mobj interpolators reset on level load

Ensure view is not interpolated on first frame

Disable sprite offset interpolation (for now)

Refactor timing code even more

System layer is greatly simplified and framecap
logic has been moved internally. I_Sleep now
takes a sleep duration and I_SleepDuration
generically implements a precise sleep with spin
loop.

Adjust spawned mobj z by gravity inversion

Only check VERTICALFLIP for old_z calc

Fix Marathon Mode menu for uncapped

Move screenshot code before timing

Only play emerald hunt sounds on new tics

Restore deleted zofs (fixes signpost sparkles etc)

Revert to before screenUpdate boolean was added

Was done this way for the sake of an older version of uncapped's timing; now that the new timing is much better, I decided it should remain as close to pre-uncapped as it can be.

Run UpdateLevelInterpolators in preticker

Fixes KartKrew/Kart-Public#10

Run UpdateMobjInterpolators in preticker

Reset view interp in preticker

Add per-split player view resets
2022-05-06 22:47:39 -05:00
James R
59c04ae041 pedantic: resolve flexible array member in nested struct
ISO C forbids a structure that has a flexible array member
to be a member of another structure or element of an
array.

filetx_pak and fileack_pak are two such structures. These
have been removed from doomdata_t's union.
2022-02-20 03:10:27 -08:00
toaster
c8517007c6 Only disable downloads in TESTER builds and -nodownload, not always. 2022-02-03 22:03:04 +00:00
James R
4712daddf9 Start checking files from correct position on rejoin 2021-12-18 19:52:59 -08:00
James R
32127f37ee Check mainwads netgame md5 in developer build 2021-12-12 02:58:06 -08:00
James R
9e1146bc30 Disable downloading for now 2021-12-12 02:47:46 -08:00
Sally Coolatta
340c948c71 Fix being able to download our data files 2021-04-25 20:49:52 -04:00
James R
08348fcd43 Merge remote-tracking branch 'srb2/next' 2021-04-05 01:26:17 -07:00
James R
0522355135 Make important wads important again 2021-04-04 23:06:52 -07:00
LJ Sonic
145155c3c7 Kick clients if they take too long to download a Lua file 2021-03-25 22:43:06 +01:00
LJ Sonic
addf0e3f13 Use a separate transfer status for disconnected nodes 2021-03-25 22:28:35 +01:00
Sally Coolatta
fc934b38e1 Merge public next 2020-11-10 15:32:48 -05:00