Help with Objectives on a friend's mod
-
Hello,
A friend of mine has created a mod of a fantasy world of their creation. We are trying to figure out how to see the "Objectives" Tab and add objectives to it. I've spend an exorbitant amount of time trying to figure it out and I am dumb. The mod is fully functional and we are testing the "balance" in various game runs, but we just can't wrap our heads around Objectives currently. I will say I haven't tested to see if they even work, but without the Objectives tab there's no way for the players to see it visually so I wanted that fixed first. I've looked on the forums here and seen about naming conventions with the map.yml file matching mapName in the game xml file. I've tested both with and without underscores in the name within the objective properties file to no avail. I sourced from other mods to see what their code says and nothing seems to line up simply. I even went from the current stable 2.5 version to the current 2.7 version as of today, 5/5/26. I just can't figure it out. I'm uploading the current iteration of the mod that functions, including the nonfunctioning objectives properties file and objectives in the game xml file.
Any help or advice is greatly appreciated. Thank you in advance.
-
P Panther moved this topic from Bug Reports
-
@Zealossus
Bravo, on your mod!
It looks good.You were so close to getting it to work

.
From what I remember, as Im not a fan of Objectives, as the AI does not understand them..
In the xml, removed the apostrophe<info name="Fading Light of Vlandriel" version="1.0"/>.
In map.yml removed the apostrophe and put quotes around the map name- {game_name: "Fading Light of Vlandriel", file_name: fadinglightofvlandriel.xml}.
In objectives.properties note the # comments, xml info name with _ replacing spaces# Fading Light of Vlandriel # xml info name with _ replacing spaces Objectives.Panel.Name=Objectives Fading_Light_of_Vlandriel.TABLEGROUP.01;Imperium=objectiveAttachment_Imperium_1_Control_Altairis Fading_Light_of_Vlandriel.Imperium;objectiveAttachment_Imperium_1_Control_Altairis=<b>10 PUs</b> if the Imperium captures the Reformist capital of Altairis. Fading_Light_of_Vlandriel.TABLEGROUP.02;Reformists=objectiveAttachment_Reformists_1_Control_Ylleria Fading_Light_of_Vlandriel.Reformists;objectiveAttachment_Reformists_1_Control_Ylleria=<b>10 PUs</b> if the Reformists capture the Imperialist capital of Ylleria.
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