Raised This Month: $12 Target: $400
 3% 

[TF2] Powerup API


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Scag
AlliedModders Donor
Join Date: May 2017
Location: Crashing Hale
Plugin ID:
6874
Plugin Version:
1.0.0
Plugin Category:
Technical/Development
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Applicable API for spawning/editing TF2 powerups
    Old 12-27-2019 , 02:05   [TF2] Powerup API
    Reply With Quote #1

    Allows developers to mess around with TF2's Mannpower powerups.


    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.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired

    Last edited by Scag; 04-23-2020 at 15:00. Reason: Replaced spoiler with stocks
    Scag is offline
    RavensBro
    Veteran Member
    Join Date: Sep 2009
    Location: Wisonsin USA
    Old 12-27-2019 , 14:49   Re: [TF2] Powerup API
    Reply With Quote #2

    [SM] Failed to load plugin "tf2powups.smx": Unable to load plugin (no debug string table).
    RavensBro is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 12-27-2019 , 15:21   Re: [TF2] Powerup API
    Reply With Quote #3

    Quote:
    Originally Posted by RavensBro View Post
    [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.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 12-27-2019 , 16:28   Re: [TF2] Powerup API
    Reply With Quote #4

    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.
    Drixevel is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 12-27-2019 , 16:50   Re: [TF2] Powerup API
    Reply With Quote #5

    Quote:
    Originally Posted by Drixevel View Post
    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.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    RavensBro
    Veteran Member
    Join Date: Sep 2009
    Location: Wisonsin USA
    Old 12-27-2019 , 18:04   Re: [TF2] Powerup API
    Reply With Quote #6

    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 (3 : 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 (4 : 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 (4 : 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 (17 : 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 (19 : 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 (23 : warning
    213: tag mismatch
    //
    // 17 Errors.
    //
    // Compilation Time: 0.8 sec
    // ----------------------------------------

    // File not found.

    Press enter to exit ...

    Last edited by RavensBro; 12-27-2019 at 18:05.
    RavensBro is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 12-27-2019 , 18:57   Re: [TF2] Powerup API
    Reply With Quote #7

    Quote:
    Originally Posted by RavensBro View Post
    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.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    RavensBro
    Veteran Member
    Join Date: Sep 2009
    Location: Wisonsin USA
    Old 12-28-2019 , 09:14   Re: [TF2] Powerup API
    Reply With Quote #8

    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 is offline
    RavensBro
    Veteran Member
    Join Date: Sep 2009
    Location: Wisonsin USA
    Old 12-28-2019 , 09:43   Re: [TF2] Powerup API
    Reply With Quote #9

    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);
    RavensBro is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 12-28-2019 , 16:05   Re: [TF2] Powerup API
    Reply With Quote #10

    Quote:
    Originally Posted by RavensBro View Post
    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.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:20.


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