Anvil Game Studios

Author Topic: Holdfast Server Banner Generator - Show your live server stats!  (Read 1178 times)

0 Members and 1 Guest are viewing this topic.

Offline Hadrian

  • Petty Officer
  • *
  • Posts: 18
  • HMS Surprise Officer - Server Host / Admin
    • HMS Surprise Offical Website
  • Faction: British Empire
Holdfast Server Banner Generator - Show your live server stats!
« on: September 26, 2017, 06:56:20 pm »
Holdfast: Nations At War Server Banner Generator
Show off your server's live stats in your signature, website, forum topics, or anywhere!

Hey all!  I've created a simple web service that generates server banners using live server stats.  Inspiration was driven from a previous small project of mine with generating M&B Warband server banners.  The approach was slightly different here since Holdfast servers use the Steam Query API instead of a public webpage as with Warband.  The code is based in Python programming language and simply queries a supplied IP and port for the server information then draws the image. This is free to use and will be up and supported for the foreseeable future.

Currently the stats that are shown on the banner are:
  • Name of the server
  • Current map
  • Number of active players
  • Max number of players
  • Password protected or open

Here's a link the webpage to generate a banner: https://holdfastbanner.masonrowe.com/

All currently available banner background: https://holdfastbanner.masonrowe.com/images.html

Source code can be found here: https://github.com/masonr/Holdfast-Banner-Generator

Examples using servers that I host:




More examples:
Spoiler
[close]

The above webpage will help you create a banner to your liking. There are currently 15 different background images you can choose from. All you need to know is your server's IP address (ex. 108.61.57.155) and Steam Query port (ex. 27001). I am open to any feature requests, so please ask away. Also, let me know if there's any specific banner background you'd like to use and I can add them.

If you need help getting set up, let me know and I'll assist.

Thanks all,
-Mason (Hadrian)
« Last Edit: September 15, 2018, 05:32:46 am by Hadrian »

Offline Captain Conner

  • Petty Officer
  • *
  • Posts: 69
  • Lead Developer at Oasis Hosting
    • Oasis Hosting
  • Faction: British Empire
  • Nick: Captain_Conner
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #1 on: September 26, 2017, 07:01:27 pm »
Great work Mason!

One thing: I am unable to generate one because it keeps saying "Invalid IP address".
Looking for an affordable game server? Look no further.


Offline Hadrian

  • Petty Officer
  • *
  • Posts: 18
  • HMS Surprise Officer - Server Host / Admin
    • HMS Surprise Offical Website
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #2 on: September 26, 2017, 07:08:45 pm »
Great work Mason!

One thing: I am unable to generate one because it keeps saying "Invalid IP address".

Thanks, Connor!

PM me the ip you are trying. My Javascript validation is probably off.

Offline MrMan

  • Landsman
  • *
  • Posts: 6
  • HMS Surprise Officer - Commodore
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #3 on: September 26, 2017, 10:14:21 pm »
This is fantastic! Thanks for sharing this Hadrian :)

Online Jack

  • Regiment Leaders
  • Lieutenant
  • *
  • Posts: 2516
  • 33rd | Lt-Col | Charles Hay
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #4 on: September 27, 2017, 12:01:48 am »
This is fantastic! Thanks for sharing this Hadrian :)

I get error retrieving Server details, even though I'm putting exactly what I've got on the control panel into the boxes...
« Last Edit: September 27, 2017, 12:08:59 am by Jack »

Offline Hadrian

  • Petty Officer
  • *
  • Posts: 18
  • HMS Surprise Officer - Server Host / Admin
    • HMS Surprise Offical Website
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #5 on: September 27, 2017, 12:22:41 am »

I get error retrieving Server details, even though I'm putting exactly what I've got on the control panel into the boxes...

PM me the ip and port you're using. Also double check that you're putting in the "Steam Query" port and not one of the other two.

