Raised This Month: $ Target: $400
 0% 

[CSGO Paying] Fix my Reserved Slots


Post New Thread Reply   
 
Thread Tools Display Modes
taRik
AlliedModders Donor
Join Date: Apr 2010
Old 01-22-2014 , 17:10   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #41

Quote:
Originally Posted by DoPe^ View Post
Yeah thats because it loads the player_team event in the delay.
So you will need to put a delay on untill if fix that.
I made this plugin specially for you, so there is really no need to disable the delay.
Ahhh ok I understand

I just tried it with the delay commands in my server.cfg

I put a 30 second delay, and after 30 seconds my server crashed, and I have this in my error log:

L 01/22/2014 - 16:08:59: SourceMod error session started
L 01/22/2014 - 16:08:59: Info (map "sj_test_csgo_v1") (file "errors_20140122.log")
L 01/22/2014 - 16:08:59: [SM] Native "UnhookEvent" reported: Game event "player_team" has no active hook
L 01/22/2014 - 16:08:59: [SM] Displaying call stack trace for plugin "sm_csgobotquotafix.smx":
L 01/22/2014 - 16:08:59: [SM] [0] Line 221, /home/groups/alliedmodders/forums/files/4/0/1/7/5/129746.attach::OnMapEnd()
L 01/22/2014 - 16:08:59: Error log file session closed.
taRik is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 01-22-2014 , 17:13   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #42

Quote:
Originally Posted by taRik View Post
Ahhh ok I understand

I just tried it with the delay commands in my server.cfg

I put a 30 second delay, and after 30 seconds my server crashed, and I have this in my error log:

L 01/22/2014 - 16:08:59: SourceMod error session started
L 01/22/2014 - 16:08:59: Info (map "sj_test_csgo_v1") (file "errors_20140122.log")
L 01/22/2014 - 16:08:59: [SM] Native "UnhookEvent" reported: Game event "player_team" has no active hook
L 01/22/2014 - 16:08:59: [SM] Displaying call stack trace for plugin "sm_csgobotquotafix.smx":
L 01/22/2014 - 16:08:59: [SM] [0] Line 221, /home/groups/alliedmodders/forums/files/4/0/1/7/5/129746.attach::OnMapEnd()
L 01/22/2014 - 16:08:59: Error log file session closed.
try this
Attached Files
File Type: sp Get Plugin or Get Source (sm_csgobotquotafix.sp - 211 views - 6.8 KB)
__________________
DoPe^ is offline
taRik
AlliedModders Donor
Join Date: Apr 2010
Old 01-22-2014 , 17:35   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #43

Quote:
Originally Posted by DoPe^ View Post
try this
Tried it again, after 30 seconds:

L 01/22/2014 - 164:10: SourceMod error session started
L 01/22/2014 - 164:10: Info (map "sj_test_csgo_v1") (file "errors_20140122.log")
L 01/22/2014 - 164:10: [SM] Native "UnhookEvent" reported: Game event "player_team" has no active hook
L 01/22/2014 - 164:10: [SM] Displaying call stack trace for plugin "sm_csgobotquotafix.smx":
L 01/22/2014 - 164:10: [SM] [0] Line 228, /home/groups/alliedmodders/forums/files/4/0/1/7/5/129777.attach::OnMapEnd()
L 01/22/2014 - 164:10: Error log file session closed.
taRik is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 01-22-2014 , 17:40   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #44

Quote:
Originally Posted by taRik View Post
Tried it again, after 30 seconds:

L 01/22/2014 - 164:10: SourceMod error session started
L 01/22/2014 - 164:10: Info (map "sj_test_csgo_v1") (file "errors_20140122.log")
L 01/22/2014 - 164:10: [SM] Native "UnhookEvent" reported: Game event "player_team" has no active hook
L 01/22/2014 - 164:10: [SM] Displaying call stack trace for plugin "sm_csgobotquotafix.smx":
L 01/22/2014 - 164:10: [SM] [0] Line 228, /home/groups/alliedmodders/forums/files/4/0/1/7/5/129777.attach::OnMapEnd()
L 01/22/2014 - 164:10: Error log file session closed.
Well thats wierd, because im not getting that error at all, I did with the older version.
But not this one.

Have you tried restarting the server?

Edit:
Are you changing the map before the delay has ended? because that would be the reason then.
It hooks the player_team when the delay reaches 0, and then it unhooks the player_team event on map end.
If you change map before it has made the hook you will get that error, since it will not be able to unhook an event that isnt hooked.
__________________

Last edited by DoPe^; 01-22-2014 at 17:43.
DoPe^ is offline
taRik
AlliedModders Donor
Join Date: Apr 2010
Old 01-22-2014 , 17:49   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #45

Quote:
Originally Posted by DoPe^ View Post
Well thats wierd, because im not getting that error at all, I did with the older version.
But not this one.

Have you tried restarting the server?

Edit:
Are you changing the map before the delay has ended? because that would be the reason then.
It hooks the player_team when the delay reaches 0, and then it unhooks the player_team event on map end.
If you change map before it has made the hook you will get that error, since it will not be able to unhook an event that isnt hooked.
All I have been doing is replacing the plugin and restarting the server

edit; oh shit hold on I think its working 1 sec

It was working I think but I am about to scrim, give me 30 minutes to go back and test it further.

BY THE WAY, thank you so much for staying consistent and helping me so much, really appreciate it!!!!

Last edited by taRik; 01-22-2014 at 17:54.
taRik is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 01-22-2014 , 18:03   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #46

Quote:
Originally Posted by taRik View Post
All I have been doing is replacing the plugin and restarting the server

edit; oh shit hold on I think its working 1 sec

It was working I think but I am about to scrim, give me 30 minutes to go back and test it further.

BY THE WAY, thank you so much for staying consistent and helping me so much, really appreciate it!!!!
No Problem ;) The issue should have been fixed in this version.

I have added so the timer for the delay gets killed if it is not invalid when it changes map.
I also made some checks if player_team is hooked or not.
This should fix the errors
Attached Files
File Type: sp Get Plugin or Get Source (sm_csgobotquotafix.sp - 271 views - 7.7 KB)
__________________
DoPe^ is offline
taRik
AlliedModders Donor
Join Date: Apr 2010
Old 01-22-2014 , 19:28   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #47

Quote:
Originally Posted by DoPe^ View Post
No Problem ;) The issue should have been fixed in this version.

I have added so the timer for the delay gets killed if it is not invalid when it changes map.
I also made some checks if player_team is hooked or not.
This should fix the errors
Omg you are a legend it works, thank you so much
taRik is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 01-22-2014 , 19:35   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #48

Quote:
Originally Posted by taRik View Post
Omg you are a legend it works, thank you so much
No problem im happy it worked out! :p
__________________
DoPe^ is offline
ttasdasda
Member
Join Date: Apr 2014
Old 04-16-2014 , 10:56   Re: [CSGO Paying] Fix my Reserved Slots
Reply With Quote #49

The servers starts lagging massively once the bots start joining after the delay. It lags for like 15 seconds, during which it adds and kicks like 50 bots per second. After that, they aren't respawned by DM plugin unless I make mp_restartgame 1. Is there any fix for that?
ttasdasda 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 22:42.


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