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

    costPU not working in politicalActionAttachment

    Scheduled Pinned Locked Moved Bug Reports
    9 Posts 3 Posters 2.8k Views 3 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

      When running any scenario with the option "costPU" used in politicalActionAttachment, I receive the error "Missing property definition". This happens for example in Pact of Steel 2.

      redrumR 1 Reply Last reply Reply Quote 0
      • redrumR Offline
        redrum Admin @RogerCooper
        last edited by

        @RogerCooper it was replaced with costResources.

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

        C 1 Reply Last reply Reply Quote 2
        • C Offline
          Cernel Moderators Lobby Moderators @redrum
          last edited by

          @redrum Yeah, I was about answering that. The problem is that I believe no one so far made a full list of changes to upgrade from 1.9.0.0.3266 to 2.0 (or maybe better just consolidate in a single list from 1.8.0.9 to 2.0), that is not a problem at all normally, but it may be either for people like @RogerCooper or people that made an unfinished map time ago and may want to retake it in the future, or anyways whatever it is old and not in the TripleA repository.
          https://github.com/triplea-game/triplea/wiki/Upgrade-Maps-Information

          @RogerCooper You need to search for all maps having "costPU" in their games files (usually xml) and make the following mass changes (old:new):

          option name="costPU" value=":option name="costResources" value="PUs" count="

          option name="playerProperty" value="costPU" count="(.*?)":option name="playerProperty" value="costResources" count="$1:PUs"

          The second one uses regular expressions (you will need to search with an editor supporting that and having the function enabled), but it is actually needed only for games that change the "costPU" option with triggers; so there's a good chance you don't have any cases.

          Reference:
          https://github.com/triplea-game/triplea/issues/3475

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

            Pact of Steel 2 in the repository needs to be updated.

            redrumR 1 Reply Last reply Reply Quote 0
            • redrumR Offline
              redrum Admin @RogerCooper
              last edited by redrum

              @RogerCooper I believe it is already updated: https://github.com/triplea-maps/the_pact_of_steel/blob/master/map/games/pact_of_steel_2.xml#L4073

              Did I miss something?

              TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

              RogerCooperR C 2 Replies Last reply Reply Quote 2
              • RogerCooperR Offline
                RogerCooper @redrum
                last edited by

                @redrum I deleted the file on my computer and downloaded it again. That fixed it.

                1 Reply Last reply Reply Quote 3
                • C Offline
                  Cernel Moderators Lobby Moderators @redrum
                  last edited by

                  @redrum This would rise the question, when something is added, maybe just a rewording, to pos (the map), for purely mapmaking purposes, should the download version updated, prompting all users to overwrite it, even if that is actually totally pointless for regular users, as the game or the map didn't change at all (just updating the mapmaking guide within it)? And should the pos2 game version be increased if the file change is merely on the mapmaking guide part?

                  RogerCooperR 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cernel Moderators Lobby Moderators
                    last edited by

                    Personally, my solution would be having the_pact_of_steel as the default and preinstalled TripleA game (practically going back to the times when having another map folder in the installation, but this time only for the_pact_of_steel, and likely the tutorial too). In this case, I would have TripleA defaulting to Pact of Steel (instead of to the first game in alphabetical order, as it works now).

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

                      @Cernel said in costPU not working in politicalActionAttachment:

                      @redrum This would rise the question, when something is added, maybe just a rewording, to pos (the map), for purely mapmaking purposes, should the download version updated, prompting all users to overwrite it, even if that is actually totally pointless for regular users, as the game or the map didn't change at all (just updating the mapmaking guide within it)? And should the pos2 game version be increased if the file change is merely on the mapmaking guide part?

                      The map did not work at all, it was not just incomplete documentation. But yes, changes in properties should result in updates in POS2 even if the scenario is not directly affected.

                      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