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

[TF2] Boss Spawns


Post New Thread Reply   
 
Thread Tools Display Modes
404UserNotFound
BANNED
Join Date: Dec 2011
Old 06-19-2015 , 19:05   Re: [TF2] Boss Spawns [1.0.8 - 10/24/2014]
Reply With Quote #121

Not sure if it's been stated already, but I do believe the issue is caused by OnPluginStart doing two things at once:

1. Loading the translations file
2. Printing the "console initializing" phrase to the server

Basically, the code looks like it should work, but it's become obvious to me that the damn thing is trying to display the message first before loading the translations file.

Easiest fix is to remove this bit from OnPluginStart:

PHP Code:
PrintToServer("%s %t"PLUGIN_TAG"console initializing"); 
I've attached a version of the plugin that has that line commented out, so that should not be an issue anymore.

Oh, and I didn't change version numbers in the modified version that I've attached. I will say this though; having to download 2 additional include files just to recompile this was easy, yet also a pain in the ass.

(it's all come full circle, this plugin was started by me, taken over by r3dw3r3w0lf and now I've worked on it again)
Attached Files
File Type: sp Get Plugin or Get Source (BossSpawns.sp - 128 views - 65.8 KB)
File Type: smx BossSpawns.smx (41.2 KB, 154 views)

Last edited by 404UserNotFound; 06-19-2015 at 19:06.
404UserNotFound is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 06-20-2015 , 07:58   Re: [TF2] Boss Spawns [1.0.8 - 10/24/2014]
Reply With Quote #122

I moved it to OnConfigsExecuted back when I last updated it, must've not passed over the changes.

Edit:

Update to 1.0.9:
  • Changed all '.wav' extensions to '.mp3' extensions.
  • Updated/tweaked everything, fixed some old code and optimized it a bit.
  • Fixed the console initialization print not working properly.
  • Optimized code which involves the Ghost.

Last edited by Drixevel; 06-20-2015 at 08:30.
Drixevel is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 06-23-2015 , 15:39   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #123

I downloaded the plugin again, but it's giving me the exact same errors as before.

Code:
L 06/23/2015 - 21:38:43: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 06/23/2015 - 21:38:43: [SM] Native "PrintToServer" reported: Language phrase "console initializing" not found
L 06/23/2015 - 21:38:43: [SM] Displaying call stack trace for plugin "BossSpawns.smx":
L 06/23/2015 - 21:38:43: [SM]   [0]  Line 176, D:\Script\BossSpawns.sp::OnPluginStart()
Do I have to recompile the plugin or...
__________________

Last edited by Wormy; 06-23-2015 at 15:42.
Wormy is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 06-23-2015 , 18:13   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #124

Can you verify that "console initializing" exists in your translation file? It loaded for me fine.
Drixevel is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 06-23-2015 , 19:05   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #125

Agh, silly me, seems like my translation file was wrong. I right-clicked "Save link as" on the Translation link, without realizing that it copied over the entire site's html code.

Plugin works fine now, although green skeletons that are resized (I tried size 3.0) will lag the entire server, this may already be a known issue. Also trying to spawn a Monoculus will result with 2 Monoculuses spawned instead of 1.
__________________

Last edited by Wormy; 06-23-2015 at 19:08.
Wormy is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 06-23-2015 , 19:08   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #126

Quote:
Originally Posted by Wormy View Post
Agh, silly me, seems like my translation file was wrong. I right-clicked "Save link as" on the Translation link, without realizing that it copied over the entire site's html code.

Plugin works fine now, although green skeletons that are resized (I tried size 3.0) will lag the entire server, this may already be a known issue. Also trying to spawn Monoculus will result with 2 Monoculuses instead of 1.
I reported that Skeleton resizing issue a page or few back, as it happened on my server. It lags the server to hell until you slay them.
404UserNotFound is offline
Pala4
Senior Member
Join Date: Dec 2007
Old 07-24-2015 , 10:46   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #127

Fix it

L 07/24/2015 - 17:44:41: [SM] Warning(s) encountered in translation file "BossSpawns.phrases.txt"
L 07/24/2015 - 17:44:41: [SM] Invalid token ' ' in #format property on line 28.
Pala4 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 07-24-2015 , 13:36   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #128

Quote:
Originally Posted by Pala4 View Post
Fix it

L 07/24/2015 - 17:44:41: [SM] Warning(s) encountered in translation file "BossSpawns.phrases.txt"
L 07/24/2015 - 17:44:41: [SM] Invalid token ' ' in #format property on line 28.
Update your plugin, I'm pretty sure that haa been fixed.

Also, another possible fix for that issue would be to ditch the translations file altogether and remove it from the plugin.
404UserNotFound is offline
awesome144
Senior Member
Join Date: Jul 2014
Location: In lala land
Old 07-28-2015 , 16:28   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #129

Quote:
Originally Posted by Pala4 View Post
Fix it

L 07/24/2015 - 17:44:41: [SM] Warning(s) encountered in translation file "BossSpawns.phrases.txt"
L 07/24/2015 - 17:44:41: [SM] Invalid token ' ' in #format property on line 28.
I get that error as well.
__________________
⎛⎝Officer Spy⎠⎞


awesome144 is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 08-07-2015 , 19:54   Re: [TF2] Boss Spawns [1.0.9 - 06/20/2015]
Reply With Quote #130

Can someone unapprove this plugin please? There's a far better version with config support which outweighs this plugin, thanks.

https://forums.alliedmods.net/showthread.php?p=1968904
Drixevel is offline
Reply



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 07:43.


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