Offline Hadrian

  • Petty Officer
  • *
  • Posts: 18
  • HMS Surprise Officer - Server Host / Admin
    • HMS Surprise Offical Website
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #6 on: September 27, 2017, 12:23:19 am »
This is fantastic! Thanks for sharing this Hadrian :)

Cheers! Thanks, MrMan :)

Online Jack

  • Regiment Leaders
  • Lieutenant
  • *
  • Posts: 2516
  • 33rd | Lt-Col | Charles Hay
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #7 on: September 27, 2017, 05:06:32 pm »

I get error retrieving Server details, even though I'm putting exactly what I've got on the control panel into the boxes...

PM me the ip and port you're using. Also double check that you're putting in the "Steam Query" port and not one of the other two.
Ah managed to get the right port now, thanks!

Offline Hadrian

  • Petty Officer
  • *
  • Posts: 18
  • HMS Surprise Officer - Server Host / Admin
    • HMS Surprise Offical Website
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #8 on: September 27, 2017, 05:46:05 pm »

I get error retrieving Server details, even though I'm putting exactly what I've got on the control panel into the boxes...

PM me the ip and port you're using. Also double check that you're putting in the "Steam Query" port and not one of the other two.
Ah managed to get the right port now, thanks!

Excellent, glad to hear! Let me know if you run into any other issues down the road  :)

Offline Pierre

  • Regiment Leaders
  • Master's Mate
  • *
  • Posts: 211
  • Lua & Media Freelancer
    • 59th.eu
  • Faction: British Empire
  • Nick: 59th LtCol
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #9 on: September 28, 2017, 10:41:19 am »
Nice! Similar to what I've got going on my hosting :P (see here)
Improve the design for the banners and this will be perfect :P
Feel free to dm me on here if you want some design done (here's a example of some poster work click me)

Offline Dark_Knight

  • Regiment Leaders
  • Midshipman's Mate
  • *
  • Posts: 261
  • Faction: French Empire
  • Nick: Darkiii
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #10 on: September 28, 2017, 10:45:54 am »
really nice  :D

Offline Hadrian

  • Petty Officer
  • *
  • Posts: 18
  • HMS Surprise Officer - Server Host / Admin
    • HMS Surprise Offical Website
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #11 on: September 28, 2017, 04:36:19 pm »
Nice! Similar to what I've got going on my hosting :P (see here)
Improve the design for the banners and this will be perfect :P
Feel free to dm me on here if you want some design done (here's a example of some poster work click me)

Cheers! If you want to contribute some banner designs, then go for it and I'll add them and credit you. But since this is being offered for free and open source, I can't really justify paying for artwork if that's what you meant :P

really nice  :D

Thank you! :)

Online Jack

  • Regiment Leaders
  • Lieutenant
  • *
  • Posts: 2516
  • 33rd | Lt-Col | Charles Hay
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #12 on: February 08, 2018, 05:26:48 pm »
I have another server which is hosted on a Dedicated Server Box but whenever I type in the correct IP address and Steam Query Port it just gives me an error.

Offline Hadrian

  • Petty Officer
  • *
  • Posts: 18
  • HMS Surprise Officer - Server Host / Admin
    • HMS Surprise Offical Website
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #13 on: February 08, 2018, 06:07:50 pm »
I have another server which is hosted on a Dedicated Server Box but whenever I type in the correct IP address and Steam Query Port it just gives me an error.

Hey Jack, PM me the server IP and port you are using and I'll try and track down what's causing the issue.

Thanks,
-Mason

Online Jack

  • Regiment Leaders
  • Lieutenant
  • *
  • Posts: 2516
  • 33rd | Lt-Col | Charles Hay
  • Faction: British Empire
Re: Holdfast Server Banner Generator - Show your live server stats!
« Reply #14 on: September 14, 2018, 02:31:33 pm »
Is there an IP I need to allow through the firewall in order for the connection to be achieved? as currently it just keeps saying error gathering whereas if I turn the firewall off, it works fine...