Objectives Panel issue
-
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_EgyptWW2_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;attachmentNameANY thoughts?
-
@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_EgyptWW2_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.
-
@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_AmericaWW2_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.
-
@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_AmericaWW2_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
-
@Cernel yes. there always a linebreak at "WW2_Path_to_Victory.TABLEGROUP." no good?
-
@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.
-
@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