Giter Club home page Giter Club logo

Comments (5)

Cernelius avatar Cernelius commented on June 14, 2024 1

For your information, these rules (limited combat rounds) were made with the intent of replicating the game mechanics of a well known WW1 board-game. However, that project was never ultimated.

In the aforementioned board-game, you were never allowed to have air units anywhere unless the same power owning the air unit also owned at least one land unit in the territory (Yes, you also need 1 land unit in the territory to land your air unit in that territory.), and actually at least one of the land units needed to be an infantry, so you practically needed at least one infantry in every territory in which you had one or more air units (allied units do not count).

To be clear, I'm not saying that these rules should be hard-coded as part of what at this situation (but rather that they should be added to the program under an other property or some-such): I'm just wondering whether this problem may derive by something related to the fact that, in the rules-set which was intended to be supported when the limited combat rounds properties were added, it would just never happen to have air units fighting alone against land units or whatever.

As a side note, in that board-game there are no airships: all air units are fighters.

If @panther2 can check what I said, that would be good.

from triplea.

asvitkine avatar asvitkine commented on June 14, 2024

This is using "2023-December-05` - 2.6.14602 Pre-release", which is not so old.
I'm not sure we had any fixes for something like this since, so this probably still exists.

But I'm not sure what the repro steps are...

from triplea.

WCSumpton avatar WCSumpton commented on June 14, 2024

@asvitkine

This error happens because land combat rounds have been set to something other then -1. At the end of the combat rounds the defender only has air units left, and the attacker has ground forces. The territory becomes contested. The next player has to be the defender otherwise the air unit might be removed during a subsequent players turn.
2024-5-11-CrazyG's-Giant-World-War-1-v0.2.tsvg.zip
In the attached save a United Kingdom Infantry as attacked for Austria 01 to Austria 02 and the lone Austria-Hungary Airship. The battle has ended in a stalemate, and it is now Austria-Hungary's turn. Select "Done" for combat move, and ok because nothing has moved. Because Austria 02 is the only battle, it will try to select it and the ensuing error message will show.

Hope this helps.

Cheers...

from triplea.

asvitkine avatar asvitkine commented on June 14, 2024

@WCSumpton

Thanks for the explanation. I assume the expected behavior would be for a combat to still happen there, with airship attacking the ground unit? (and if the active player doesn't want that to happen, they should actually abandon and move out the air ship?)

from triplea.

WCSumpton avatar WCSumpton commented on June 14, 2024

Thanks for the explanation. I assume the expected behavior would be for a combat to still happen there, with airship attacking the ground unit? (and if the active player doesn't want that to happen, they should actually abandon and move out the air ship?)

That would be my thought. This "error" still occurs even when the airship is replaced with a recon-plane. Also, if Austria-Hungary only moves air unit into the territory, the "error" will occur. If Austria-Hungary moves a ground unit into territory Austria 02, then the battle will happen normally. If Austria-Hungary wins the battle, the airship is allowed to remain in territory Austria 02 and other air unit are allowed to land there during the non-combat move.

Cheers...

from triplea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.