Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    [Fixed] Error in Purchase Units Phase

    (ARCHIVED) Bug Reports
    2
    3
    910
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RogerCooper
      RogerCooper last edited by LaFayette

      In the scenario, I am working on, I receive the following error in the production phase for the Germans only, in the scenario AA50-42 BuildCaps. Note that the similar AA50-41 BuildCaps works fine.

      Oct 13, 2018 6:31:44 PM games.strategy.engine.framework.GameRunner lambda$start$0
      SEVERE: null
      java.lang.NullPointerException
      at games.strategy.triplea.ui.ProductionPanel.initRules(ProductionPanel.java:118)
      at games.strategy.triplea.ui.ProductionPanel.show(ProductionPanel.java:97)
      at games.strategy.triplea.ui.TabbedProductionPanel.getProduction(TabbedProductionPanel.java:41)
      at games.strategy.triplea.ui.PurchasePanel$1.actionPerformed(PurchasePanel.java:122)
      at games.strategy.triplea.ui.PurchasePanel.lambda$waitForPurchase$2(PurchasePanel.java:109)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      You can down the scenario here.

      Note that all units have build caps, but that should not present a problem as it works on other scenarios.

      ssoloff 1 Reply Last reply Reply Quote 0
      • ssoloff
        ssoloff Admin @RogerCooper last edited by

        @rogercooper I believe one reason for the error is due to a missing playerProduction tag for the German player in WW2v3-1942-BuildCaps.xml.

        In WW2v3-1941-BuildCaps.xml, you have:

        <playerProduction player="Germans" frontier="production_ge"/>
        <playerProduction player="Russians" frontier="production_ru"/>
        <playerProduction player="Japanese" frontier="production_ja"/>
        <playerProduction player="British" frontier="production_br"/>
        <playerProduction player="Italians" frontier="production_it"/>
        <playerProduction player="Chinese" frontier="production"/>
        <playerProduction player="Americans" frontier="production_us"/>
        

        While in WW2v3-1942-BuildCaps.xml, you have a duplicate tag for the British player:

        <playerProduction player="British" frontier="production_ge"/>
        <playerProduction player="Russians" frontier="production_ru"/>
        <playerProduction player="Japanese" frontier="production_ja"/>
        <playerProduction player="British" frontier="production_br"/>
        <playerProduction player="Italians" frontier="production_it"/>
        <playerProduction player="Chinese" frontier="production"/>
        <playerProduction player="Americans" frontier="production_us"/>
        

        There may be other similar issues that contribute to the problem.

        RogerCooper 1 Reply Last reply Reply Quote 1
        • RogerCooper
          RogerCooper @ssoloff last edited by

          @ssoloff Thanks for the help

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums