Project

h3m

0.0
No release in over 3 years
Low commit activity in last 3 years
This gem will can extract info about players, teams, map size and version, win conditions of Heroes 3 map
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 2.0.0

Runtime

 Project Readme

H3m

Simple parser for Heroes of Might and Magic III map format. Currently can extract info about map name, description, difficulty, size, subterranean presence and minimal required game version (to be continued, see TODO).

Usage

Usage example:

>> require "h3m"
>> m = H3m::Map.new("path/to/map/file.h3m")

>> m.name
=> "Map name"

>> m.description
=> "Map description"

>> # Version can be :SoD, :AB or :RoE
>> m.version
=> :SoD

>> # Size can be :S, :M, :L and :XL
>> m.size
=> :M

>> m.has_subterranean?
=> false

>> # Difficulty can be :easy, :normal, :hard, :expert and :impossible
>> m.difficulty
=> :normal

TODO

  1. players and alliances
  2. victory and lose conditions
  3. minimap image generation

License

Copyright (C) 2013 Maxim Andryunin

Released under the MIT License.