TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    [Fixed] Error in Purchase Units Phase

    Scheduled Pinned Locked Moved Bug Reports
    3 Posts 2 Posters 1.2k Views 2 Watching
    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.
    • RogerCooperR Offline
      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.

      ssoloffS 1 Reply Last reply Reply Quote 0
      • ssoloffS Offline
        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.

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

          @ssoloff Thanks for the help

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums