AlliedModders

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

Scag 07-06-2021 17:03

[TF2] Building Overhaul
 
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

Fearts 07-06-2021 21:12

Re: [TF2] Building Overhaul
 
Nice lol

PC Gamer 07-06-2021 23:07

Re: [TF2] Building Overhaul
 
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?

nosoop 07-06-2021 23:29

Re: [TF2] Building Overhaul
 
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.

PC Gamer 07-06-2021 23:36

Re: [TF2] Building Overhaul
 
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 


Scag 07-08-2021 23:48

Re: [TF2] Building Overhaul
 
Quote:

Originally Posted by PC Gamer (Post 2752066)
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.

PC Gamer 07-20-2021 16:27

Re: [TF2] Building Overhaul
 
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 


Scag 07-27-2021 18:46

Re: [TF2] Building Overhaul
 
Quote:

Originally Posted by PC Gamer (Post 2753256)
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.

PC Gamer 07-29-2021 00:26

Re: [TF2] Building Overhaul
 
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.

Scag 07-30-2021 00:18

Re: [TF2] Building Overhaul
 
Quote:

Originally Posted by PC Gamer (Post 2753958)
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.


All times are GMT -4. The time now is 19:01.

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