summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add more GetEngineBuildNumber offsetsGravatar Willian Henrique 2023-06-201-3/+12
|
* Fix L4D VGuiConnect/VGuiIsInitialized gamedataGravatar Willian Henrique 2023-06-152-3/+2
| | | | | | | This was actually breaking deferred initialisation in 0.5, the main observable effect being that the L4D1 console spam fix stopped working. Committer's note: woopsy!
* Fix spuriously-included test case in compile.batGravatar Michael Smith 2023-06-141-2/+0
| | | | | | | | This was clumsily added in 1c4318331663b152b0b298bd2c9e5c971506a86b as a test case for code I was writing at some point but has not been included in the repository yet. This means the 0.6 tag is broken for anyone trying to build from source unless this change is cherry-picked on top. Lesson learned: keep the working tree clean!
* Bump version to 0.6 and reset changelog stringGravatar Michael Smith 2023-06-122-13/+3
|
* Remove the terrible gameinfo.txt garbage at lastGravatar Michael Smith 2023-06-127-320/+109
| | | | | | This also tidies up library handle grabbing with more os.h stuff, and improves the VDF creation logic - since we no longer store a couple of paths which makes it necessary to change that a bit anyway.
* Leave out the Monocypher acknowledgement for nowv0.5-BETAGravatar Michael Smith 2023-06-112-10/+0
| | | | | It's not being used in the 0.5 release; this will be reverted some time after the release is tagged and uploaded.
* Add a stupid hack fix for the autojump cheat checkGravatar Michael Smith 2023-06-111-3/+14
| | | | | | Of course, Portal doesn't actually check this properly, and it was never tested well enough until just now. This fixes it, albeit in a really stupid way. C'est la vie.
* Add update changelog and bump zip dateGravatar Michael Smith 2023-06-102-3/+13
| | | | | | The zip date is tomorrow as that's the expected release date pending some testing and hearing back from Portal people re official approval for use in runs. With any luck it won't need to be bumped further.
* Remove some paranoia about missing commandsGravatar Michael Smith 2023-06-103-18/+1
| | | | There's absolutely no reason these ever wouldn't be there.
* Prune some comments and tidy up other minor thingsGravatar Michael Smith 2023-06-1027-165/+113
|
* Adapt vote reset code into fast campaign resettingGravatar Michael Smith 2023-06-0312-178/+591
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is kind of a breaking change but the other code was obviously never released or relied on by anyone - it will be pushed at the same time as this in fact. It still seems worth having the original committed separately to show the progression of development of the feature, however. Technically the standalone vote cooldown resetting could also be added back if ever desired however there doesn't seem to be that much of a use case for that at the moment. This feature ought to be a lot more convenient now as it allows for resetting back to a set starting point no matter where the player is in a run. It isn't universally useful as All Campaigns Legacy solo runs require switching to a different type of server and Main Campaigns co-op runs require restarting the game after Swamp Fever to work around the god mode bug, however it is still useful in a good few situations. Unfortunately this turned out to be pretty complex to implement, first requiring a bunch of interop with valve's rather wacky KeyValues stuff, and then requiring a bunch of especially difficult reverse engineering of L4D1 v1.0.0.5 because it doesn't use said KeyValues stuff and does something else completely different instead. A side effect of all this work is that the nag removal hack is now part of the KeyValues stuff in kvsys.c, which is kind of a comfier place for it than just kind of dumped in the middle of sst.c.
* Improve os_dlfile() interfaceGravatar Michael Smith 2023-05-213-13/+21
| | | | | | Might as well return the length since we have it anyway. Also this maybe fixes the totally busted Linux code but it's still untested and probably doesn't work for reasons that will be discovered later on.
* Remove a couple more unused headers from nomuteGravatar Michael Smith 2023-05-211-2/+0
| | | | Pointed out by Bill.
* Apply CRLF to dist/LICENCE.windows in EditorConfigGravatar Michael Smith 2023-05-211-0/+3
| | | | | | | | | | Now that Neovim has built in EC handling, opening this file causes the editor to want to write it back out in Unix format, and it seems likely enough that other editors may do the same. Ensure that this file's (incorrect!!!) line endings are preserved, as this is done to make sure that end users can always read the file without any issues, no matter what terrible Windows text editor they may have chosen to use (although even Notepad handles LF just fine these days, it's better to be safe).
* Add command to reset L4D2 vote cooldownsGravatar Willian Henrique 2023-05-214-0/+142
| | | | | | | | | | | | In most versions of L4D2, players cannot call a vote (e.g. switch campaign, change difficulty, restart campaign) more than once every 3 minutes. This makes resetting on a first map a pain, usually requiring reloading the map to reset the vote state. This new sst_l4d_vote_cooldown_reset command empties the list of structures tracking vote callers, allowing all players to vote again immediately. This should make resetting runs a lot easier on versions without unlimited votes.
* Support decoding a bunch of MMX/SSE instructionsGravatar Michael Smith 2023-05-211-88/+202
| | | | | | | | | This is actually required for an upcoming feature to work, as an instruction scan bumps into a xorps instruction. Still not supporting SSE3 or later, or AVX, although at this point it seems that that would be relatively easy to add, as this thing has kept growing on an incremental case-by-case basis.
* Add some server entity code-crawling machineryGravatar Michael Smith 2023-05-173-0/+207
|
* Fix some woopsies I hastily pushed last nightGravatar Michael Smith 2023-05-171-12/+6
| | | | | For the record, most of this wasn't Bill's fault. I shouldn't be fixing up patches in the middle of the night. :^)
* Add snd_mute_losefocus backportGravatar Willian Henrique 2023-05-172-1/+111
|
* Add a hack for features to distinguish VDF loadingGravatar Michael Smith 2023-05-172-0/+6
|
* Do some pedantic spring cleaningGravatar Michael Smith 2023-05-1621-85/+77
| | | | | | | | | | | | | | | | | | | | | | | - Use const in more places where it makes sense - not absolutely everywhere because it can get a bit annoying - Make all the instruction search loops a bit more readable by casting the function pointer into a temporary variable to loop over - Add a few more doc comments and fix a typo or two - Make that RTTI thing flexibly-sized, finally - Don't include gamedata.h in vcall.h for no reason; consequently include gamedata.h in a bunch of places where it was implictly pulled in before - Fix dbg_toghidra() and ent_getedict() having mismatched return types between their headers and respective source files - Remove that one broken, hacky, secret Portal non-feature that probably nobody even ended up using; it can be implemented properly later if required
* Somewhat expand on WIP ac.c stuffGravatar Michael Smith 2023-05-052-20/+58
| | | | | | This still isn't totally complete, or used anywhere yet, but it's been sitting here for literally months, so it might as well get committed so there's one less thing to deal with later.
* Implement APIs to control demo recordingGravatar Michael Smith 2023-05-053-3/+110
| | | | This is a surprise tool that will help us later!
* Fix enabling and disabling addons in L4D1Gravatar Hayden K 2023-05-041-0/+5
|
* Improve L4D2 and Portal gametype detectionGravatar Willian Henrique 2023-05-045-14/+19
| | | | | | Adds tags for L4D2 2147 and Portal 3420. Committer's note: really the gamedata system might benefit from improvement in the future to support things like numerical ranges, but this will do for now.
* Unhide cl_showdemooverlayGravatar Hayden K 2023-05-044-5/+6
|
* Refactor the RGBA colour struct into engineapi.hGravatar Michael Smith 2023-05-048-48/+47
| | | | | | In both the engine and SST it's used in more places than just console printing, so it makes more sense to give it a more appropriate nanme and location.
* Fix x86.c for real this time, probably, hopefullyGravatar Michael Smith 2023-05-021-16/+24
|
* Correct the ModR/M cases in x86.cGravatar Michael Smith 2023-05-011-5/+6
|
* Argh, bump the stupid copyright header!Gravatar Michael Smith 2023-05-011-1/+1
| | | | I need to write a pre-commit hook to check this or something.
* Fix default float values for cvarsGravatar Michael Smith 2023-04-281-3/+3
| | | | This has been a known issue for a long time. Let's finally fix it!
* Fix incorrectly implemented con_setvar functionsGravatar Michael Smith 2023-04-281-12/+21
| | | | | | | | | | | | | | | | These were never actually used before or this would have been caught sooner, but as they're being used in some in-progress code this obviously needs fixed now. The virtual table indices in use were wrong for some engines due to the funny thing Windows does with reverse-ordered overloads. The code for building the plugin's own virtual tables explicitly accounts for this but calling into existing cvars failed to do so, due to a skill issue. This fix is kind of inelegant and stupid but making it elegant and non-stupid is less of a priority at the moment. It should happen eventually with future improvements to the gamedata system, for some definition of "should," "eventually," and "future."
* Tidy up mem.h and prevent horrible assembly outputGravatar Michael Smith 2023-04-171-29/+15
| | | | Removes the mem_store functions because they're never used anywhere.
* Fix some miscellaneous stupid bugs and jankGravatar Michael Smith 2023-04-084-8/+8
| | | | Note: fixes.c was changed this year, so correct the copyright year too.
* Fix a sizeof blunder I happened to notice recentlyGravatar Michael Smith 2023-01-154-11/+13
| | | | | | | | | Nobody seems to have been affected by this in the wild yet, thank goodness. Will probably be a while before there's an actual release, so hopefully people will continue not to be affected. I suppose it's only an issue for paths longer than 128 characters, so it's not too likely to matter under normal circumstances...
* Document more recent knowledge on the lag issueGravatar Michael Smith 2023-01-151-7/+6
|
* Remove fov.h that was mistakenly left behindGravatar Michael Smith 2023-01-151-25/+0
|
* Fix deferred init for Portal 2 compatibilityGravatar Michael Smith 2023-01-157-34/+34
| | | | Thanks Bill for figuring out what the problem was.
* Fix FOV feature crashing Portal 3420 on map loadGravatar Willian Henrique 2022-12-261-3/+3
| | | | This was an accidental regression in an earlier refactoring.
* Add basic mouse input scalingGravatar Michael Smith 2022-12-256-68/+153
|
* Fix dumb oversight in codegenGravatar Michael Smith 2022-09-201-0/+1
|
* Fix some lingering idiocyGravatar Michael Smith 2022-09-132-4/+3
| | | | | | Thanks Aciidz for pointing out the strings with no newline in them, and thanks Clang for warning me I wasn't using a function for ages while I was too lazy to delete it.
* Move towards C23, improve events and vcall macrosGravatar Michael Smith 2022-09-1339-185/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | Another big one. Here's a list of things: - Since the upcoming C23 standardises typeof(), use it as an extension for the time being in order to allow passing arbitrary types as macro/codegen parameters. It wouldn't have been a big leap to do this even without standardisation since it's apparently an easy extension to implement - and also, to be honest, this project is essentially glued to Clang anyway so who cares. - Likewise, bool, true and false are becoming pre-defined, so pre-pre-define them now in order to get the benefit of not having to remember one header everywhere. - Really ungodly/amazing vcall macro stuff now allows us to call C++ virtual functions like regular C functions. It's pretty cool! - Events can now take arbitrary parameters and come in two types: regular events and predicates. All this makes the base code even uglier but makes the feature implementation nicer. In other words, it places more of the cognitive burden on myself and less on other people who might want to contribute. This is a good tradeoff, because I'm a genius.
* Enforce L4D2 FPS limit properly when loaded lateGravatar Michael Smith 2022-09-131-1/+2
| | | | Shoutouts to Lokki for accidentally reporting this bug.
* Allow cl_fullupdate as an attempted bug workaroundGravatar Michael Smith 2022-08-161-0/+20
|
* Acknowledge Monocypher in binary distributionsGravatar Michael Smith 2022-08-162-0/+8
| | | | It seems like the nice thing to do.
* Import Monocypher 3.1.3 + monocypher-rng moduleGravatar Michael Smith 2022-08-169-4/+3530
| | | | | | | | This is for somewhat later. I'd always planned to use it - it existed already in earlier private repos, in fact. I just didn't bother to import it here in case it wouldn't actually be needed, but with the way current plans are going, it's definitely going to be needed, so here it is.
* Fix malloc return check in mkentpropsGravatar Michael Smith 2022-08-161-1/+1
| | | | Spotted by Bill the other day.
* Add magical feature codegen system, at long lastGravatar Michael Smith 2022-08-1034-376/+664
|
* Add event systemGravatar Michael Smith 2022-07-239-10/+235
|