AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Powerup API (https://forums.alliedmods.net/showthread.php?t=320542)

Scag 12-27-2019 02:05

[TF2] Powerup API
 
Allows developers to mess around with TF2's Mannpower powerups.

:crab:
Spoiler


I highly doubt these will change but latest gamedata is here.

DOWNLOAD
Requires SM1.10

Special thanks to Deathreus for being my sensei for a hot minute.

RavensBro 12-27-2019 14:49

Re: [TF2] Powerup API
 
[SM] Failed to load plugin "tf2powups.smx": Unable to load plugin (no debug string table).

Scag 12-27-2019 15:21

Re: [TF2] Powerup API
 
Quote:

Originally Posted by RavensBro (Post 2678204)
[SM] Failed to load plugin "tf2powups.smx": Unable to load plugin (no debug string table).

Are you running 1.9? The plugin is compiled with 1.10.

Drixevel 12-27-2019 16:28

Re: [TF2] Powerup API
 
Need to recompile the binary in the repository, it's an old version that has the error 'TF2_GetRuneType' not being found as a native even though it's a stock now.

Scag 12-27-2019 16:50

Re: [TF2] Powerup API
 
Quote:

Originally Posted by Drixevel (Post 2678213)
Need to recompile the binary in the repository, it's an old version that has the error 'TF2_GetRuneType' not being found as a native even though it's a stock now.

Got it, I moved everything to a different project folder and I must've missed it.

RavensBro 12-27-2019 18:04

Re: [TF2] Powerup API
 
ok i run 1.9 so i try'd to compile it in 1.9 and i get this.


//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// tf2powups.sp
//
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\include\tf2p owups.inc(66) :
error 173: 'throw' is a newly reserved keyword that may be used in the future;
use a different name as an identifier
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (19) : error 13
9: could not find type "GlobalForward"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (34) : error 10
0: function prototypes do not match
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (35) : error 10
0: function prototypes do not match
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (37) : error 11
6: no methodmap or class was found for GlobalForward
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (38) : error 11
6: no methodmap or class was found for GlobalForward
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (39) : error 11
6: no methodmap or class was found for GlobalForward
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (40) : error 11
6: no methodmap or class was found for GlobalForward
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (48) : error 13
9: could not find type "GameData"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (48) : error 11
6: no methodmap or class was found for GameData
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (51) : error 01
7: undefined symbol "DHookSetFromConf"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (57) : error 01
7: undefined symbol "DHookSetFromConf"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (62) : error 01
7: undefined symbol "DHookCreateDetour"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (62) : warning
213: tag mismatch
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (63) : error 01
7: undefined symbol "DHookSetFromConf"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (69) : error 01
7: undefined symbol "DHookPass_ODTOR"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (70) : error 01
7: undefined symbol "DHookEnableDetour"
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (74) : warning
213: tag mismatch
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (86) : warning
213: tag mismatch
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (93) : error 16
7: cannot use delete, integers do not have destructors
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (150) : warning
213: tag mismatch
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (178) : warning
213: tag mismatch
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (198) : warning
213: tag mismatch
// C:\Users\RavensBro\Desktop\source mod and meta mod\sourcemod-1.9.0-git6256-wi
ndows-TF2-Jailbreak-Redux\addons\sourcemod\scripting\tf2powups.sp (238) : warning
213: tag mismatch
//
// 17 Errors.
//
// Compilation Time: 0.8 sec
// ----------------------------------------

// File not found.

Press enter to exit ...

Scag 12-27-2019 18:57

Re: [TF2] Powerup API
 
Quote:

Originally Posted by RavensBro (Post 2678219)
ok i run 1.9 so i try'd to compile it in 1.9 and i get this.
Spoiler

Yea I should have mentioned that it requires SM 1.10 to both compile and run. I'd recommend updating SM since 1.10 is stable now.

RavensBro 12-28-2019 09:14

Re: [TF2] Powerup API
 
ok so i updated to 1.10 and now i get this error.

[SM] Unable to load plugin "tf2powups.smx": Required extension "dhooks" file("dhooks.ext") not running

and i do have dhooks.ext install

RavensBro 12-28-2019 09:43

Re: [TF2] Powerup API
 
ok i found what was wrong in the tf2powups.inc

on line 66 you have native int TF2_DropRune(int client, bool throw, int teammaybe);
should be native int TF2_DropRune(int client, bool thrown, int teammaybe);

Scag 12-28-2019 16:05

Re: [TF2] Powerup API
 
Quote:

Originally Posted by RavensBro (Post 2678261)
ok so i updated to 1.10 and now i get this error.

[SM] Unable to load plugin "tf2powups.smx": Required extension "dhooks" file("dhooks.ext") not running

and i do have dhooks.ext install

Make sure you're running DHooks with Detours with the 1.10 download link. Some stuff broke with IBinTools.

And yea, I fixed that issue with 'throw' on the GitHub yesterday.


All times are GMT -4. The time now is 07:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.