Tags/Countries editing

Moderator: FOGK Moderators

Post Reply
Emp_Palpatine
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 13
Joined: Fri Nov 17, 2017 9:34 am

Tags/Countries editing

Post by Emp_Palpatine »

Hi there,

Regarding the creation/addition or modification of ingame countries, what would be the check-list?
Which files are to be tampered with?
Where are events or scripts tampering with tag switching?

Does anyone has an easy way to edit or add banners? I have no experience at all with graphical editing.

Last but not least, how does one make an already existing tag playable?

That would be all... For now.
jimwinsor
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1391
Joined: Fri Feb 08, 2013 8:54 am

Re: Tags/Countries editing

Post by jimwinsor »

Regarding the creation/addition or modification of ingame countries, what would be the check-list?
Which files are to be tampered with?
Factions.csv (in the Data folder) would be the place to go for adding a faction. Just put the faction in a new line, with its own unique 3-letter code, and all the relevant data. When you do this, be sure to edit the relevant text file (in the Data/Text folder). In this case, look at Text44, which deals with all the various group names a faction uses. If you don't update this text file, the game will give these little script error popups, whenever you mouse over an army or fleet of the faction you added, or the game tries to write an adjective referring to the faction.

If you want the faction on map at scenario setup, in the Scenarios folder you'll want to edit the Setup_Factions.csv file, in the DATA folder for each scenario, as well as the Setup.csv file.
Where are events or scripts tampering with tag switching?
I'm not sure I follow by what you mean by "tag switching?"
Does anyone has an easy way to edit or add banners? I have no experience at all with graphical editing.
Banners are in the Data/ASSETS/BANNERS folders, and that's all I can tell ya! Editing or creating those fancy things are far beyond my humble knowledge.
Last but not least, how does one make an already existing tag playable?
I *think* you can do this by simply editing Setup_Factions.csv, col I (PickPriority), to a number other than 0? I hesitate though, because I have an eerie feeling that I may be forgetting a step or two here ...
Streaming as "Grognerd" on Twitch! https://www.twitch.tv/grognerd
Pocus
Ageod
Ageod
Posts: 7115
Joined: Tue Oct 02, 2012 3:05 pm

Re: Tags/Countries editing

Post by Pocus »

It should also be noted that we work with XLS files and then export them to CSV. Therefore, the best practice (as in the time of AGEOD) is to make your modifications this way before exporting.
By tag switching, do you mean Paris becoming France?
The banners are indeed made with 3D software; only the team's graphic designer knows how to create them.
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
Emp_Palpatine
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 13
Joined: Fri Nov 17, 2017 9:34 am

Re: Tags/Countries editing

Post by Emp_Palpatine »

jimwinsor wrote: Tue Jul 02, 2024 4:18 pm I'm not sure I follow by what you mean by "tag switching?"
When you change the played country by event or pressing the related button.
For instance : Normandy -> France; Apulia -> Sicilia.

I would like to do, for starters, a simple mod switching Sicilia to Latin Empire if enough requirements are met (own Constantinople, is an Empire, and perhaps a few other things).

Last but not least, how does one make an already existing tag playable?
I *think* you can do this by simply editing Setup_Factions.csv, col I (PickPriority), to a number other than 0? I hesitate though, because I have an eerie feeling that I may be forgetting a step or two here ...
Pocus, do you confirm this?
Emp_Palpatine
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 13
Joined: Fri Nov 17, 2017 9:34 am

Re: Tags/Countries editing

Post by Emp_Palpatine »

Pocus wrote: Wed Jul 03, 2024 7:41 am The banners are indeed made with 3D software; only the team's graphic designer knows how to create them.
That's a bummer... Adding countries requires new banners! Or an easy/practical way of adding some.
It would be great if the said developper could give some hindsights.

Why so? Well, "formables" are fun (yeah, I also play Paradox games) and give players some goals to long for and I would like to do a small mod adding a few formables.
Pocus
Ageod
Ageod
Posts: 7115
Joined: Tue Oct 02, 2012 3:05 pm

Re: Tags/Countries editing

Post by Pocus »

Actually you can edit DDS files quite simply, for light modifications with free software like PAINT.NET that I use for routine operations.
So this is the flag DDS:
CoA_341_Kingdom_of_Sicily_diffuse@.jpg
CoA_341_Kingdom_of_Sicily_diffuse@.jpg (156.28 KiB) Viewed 3517 times
Formable from Formable will require a bit of scripting, i.e. as a condition to being Formable, you need to be already Formable X.

Yes you can edit a single flag and the nation will be playable in SETUP.CSV
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
Emp_Palpatine
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 13
Joined: Fri Nov 17, 2017 9:34 am

Re: Tags/Countries editing

Post by Emp_Palpatine »

Thanks.
Which entry is to be changed in setup.csv? Do we agree that it's the one in Kingdoms_DB?
Or is it in faction_setup? In this one, there is a pickpriority but I am not sure it serves as a mean to make a country playble? There are 0, 1000, 8(?) values and they do not seem to relate...

Also, as for scripting : which languages do you use?
Looks like a sort of Java but I am not sure. If so, good news, I have some basic knowledge of Java!
jimwinsor
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1391
Joined: Fri Feb 08, 2013 8:54 am

Re: Tags/Countries editing

Post by jimwinsor »

Yeah the PickPriority in SETUP_FACTIONS will list the faction on the Pick a Country screen when you begin a scenario, and the number determines how high up the list of country choices it will be. So "1" would be at the top of the list, for example. The number of digits also indicate whether it will be listed among the "Major Nations" (1 digit), "Remarkable Factions" (2 digits), etc.
Streaming as "Grognerd" on Twitch! https://www.twitch.tv/grognerd
Pocus
Ageod
Ageod
Posts: 7115
Joined: Tue Oct 02, 2012 3:05 pm

Re: Tags/Countries editing

Post by Pocus »

The scripting language is a custom, home-made language, proposed by the Archon engine, which is itself an in-house engine from Slitherine. Basically, it's a simplified version of C.
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
kronenblatt
General - Carrier
General - Carrier
Posts: 4671
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

Re: Tags/Countries editing

Post by kronenblatt »

Pocus wrote: Wed Jul 03, 2024 7:41 am The banners are indeed made with 3D software; only the team's graphic designer knows how to create them.
Adding new nations/factions actually mean adding new banners. Is there any difference between Empires and Kingdoms in this respect?
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
Post Reply

Return to “Field of Glory: Kingdoms - Modding and Scenarios”