Raised This Month: $183 Target: $400
 45% 

[L4D2] MOTD Scrolling, How?


Post New Thread Reply   
 
Thread Tools Display Modes
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 12-02-2020 , 14:30   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #21

I m sorry. I might get the motd.txt directory location wrong.
I didn't check this since i can't update my l4d2 game so i don't feel like turning on my pc. If simply create html localy don't work for you then consider online hosting though it may cost you a little bit more if you can't find free hosting. Try this link

EDIT:
Oh dear.. i did get it wrong.. i m apologize.

Spoiler
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 12-02-2020 at 21:57.
GsiX is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 12-03-2020 , 03:24   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #22

Quote:
Originally Posted by GsiX View Post
I m sorry. I might get the motd.txt directory location wrong.
I didn't check this since i can't update my l4d2 game so i don't feel like turning on my pc. If simply create html localy don't work for you then consider online hosting though it may cost you a little bit more if you can't find free hosting. Try this link

EDIT:
Oh dear.. i did get it wrong.. i m apologize.

Spoiler
I swear i just need a scroll wheel for default motd of l4d2. nothing extra or fancy. i swear. again, thanks for the help thus far but its a lot of extra work u did that was not necessary. i dont mean to descredit your work its well done but it just doesnt work for me cause the game doesnt read it right.

once again i just need a scroll wheel enabled for default MOTD of l4d2. all i have is text in motd but i just need the code or command to enable a good scroll wheel for motd of l4d2 when enough words are entered into the motd so they dont get cut off.

thank you.
__________________
XJR15 is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 12-21-2020 , 18:36   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #23

Quote:
Originally Posted by GsiX View Post
This is what i have come up so far. I m a terrible graphic designer.

For the long long long long text, show me how you want the text to appear line by line..
I can't compose that for you unless you want a broken ugly speech.




Alternatively you can do it yourself like example below. See the <br> tag end of the line.
It mean break the line there and the next text will appear below it.

PHP Code:
Tier 1 Weapons are now Tier 2 level balanced.<br>
Pump shotguns deal double damage.<br>
MP5 has 30 roundsAK47 damage 58Higher Rate of Fire than AK47.<br>
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
Uzi has 40 roundsSCAR damage 44Highest Rate of Fire than all guns in the game.
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
SMG Silencedhas 60 roundsSG552 damage 332nd Highest Rate of Fire gun in the game.
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
M16 deals 40 damage from standard 33to give it more stopping power than SG552.
which has a scope to compensateInfinite AmmoSmoker Cloud deals 5 damage,
to a maximum of 30 damageBoomer Explosion deals 30 damage in a small radius
P/S:
The picture you sent me not an actual size.
It was down size so i just grab random info on the internet.

.

This is how i want the text to appear line by line i want a space after each weapon description, a paragraph as seen below, also i want a motd scroll wheel that can allow any amount of text to be added after that so its easy to update:


L4D2 Arcade Edition:

Tier 1 Weapons are now Tier 2 Level Balanced.

Pump Shotguns deal Double Damage.

MP5 has 30 rounds, AK47 damage 58, Higher Rate of Fire than AK47, Lower Range than Tier 2 Rifles, Overall better accuracy than Tier 2 Rifles.

Uzi has 40 rounds, SCAR damage 44, Highest Rate of Fire than all guns in the game, Lower Range than Tier 2 Rifles, Overall better accuracy than Tier 2 Rifles.

SMG Silenced, has 60 rounds, SG552 damage 33, 2nd Highest Rate of Fire gun in the game, Lower Range than Tier 2 Rifles, Overall better accuracy than Tier 2 Rifles.

M16 deals 40 damage from standard 33, to give it more stopping power than SG552, which has a scope to compensate.

Infinite Ammo on all Weapons! Chainsaw has 9999 Ammo!

Smoker Cloud deals 5 damage, to a maximum of 30 damage.

Boomer Explosion deals 30 damage in a small radius.






(Also Moderator im sorry about the spam, plz give me a 2nd chance with my thread i will try and stay constructive and only add input instead of bump posts)
__________________
XJR15 is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 01-07-2021 , 00:03   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #24


https://hosting.photobucket.com/imag...9.43.00.53.png

2nd image has wheel scrolled down to the bottom (yay)

OK thx for the help on the MOTD these are the edits i made in the code off your code same format just different colors and background with 1 line of text removed cause i didnt need it. heres the motd code:
PHP Code:
<html>
    <
head>
        <
title>Left 4 Dead</title>
    </
head>
    <
style>
        
body {
            
height:100%;
            
width:100%;
            
margin:0px;
            
padding:0px;
            
background-position:center;
            
background-repeat:no-repeat;
            
background-size:cover;
            
background-imageurl("https://hosting.photobucket.com/images/i/XJR15/ErisSovereignGoddessOfTheUniverse%5BXJR-15%5D.png");
        }
        .
