View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-31-2013 , 02:50   Re: [TF2] PropHunt 1.93
Reply With Quote #1003

Short version:
Here's a new version of Prop Hunt that keeps it from displaying an error in your server on map change.

Long Version:
I spotted a quick bug in Prop Hunt that doesn't actually affect gameplay. Apparently, the game creates the team_control_point_master entity even when the map's not running... but SourceMod blocks plugins from creating entities (prop hunt spawns its team_round_timer when the team_control_point_master spawns) and you get this error instead:

Code:
L 05/31/2013 - 01:26:30: [SM] Native "CreateEntityByName" reported: Cannot create new entity when no map is running
L 05/31/2013 - 01:26:30: [SM] Displaying call stack trace for plugin "prophunt.smx":
L 05/31/2013 - 01:26:30: [SM]   [0]  Line 870, D:\tf2server\plugins\prophunt\addons\sourcemod\scripting\prophunt.sp::OnCPMasterSpawned()
The team_control_point_master entity (along with all team_round_timer s) are deleted and recreated at the start of every round so the error shouldn't have any in-game effect.

Anyway, here's a version that should remove the error.
Attached Files
File Type: sp Get Plugin or Get Source (prophunt.sp - 155 views - 72.9 KB)
File Type: smx prophunt.smx (33.5 KB, 207 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-31-2013 at 02:53.
Powerlord is offline