AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Black Screen Fix aka Delayed downloader (https://forums.alliedmods.net/showthread.php?t=318739)

BHaType 09-17-2019 22:27

[L4D2] Black Screen Fix aka Delayed downloader
 
2 Attachment(s)
Description
- Loading files during map transition
- No black screen when loading files during map change

Notes
  • This plugin has passed a lot of tests from different people and still we could not fix 1 bug. When loading custom models, there is a chance that the player will have to restart the game for him to see this model
  • Also if you want some files to stay in the table and be uploaded when the player connects, then you can create restrict_strings.cfg in the data folder and add the files there
  • If you have any problems with the plugin, please unsubscribe below
  • The plugin was tested only in Left 4 Dead 2, but in Left 4 Dead 1 it should also work
  • Required stringtables_data for compile

Required
  • SourceMod 1.11 or higher

Commands
sm_get_restricted_strings - to get all list of strings from cfg which doesn't affect by this plugin.
sm_restore_st - Restore downloadables stringtable items

Credits

oceanyss 09-18-2019 06:59

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
I assume you need a separate web host for the players to download from?

Or can this plugin allow players to download directly from the dedicated server itself?

BHaType 09-18-2019 07:12

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
this plugin works automatically, it completely removes the download of files to players during the connection and restores the download of files during map transition

Thus removing the black screen problem.
Web host will still be needed

AK978 09-18-2019 09:33

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
i use sm_downloader.smx.
if i want use it.
download file need (my plugins onmapstart use AddFileToDownloadsTable)?
restrict_strings.cfg have sample?

BHaType 09-18-2019 23:02

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
1 Attachment(s)
Quote:

Originally Posted by AK978 (Post 2667425)
i use sm_downloader.smx.
if i want use it.
download file need (my plugins onmapstart use AddFileToDownloadsTable)?

You'll still need to make AddFileToDownloadsTable so players can download the files.

Quote:

Originally Posted by AK978 (Post 2667425)
restrict_strings.cfg have sample?


AK978 09-27-2019 18:26

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
0 player server can't hibernating?

mikaelangelis 10-04-2019 05:47

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
where am i supposed to put restrict_strings.cfg in? gamedata folder? config folder? or cfg/sourcemod folder ?

Psyk0tik 10-04-2019 06:00

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by mikaelangelis (Post 2668752)
where am i supposed to put restrict_strings.cfg in? gamedata folder? config folder? or cfg/sourcemod folder ?

addons/sourcemod/data folder

Voevoda 10-14-2019 10:23

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Hello, I did everything according to the instructions anyway black screen

https://cdn.discordapp.com/attachmen...14015201_1.jpg

Voevoda 10-15-2019 06:55

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

L 10/15/2019 - 13:46:19: SourceMod error session started
L 10/15/2019 - 13:46:19: Info (map "c1m1_hotel") (file "errors_20191015.log")
L 10/15/2019 - 13:46:19: [SM] Exception reported: Invalid Handle 0
L 10/15/2019 - 13:46:19: [SM] Blaming: l4d2_stringtable_control.smx
L 10/15/2019 - 13:46:19: [SM] Call stack trace:
L 10/15/2019 - 13:46:19: [SM] [0] DHookEnableDetour
L 10/15/2019 - 13:46:19: [SM] [1] Line 143, D:\sborka_versus_test\sourcemod-1.9.0-git6281_sb_voiс\l4d2_stringtable_control.sp:: OnPluginStart
L 10/15/2019 - 13:46:19: [SM] Unable to load plugin "l4d2_stringtable_control.smx": Error detected in plugin startup (see error logs)
L 10/15/2019 - 13:46:19: [server_auto_restart.smx] server_auto_restart.smx/OnPluginStart()/10/15/2019 - 13:46:19: [server_auto_restart] Server start.
L 10/15/2019 - 13:46:19: [SM] Unable to load plugin "l4d2_blackscreen_fix.smx": Native "StringtableReset" was not found
L 10/15/2019 - 13:46:21: Error log file session closed.

BHaType 10-15-2019 07:36

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Voevoda (Post 2669789)
L 10/15/2019 - 13:46:19: SourceMod error session started
L 10/15/2019 - 13:46:19: Info (map "c1m1_hotel") (file "errors_20191015.log")
L 10/15/2019 - 13:46:19: [SM] Exception reported: Invalid Handle 0
L 10/15/2019 - 13:46:19: [SM] Blaming: l4d2_stringtable_control.smx
L 10/15/2019 - 13:46:19: [SM] Call stack trace:
L 10/15/2019 - 13:46:19: [SM] [0] DHookEnableDetour
L 10/15/2019 - 13:46:19: [SM] [1] Line 143, D:\sborka_versus_test\sourcemod-1.9.0-git6281_sb_voiс\l4d2_stringtable_control.sp:: OnPluginStart
L 10/15/2019 - 13:46:19: [SM] Unable to load plugin "l4d2_stringtable_control.smx": Error detected in plugin startup (see error logs)
L 10/15/2019 - 13:46:19: [server_auto_restart.smx] server_auto_restart.smx/OnPluginStart()/10/15/2019 - 13:46:19: [server_auto_restart] Server start.
L 10/15/2019 - 13:46:19: [SM] Unable to load plugin "l4d2_blackscreen_fix.smx": Native "StringtableReset" was not found
L 10/15/2019 - 13:46:21: Error log file session closed.

https://forums.alliedmods.net/showth...33#post2666933
updated

Voevoda 10-15-2019 18:31

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by BHaType (Post 2669792)

Hi, I updated anyway errors

Quote:

L 10/16/2019 - 01:22:25: SourceMod error session started
L 10/16/2019 - 01:22:25: Info (map "c1m1_hotel") (file "errors_20191016.log")
L 10/16/2019 - 01:22:25: [SM] Exception reported: Invalid Handle 0
L 10/16/2019 - 01:22:25: [SM] Blaming: l4d2_stringtable_control.smx
L 10/16/2019 - 01:22:25: [SM] Call stack trace:
L 10/16/2019 - 01:22:25: [SM] [0] DHookEnableDetour
L 10/16/2019 - 01:22:25: [SM] [1] Line 143, D:\sborka_versus_test\sourcemod-1.9.0-git6281_sb_test\l4d2_stringtable_control.sp:: OnPluginStart
L 10/16/2019 - 01:22:25: [SM] Unable to load plugin "l4d2_stringtable_control.smx": Error detected in plugin startup (see error logs)
L 10/16/2019 - 01:22:25: [server_auto_restart.smx] server_auto_restart.smx/OnPluginStart()/10/16/2019 - 01:22:25: [server_auto_restart] Server start.
L 10/16/2019 - 01:22:25: [SM] Unable to load plugin "l4d2_blackscreen_fix.smx": Native "StringtableReset" was not found
L 10/16/2019 - 01:22:26: Error log file session closed.
L 10/16/2019 - 01:22:45: SourceMod error session started
L 10/16/2019 - 01:22:45: Info (map "c1m1_hotel") (file "errors_20191016.log")
L 10/16/2019 - 01:22:45: [SM] Exception reported: Invalid Handle 0
L 10/16/2019 - 01:22:45: [SM] Blaming: l4d2_stringtable_control.smx
L 10/16/2019 - 01:22:45: [SM] Call stack trace:
L 10/16/2019 - 01:22:45: [SM] [0] DHookEnableDetour
L 10/16/2019 - 01:22:45: [SM] [1] Line 143, D:\sborka_versus_test\sourcemod-1.9.0-git6281_sb_test\l4d2_stringtable_control.sp:: OnPluginStart
L 10/16/2019 - 01:22:45: [SM] Unable to load plugin "l4d2_stringtable_control.smx": Error detected in plugin startup (see error logs)
L 10/16/2019 - 01:22:45: [server_auto_restart.smx] server_auto_restart.smx/OnPluginStart()/10/16/2019 - 01:22:45: [server_auto_restart] Server start.
L 10/16/2019 - 01:22:45: [SM] Unable to load plugin "l4d2_blackscreen_fix.smx": Native "StringtableReset" was not found
L 10/16/2019 - 01:22:46: Error log file session closed.

Voevoda 10-17-2019 09:12

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
local compiler
Version sourcemod-1.10.0-git6451




//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4d2_blackscreen_fix.sp
//
// D:\sborka_coop1.10\sourcemod-1.10.0-git6451_download\l4d2_blackscreen_fix.sp(
22) : error 027: invalid character constant
//
// 1 Error.
//
// Compilation Time: 0,16 sec
// ----------------------------------------