my_header {
            
height:8%;
            
margin-leftauto ;
            
margin-rightauto ;
            
max-width600px;
            
border-radius:10px;
            
background-color:#829fe8;
            
backgroundrgba(0000000000.3); 
            
font-family:Lucida ConsoleMonacomonospace;
        }
        .
my_content {
            
height:90%;
            
font-size:16px;
            
color:white;
            
font-familyComic Sans MScursivesans-serif;
            
margin5px auto auto auto;
            
max-width600px;
            
border-radius:10px;
            
backgroundrgba(2552552550.4); 
            
overflow-y:scroll;
        }
        
h1h3 {
            
margin:0;
            
color:yellow;
            
text-align:center;
        }
        
h1 {
            
padding-top:5px;
            
font-size:30px;
        }
        
h3 {
            
margin-top15px;
            
backgroundrgba(0000000000.2);
        }
        
ul {
            
display:table;
            
text-align:left;
            
margin:0 auto;
        }
        
ul li {
            
line-height30px;
            
height30px;
        }
        
span {
            
color#3cb043;
        
}
        .
my_long_long_long_long_verry_long_text {
            
margin:0;
            
padding10px 10px;
        }
    </
style>
    <
body>
        <
div class="my_header">
            <
h1>L4D2 Arcade Edition</h1>
        </
div>
        <
div class="my_content">
            <
ul>
                <
li><span>!csm</span> - change survivor character.</li>
                <
li><span>!spw</span> - select primary weapon.</li>
                <
li><span>!ssw</span> - select secondary weapon.</li>
                <
li><span>!join</span> - join while in spectator.</li>
                <
li><span>!pickbot</span> - pick a bot.</li>
                <
li><span>!nextbot</span> - select next bot.</li>
                <
li><span>!prevbot</span> - previous selected bot.</li>
                <
li><span>W</span> - key to crawl while incapacitated.</li>
                <
li><span>right click</span> - to pass throwables to a teammate when near them.</li>
            </
ul>

            <
class="my_long_long_long_long_verry_long_text">
                <
li><span>Tier 1</spanWeapons are now Tier 2 Level Balanced.</li>
                <
li><span>Pump Shotguns</spandeal Double Damage.</li>
                <
li><span>MP5</spanhas 30 roundsAK47 damage 58Higher Rate of Fire than AK47.
                
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.</li>
                <
li><span>Uzi</spanhas 40 roundsSCAR damage 44Highest Rate of Fire than all guns in the game.
                
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.</li>
                <
li><span>SMG Silenced</spanhas 60 roundsSG552 damage 332nd Highest Rate of Fire gun in the game.
                
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.</li>
                <
li><span>M16</spandeals 40 damage from standard 33to give it more stopping power than SG552.
                
which has a scope to compensate.</li
                <
li><span>Infinite Ammo</span> & Laser Sights on all Primary WeaponsChainsaw has 9999 Ammo!</li>
                <
li><span>Smoker</spanSmoker Cloud deals 5 damageto a maximum of 30 damage.</li>
                <
li><span>Boomer</spanBoomer Explosion deals 30 damage in a small radius.</li>
            </
p>
        </
div>
    </
body>
</
html
with that said id say im 90% out of 100% done. 2 problems remain. was curious if anyone in here knows the answer. on clean restarts the MOTD works fine as u see in the image there however after 2nd or more loads sometimes it has a white background like the background wont load, and the text doenst load only the green text shows. and sometimes the scroll wheel doesnt work on 2+ loads but everything else works fine on the MOTD.

any ideas?

thx.
__________________

Last edited by XJR15; 01-07-2021 at 00:09.
XJR15 is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 01-14-2021 , 17:40   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #25

Got if fixed, basically had www.gameservers.com staff through a ticket tell me how. anyway best way for this is to have it hosted on the web instead of having it written in the motd itself here is an example:

http://l4d2arcadeeditionmod.clanservers.com/banner.htm
host.txt have that line in host.txt to display the banner

http://l4d2arcadeeditionmod.clanservers.com/motd/
motd.txt have that line in motd.txt to display that motd.

then have host.txt and motd.txt file have those links in their description to link to the web and then it shows the picture on the motd when u load l4d. if u get any problems just report the problems to the staff and they fix it for u. for example if there is a glitch. like it doesnt work 100% even if the code says otherwise, they fix it for u.

to do this best way would be to ask your server provider for info. if u know how to do it manually and got it working 100% like this way for me more power to you, this was my way.

also this is how mine worked, dont know if its like this for everywhere else but this is how gameservers.com worked. anyway your stuff is in a webpage that comes free with your server subscription if u decide to have the webspace activated. in the webspace public_hmtl is where the banner.htm file goes. this is the code that goes in the banner.htm file:

PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<
html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
link rel="shortcut icon" href="images/favicon.ico" />
<
title>Left 4 Dead 2</title>
<
link rel="stylesheet" type="text/css" href="main.css" />
</
head>

<
body>

<
img src="https://hosting.photobucket.com/images/i/XJR15/JaguarsXJR-15s.jpg" width="810" height="174" border="0">


