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

[L4D/L4D2] Return To Lobby Fix For Campaign Switching Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
MasterMind420
BANNED
Join Date: Nov 2010
Old 03-20-2021 , 14:00   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #21

Quote:
Originally Posted by darkbret View Post
I have same problem with you.
Code:
L 01/10/2021 - 12:26:29: SourceMod error session started
L 01/10/2021 - 12:26:29: Info (map "l4d_garage01_alleys") (file "D:\New folder (2)\l4d\left4dead\addons\sourcemod\logs\errors_20210110.log")
L 01/10/2021 - 12:26:29: [SM] Exception reported: Invalid message id supplied (-1)
L 01/10/2021 - 12:26:29: [SM] Blaming: l4d_return_to_lobby_fix.smx
L 01/10/2021 - 12:26:29: [SM] Call stack trace:
L 01/10/2021 - 12:26:29: [SM]   [0] HookUserMessage
L 01/10/2021 - 12:26:29: [SM]   [1] Line 17, /home/forums/content/files/9/7/2/5/7/175987.attach::OnPluginStart
L 01/10/2021 - 12:26:29: [SM] Unable to load plugin "l4d_return_to_lobby_fix.smx": Error detected in plugin startup (see error logs)
sorry for the late reply, looks to me the message id for return to lobby is different in l4d1, i'll have a look and see if it can be fixed.
MasterMind420 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-20-2021 , 23:58   Re: [L4D2] Return To Lobby Fix
Reply With Quote #22

You only really need "DisconnectToLobby" for both games.
PHP Code:
#define ISSUE_CHANGEDIFFICULTY        0
#define ISSUE_RESTARTGAME        1
#define ISSUE_KICK            2
#define ISSUE_CHANGEMISSION        3
#define ISSUE_RETURNTOLOBBY        4
#define ISSUE_CHANGECHAPTER        5
#define ISSUE_CHANGEALLTALK        6

public void OnPluginStart()
{
    
// DisconnectToLobby is sent when stats crawl finishes or is skipped or when Return To Lobby vote succeeds
    
HookUserMessage(GetUserMessageId("DisconnectToLobby"), OnDisconnectToLobbytrue);
}

public 
Action OnDisconnectToLobby(UserMsg msg_idHandle bf, const int[] playersint playersNumbool reliablebool init)
{
    
// Don't intercept Return To Lobby votes
    
int iVoteController FindEntityByClassname(-1"vote_controller");
    if (!
IsValidEntity(iVoteController) || GetEntProp(iVoteControllerProp_Send"m_activeIssueIndex") == ISSUE_RETURNTOLOBBY)
    {
        return 
Plugin_Continue;
    }

    return 
Plugin_Handled;

__________________
Psyk0tik is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-21-2021 , 04:22   Re: [L4D2] Return To Lobby Fix
Reply With Quote #23

Quote:
Originally Posted by Crasher_3637 View Post
You only really need "DisconnectToLobby" for both games.
Thanks, i shall test it, btw
Code:
#include <sdktools>
As your code to work compiling.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
MasterMind420
BANNED
Join Date: Nov 2010
Old 03-21-2021 , 10:31   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #24

V1.1 - New Better Method Supporting L4D1 Thanks to Crasher_3637
MasterMind420 is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-24-2021 , 05:20   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #25

I can tell, that the plugin did nothing, as a client i was stucked at the end of campaign, when types press SPACE bar to skip, it showns main credits and i got black screen, reconnecting to the server it was default start map.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-24-2021 , 10:01   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #26

That sounds like the plugin works. All it does is prevent clients from being sent back to the lobby (unless they vote for it). You’re supposed to use another plugin that switches to another campaign when that black screen shows up.
__________________
Psyk0tik is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-24-2021 , 11:24   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #27

Quote:
Originally Posted by Crasher_3637 View Post
That sounds like the plugin works. All it does is prevent clients from being sent back to the lobby (unless they vote for it). You’re supposed to use another plugin that switches to another campaign when that black screen shows up.
Yes but also pressing space to vote skip doesn't work, no errors in log.
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-24-2021 , 11:56   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #28

Can you elaborate further on what you mean by "vote skip doesn't work"? What happens when everyone skips the credits? Do you just get a black screen after skipping?
__________________
Psyk0tik is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 03-24-2021 , 17:25   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #29

Quote:
Originally Posted by Crasher_3637 View Post
Can you elaborate further on what you mean by "vote skip doesn't work"? What happens when everyone skips the credits? Do you just get a black screen after skipping?
Exacly, but it blocks also the SPACE BAR, if you press it it just does nothing to vote, and after ending of credits, you just get a blank screen and you need to exit to main menu
__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-24-2021 , 19:06   Re: [L4D/L4D2] Return To Lobby Fix
Reply With Quote #30

Which plugin are you using to automatically switch to the next campaign?
__________________
Psyk0tik is offline
Reply


Thread Tools
Display Modes

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 23:15.


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