Author Topic: Faster End-of-game detection  (Read 1619 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Faster End-of-game detection
« on: 20 September 2010, 20:28:22 »
Currently, it takes quite a while until the game realizes that you have won a game. I assume the test for whether you have won currently tests whether all hostile buildings have been destroyed AND have expired (destroyed buildings have vanished). I think the test conditions are imperfect. It would be better to check whether any of the remaining hostile teams still has a non-destroyed main building. If this is not the case, you win (instantly).
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 · · ·

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Faster End-of-game detection
« Reply #1 on: 21 September 2010, 01:14:37 »
Quote
Currently, it takes quite a while until the game realizes that you have won a game.

No....... :look:

After you destroy all the enemy buildings, the game waits until they're completely gone(rubble disappears). I think it's fine that way, it leaves time for you to laugh at your computer.  :scientist:
Egypt Remastered!

Proof: Owner of glest@mail.com

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Faster End-of-game detection
« Reply #2 on: 21 September 2010, 01:56:40 »
I think the test conditions are imperfect.

This can be fixed in identical fashion to the minimap fix... look at that fix and apply the same logic here, or just look at the GAE version, and copy it...
Glest Advanced Engine - Code Monkey

Timeline | Downloads

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Faster End-of-game detection
« Reply #3 on: 21 September 2010, 11:26:33 »
I like it the way it is now ....
Its a moment of silence in the end of the game where everyone waits if he really has won or not.
Its the moment where noone leaves the game and all say GG or something like this. After fighting hard for an hour or so this is a must have!

I don't want to change this, because its a special moment and I learned to like it!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Zoythrus

  • Guest
Re: Faster End-of-game detection
« Reply #4 on: 21 September 2010, 14:21:51 »
personally, i hate the way it is now. i wish it would hurry up because im tired of waiting!

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Faster End-of-game detection
« Reply #5 on: 21 September 2010, 14:23:57 »
I'm with Titi on this one.  If I've just played an hour-long game, I'm obviously not in such a hurry that a few seconds are going to matter.  Plus, I'm usually chasing down their cattle anyway. :look:

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: Faster End-of-game detection
« Reply #6 on: 21 September 2010, 16:34:29 »
I'm with Titi too.
Egypt Remastered!

Proof: Owner of glest@mail.com

wyvern

  • Guest
Re: Faster End-of-game detection
« Reply #7 on: 21 September 2010, 20:07:40 »
I also support Titi on this. :thumbup:

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: Faster End-of-game detection
« Reply #8 on: 21 September 2010, 22:24:24 »
Yeah, I agree with titi? Why? Cause sometimes some games are really hard, easy, weird, fun, or whatever. People talk about it usually...of certain moments in the game or how the game went, and we all say good game... Besides, the actual moment is pretty cool, kinda tense. It's tense when it is like...did we finally beat those damm bots or did we do it? Anything like that.

Anyways, it doesn't take too long...

Zoythrus

  • Guest
Re: Faster End-of-game detection
« Reply #9 on: 21 September 2010, 22:52:10 »
im just tired of waiting for it all to "disappear," chasing workers is only so fun...  :|

 

anything