Press enter to exit ...

Silvers 10-17-2019 10:16

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
@BHaType do you test anything before releasing? Edit: who's the lemon?

Voevoda 10-17-2019 14:21

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Silvers (Post 2669962)
@BHaType do you test anything before releasing? Edit: who's the lemon?

help implement to make it work

BHaType 10-17-2019 16:59

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Silvers (Post 2669962)
@BHaType do you test anything before releasing? Edit: who's the lemon?

I no longer have a server on Linux, so I could not check on it, but on windows everything works fine

Dragokas 10-18-2019 10:53

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
BHaType, What compiler version did you use before publishing source code?
For, me

url = "N\A"

can't be compiled on windows, sm 1.9.

Voevoda, try these files (only one, depending on your sm version):

upd. binary files are removed, so not to violate forum rules.

finishlast 10-18-2019 11:09

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Just for the compile part BHaTypes versions at least compile for me under Linux SourcePawn Compiler 1.10.0.6435:

xxxxxxxxxx@l4ds:~/serverfiles/left4dead/addons/sourcemod/scripting$ ./spcomp l4d 2_blackscreen_fix.sp
SourcePawn Compiler 1.10.0.6435
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC

Code size: 7968 bytes
Data size: 2166512 bytes
Stack/heap size: 16384 bytes
Total requirements: 2190864 bytes
xxxxxxx@l4ds:~/serverfiles/left4dead/addons/sourcemod/scripting$

