ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
647 stars 75 forks source link

[L4D2] MOTD does not working - semi-transparent window #3414

Open dragokas opened 4 years ago

dragokas commented 4 years ago

This is something like client-side bug.

One time, when my game client loaded let's say "successfully" I can join any server and I can see MOTD window correctly, as designed. Other (and most of the time) when client loaded "somehow not correctly" I'm joining any server, and none of them displays MOTD:

image

PS. On test server

motd_enabled "1"
motdfile is set by default = "motd.txt"

It doesn't matter whether it is set to 0 or 1. If we open MOTD in the middle game it is still not displayed. The same goes after loading a new map.

For comparison, in the Left 4 Dead 1 game I have never seen such a situation.

dragokas commented 4 years ago

Multiple reports about this bug are discussed here: https://forum.myarena.ru/index.php?/topic/44810-problema-s-motd/ and here: https://forum.myarena.ru/index.php?/topic/44435-motd-okno/

HalalaiMircea commented 3 years ago

Noticed this while trying to customize my own server's motd. Official Valve servers show transparent motd too. I remember motd's worked a couple months back. Something must've happened with the client...

kasparskaufmanis commented 3 years ago

Tried many ways, using iframe to .htm, using img src code etc. Nothing helps at all.

dragokas commented 3 years ago

Here is an explanation from dr.lex with a possible temporarily solution: https://forums.alliedmods.net/showpost.php?p=2729359&postcount=14

NoroHime commented 2 years ago

dragokas you still here? my new server motd url always always doesnt work, it displayed url but looks just plain text, i dont known it is this thread problem or just my wrong motd format, im tried utf-8 , html head redirect, adjust url and etc it always not works

dragokas commented 2 years ago

@NoroHime I'm here, but I don't have a source code of Left 4 Dead 2 to fix that.

NoroHime commented 2 years ago

@NoroHime I'm here, but I don't have a source code of Left 4 Dead 2 to fix that.

so this is random error or everyone should disabled mods for view html motd?i just need display steam group page :(

dragokas commented 2 years ago

They are reports about steam workshop addons conflict. If client doesn't have such addons, he is able to see MOTD.

lunatixxx commented 2 years ago

This can happen if your link contain https, it should be http.

dragokas commented 2 years ago

At the moment, it doesn't even work in L4D1. Valve totally broke parsing of html format.

Anyeos commented 1 year ago

I have an error on console that appears to be the reason: Unable to access ChromeHTMLController

Looking at some code that I found on internet Half Life 2 SDK I found that a warning is printed when there are no "surface()" or there are no "surface()->AccessChromeHTMLController()".

The code shows that there will no be HTML support from that point. So the result is not showing anything.

I don't know if the problem is "surface()" or "surface()->AccessChromeHTMLController()". We can try searching for some related library if can be replaced for a new one or something. The real solution is that Valve fix or improve the related code.

Of course, more investigation needs to be done.