</
body>
</
html
just change the image to any other web hosted picture and it will change to that. mess with height and width if u want to change that as well. also there is a motd folder and inside it is index.htm this is where the motd code goes (inside your index.htm file:

PHP Code:
<html>
    <
head>
        <
title>Left 4 Dead</title>
    </
head>
    <
style>
        
body {
            
height:100%;
            
width:100%;
            
margin:0px;
            
padding:0px;
            
background-position:center;
            
background-repeat:no-repeat;
            
background-size:cover;
            
background-imageurl("https://hosting.photobucket.com/images/i/XJR15/ErisSovereignGoddessOfTheUniverse%5BXJR-15%5D.png");
        }
        .
my_header {
            
height:8%;
            
margin-leftauto ;
            
margin-rightauto ;
            
max-width600px;
            
border-radius:10px;
            
background-color:#829fe8;
            
backgroundrgba(0000000000.3); 
            
font-family:Lucida ConsoleMonacomonospace;
        }
        .
my_content {
            
height:90%;
            
font-size:16px;
            
color:white;
            
font-familyComic Sans MScursivesans-serif;
            
margin5px auto auto auto;
            
max-width600px;
            
border-radius:10px;
            
backgroundrgba(2552552550.4); 
            
overflow-y:scroll;
        }
        
h1h3 {
            
margin:0;
            
color:yellow;
            
text-align:center;
        }
        
h1 {
            
padding-top:5px;
            
font-size:30px;
        }
        
h3 {
            
margin-top15px;
            
backgroundrgba(0000000000.2);
        }
        
ul {
            
display:table;
            
text-align:left;
            
margin:0 auto;
        }
        
ul li {
            
line-height30px;
            
height30px;
        }
        
span {
            
color#04cc25;
        
}
        .
my_long_long_long_long_verry_long_text {
            
margin:0;
            
padding10px 10px;
        }
    </
style>
    <
body>
        <
div class="my_header">
            <
h1>L4D2 Arcade Edition</h1>
        </
div>
        <
div class="my_content">
            <
ul>
                <
li><span>!csm</span> - change survivor character.</li>
                <
li><span>!spw</span> - select primary weapon.</li>
                <
li><span>!ssw</span> - select secondary weapon.</li>
                <
li><span>!join</span> - join while in spectator.</li>
                <
li><span>!pickbot</span> - pick a bot.</li>
                <
li><span>!nextbot</span> - select next bot.</li>
                <
li><span>!prevbot</span> - previous selected bot.</li>
                <
li><span>W</span> - key to crawl while incapacitated.</li>
                <
li><span>right click</span> - to pass throwables to a teammate when near them.</li>
            </
ul>

            <
class="my_long_long_long_long_verry_long_text">
                <
li><span>Tier 1</spanWeapons are now Tier 2 Level Balanced.</li>
                <
li><span>Pump Shotguns</spandeal Double Damage.</li>
                <
li><span>MP5</spanhas 30 roundsAK47 damage 58Higher Rate of Fire than AK47.
                
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.</li>
                <
li><span>Uzi</spanhas 40 roundsSCAR damage 44Highest Rate of Fire than all guns in the game.
                
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.</li>
                <
li><span>SMG Silenced</spanhas 60 roundsSG552 damage 332nd Highest Rate of Fire gun in the game.
                
Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.</li>
                <
li><span>M16</spandeals 40 damage from standard 33to give it more stopping power than SG552.
                
which has a scope to compensate.</li>
                <
li><span>M60</spanis fully armed and operational like any other primary weapon.</li
                <
li><span>Infinite Ammo</span> & Laser Sights on all Primary WeaponsChainsaw has 9999 Ammo!</li>
                <
li><span>Special Infected</spanAre Elite like Asians. (They know Jeet Kune Do or "The Way Of The Intercepting Fist")</li>
                <
li><span>Special Infected</spanExcept the Witchdrop items when killed. (healthetc.)</li>
                <
li><span>Smoker</spanSmoker Cloud deals 5 damageto a maximum of 30 damage.</li>
                <
li><span>Boomer</spanBoomer Explosion deals 30 damage in a small radius.</li>
                <
li><span>Spitter</spanSpit Can destroy gas canspropane tanksoxygen tanksetc.</li>
            </
p>
        </
div>
    </
body>
</
html
if u dont know how to make an htm file have your server provider do it for u. after u already have the image and motd code written up somewhere they can easily put the image in a banner.htm and a motd in an index.htm.

if u dont want to have them do it look up a guide on how to make an htm file. otherwise this thread covers it.

thanks for all the help!
__________________

Last edited by XJR15; 01-14-2021 at 17:43.
XJR15 is offline
XJR15
Senior Member
Join Date: Sep 2010
Old 01-15-2021 , 09:23   Re: [L4D2] MOTD Scrolling, How?
Reply With Quote #26

One last question, is there any way to get the background image in the html code to show the full image in the motd like this:

__________________
XJR15 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 08:17.


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