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

[EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown


Post New Thread Reply   
 
Thread Tools Display Modes
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Old 02-19-2013 , 04:03   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #371

Quote:
Originally Posted by spumer View Post
ProdigySim, How about add functions ?
L4D2_Director_GetDataInt
L4D2_Director_GetDataFloat
L4D2_Director_GetDataBool
L4D2_Director_GetVariableOffset
L4D2_Director_SetDataInt
L4D2_Director_SetDataFloat
L4D2_Director_SetDataBool
It would be a good idea to do these types of things with L4D2_Direct. I've started some work on a generic interface, but using the existing functions to create your own versions is possible at this point.
ProdigySim is offline
azvampyre
Junior Member
Join Date: Apr 2012
Old 02-25-2013 , 16:12   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #372

L4D_LobbyIsReserved() is being called. It is deprecated in L4D2, consider updating the plugin using this native.
azvampyre is offline
JackieChan
AlliedModders Donor
Join Date: Nov 2009
Old 02-26-2013 , 23:42   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #373

Quote:
Originally Posted by azvampyre View Post
L4D_LobbyIsReserved() is being called. It is deprecated in L4D2, consider updating the plugin using this native.
Keyword is "plugin".
__________________
JackieChan is offline
spumer
Senior Member
Join Date: Aug 2011
Old 04-10-2013 , 23:24   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #374

I'm investigated a very old problem: "round end" event called more than twice for the level.
I wrote a simple plugin and was scared by results. Block multiply calls in plugins don't give needed stability. Function EndVersusModeRound should called twice: for first and second round. In this function placed all score calculations and when it run very often — it's problem, server can crashed.
It's a problem for big servers (10x10, 9x9, ...), not 4x4.

I'm send email to the valve, and hope they fix it. For now i wrote simple fix. It's a patch for left4downtown2 0.5.4.2. In this patch i'm block extra calls EndVersusModeRound and add new forward:
public L4D2_OnEndVersusModeRound_Post()

This forward is designed to replace a standart approach HookEvent("round_end",...) to give a guarantee: one call — one round.
Why not use standart L4D2_OnEndVersusModeRound ? Because when this function calls, scores for current round not ready yet. It's a very important for TeamBalance plugins and other similar.

In attachment you can find:
  1. fix.patch — patch for source from main repository.
  2. round_checker.before.txt — log before use of my fix.
  3. round_checker.after.txt — log after install my fix to the server.
  4. Two compiled version for the linux: with player slots and without them.
  5. New .inc file with new forward.
I hope it will be usefull. Thanks.
Attached Files
File Type: patch fix.patch (5.4 KB, 193 views)
File Type: log round_checker.before.log (3.1 KB, 166 views)
File Type: txt round_checker.after.txt (2.3 KB, 194 views)
File Type: 7z left4downtown.0.5.4.2b_playerslots.7z (81.9 KB, 196 views)
File Type: 7z left4downtown.0.5.4.2b.7z (78.9 KB, 192 views)
File Type: inc left4downtown.inc (21.9 KB, 184 views)
__________________

Last edited by spumer; 04-11-2013 at 17:21.
spumer is offline
AlexK1dd
Junior Member
Join Date: Mar 2013
Location: Romania
Old 05-06-2013 , 08:11   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #375

So which one i need to download ? Sorry i am newbie .
I want my server to have 16 slots . Versus . I have super versus plugin instaled .
I installed one of the downloads ( left4downtown2-v0.5.4.2 ) , and where i need to put that cvar ???? With l4d_maxplayers ? If i put it in l4d2_maxplayers 16 in server.cfg it says : Unknown command ''l4d_maxplayers''
Help me .
AlexK1dd is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 05-08-2013 , 04:10   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #376

Quote:
Originally Posted by spumer View Post
I'm investigated a very old problem: "round end" event called more than twice for the level.
I wrote a simple plugin and was scared by results. Block multiply calls in plugins don't give needed stability. Function EndVersusModeRound should called twice: for first and second round. In this function placed all score calculations and when it run very often — it's problem, server can crashed.
It's a problem for big servers (10x10, 9x9, ...), not 4x4.

I'm send email to the valve, and hope they fix it.
Heh, you've discovered one of the main reasons coding for L4D/L4D2 was surprising at times. Double and misfiring events are common. No, it wont be fixed... It was probably left like that by design ("good enough") and they counteract the oddness with more code.
AtomicStryker is offline
xbladek10
Junior Member
Join Date: Jan 2012
Old 05-08-2013 , 09:16   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #377

This plugin no work is obsolete, you can see 8/20 but is possible see any servers using 10vs10 whit private plugins.

any can update this?, this plugin no work.
__________________




xbladek10 is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 05-26-2013 , 18:18   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #378

Doesn't work for me either for LEft 4 Dead 2...sigh.
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
spumer
Senior Member
Join Date: Aug 2011
Old 05-28-2013 , 14:40   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #379

What specifically does not work? Plugin from http://paste.org.ru/?iszhik require Left4Downtown2 extension.
__________________

Last edited by spumer; 05-29-2013 at 08:29.
spumer is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 05-29-2013 , 11:53   Re: [EXTENSION] Left 4 Downtown 2 (0.5.4.2) - L4D2 Only, Updated Left4Downtown
Reply With Quote #380

Quote:
Originally Posted by spumer View Post
What specifically does not work? Plugin from http://paste.org.ru/?iszhik require Left4Downtown2 extension.
Left 4 Dead 2 downtown does not work, as in it does not show up in meta list, and there is an error. It is way out of date.
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
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 05:56.


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