Author Topic: FH2 Autogenerated Wikipages  (Read 457 times)

Offline Jush

  • Newbie
  • *
  • Posts: 7
  • [INACTIVE]
    • View Profile
FH2 Autogenerated Wikipages
« on: 05-07-2020, 17:07:42 »
I've been talking about this on discord a bit, this is a small project to autogenerate
wikipages about FH2 maps.

What I'm aiming to do is to have, for each map, a page with the general description,
and a set of minimaps marking the location of ammoboxes, kits, vehicles, static
emplacements, spawn- and controlpoints.

Since updating and maintaining this would be an absurd amount of work, the idea is
to automagically generate those, by parsing the map's .con files, without manual
intervention, so that when something in the map is updated you just run the script.

So you take the unzipped mapfiles and it spits out a bunch of minimap image files plus a simple MediaWiki page (I've grabbed fh2.fandom.com for uploading them later).

I'm using python3 + Pillow for this (I don't use the BF2 python bindings, though).
You can find the current code for this at  https://bitbucket.org/MinnieFH/fh2parse

There is still a bunch of work to be done, I will update this post here when that happens. For now a quick peak:

Sniper kits at Motovskiy Bay:


Ammoboxes at Brest:
[INACTIVE]

Offline Jush

  • Newbie
  • *
  • Posts: 7
  • [INACTIVE]
    • View Profile
Re: FH2 Autogenerated Wikipages
« Reply #1 on: 17-07-2020, 12:07:50 »
(for some reason I cannot edit my first post)

UPDATE: there is now a live version with all maps and all layers online at
https://minniefh.bitbucket.io. Not finished yet, some things remain to be done.

todo:

- make more and better custom icons
- include more categories (e.g. split up tanks into light, heavy, TD, ...)
- crop the minimap for each layer to the actually ingame-visible area
[INACTIVE]

Offline Jush

  • Newbie
  • *
  • Posts: 7
  • [INACTIVE]
    • View Profile
Re: FH2 Autogenerated Wikipages
« Reply #2 on: 17-07-2020, 13:07:34 »
nice little preview:
[INACTIVE]

Offline ahalol

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: FH2 Autogenerated Wikipages
« Reply #3 on: 18-07-2020, 20:07:02 »
 :D not bad at all!

Offline Tycoh

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: FH2 Autogenerated Wikipages
« Reply #4 on: 23-07-2020, 09:07:43 »
This is really good stuff, keep up the nice work!