Author Topic: Live preview in the map editor  (Read 1137 times)

uncle

  • Guest
Live preview in the map editor
« on: 1 September 2011, 19:47:55 »
There should be a live preview created maps in the game editor (just like in the game). It would be really easier than launching it in MG and then correcting. :)

If there is one, I did not find it.

titi_son

  • Draco Rider
  • *****
  • Posts: 283
  • titi_son
    • View Profile
Re: Live preview in the map editor
« Reply #1 on: 15 September 2011, 18:53:44 »
what about this:
there is a button to press on then mg starts with that map in observer-mode
(you have to save before press that button)
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Live preview in the map editor
« Reply #2 on: 16 September 2011, 00:36:56 »
As a start i added a new commandline option in svn to MG to preview maps in the 3d world:

Code: [Select]
./megaglest --preview-map=8_rivers
Currently it uses forest as the tileset and megapack as the techtree, though the techtree really doesn't apply in this case.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Live preview in the map editor
« Reply #3 on: 16 September 2011, 06:17:43 »
Currently it uses forest as the tileset and megapack as the techtree, though the techtree really doesn't apply in this case.
I think it should ask for the tileset, as tilesets CAN change the map. For example, Anex had some larger than normal objects that were made to ONLY work with a specially made tileset, and would look terrible in a regular tileset. As well, maps can look very much different in different tilesets, and a map intended only for the desert tileset might look rather odd in a forest tileset.

There was some bugs in how GAE tried to do it, and I don't know if they fixed it yet, but their map editor had a preview option that opened a dialogue box to choose the tileset, presumably to pass both the map and tileset to the game.

As well, there should be some support for the map not being in the maps folder; such as someone testing a map by quickly saving to the desktop (etc). Feeding an absolute link to the engine when the map isn't in the maps folder would presumably fix that.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

Baŝto

  • Summoner
  • **
  • Posts: 59
    • View Profile
    • find me on diaspora
Re: Live preview in the map editor
« Reply #4 on: 17 March 2014, 14:15:14 »
Implemented a preview for the Qt map editor, using that parameter

Code: [Select]
./megaglest --preview-map=
With an autogenerated scenario more complex settings and tests would be possible, but did not implement that yet

Code: [Select]
./megalgest --load-scenario=

 

anything