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

[L4D & L4D2] Switch Players


Post New Thread Reply   
 
Thread Tools Display Modes
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 08-18-2013 , 21:35   Re: [L4D & L4D2] Switch Players
Reply With Quote #251

Everytime I join the special infected team in co-op mode, the console gets repeatedly non-stop spammed with this error here:
Material effects/spawn_sphere has bad reference count 0 when being bound

Any thoughts whats causing the error, within this plugin here?
wendigo is offline
Carl Sagan
Senior Member
Join Date: Jan 2014
Old 01-05-2014 , 03:19   Re: [L4D & L4D2] Switch Players
Reply With Quote #252

Currently trying to learn SourcePawn myself but I'm too new to figure out what's wrong. I got switching players to work with the updated gamedata but swapping players is completely broken.

Would anyone be willing to try and fix this or can someone point me towards a better switch/swap players plugin that works fine?
Carl Sagan is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 01-17-2014 , 14:32   Re: [L4D & L4D2] Switch Players
Reply With Quote #253

Ths version makes swapping players in L4D2 work again and fixes small bug.

Code changes:
  • sb_all_bot_team is not present in L4D2(replaced by sb_all_bot_game), because of this swap never took place - error was logged instead
  • fixed small mistake in PerformSwitch(), the first check should be on target, not client - this caused an error if the target client was not in game
  • incremented version and left changes info in plugin
  • updated gamedata file with correct Windows signatures (30-01-2014)
Attached Files
File Type: sp Get Plugin or Get Source (l4dswitchplayers.sp - 1504 views - 12.5 KB)
File Type: txt l4dswitchplayers.txt (1.1 KB, 571 views)
__________________

Last edited by kwski43; 01-30-2014 at 07:53. Reason: incremented version, left changes info in plugin, added gamedata file, updated gamedata file with correct Windows signatures
kwski43 is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 01-17-2014 , 16:54   Re: [L4D & L4D2] Switch Players
Reply With Quote #254

Quote:
Originally Posted by kwski43 View Post
Ths plugin required a small change to make swapping players work in L4D2

sb_all_bot_team is not present in L4D2, because of this swap never took place - error was logged instead
also fixed small mistake in PerformSwitch(), the first check should be on target, not client - this caused an error if the target client was not in game

What do you mean? I can easily swap myself to the infected team / spec mode in co-op. Or any other players. With the files from OP.

Last edited by wendigo; 01-17-2014 at 16:55.
wendigo is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 01-17-2014 , 17:11   Re: [L4D & L4D2] Switch Players
Reply With Quote #255

Quote:
Originally Posted by wendigo View Post
What do you mean? I can easily swap myself to the infected team / spec mode in co-op. Or any other players. With the files from OP.
swap != switch

Switching one person to team works fine, swapping two players didn't work.
__________________
kwski43 is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 01-25-2014 , 03:45   Re: [L4D & L4D2] Switch Players
Reply With Quote #256

Hi,

Does this plugin still work? I can switch to the Infected team and the Spectator team, but trying to switch to the Survivor team doesn't work at all. It just puts me into spectator on the survivor bots. But you can't take control of them. If there is a fix somewhere or a substitute plugin can someone point me in the right direction?
SEGA EMPRESS ERIS is offline
Carl Sagan
Senior Member
Join Date: Jan 2014
Old 01-25-2014 , 13:09   Re: [L4D & L4D2] Switch Players
Reply With Quote #257

Quote:
Originally Posted by XJR15 View Post
Hi,

Does this plugin still work? I can switch to the Infected team and the Spectator team, but trying to switch to the Survivor team doesn't work at all. It just puts me into spectator on the survivor bots. But you can't take control of them. If there is a fix somewhere or a substitute plugin can someone point me in the right direction?
Always check through the last few pages of a thread because someone could have fixed it (and they did in this case).
Carl Sagan is offline
midnight9
Senior Member
Join Date: Nov 2012
Old 01-26-2014 , 17:21   Re: [L4D & L4D2] Switch Players
Reply With Quote #258

So where do i need to add sb_all_bot_game 1 to get it to work? server.cfg?
midnight9 is offline
SEGA EMPRESS ERIS
Senior Member
Join Date: Sep 2010
Location: THE-MILKY-WAY-GALAXY
Old 01-27-2014 , 00:55   Re: [L4D & L4D2] Switch Players
Reply With Quote #259

Quote:
Originally Posted by Carl Sagan View Post
Always check through the last few pages of a thread because someone could have fixed it (and they did in this case).
Where is the fix? I tried the one posted by kwski and I still couldn't switch to survivor team, but infected and spectator works fine.
SEGA EMPRESS ERIS is offline
kwski43
Senior Member
Join Date: Mar 2009
Old 01-27-2014 , 05:44   Re: [L4D & L4D2] Switch Players
Reply With Quote #260

Quote:
Originally Posted by midnight9 View Post
So where do i need to add sb_all_bot_game 1 to get it to work? server.cfg?
You need only to download updated version from my post, I was only saying what changes I made to the plugin's code.

Quote:
Originally Posted by XJR15 View Post
Where is the fix? I tried the one posted by kwski and I still couldn't switch to survivor team, but infected and spectator works fine.
You might be missing gamedata file l4dswitchplayers.txt from first post.
__________________
kwski43 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 14:29.


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