Author Topic: Make your MekHQ campaign into a website  (Read 5404 times)

Taharqa

  • Warrant Officer
  • *
  • Posts: 747
  • Look out, there is a monkey on your back!
Make your MekHQ campaign into a website
« on: 19 May 2020, 16:38:21 »
Have you ever wanted a website to accompany all the cool stuff you are doing with your campaign in MekHQ. Well so did I, so I created one:



You can see the full website for yourself here as well as a similar one here.

The cool bit is that most of this website creation is automated by a python script directly from a MekHQ campaign save file. The website itself is a static website created via Jekyll that can be hosted cheaply or for free at many places. I have tried to make the script and jekyll template general enough that this should work for anyone's campaign. Its also fairly easy to customize things. You can see full details on installation and customization at the GitHub repository page here.

Two caveats:
  • This is all still very early stages and I have only tested it on three campaigns at the moment, so it is very likely it will break when you try it. Just post an issue (preferably with your campaign file and error messages) and I will try to fix any bugs that arise.
  • To install it, you will need to not be afraid of the command line and will need to install a few other things like Ruby, Python, and Jekyll. Once the setup is done though, processing data and making the site is very simple and quick.

Enjoy!
MegaMek Dev and Bug Creator

The Flaming Devil Monkeys - The adventures of a band of misfit gladiators turned mercenary mechwarriors during the Word of Blake Jihad.
The Free Company of Oriente - No longer bound by the politics of the great houses, the Free Company of Oriente seeks its fate and fortune among the stars.
Ronin Cat Avengers - Fleeing the destruction of their Clan across an Inner Sphere at war, the Ronin Cat Avengers seek a new home ... and vengeance.

Make your own campaign website with the MekHQ Blog

pfarland

  • Captain
  • *
  • Posts: 1771
  • Star Captain Farland - 'Forever Faithful'
Re: Make your MekHQ campaign into a website
« Reply #1 on: 19 May 2020, 16:52:28 »
OMFG No words at first, just AMAZING!

Second, as it pertains to a project I'm doing, would the dossiers of the personnel be able to be expanded?
Rule number 4 of product design*: "The concept of 'Intended Use' never survives initial contact with the end user." - Feign

"It should come to no surprise that this forum loves solving problems with war crimes. " - SteelRaven

Taharqa

  • Warrant Officer
  • *
  • Posts: 747
  • Look out, there is a monkey on your back!
Re: Make your MekHQ campaign into a website
« Reply #2 on: 19 May 2020, 17:04:10 »
Second, as it pertains to a project I'm doing, would the dossiers of the personnel be able to be expanded?

You mean like the TO&E expands? Yes that can be done. If you are interested in something like that post an issue with the enhancement tag on the issues tab.
MegaMek Dev and Bug Creator

The Flaming Devil Monkeys - The adventures of a band of misfit gladiators turned mercenary mechwarriors during the Word of Blake Jihad.
The Free Company of Oriente - No longer bound by the politics of the great houses, the Free Company of Oriente seeks its fate and fortune among the stars.
Ronin Cat Avengers - Fleeing the destruction of their Clan across an Inner Sphere at war, the Ronin Cat Avengers seek a new home ... and vengeance.

Make your own campaign website with the MekHQ Blog

Daryk

  • Major General
  • *
  • Posts: 40514
  • The Double Deuce II/II-σ
Re: Make your MekHQ campaign into a website
« Reply #3 on: 19 May 2020, 17:10:34 »
I'm sure we'll get there eventually!  It's still early days with pfarland's project, but he's not alone!  :thumbsup:

pfarland

  • Captain
  • *
  • Posts: 1771
  • Star Captain Farland - 'Forever Faithful'
Re: Make your MekHQ campaign into a website
« Reply #4 on: 19 May 2020, 17:54:32 »
You mean like the TO&E expands? Yes that can be done. If you are interested in something like that post an issue with the enhancement tag on the issues tab.

No, someone took that over long ago after real life reared it's ugly head yet again. The new one I posted about on here a couple of days ago.
Rule number 4 of product design*: "The concept of 'Intended Use' never survives initial contact with the end user." - Feign

"It should come to no surprise that this forum loves solving problems with war crimes. " - SteelRaven

Battleclad

  • Warrant Officer
  • *
  • Posts: 419
Re: Make your MekHQ campaign into a website
« Reply #5 on: 29 May 2020, 10:09:58 »
You had to post this while my laptop is down. I would definitely be playing with this and I have enough coding skills to play with it.

For example the TO&E would probably work nicely as a click over expand using css and javascript.

Taharqa

  • Warrant Officer
  • *
  • Posts: 747
  • Look out, there is a monkey on your back!
Re: Make your MekHQ campaign into a website
« Reply #6 on: 29 May 2020, 13:37:55 »
You had to post this while my laptop is down. I would definitely be playing with this and I have enough coding skills to play with it.

For example the TO&E would probably work nicely as a click over expand using css and javascript.

Cool. Feel free to do pull requests if you want me to add the feature to the base.
MegaMek Dev and Bug Creator

The Flaming Devil Monkeys - The adventures of a band of misfit gladiators turned mercenary mechwarriors during the Word of Blake Jihad.
The Free Company of Oriente - No longer bound by the politics of the great houses, the Free Company of Oriente seeks its fate and fortune among the stars.
Ronin Cat Avengers - Fleeing the destruction of their Clan across an Inner Sphere at war, the Ronin Cat Avengers seek a new home ... and vengeance.

Make your own campaign website with the MekHQ Blog

rjhancock

  • Warrant Officer
  • *
  • Posts: 415
  • MegaMek Server Guy and Mac Enthusist
Re: Make your MekHQ campaign into a website
« Reply #7 on: 28 March 2021, 09:42:05 »
1) Would there be any interest for an 'Official' hosting of this type of content for players? (ie: company-name.mekhq.online)
2) If so, would you be offended if we took this as a base to do it with?

KuzeFanAcct

  • Corporal
  • *
  • Posts: 81
Re: Make your MekHQ campaign into a website
« Reply #8 on: 29 March 2021, 21:00:35 »
This absolutely rules, I need to do this for my tabletop campaign. Excellent work!

Dahmin_Toran

  • Warrant Officer
  • *
  • Posts: 449
Re: Make your MekHQ campaign into a website
« Reply #9 on: 27 February 2022, 23:03:03 »
Is this compatible with the latest version of MekHQ?

MoleMan

  • Master Sergeant
  • *
  • Posts: 344
Re: Make your MekHQ campaign into a website
« Reply #10 on: 13 March 2022, 04:21:03 »
This is very cool, unfortunately I am very afraid of a command line but am looking forward to reading other's exploits!