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

    Objectives Panel issue

    Scheduled Pinned Locked Moved Map Making
    7 Posts 2 Posters 1.3k 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.
    • Joe GJ Offline
      Joe G
      last edited by

      Hey all. We're trying to get objectives panel working for a map. Having a heck of a time of it though. I started by copying the syntax for the Global 1940 objectives.properties file exactly (just replacing objective names, and the name of the map, of course). Didn't work.

      Then I tried to do just one objective (Germany's first). That worked. Then i tried to add a second objective. Now I'm getting an error. Here is whats currently in the objectives.properties file.

      WW2_Path_to_Victory.TABLEGROUP.
      01;Germans=objectiveAttachment_Germans_1_Trade_with_Russia;objectiveAttachment_Germans_3_Control_Caucasus;triggerAttachment_Germans_4_Presence_In_Egypt

      WW2_Path_to_Victory.Germans;objectiveAttachment_Germans_1_Trade_with_Russia=<b>5 PUs</b> if not at war with Russia.
      WW2_Path_to_Victory.Germans;triggerAttachment_Germans_4_Presence_In_Egypt=<b>5 PUs</b> if there is at least one German land unit in either Egypt or United Kingdom.

      Pretty basic. Both objectives match the names in the xml. But i still get this error:

      May 25, 2020 10:37:15 PM games.strategy.triplea.ui.ObjectivePanel$ObjectiveTableModel setObjectiveStats
      SEVERE: objective.properties keys must be 2 parts: <game_name>.TABLEGROUP.<#>;player OR <game_name>.player;attachmentName
      May 25, 2020 10:37:15 PM games.strategy.triplea.ui.ObjectivePanel$ObjectiveTableModel setObjectiveStats
      SEVERE: objective.properties keys must be 2 parts: <game_name>.TABLEGROUP.<#>;player OR <game_name>.player;attachmentName

      ANY thoughts?

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Cernel Moderators @Joe G
        last edited by

        @Joe-G said in Objectives Panel issue:

        Then I tried to do just one objective (Germany's first). That worked. Then i tried to add a second objective. Now I'm getting an error. Here is whats currently in the objectives.properties file.

        WW2_Path_to_Victory.TABLEGROUP.
        01;Germans=objectiveAttachment_Germans_1_Trade_with_Russia;objectiveAttachment_Germans_3_Control_Caucasus;triggerAttachment_Germans_4_Presence_In_Egypt

        WW2_Path_to_Victory.Germans;objectiveAttachment_Germans_1_Trade_with_Russia=<b>5 PUs</b> if not at war with Russia.
        WW2_Path_to_Victory.Germans;triggerAttachment_Germans_4_Presence_In_Egypt=<b>5 PUs</b> if there is at least one German land unit in either Egypt or United Kingdom.

        Pretty basic.

        From what you pasted, the second thing you added is not an objective, but a trigger.

        Joe GJ 1 Reply Last reply Reply Quote 0
        • Joe GJ Offline
          Joe G @Cernel
          last edited by

          @Cernel even when i include only objectives in the objectives.properties, it still doesn't work. For example:

          WW2_Path_to_Victory.TABLEGROUP.
          01;Germans=objectiveAttachment_Germans_1_Trade_with_Russia
          WW2_Path_to_Victory.TABLEGROUP.02;Japanese=objectiveAttachment_Japanese_1_Trade_With_America

          WW2_Path_to_Victory.Germans;objectiveAttachment_Germans_1_Trade_with_Russia=<b>5 PUs</b> if not at war with Russia.

          WW2_Path_to_Victory.Japanese;objectiveAttachment_Japanese_1_Trade_With_America=<b>10 PUs</b> if not yet at war with USA, has not yet attacked or taken control of French Indo-China, and has not declared war on UK or ANZAC.

          Same error. 😕

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            Cernel Moderators @Joe G
            last edited by

            @Joe-G said in Objectives Panel issue:

            @Cernel even when i include only objectives in the objectives.properties, it still doesn't work. For example:

            WW2_Path_to_Victory.TABLEGROUP.
            01;Germans=objectiveAttachment_Germans_1_Trade_with_Russia
            WW2_Path_to_Victory.TABLEGROUP.02;Japanese=objectiveAttachment_Japanese_1_Trade_With_America

            WW2_Path_to_Victory.Germans;objectiveAttachment_Germans_1_Trade_with_Russia=<b>5 PUs</b> if not at war with Russia.

            WW2_Path_to_Victory.Japanese;objectiveAttachment_Japanese_1_Trade_With_America=<b>10 PUs</b> if not yet at war with USA, has not yet attacked or taken control of French Indo-China, and has not declared war on UK or ANZAC.

            Same error. 😕

            Did you actually add a linebreak in the middle of what should be the first line? I mean this one:

            WW2_Path_to_Victory.TABLEGROUP.01;Germans=objectiveAttachment_Germans_1_Trade_with_Russia
            
            Joe GJ 1 Reply Last reply Reply Quote 0
            • Joe GJ Offline
              Joe G @Cernel
              last edited by

              @Cernel yes. there always a linebreak at "WW2_Path_to_Victory.TABLEGROUP." no good?

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Cernel Moderators @Joe G
                last edited by

                @Joe-G Nope, as far as I know. That is a properties file: Line breaks and spaces are important. Just put that on a single line and test it.

                Joe GJ 1 Reply Last reply Reply Quote 0
                • Joe GJ Offline
                  Joe G @Cernel
                  last edited by

                  @Cernel well damn. now its working. that so weird. cuz all the other Objectives.Properties files i've checked 'appear" to have linebreaks there. But hey, it worked, so i'm happy. THanks man. When u gonna be back on to continue our game 🙂

                  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