finishlast 10-18-2019 11:26

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
I thought it was only run against windows, but hey thanks for clearing it up anyways.

Voevoda 10-19-2019 07:17

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Dragokas (Post 2670060)
BHaType, What compiler version did you use before publishing source code?
For, me

url = "N\A"

can't be compiled on windows, sm 1.9.

Voevoda, try these files (only one, depending on your sm version):

L 10/19/2019 - 14:14:21: [SM] Unable to load plugin "DoorManageTeler.smx": Native "DHookCreateDetour" was not found
L 10/19/2019 - 14:14:21: [SM] Unable to load plugin "l4d2_blackscreen_fix.smx": Native "StringtableReset" was not found
L 10/19/2019 - 14:14:21: [SM] Unable to load plugin "command_buffer.smx": Native "DHookCreateFromConf" was not found
L 10/19/2019 - 14:14:24: Error log file session closed.

BHaType 10-19-2019 07:32

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
On Linux the signature does not work, I do not know how it worked on my old server on Linux, but now it just does not work on Linux.

Dragokas 10-19-2019 12:37

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Voevoda, what is your sm version and server OS?

Voevoda 10-19-2019 18:41

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Dragokas (Post 2670236)
Voevoda, what is your sm version and server OS?

ОС: ubuntu-14.04-x86_64

PHP Code:

Listing 11 plugins:
  [
01Stripper (1.2.2by BAILOPAN
  
[02L4DToolZ (1.0.0.9h-2-g7465d71b-dirtyby Ivailosp
  
[03SourceMod (1.10.0.6451by AlliedModders LLC
  
[04] [L4D28Players BugFixes (1.0.2by V10
  
[05DefibFix Extension (1.0.1-spumer.1by V10
  
[06Left4Fix (2.0.2 (13 players)) by spumer
  
[07Left 4 Downtown 2 Extension (0.5.7by Igor "Downtown1" Smirnov Andrew "XBetaAlpha" Burrows AtomicStryker Michael "ProdigySim" Busby Visor
  
[08] [L4D2Melee Spawn Control (1.0.0.4by V10
  
[09SDK Hooks (1.10.0.6451by AlliedModders LLC
  
[10SDK Tools (1.10.0.6451by AlliedModders LLC
  
[11DHooks (2.2.0-detours9by Dr!fter 


ReCreator 10-21-2019 17:59

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Can someone tell me what's wrong:
Quote:

L 10/22/2019 - 01:00:27: Info (map "l4d_hospital01_apartment") (file "errors_20191022.log")
L 10/22/2019 - 01:00:27: [SM] Unable to load plugin "l4d1_witch_allow_in_safezone.smx": Native "DHookCreateFromConf" was not found
L 10/22/2019 - 01:00:32: Error log file session closed.
L4D1, Linux, SM 1.9, all plugins compiled with sm 1.9, when disable theese two problem gone, while enable, spam in log...

Voevoda 10-29-2019 19:48

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
so it will be for Linux ?

BHaType 12-08-2019 23:07

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Updated

Dragokas 01-16-2020 06:28

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
If somebody have any interest: [L4D1/Any][POC] Custom Skybox (with DD support)
otherwise, I'll make it private.

Alex101192 04-12-2020 03:59

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Can anyone please figure out a way to make this work on linux servers without causing a crash?

Dragokas 04-12-2020 09:20

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Linux server L4D1, no crashes during 4 months.

Alex101192 04-12-2020 12:36

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Dragokas (Post 2692766)
Linux server L4D1, no crashes during 4 months.

I am talking about L4D2. Using this plugin with its requirements and everything needed, causes the game to get stuck at loading and crash the server.

timonenluca 04-22-2020 17:30

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Adding the gamedata required to run the plugin crashes the linux server in L4D2 and just keeps restarting it. without any avail.

Alex101192 04-22-2020 18:41

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by timonenluca (Post 2695473)
Adding the gamedata required to run the plugin crashes the linux server in L4D2 and just keeps restarting it. without any avail.

No one cares about linux here it seems.

timonenluca 04-22-2020 18:54

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Alex101192 (Post 2695494)
No one cares about linux here it seems.

Im sure they do! Got to remember that they do it as a hobby :)

Dragokas 04-23-2020 03:21

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
+1

I am going to look until the end of next month, if Внатуре not fix it before.
Until that, we have many other interesting projects require attention :)

Ellie 05-04-2020 12:41

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by BHaType (Post 2667371)
Description
- Loading files during map transition
- No black screen when loading files during map change

Note
- This plugin has passed a lot of tests from different people and still we could not fix 1 bug. When loading custom models, there is a chance that the player will have to restart the game for him to see this model
- Also if you want some files to stay in the table and be uploaded when the player connects, then you can create restrict_strings.cfg in the data folder and add the files there
- If you have any problems with the plugin, please unsubscribe below
- The plugin was tested only in Left 4 Dead 2, but in Left 4 Dead 1 it should also work

Required
- Gamedata to plugin work

Cmds
sm_get_restricted_strings - to get all list of strings from cfg which doesn't affect by this plugin.
sm_restore_st - Restore downloadables stringtable items

Credits
- Dragokas for original idea and his plugin also ref

Thank you so much for this plugin. My friends and I recently started playing L4D1 again and this plugin has helped treendously. There is one issue though. When I use get_restricted_strings, it correctly prints the files listed in restricted_strings.cfg. But, when client connects, they don't download those files, only on map transition completely ignoring the restricted_strings.cfg file. Please have a look.

:)

Alex101192 05-15-2020 11:59

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by timonenluca (Post 2695496)
Im sure they do! Got to remember that they do it as a hobby :)

Don't worry. Next year maybe if we are lucky we will get this plugin. If not wait the next year again. I am sure they will make it :)

mikaelangelis 05-20-2020 13:34

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Takes long time stuck at loading scoreboard screen during map transition. May be the cause is from this plugin

Dragokas 05-20-2020 14:26

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Because this is exactly what this plugin intended for.

Default:
- stuck long time on black screen when you first time join the server.

With this plugin:
- stuck long time on scoreboard screen when you first time have map transition.

Alex101192 05-20-2020 16:57

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
Quote:

Originally Posted by Dragokas (Post 2701264)
Because this is exactly what this plugin intended for.

Default:
- stuck long time on black screen when you first time join the server.

With this plugin:
- stuck long time on scoreboard screen when you first time have map transition.

On linux the plugin just crashes the game when you join. It's been 10 years and no one has ever released and good fix for this on linux.

BHaType 05-21-2020 00:25

Re: [L4D2] Black Screen Fix aka Delayed downloader
 
1 Attachment(s)
Quote:

Originally Posted by Alex101192 (Post 2701305)
On linux the plugin just crashes the game when you join. It's been 10 years and no one has ever released and good fix for this on linux.

I don't have Linux so I can only blindly hope that it works


All times are GMT -4. The time now is 22:21.

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