Author Topic: Height Factor for maps ( effects map format a bit ! )  (Read 951 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Height Factor for maps ( effects map format a bit ! )
« on: 31 March 2012, 00:22:09 »
In the map editor you can set a Height Factor in ->Edit->Advanced. This factor effects the height differences of a map ( 1 results in very high hill for example ). Up to now you were not able to set a value like 1.5 as this Height Factor was an integer value in the map format.

But thats is what I wanted!
To keep compatibility wiht the map format I kept it as an integer . In the game itself it already was a float value so I used the following trick.
If you now choose a Height Factor of more than 100 its interpreted like this:
For example 150: heightFactor=heightFactor/100 which results in an effective heightFactorof 1.5 .

What do you think ( its in svn )? ( GAE should do this too if we keep it !)
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Height Factor for maps ( effects map format a bit ! )
« Reply #1 on: 31 March 2012, 00:58:33 »
Sounds awesome I always wanted numbers between 2 + 3 but how would existing glest maps be read? Or will they all need to be converted?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Height Factor for maps ( effects map format a bit ! )
« Reply #2 on: 31 March 2012, 04:20:41 »
Sounds awesome I always wanted numbers between 2 + 3 but how would existing glest maps be read? Or will they all need to be converted?
To quote Titi:
If you now choose a Height Factor of more than 100 its interpreted like this:
In other words, only height factors greater than 100 are affected, so the existing maps with their single digit height factors are not affected.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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