Navigation

    TripleA Logo

    TripleA Forum

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

    costPU not working in politicalActionAttachment

    (ARCHIVED) Bug Reports
    3
    9
    823
    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

      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.

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

        @RogerCooper it was replaced with costResources.

        C 1 Reply Last reply Reply Quote 2
        • C
          Cernel 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

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

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

            redrum 1 Reply Last reply Reply Quote 0
            • redrum
              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?

              RogerCooper C 2 Replies Last reply Reply Quote 2
              • RogerCooper
                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
                  Cernel 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?

                  RogerCooper 1 Reply Last reply Reply Quote 0
                  • C
                    Cernel 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
                    • RogerCooper
                      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
                      • 1 / 1
                      • First post
                        Last post
                      Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums