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

[TF2] Building Overhaul


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Scag
AlliedModders Donor
Join Date: May 2017
Location: Crashing Hale
Plugin ID:
7712
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gotta move that gear up!
    Old 07-06-2021 , 17:03   [TF2] Building Overhaul
    Reply With Quote #1

    Why

    I had an idea while playing on my server which involved a crazy amount of teleporters. I looked up all the "infinite building" plugins here on AlliedModders, there are a few, but none of them had a real teleporter system, some didn't even bother to mess with teleporters. That was the inspiration for this plugin.

    I wanted to make it fun, so I did a lot of reverse engineering trying to get plugin behavior to be as perfect as possible. I ended up getting pretty close but holy moly the gamedata file is big.

    Features

    What makes this plugin different from all of the other ones?
    • You can actually build each of your extra buildings from your construction PDA, no commands needed.
    • If you change your mind, you can destroy your extra buildings with your destruction PDA, they are destroyed in order of creation (like a FIFO queue).
    • You can wrangle each and every one of your sentries and singlehandedly hold the last point of dustbowl.
    • You can make multiple sets of teleporters, once again singlehandedly carrying your team to last.
    • If you gotta move that gear up, you can pick up and carry all of your extra buildings as you cap each point within 10 seconds.
    • If you somehow manage to die, you can spectate all 40 of your sentries as they camp outside of the opposing team's spawn.

    There are 3 cvars that set a limit for buildings. But be honest, do you really need to limit that?

    Requirements

    Note that this is not tested on Linux

    If gamedata breaks, which it probably will, try checking here.

    LINK TO REPO

    Nerdy details
    Spoiler
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 07-06-2021 , 21:12   Re: [TF2] Building Overhaul
    Reply With Quote #2

    Nice lol
    __________________
    Fearts is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 07-06-2021 , 23:07   Re: [TF2] Building Overhaul
    Reply With Quote #3

    I'm having a bit of difficulty compiling this. It appears maybe the Scags/SM-Memory package install is missing an include file called smmem/handle. Any idea where I can find that?
    PC Gamer is offline
    nosoop
    Veteran Member
    Join Date: Aug 2014
    Old 07-06-2021 , 23:29   Re: [TF2] Building Overhaul
    Reply With Quote #4

    Regarding CTFPlayer::m_aObjects, it still contains every building past the sixth; you should be able to sort the entities in place with the 6 you want networked at the front.

    I just casually skimmed the code so I'm not sure if that was addressed, but overall this is definitely neat.
    __________________
    I do TF2, TF2 servers, and TF2 plugins.
    I don't do DMs over Discord -- PM me on the forums regarding inquiries.
    AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
    nosoop is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 07-06-2021 , 23:36   Re: [TF2] Building Overhaul
    Reply With Quote #5

    Agreed. Pretty cool plugin.

    A couple more notes:
    1. cvar for sm_buildingov_max_sentry doesn't seem to work. If I set the limit to be '2', players can still build 3. If I set to 4, players can only build 3, etc.
    2. Build and Destroy menu has a nasty habit of disappearing a split second after you select the tool, much faster than the player can select a menu option to build or destroy a building.

    Plugin is working but getting errors in error log:
    PHP Code:
    L 07/08/2021 11:00:55: [SMException reportedInvalid Handle 0 (error4)
    L 07/08/2021 11:00:55: [SMBlamingbuildingoverhaul.smx
    L 07
    /08/2021 11:00:55: [SMCall stack trace:
    L 07/08/2021 11:00:55: [SM]   [0ArrayList.Length.get
    L 07
    /08/2021 11:00:55: [SM]   [1Line 771buildingoverhaul.sp::GetNumObjects
    L 07
    /08/2021 11:00:55: [SM]   [2Line 687buildingoverhaul.sp::CTFPlayer_BuildObservableEntityList

    L 07
    /08/2021 10:55:04: [SMException reportedInvalid Handle 0 (error4)
    L 07/08/2021 10:55:04: [SMBlamingbuildingoverhaul.smx
    L 07
    /08/2021 10:55:04: [SMCall stack trace:
    L 07/08/2021 10:55:04: [SM]   [0ArrayList.FindValue
    L 07
    /08/2021 10:55:04: [SM]   [1Line 669buildingoverhaul.sp::CTFPlayer_RemoveObject
    L 07
    /08/2021 10:55:04: [SM]   [3AcceptEntityInput
    L 07
    /08/2021 10:55:04: [SM]   [4Line 146buildingspawner.sp::OnClientDisconnect 

    Last edited by PC Gamer; 07-08-2021 at 12:26.
    PC Gamer is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 07-08-2021 , 23:48   Re: [TF2] Building Overhaul
    Reply With Quote #6

    Quote:
    Originally Posted by PC Gamer View Post
    Agreed. Pretty cool plugin.

    A couple more notes:
    1. cvar for sm_buildingov_max_sentry doesn't seem to work. If I set the limit to be '2', players can still build 3. If I set to 4, players can only build 3, etc.
    2. Build and Destroy menu has a nasty habit of disappearing a split second after you select the tool, much faster than the player can select a menu option to build or destroy a building.

    Plugin is working but getting errors in error log:
    PHP Code:
    L 07/08/2021 11:00:55: [SMException reportedInvalid Handle 0 (error4)
    L 07/08/2021 11:00:55: [SMBlamingbuildingoverhaul.smx
    L 07
    /08/2021 11:00:55: [SMCall stack trace:
    L 07/08/2021 11:00:55: [SM]   [0ArrayList.Length.get
    L 07
    /08/2021 11:00:55: [SM]   [1Line 771buildingoverhaul.sp::GetNumObjects
    L 07
    /08/2021 11:00:55: [SM]   [2Line 687buildingoverhaul.sp::CTFPlayer_BuildObservableEntityList

    L 07
    /08/2021 10:55:04: [SMException reportedInvalid Handle 0 (error4)
    L 07/08/2021 10:55:04: [SMBlamingbuildingoverhaul.smx
    L 07
    /08/2021 10:55:04: [SMCall stack trace:
    L 07/08/2021 10:55:04: [SM]   [0ArrayList.FindValue
    L 07
    /08/2021 10:55:04: [SM]   [1Line 669buildingoverhaul.sp::CTFPlayer_RemoveObject
    L 07
    /08/2021 10:55:04: [SM]   [3AcceptEntityInput
    L 07
    /08/2021 10:55:04: [SM]   [4Line 146buildingspawner.sp::OnClientDisconnect 
    Whoops, forgot the subscribe to this thread so sorry for the delay. The errors and #1 should be fixed, I managed to mess up the order of the cvars so teleporters were treated as sentries and vice versa.

    For #2, it might have to do with an incompatibility with another plugin. My guess is that buildingspawner.smx is manually adding to the vector (most likely with "SetBuilder" in AcceptEntityInput).

    Because of Windows inlining, I wasn't able to catch insertion with inputs so I lazily skipped over it. I'll look further into that when I have the time.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 07-20-2021 , 16:27   Re: [TF2] Building Overhaul
    Reply With Quote #7

    I am getting the error below. Plugin is working fine otherwise.
    PHP Code:
    L 07/20/2021 14:22:08: [SMException reportedInvalid memory access
    L 07
    /20/2021 14:22:08: [SMBlamingbuildingoverhaul.smx
    L 07
    /20/2021 14:22:08: [SMCall stack trace:
    L 07/20/2021 14:22:08: [SM]   [1Line 626C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /20/2021 14:22:08: [SMException reportedInvalid memory access
    L 07
    /20/2021 14:22:08: [SMBlamingbuildingoverhaul.smx
    L 07
    /20/2021 14:22:08: [SMCall stack trace:
    L 07/20/2021 14:22:08: [SM]   [1Line 626C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject 
    PC Gamer is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 07-27-2021 , 18:46   Re: [TF2] Building Overhaul
    Reply With Quote #8

    Quote:
    Originally Posted by PC Gamer View Post
    I am getting the error below. Plugin is working fine otherwise.
    PHP Code:
    L 07/20/2021 14:22:08: [SMException reportedInvalid memory access
    L 07
    /20/2021 14:22:08: [SMBlamingbuildingoverhaul.smx
    L 07
    /20/2021 14:22:08: [SMCall stack trace:
    L 07/20/2021 14:22:08: [SM]   [1Line 626C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /20/2021 14:22:08: [SMException reportedInvalid memory access
    L 07
    /20/2021 14:22:08: [SMBlamingbuildingoverhaul.smx
    L 07
    /20/2021 14:22:08: [SMCall stack trace:
    L 07/20/2021 14:22:08: [SM]   [1Line 626C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject 
    Ah, I forgot to reply to this. This is fixed on the GitHub repo. Let me know if anything else isn't working.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    PC Gamer
    Veteran Member
    Join Date: Mar 2014
    Old 07-29-2021 , 00:26   Re: [TF2] Building Overhaul
    Reply With Quote #9

    Thanks for the fix! Unfortunately I'm now getting a few hundred instances of this error:
    PHP Code:
    L 07/29/2021 17:35:09: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:09: [SMBlamingbuildingoverhaul.smx
    L 07
    /29/2021 17:35:09: [SMCall stack trace:
    L 07/29/2021 17:35:09: [SM]   [1Line 648C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /29/2021 17:35:12: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:12: [SMBlamingbuildingoverhaul.smx
    L 07
    /29/2021 17:35:12: [SMCall stack trace:
    L 07/29/2021 17:35:12: [SM]   [1Line 648C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /29/2021 17:35:13: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:13: [SMBlamingbuildingoverhaul.smx
    L 07
    /29/2021 17:35:13: [SMCall stack trace:
    L 07/29/2021 17:35:13: [SM]   [1Line 648C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /29/2021 17:35:15: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:15: [SMBlamingbuildingoverhaul.smx 
    Hopefully it is something fixable.

    Last edited by PC Gamer; 07-29-2021 at 20:53.
    PC Gamer is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 07-30-2021 , 00:18   Re: [TF2] Building Overhaul
    Reply With Quote #10

    Quote:
    Originally Posted by PC Gamer View Post
    Thanks for the fix! Unfortunately I'm now getting a few hundred instances of this error:
    PHP Code:
    L 07/29/2021 17:35:09: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:09: [SMBlamingbuildingoverhaul.smx
    L 07
    /29/2021 17:35:09: [SMCall stack trace:
    L 07/29/2021 17:35:09: [SM]   [1Line 648C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /29/2021 17:35:12: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:12: [SMBlamingbuildingoverhaul.smx
    L 07
    /29/2021 17:35:12: [SMCall stack trace:
    L 07/29/2021 17:35:12: [SM]   [1Line 648C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /29/2021 17:35:13: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:13: [SMBlamingbuildingoverhaul.smx
    L 07
    /29/2021 17:35:13: [SMCall stack trace:
    L 07/29/2021 17:35:13: [SM]   [1Line 648C:\Users\johnm\OneDrive\Documents\GitHub\TF2-Building-Overhaul\addons\sourcemod\scripting\buildingoverhaul.sp::CTFPlayer_FinishedObject
    L 07
    /29/2021 17:35:15: [SMException reportedInvalid memory access
    L 07
    /29/2021 17:35:15: [SMBlamingbuildingoverhaul.smx 
    Hopefully it is something fixable.
    Grrrr it's being annoying. Try the latest download on the GitHub repo again. That should fix it this time.
    __________________
    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 17:39.


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