Author Topic: BUG - Scenario not end on death  (Read 1162 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
BUG - Scenario not end on death
« on: 28 June 2011, 20:03:05 »
Testing some stuff for scenarios, with the default winning conditions on, even if you are completely wiped out, the game will not give the "you lose" message. Normally if the default winning conditions are on, you win and lose based on the buildings destroyed.

As well, the loading screen images for scenarios don't seem to be working. I just got the generic missing image screen. Is the loading screen the path relative from the scenario XML?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: BUG - Scenario not end on death
« Reply #1 on: 30 June 2011, 12:31:53 »
using,
Code: [Select]
  <default-units value="false"/>
  <default-victory-conditions value="true"/>

I immediately get the 'you lose' message, as expected. Could you cull away other code leaving the bare minimum to reproduce this then post it up?

As well, the loading screen images for scenarios don't seem to be working. I just got the generic missing image screen. Is the loading screen the path relative from the scenario XML?

I assume it looks in the scenario directory, what does the error log say? While it would previously try to load any valid image file, this is no longer true, all textures must have power-of-two dimensions now.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: BUG - Scenario not end on death
« Reply #2 on: 30 June 2011, 15:49:45 »
all textures must have power-of-two dimensions now.
Oh, that would be the problem. Can the width and height be different as long as they are each a power of two, eg: 1024x512?

I'll have to retry the scenario again, I just started one with the default units, resources, and victory conditions, then just played it out in a suicide mission.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: BUG - Scenario not end on death
« Reply #3 on: 30 July 2011, 07:26:06 »
Testing some stuff for scenarios, with the default winning conditions on, even if you are completely wiped out, the game will not give the "you lose" message. Normally if the default winning conditions are on, you win and lose based on the buildings destroyed.
I changed this a while back so that it wouldn't count as losing if your team still had buildings left and the game wouldn't end until there was a winner (ie teams with buildings = 1) instead of "if this faction has no buildings then lose and exit". It might be good to have the previous early out behaviour for scenarios (see comment in current code).

Previous code:
(click to show/hide)

Current code:
(click to show/hide)
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: BUG - Scenario not end on death
« Reply #4 on: 31 July 2011, 05:25:10 »
Oh, I see. As a note, rather than changing it for all scenarios in general, what about a piece of Lua code that could be called to change this, so it could only be "disabled" where necessary?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

 

anything