Author Topic: Please provide a way to batch process map files and extract metadata  (Read 860 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I'd like to batch process map files and extract the description text provided by the map maker for the purpose of automatically prepolulating form information for submissions to the mod menu database.

However, currently (3.6.0.3) megaglest_editor does seem not provide a way to do extract this information nor does it seem to provide any means of batch processing:
Code: [Select]
$ ./megaglest_editor --help
MegaGlest map editor v1.6.0 [Using wxWidgets 2.8.11]

glest_map_editor [GBM OR MGM FILE]

Creates or edits glest/megaglest maps.
Draw with left mouse button (select what and how large area in menu or toolbar)
Pan trough the map with right mouse button
Zoom with middle mouse button or mousewheel
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Please provide a way to batch process map files and extract metadata
« Reply #1 on: 20 February 2012, 00:05:26 »
I think atze is the only one I ever saw who was using this description field, noone else did up to now , so its quite useless.
« Last Edit: 20 February 2012, 09:56:57 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Please provide a way to batch process map files and extract metadata
« Reply #2 on: 20 February 2012, 06:55:57 »
For the numbers, I opened the first 10 maps I had, alphabetically, and 3 of them had values for title and author (noteworthy that the titles often differed from the filename of the map). Not sure if such a low number using these fields would be worthwhile for making any type of data base. I think if the engine actually made use of the data, such as displaying it with a map preview. Like the description element in the techtree XML, these fields were created by the original Glest Team, but never used in game. Some modders use them for no particular reason, but others won't because, well, they don't do anything. What good is typing your name as the author of the map if nobody will see it?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert