Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    4

    Default L4D2 motd.txt and host.txt

    Everytime I restart the gameserver, the motd.txt and host.txt files seem to be overwritten and put back to default. Is there a way to prevent this? I want to be able to use my custom pages and banners on my l4d2 servers. Thanks

  2. #2
    cPanel Staff
    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    1,881

    Default

    I tested this on my dev box, apparently the steam update deletes the files when the --verify-all option is added to the update command. I'll try removing it in 0.7.3 and see if it causes any problems, I know sometimes the --verify-all catches broken files that the regular version does not.
    Need to put in a support ticket for cPGS ? Click on the url below and follow the bottom most link "Submit a Support Request without Logging In"
    https://tickets.cpanel.net/submit/index.cgi?support=1

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    4

    Default

    So if I turn off the automatic update it should work ok until the next time I need to update?

  4. #4
    cPanel Staff
    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    1,881

    Default

    Yep, exactly. Turn off the autoupdate option and it shouldn't wipe out those files anymore until you enable it again to update, but hopefully 0.7.3 will be out before a major release of L4D2
    Need to put in a support ticket for cPGS ? Click on the url below and follow the bottom most link "Submit a Support Request without Logging In"
    https://tickets.cpanel.net/submit/index.cgi?support=1

  5. #5
    Member
    Join Date
    Mar 2010
    Posts
    5

    Default A way to keep your motd and host files.

    A way around this is to :

    Make copies of the hosts.txt.and motd.txt files.
    Call them my_hosts.txt and my_motd.txt for example.

    Modify your new my_XXXX files as you like.

    In your server.cfg file add the lines :

    motdfile "my_motd.txt"
    hostfile "my_host.txt"

    This way even when there is an update your motd and host files remain intact

    I use this for L4D2, I do not know if it works on other games.

    Hope it helps.

    Steve

  6. #6
    Member RasterMan's Avatar
    Join Date
    Mar 2009
    Location
    Luton, UK
    Posts
    96

    Default

    Can't get motdfile "my_motd.txt" to work at all on l4d1 but hostfile "my_host.txt"
    Works!

    Both work for l4d2

Similar Threads & Tags
Similar threads

  1. %CECURE.txt
    By GoWilkes in forum Security
    Replies: 3
    Last Post: 08-25-2011, 07:19 PM
  2. Replies: 0
    Last Post: 06-25-2007, 10:35 AM
  3. Where is myapi.txt?
    By qtmspin in forum Themes and Branding
    Replies: 0
    Last Post: 10-13-2003, 05:45 PM
  4. exim.txt ?
    By icehosting in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-22-2003, 08:00 PM
  5. api.txt
    By creed in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-28-2002, 12:25 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube