Giter Club home page Giter Club logo

Comments (8)

beelee1 avatar beelee1 commented on June 14, 2024

This is not new to 2.6

from triplea.

asvitkine avatar asvitkine commented on June 14, 2024

Is there a repro?

from triplea.

beelee1 avatar beelee1 commented on June 14, 2024

@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.

beelee1 avatar beelee1 commented on June 14, 2024

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.

beelee1 avatar beelee1 commented on June 14, 2024

@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.

Screenshot from 2024-02-25 10-51-48

Screenshot from 2024-02-25 10-52-14

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.

asvitkine avatar asvitkine commented on June 14, 2024

I noticed this is happening in the production panel code specifically.

ProductionPanel.calculateLimits

Let me look.

from triplea.

asvitkine avatar asvitkine commented on June 14, 2024

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.

asvitkine avatar asvitkine commented on June 14, 2024

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)

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.