Author Topic: Custom server image/banner  (Read 2915 times)

djs4000

  • Newbie
  • *
  • Posts: 41
    • View Profile
Custom server image/banner
« on: November 19, 2014, 01:52:38 am »
I know you guys are busy getting the game ready for the steam launch, but I had an idea that would allow for server customization. I was thinking a custom image that loads when the game does, much like the existing dialog you guys have that shows the keyboard mapping, would be a great way for admins to add server info, rules, etc. It'd be even better if you guys could code it to display an html file!

Lurler

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1323
    • View Profile
Re: Custom server image/banner
« Reply #1 on: November 19, 2014, 03:04:05 am »
Hm, that's an interesting idea and not too difficult to implement.

How would you propose this implemented exactly both from the server configuration point of view and from client point of view?

djs4000

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Custom server image/banner
« Reply #2 on: November 19, 2014, 06:24:00 am »
On server side it would be easy to just have a file in the root folder (say, motd.html or motd.png). The client would check upon connection if a motd file exists, and then check to see if has already been download (checksum check?) and download it if needed. Once the client connects it dislplays the server's file before spawning the player in.

Lurler

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1323
    • View Profile
Re: Custom server image/banner
« Reply #3 on: November 19, 2014, 07:24:47 pm »
Thanks.
Sounds good, I will talk with other devs and we will see if we can add it and when.

djs4000

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Custom server image/banner
« Reply #4 on: November 19, 2014, 11:04:51 pm »
If you need examples of games that do it well, take a look a Counter-Strike and TF2. Both have a file called motd.txt in their dedicated server folders that parses html and displays whatever is written on in when player joins the game (for tf2, its the "chalkboard before team select). DayZ (arma mod at least) does this also by allowing a custom load image that the client downloads while joining the server.