Comments (8)
This is not new to 2.6
from triplea.
Is there a repro?
from triplea.
@asvitkine I am unable to reproduce. I believe I have confused the issue with another.
Don't remember it exactly. It had something to do with negative PUs. Triplea had never been able todo it, so it wouldn't be a new 2.6 introduced issue.
I will continue to try and find a example
from triplea.
I think it was triplea can't give negative PUs. As in less than zero. Can have negative PUs but only against a positive PU total. I'll keep trying to find an example but think that's what it was or is :)
from triplea.
@asvitkine I was wrong. I can't produce what I thought was the issue in 2.5 or 2.6.
The Objective is minus 10 PUs and woks without throwing a error when a player has less than 10 PUs.
Apologies for any distraction this may have caused.
Edit
Using 2.6+14586
Edit 2
I just tried with 14647 and the behavior was the same
from triplea.
I noticed this is happening in the production panel code specifically.
ProductionPanel.calculateLimits
Let me look.
from triplea.
So I think this would happen if for some reason you had more units selected to purchase then what you can pay for.
I'm just not sure how that can happen.
I'll note that the new save game persisting code of purchases is around here, so maybe something wrong with that...
from triplea.
I think this is definitely related to the 2.6 code to keep units in saved games.
It happens in a network gamed for a joined player, the code ends up restoring the units from last turn, and if there's not enough PUs this error happens, preventing purchase phase.
@DanVanAtta FYI, we should probably block 2.6 release for this.
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.