Comments (5)
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.
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.
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.
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.
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)
- 2.5.22294: DecoratorDrawable#draw:26 - java.lang.OutOfMemoryError
- Deleted maps still show up in list HOT 5
- 2.5.22294: BattlePanel - battle not displayed, looking for:ae9ba4ef-8f1c-444a-8462-610e1f04cf14 showing:null
- 2.5.22294: BattlePanel - battle not displayed, looking for:a0c6ba48-339b-4ca6-9e01-4d0c0cfc8448 showing:null
- 2.5.22294: CasualtySelector#selectCasualties:83 - java.lang.reflect.InvocationTargetException
- 2.5.22294: UnitsDrawer - MISSING UNIT IMAGE (won't be displayed): factory_hit, UnitImageFactory.ImageKey(player=PlayerId named:Canadi... HOT 1
- 2.6.14742: MapData#verifyKeys:528 - java.lang.IllegalStateException HOT 1
- 2.6.14742: ImageFactory#lambda$getImageOrThrow$0:51 - java.lang.IllegalStateException HOT 1
- 2.5.22294: BattlePanel - battle not displayed, looking for:e3b9480b-44a8-4184-99b8-4f95032dc858 showing:2caab90f-a446-404e-befe-2e630...
- 2.5.22294: SimpleUnitPanel - missing unit icon (won't be displayed): transport_plane_lrLoch_Island, UnitImageFactory.ImageKey(player=... HOT 1
- 2.6.14743: HeadedGameRunner
- 2.5.22294: HeadedGameRunner - Width (0) and height (19) cannot be <= 0 HOT 1
- 2.5.22294: UnitsDrawer - MISSING UNIT IMAGE (won't be displayed): escort_lr_jp, UnitImageFactory.ImageKey(player=PlayerId named:Army-... HOT 1
- I think this may be a logic problem HOT 9
- 2.5.22294: ContentDownloader#downloadWithSingleRetryOnError:81 - java.net.SocketException HOT 1
- 2.6.14725: MapImage#loadImage:263 - java.lang.IllegalStateException
- 2.6.14744: MapImage#loadImage:263 - java.lang.IllegalStateException HOT 3
- 2.5.22294: Util#newImage:56 - java.lang.IllegalArgumentException
- 2.5.22294: UnitsDrawer - MISSING UNIT IMAGE (won't be displayed): swedishBarracks, UnitImageFactory.ImageKey(player=PlayerId named:Ge... HOT 1
- 2.6+14163: FireRoundStepsFactory#<init>:20 - java.lang.NullPointerException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from triplea.