Commit Graph

7221 Commits

Author SHA1 Message Date
Balim
c537423606 Update SDKTools & SDKHooks Gamedata for Synergy (#2228)
Update Synergy offsets and signatures for latest Synergy. There are still updates happening, so these may become incorrect in the coming weeks.

(cherry picked from commit 699f876473)
2024-12-07 14:08:24 -05:00
Nicholas Hastings
d5470df0c9 Bump to latest SourcePawn 1.12 2024-11-29 22:37:00 -05:00
caxanga334
8690afc159 Update SDKTools & SDKHooks Gamedata (#2222)
Offsets from Linux beta dedicated server binary.

(cherry picked from commit f086c0a638)
2024-11-17 21:49:57 -05:00
Nicholas Hastings
dc3b32f1da Update some hl2mp gamedata
(cherry picked from commit c30f033022)
2024-11-17 12:50:52 -05:00
Nicholas Hastings
db8bb68be6 Revert "- Fixes for OnPlayerTeleport hook for linux and linux64 systems (#2214)"
This reverts commit e015172bf9.
2024-11-02 21:50:38 -04:00
MrD4rk5oul
e015172bf9 - Fixes for OnPlayerTeleport hook for linux and linux64 systems (#2214)
- Changed signature call of `CanPlayerTeleport` for linux/linux64 to current used name
  - Applied fix at detour class CanPlayerBeTeleported to use standard parameter proceedings for linux

(cherry picked from commit 29bff12b23)
2024-11-02 11:41:19 -04:00
Nick Hastings
7dc601eeb9 Bump SourcePawn to latest 2024-10-28 17:05:07 -04:00
Benoist
6b6dbc6c06
Dhooks safetyhook (#2205)
* remove libudis86

* switch to safetyhook

* Don't leak memory

* fix issue with the trampoline

* Add x86_64 detour support (windows)

* Allow to differentiate platforms

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-10-20 16:45:19 +00:00
Nick Hastings
0a6fa1052a Bump sourcepawn version to fix some regressions 2024-10-20 11:19:01 -04:00
Nick Hastings
3bc55e6890 Remove macOS from SP scripting CI 2024-10-19 13:25:14 -04:00
Nick Hastings
80dfa1cc77 Add Clone to Handle methodmap 2024-10-19 13:20:20 -04:00
Benoist
b9f85c8e74
Update pushbuild.txt (#2209) 2024-10-18 19:47:03 -04:00
Nick Hastings
1fbe066328 Rebuild for hl2sdk-tf2 changes. (fixes #2208) 2024-10-11 10:16:43 -04:00
Benoist
4e15a92984
Add x64 Windows support to DHooks (#2154)
* Add x64 Windows support

* undo changes of hook.cpp

* undo changes of hook.h

* undo changes of extension.cpp

* undo changes of listeners.cpp

* undo changes of signatures.cpp

* fix dhooks on x86

* Fix-up dhooks buildscript

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-09-10 23:26:30 +00:00
Mentrillum
4e6d66b721
Update engine.ep2v.txt (#2203) 2024-08-31 11:42:19 +00:00
Mikusch
dd3409bb9b
Fix unused parameter warning in TF2_SetPlayerClass (#2176) 2024-08-04 16:17:42 +02:00
Rushaway
96727a7610
fix(i18n): Vietnamese translations (#2187) 2024-07-28 17:56:28 +00:00
Nick Hastings
4cc214e1a6 Revert "Merge branch '👺'"
This reverts commit b7feeef350, reversing
changes made to b18c8cbfd6.
2024-07-27 10:17:57 -04:00
Nick Hastings
b7feeef350 Merge branch '👺' 2024-07-27 01:01:49 -04:00
Nick Hastings
b18c8cbfd6 checkout-deps: Fix AMBuild install for fresh installs on Windows with newer Python versions 2024-07-07 11:16:01 -04:00
Nick Hastings
ae789148b1 checkout-deps: change mock sdk download to be optional, using same sdk list 2024-07-07 11:15:14 -04:00
Nick Hastings
ef9d2fda9d checkout-deps: quiet output on MySQL lib download 2024-07-07 11:14:42 -04:00
Nick Hastings
09bde65dfc upload_symbols: add support for auth 2024-07-07 11:11:44 -04:00
Nick Hastings
02e85b3d98 upload_symbols: fix finding dump_syms on Windows when relying on PATH 2024-07-07 11:11:14 -04:00
Benoist
fccf275194
bump safetyhook submodule (#2180)
Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-06-10 21:47:14 +00:00
bottiger1
5edfa79543
Fix more sdktools crash on 64 bits (#2152)
* fix sdktools crash on 64 bits

* remove other 32bit-isms from sdktools

* Swap sizeof(intptr_t) for sizeof(void *)

---------

Co-authored-by: Nick Hastings <nshastings@gmail.com>
2024-06-09 17:17:29 +00:00
bottiger1
b6d98c762c
fix parsing crash (#2173) 2024-06-09 17:13:32 +00:00
Headline
d42a8c7c1e
Move Safetyhook mess into a mirror repo (#2163)
* Bring in safetyhook mirror repo

* Add proper submodule

* Update submodule for linux fixes

* Update submodule again

* Change the method of compiling safetyhook (#2167)

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>

* Update submodule

* Update submodule for -fPIC

---------

Co-authored-by: Benoist <14257866+Kenzzer@users.noreply.github.com>
Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-06-08 20:05:29 +00:00
Benoist
11d3cf94f7
Add GetFilePermissions (#2177)
Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-06-08 14:17:50 +00:00
Nick Hastings
0e4b1ca4cf Revert "Update sourcepawn submodule (#2146)"
This reverts commit 1bcc5b8a44.
2024-06-08 09:26:13 -04:00
suza
1bcc5b8a44
Update sourcepawn submodule (#2146)
Update SourcePawn and AMTL.
2024-06-04 16:24:22 -07:00
Benoist
7df2f8e045
Reconcile the concept of Edict & Networkable across the codebase (#1903)
* Reconcile the concept of Edict & Networkable across the codebase

* There's no need to check this, it's done elsewhere. Also could be null (segfault)

* This was never needed

* Pseudo review changes

Re-added removed null checks, and added new ones.

Changed the error messages in Get/SetProp natives to better reflect reality.

* Don't change the behaviour of GetEntityNetClass

* Overload IGameHelpers::FindServerClass

* Make error messages more accurate

* Fix a dev comment

* Rename FindServerClass

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-06-01 14:07:55 +00:00
1mpulse
9f3584a056
fix VDECODE_FLAG_ALLOWNOTINGAME flag (#2000)
Corrects the check for the VDECODE_FLAG_ALLOWNOTINGAME flag
2024-06-01 13:57:07 +00:00
Benoist
4e73713fab
Fix rare crash with logs (#2161)
* Fix rare crash with logs

* Nullcheck instead

* Update smn_filesystem.cpp

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-05-24 13:10:24 +02:00
Benoist
e07c120cab
CDetour safetyhook (#2162)
* Add safetyhook, remove libudis86

Co-authored-by: bottiger1 <55270538+bottiger1@users.noreply.github.com>

* Add modified CDetour

Co-authored-by: bottiger1 <55270538+bottiger1@users.noreply.github.com>

* Add CDetour [Safetyhook] to build script

* Re-enable loader/core/corelogic, and fix new C++20 error

* Reenable all extensions (except dhooks)

* Make cstrike compile against new CDetour

* Remove unused variable in sdktools output?

* Make sdktools compile against new cdetour

* Downgrade to C++17

* remove auto

* fix compilation on linux

* Re-enable dhooks

* Re-authorise old compilers

* Fix invalid downgrade of std::optional

* readd libudis86 for dhooks only

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
Co-authored-by: bottiger1 <55270538+bottiger1@users.noreply.github.com>
2024-05-21 01:53:44 +00:00
Kaela
e3734803f0
sdkhooks: retain vtable hook until level end (#2094)
* Band-aid for Bulk SDKHooks performance impact on linux

Platform specific changes.

* Oops forgot about header

* Simplified/improved LevelShutdown code
2024-05-18 12:30:20 +01:00
Nick Hastings
7c757ac119 Trigger build for hl2sdk-l4d2 changes 2024-05-15 09:36:23 -04:00
sappho
c5425def7f
Trigger build for L4D2 changes (#2155) 2024-05-14 17:09:03 -07:00
ojlanders
e60c672485
Add OnServerHibernationUpdate forward (closes #1483) (#2151)
* Add OnServerHibernationUpdate forward (closes #1483)

* Clarify hibernation state

* make it 2 forwards instead of 1

---------

Co-authored-by: Odin Landers <ojl9576@rit.edu>
2024-05-07 01:44:56 +00:00
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
Artvin
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 <14257866+Kenzzer@users.noreply.github.com>
Co-authored-by: Nicholas Hastings <nshastings@gmail.com>
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 Hitchcock
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 <kyle.leet@gmail.com>
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