News:

Please help making MegaGlest rock-stable by testing the pre-release snapshots.

Main Menu

Defeat when game begins - Defeat conditions?

Started by lazyanttu, 16 February 2012, 21:06:58

lazyanttu

Well I have started testing my third faction and immediately when the game begins, it states that you have lost the game? The faction starts with main base and 2 workers (currently no other units are implemented on the third faction, only the worker and the base).

The main base has rally point and is able to train workers. The workers are able to build/repair the main base. Main base also stores resources and gives consumable resource.

What are the defeat conditions, and why this happens? Other factions have no problem with this, but they also start with base and 4 workers. What could have possibly gone wrong :scared:.

Coldfusionstorm

WiP Game developer.
I do danish translations.
"i break stuff"

lazyanttu

Yes it does. I copy-pasted it from my another faction, the only thing I changed was the storage capacity, cost, hp and removed detection-ability. And of course name and models etc.

John.d.h

Does the main base have a be-built skill?  This is the same issue I ran into with Project Green.  Adding a be-built skill solved it.  The victory conditions (unless they're different in MG) are based on whether the faction has any units with a be-built skill left.

Ishmaru

Quote from: John.d.h on 17 February 2012, 00:29:38
Does the main base have a be-built skill?  This is the same issue I ran into with Project Green.  Adding a be-built skill solved it.  The victory conditions (unless they're different in MG) are based on whether the faction has any units with a be-built skill left.

Yes, its the same in Megaglest
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

The default defeat condition is simply to have no units with a "be-built" skill alive. Could you please post the XML of this main building?
Edit the MegaGlest wiki: http://docs.megaglest.org/

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

lazyanttu

That was it! Thank you guys, now it works :D.

Actually the base is never "built" in my mod, but instead morphed from another building. So that's why I removed the "be-built" skill. So is the best method just to leave the "be-built"-skill, although it is never used?

I was sure I read about this kind of issue somewhere in the forums, but I couldn't find it.

Omega

Quote from: lazyanttu on 17 February 2012, 13:57:04
Actually the base is never "built" in my mod, but instead morphed from another building. So that's why I removed the "be-built" skill. So is the best method just to leave the "be-built"-skill, although it is never used?
It doesn't have to be used. With the exception of the move skill, having an extra skill that isn't used will simply be ignored (however, a unit with an unused move skill will be able to rotate, even though it won't be able to move). That's what Project Green did; the hero units were given a be-built skill, thus requiring them to be defeated to win the game.
Edit the MegaGlest wiki: http://docs.megaglest.org/

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