Commit Graph
7131 Commits
Author SHA1 Message Date
rtldg 908ffdb523 make RenameFile() on Windows also replace the file (#2060)
* make RenameFile() on Windows also replace the file

* Add MOVEFILE_COPY_ALLOWED to MoveFileExA
2024-05-05 22:20:46 +00:00
Rushaway d56dc62e03 i18n: Czech Translations (#2120) 2024-05-05 21:19:11 +00:00
Kit o' Rifty f08f1ef0d6 Fix passing variant_t parameters + fix codegen stack on Win64 (#2117)
* Fix 64-bit JIT not allocating stack space for params on stack
Fix wrong cond check for passing objects by value

* Fix wrong FireOutput detour proto on win64
2024-05-05 21:17:59 +00:00
bottiger1 5cb2d68fd7 AcceptEntityInput 64bit fix (#2149)
* Fix AcceptEntityInput on 64 bit by using struct from SDK instead of pointer math.

* Fix from Malifox. Not sure what it does but it is supposedly related to the AcceptEntityInput crash.

* Fix episode1 and darkm sdk paths
2024-05-05 20:06:06 +00:00
caxanga334 96d0959db1 Update HL2SDK Manifests Submodule (#2150) 2024-05-05 17:14:15 +00:00
5a6b2c8ebf 64bit gamedata fixes (#2141)
* save as of now

* save as of now

* progress

* hint towards comments

Please for the love of god, put comments for updating these in the future will be even more annoying.
i dont even know what LevelShutdown it wants.

* forgot

* fix

* fixes

* Update engine.ep2v.txt

* Update engine.ep2v.txt

* Update sm-tf2.games.txt

---------

Co-authored-by: Benoist <[email protected]>
Co-authored-by: Nicholas Hastings <[email protected]>
2024-05-05 16:13:39 +00:00
Adrian-Stefan Mares 343f64f6b7 Fix IsClientSourceTV in L4D2 with a custom tv_name (#2143) 2024-04-29 00:17:10 +01:00
Oliver John HitchcockandKyle Sanderson f9ad35badf Stop EntRefToEntIndex returning garbage if a bad parameter is passed (#1323)
* Stop EntRefToEntIndex returning garbage if a bad parameter is passed

Seen multiple bad usage of this function that works only because whatever was passed in was returned as it wasnt an entity reference.
This code should have worked and would be expected to have returned something invalid but instead the the input was returned which allowed the code to work when really it is bad code.
See for one such case https://discordapp.com/channels/335290997317697536/335290997317697536/736518488314871868

* Update documentation of EntRefToEntIndex

Added the error text saying what shall be returned when a invalid parameter is passed.

* Validate entity index instead of just returning INVALID_EHANDLE_INDEX

Not sure if it needs this much validation but this just mirrors how IsValidEntity works, so the entity index returned should be valid else INVALID_EHANDLE_INDEX is returned.

* EntRefToEntIndex improve doc comments to better represent functionality

---------

Co-authored-by: Kyle Sanderson <[email protected]>
2024-04-25 23:19:04 +00:00
Nick Hastings 60b6a8dfb0 Revert "Trigger build for hl2sdk-tf2 changes"
This reverts commit ee51162c3f.
2024-04-22 21:31:14 -04:00
Nick Hastings 00f3970036 Revert "Trigger build for hl2sdk-tf2 changes"
This reverts commit 123ad7aab1.
2024-04-22 18:24:19 -04:00
Alienmario 7d78c141e7 Fix SDKHooks IEntityListener (#2138) 2024-04-21 19:21:47 +00:00
Nick Hastings 123ad7aab1 Trigger build for hl2sdk-tf2 changes
(https://github.com/alliedmodders/hl2sdk/issues/231)
2024-04-21 12:04:44 -04:00
Nick Hastings ee51162c3f Trigger build for hl2sdk-tf2 changes
https://github.com/alliedmodders/hl2sdk/issues/231
2024-04-20 14:04:26 -04:00
Adrian-Stefan Mares af93d819c6 Handle INVALID_FUNCTION mismatches at plugin boundaries, redux (#2136) 2024-04-19 21:56:48 -04:00
CookieCat d426d1f04f x32 Windows Gamedata Fixes for 4/18/2024 TF2 Update (#2137)
* sm-tf2-games

* FireOutput
2024-04-19 18:00:30 -07:00
6cac489fce Prevent recursion in sm_ServerCommandEx (fixes #967) (#2133)
* Prevent recursion in sm_ServerCommandEx (fixes #967)

* Update core/smn_console.cpp to fix style

Co-authored-by: Erin <[email protected]>

---------

Co-authored-by: Odin Landers <[email protected]>
Co-authored-by: Erin <[email protected]>
2024-04-18 11:42:37 +00:00
Peak 5c507cc35c Implement File.Size (#2131)
* Implement file size method for already open files

* Switch from fseek/ftell to fileno/fstat size reading
2024-04-13 18:14:52 +00:00
Rain dbec0b165c Neotokyo: Add "SetOwnerEntity" gamedata (#2126)
This adds game support for `SetOwnerEntity`, `SetEntityCollisionGroup`.
2024-03-21 00:11:59 +00:00
Rushaway 4e8b66bf99 fix: sorted alphabetically, remove duplicate 'ko' (#2121)
* fix: sorted alphabetically, remove duplicate 'ko'

* 'KoreanA' is a valid value
2024-03-05 01:20:40 +00:00
CookieCat 8dcbe14ea0 Throw an error when attempting to remove worldspawn in RemoveEntity/RemoveEdict (#2104)
* Check for worldspawn in RemoveEntity and RemoveEdict

* A little more info
2024-02-20 16:14:00 +01:00
Peak 06dcb991e8 Allow topmenu config file to sort with subcategories (#1757) 2024-02-18 11:46:48 +01:00
Mart e262064fd8 Update game.nucleardawn.txt (#2116)
add missing GetAttachment offset for ND
2024-02-14 23:22:26 +00:00
dependabot[bot] a80b9c5c0f Bump actions/cache from 3 to 4 (#2103)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 14:01:26 +01:00
BenoistandKenzzer 638aae0040 Fix sdktools gamedata (#2113)
Co-authored-by: Kenzzer <[email protected]>
2024-02-08 00:02:01 +00:00
BenoistandKenzzer 35ac74c7a7 Update gamedata for l4d2 (#2111)
* update gamedata for l4d2

* undo findentitybyclassname sig change

* update gEntList offset accordingly

---------

Co-authored-by: Kenzzer <[email protected]>
2024-02-02 21:10:42 +00:00
Ryan Blackham 7bb9da2a26 Fixed typo in reservedslots.sp (#2109) 2024-02-01 10:36:28 +01:00
BenoistandKenzzer b5b9b8388c Fixup entinfo offset + sdktools tf2 x64 gamedata (#2108)
* fixup entinfo offset

* added missing tf gamedata

---------

Co-authored-by: Kenzzer <[email protected]>
2024-01-29 01:08:33 +00:00
BenoistandKenzzer e7e92d4e40 update manifests (#2106)
Co-authored-by: Kenzzer <[email protected]>
2024-01-26 21:18:14 +00:00
BenoistandKenzzer 33e869a4e5 Update gamedata for TF2 x64 (#2105)
Co-authored-by: Kenzzer <[email protected]>
2024-01-26 13:30:08 +00:00
NotnHeavy 0bc9aa46e6 Update checkout-deps files to install hl2sdk-mock (#2102) 2024-01-22 15:30:15 +00:00
Angel Bot 80ad76a563 Fix teleportation offsets for tf2classic (#2100) 2024-01-01 23:55:23 +00:00
NotnHeavy 7e29f22f8f Fix typo in ArrayList.Clone docs (#2098)
very useful update of: grammar in comment
2023-12-22 20:35:26 +01:00
daniandNicholas Hastings a9eb3a0d45 Add gamedata for Pre-Fortress 2 (#2091)
* Added gamedated for pf2

* added support for beta testing

---------

Co-authored-by: Nicholas Hastings <[email protected]>
2023-12-18 23:59:41 +00:00
Ivan Zaitsev ab6b45b81c Add void function prototypes to NativeCall and MenuHandler (#2081)
* Add void prototype to NativeCall typeset

`void` prototype can be used for simple natives which don't return any value.
This is done to silence compiler warnings 209 (`function has explicit 'int' tag but does not return a value`) and 242 (`function "NativeCallback" should return an explicit value`).

* Make MenuHandler into typeset and add void prototype

This can be used for basic menu handlers that don't return modified item styles and don't redraw menu items.
2023-12-18 23:57:58 +00:00
bt 385eae892c Add gmod9 gamedata. (#2093) 2023-12-18 23:52:54 +00:00
dependabot[bot] 5f309f45f8 Bump actions/setup-python from 4 to 5 (#2095)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 23:18:36 +00:00
dependabot[bot] a2e5e2a442 Bump actions/upload-artifact from 3 to 4 (#2097)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 23:17:52 +00:00
Nicholas Hastings b42e5ac922 Convert AMBuild scripts to use hl2sdk-manifests (#2096)
* Add hl2sdk-manifests submodule

* Update AMBuild scripts to utilize hl2sdk-manifests

* Add build*/ to .gitignore
2023-12-18 23:15:44 +00:00
Nick Hastings 544204654d Hack fix for broken --gen=vs 2023-12-16 12:19:10 -05:00
sapphoandazzy 5c971fd51b add gamedata for tf2classic (#2088)
* add gamedata skeleton for tf2classic

* Update game.tf2classic.txt

* Update game.tf2classic.txt

---------

Co-authored-by: azzy <[email protected]>
2023-12-05 00:50:08 +00:00
B3none 6507d947cc Updated sourcepawn.php to latest array syntax 2023-11-30 21:58:49 -08:00
B3none 30415e299e Updated ProfFileParser.class.php to PSR-12 2023-11-30 21:58:49 -08:00
Mart 8eeea2aba1 Update funcommands.games.txt (#2085)
Changes for Nuclear Dawn

*Correct beacon team colors (Consortium = blue / Empire = red)
*Change beacon .vmt sprite to an existing one similar to the usual "laser.vmt" (white and 32x64 size)
2023-11-28 21:59:54 +00:00
Nick Hastings bb1431cd3b Fix Windows FireOutput signature for Nuclear Dawn (fixes #2084) 2023-11-27 09:53:25 -05:00
rop_rop a2aec9b42e Update Hebrew translation phrases (#2050)
* Update basebans.phrases.txt

added all the missing Phrase

* Update basebans.phrases.txt

update of the missing phrase as a parameter
2023-11-24 16:56:14 +01:00
Nick Hastings ef74b51c8b Probably fix build 2023-11-20 19:54:41 -05:00
Nick Hastings e74aa099bc Add debugging to bootstrap script 2023-11-20 19:40:09 -05:00
Nick Hastings 8140cb2d6b Tweak build script 🐍 2023-11-20 19:37:22 -05:00
Nick Hastings d981e252d2 Fix regression that breaks loading on mcv, blade, and csgo (fixes #2082) 2023-11-20 09:23:02 -05:00
Nick Hastings e6a04abc9e Remove unused var 2023-11-20 09:21:00 -05:00