Author Topic: Restart the game directly from the game  (Read 782 times)

Pizza90

  • Draco Rider
  • *****
  • Posts: 282
    • View Profile
Restart the game directly from the game
« on: 7 July 2012, 19:03:30 »
hi all, i think that having the possibilty to restart the match simply pressing "esc" and then "restart game" would be very good. Some of you my say "but there is already a way to do it, simply create a game and click "reload the previous game settings" (or something like that, i dont know the exact translation since i dont play mg in english), this is true, but it can be handy if you want to play the same game time later than the game you played. If you want to restart the game after 5 min of game (wrong strategy etc.) you could simply restart the game and in 5 seconds you would be playing again the game. I am thinking about this feature for people (that like me) play megaglest also in single player, but could be useful for multiplayer too. i think this idea should work like this:

- create a game
- mg loads the tileset,factions etc.
- mg creates a file called for example "currentgame" that contain the things that mg loaded before
-you press esc->restart game
-mg loads the "currentgame"
-the game restarted

This could be implemented as i said also for multiplayer, and probably would be even more useful, since many times happens that we want to restart the game (a player got disconnected, bad strategy,bad team cooperation, someone away from keyboard without saying it etc.). I dont know how hard is to implement this feature but i think it would be useful. The "currentgame" file could be deleted when mg gets closed and recreated during the loading of the next game or simply left there (if not so big) and overwritten the first time you load another game.
I translated Megaglest in italian and i keep the translation updated.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Restart the game directly from the game
« Reply #1 on: 8 July 2012, 01:55:36 »
While I'm neutral to the feature in single player (it does seem like a bit of work just to save half a minute), multiplayer sounds like it would be a mess, as there'd have to be restrictions such as voting to prevent the game from being ruined when a single player decides to restart without the others' consent. Seems like that could end up being an awful lot of programming work as a result, for just a shortcut to exiting and reforming the game.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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