Army List

Post Reply
Latro
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 328
Joined: Wed Dec 19, 2012 4:05 pm

Army List

Post by Latro »

Where do I put Army List.txt in my directory?
I created a subdirectory Core but the module doesn't pick it up anywhere.

Also, IDS_CAPAIGN_NAME is in text2. Changed it to 'My Campaign' but module selection gives name 'Rise of Rome'.

Not sure if it is picking up 'My campaign' directory.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Army List

Post by rbodleyscott »

Latro wrote:Where do I put Army List.txt in my directory?
I created a subdirectory Core but the module doesn't pick it up anywhere.

Also, IDS_CAPAIGN_NAME is in text2. Changed it to 'My Campaign' but module selection gives name 'Rise of Rome'.

Not sure if it is picking up 'My campaign' directory.
In a custom folder ArmyList.txt goes in the main folder and not in the /Core subfolder. I am not sure why it does not show this in the file tree diagram at the end of this: http://archonwiki.slitherine.com/index.php/Modding

Assuming you have correctly typed IDS_CAMPAIGN_NAME and not IDS_CAPAIGN_NAME as above, is there another version of it in another text file in the folder?
Richard Bodley Scott

Image
Latro
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 328
Joined: Wed Dec 19, 2012 4:05 pm

Re: Army List

Post by Latro »

OK got 'MyCampaign' showing in the Campaign selection. By making a directory under the game directory for campaigns, not my documents\my games...MODS.

But I cannot select armies. I get a blank square and then the difficulty level.
pipfromslitherine
Site Admin
Site Admin
Posts: 9886
Joined: Wed Mar 23, 2005 10:35 pm

Re: Army List

Post by pipfromslitherine »

If you are trying to make a custom campaign you should have your campaign data under My Documents/My Games/FieldOfGlory2/CAMPAIGNS. You do not need to alter the main game data.

MODS is a specialist folder which only applies to texture sets. IIRC FoG2 does not have the UI to select texture set mods at this time.

Cheers

Pip
follow me on Twitter here
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Army List

Post by rbodleyscott »

Latro wrote:OK got 'MyCampaign' showing in the Campaign selection. By making a directory under the game directory for campaigns, not my documents\my games...MODS.

But I cannot select armies. I get a blank square and then the difficulty level.
Are you trying to make a sandbox campaign folder?

If so I recommend making a copy of the entire /2MPSRiseOfRome folder into /Documents/My Games/FieldOfGlory2/Campaigns

Say you call the cloned folder /My Campaign

Then put your custom ArmyList.txt file into /My Campaign

Then edit the IDS_CAMPAIGN_NAME text in text1.txt

And voila you should have your own sandbox campaign using your custom army list.
Richard Bodley Scott

Image
Latro
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 328
Joined: Wed Dec 19, 2012 4:05 pm

Re: Army List

Post by Latro »

Yay!

That worked. I had copied the wrong campiagn, not the 2MPS one.

Now the unit texture

I've edited the african spearman dds and created a new unit in squads.csv. Everything works fine except the unit has the old texture.


Edit:
hmm, not work anymore. 'Failed to load asset file myunit_0'
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Army List

Post by rbodleyscott »

Latro wrote:Yay!

That worked. I had copied the wrong campiagn, not the 2MPS one.

Now the unit texture

I've edited the african spearman dds and created a new unit in squads.csv. Everything works fine except the unit has the old texture.
The .s4f model files have internal texture references. These are used in the Editor. However in random map battles (including campaign battles) the units are automatically reskinned, using the model name to derive the texture name, rather than the internal references, so it does not matter if the internal texture references are wrong. They just have to match the new model name.

Note that when reskinning units, the game will look in the base UnitTextures folder, and also in texture1...texture11. It will count how many texture variants are actually available for the unit, then automatically assign the first half of them, rounded up, for random allocation to side A units, and the rest to side B units. In battles with Romans on Side B it will reverse the allocations, so that Romans always use their Side A textures unless it is a civil war. (The same will apply to Spartans when we get to Immortal Fire, so that they always use their Lambda shield for the actual Spartiates).

We have a tool we use to change the texture references without having to recompile the whole model file, but I will have to enquire whether I am permitted to make it generally available.
Edit:
hmm, not work anymore. 'Failed to load asset file myunit_0'
Something is wrong in the squads file or the army list file, or the model file isn't in the right place. The game cannot find myunit_0.s4f.
Richard Bodley Scott

Image
Latro
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 328
Joined: Wed Dec 19, 2012 4:05 pm

Re: Army List

Post by Latro »

rbodleyscott wrote:
Something is wrong in the squads file or the army list file, or the model file isn't in the right place. The game cannot find myunit_0.s4f.
So where does the .4sf file need to go?
I have them in the game directory, copied them to the root of mycampaign and tried creating subdirectories Battle\Units. still no go.

my 4.sf file is just a renamed copy of the african_spearmen.4sf
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Army List

Post by rbodleyscott »

Latro wrote:
rbodleyscott wrote:
Something is wrong in the squads file or the army list file, or the model file isn't in the right place. The game cannot find myunit_0.s4f.
So where does the .4sf file need to go?
I have them in the game directory, copied them to the root of mycampaign and tried creating subdirectories Battle\Units. still no go.

my 4.sf file is just a renamed copy of the african_spearmen.4sf
I will PM you with my email address. Send me your custom folder and I will try to see what is wrong.
Richard Bodley Scott

Image
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Army List

Post by rbodleyscott »

You have to put “_0” after the name of the unit for the .s4f filename.

As in

MyUnit_0.s4f
MyUnit.txt
Richard Bodley Scott

Image
Latro
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 328
Joined: Wed Dec 19, 2012 4:05 pm

Re: Army List

Post by Latro »

Thanks!!
Post Reply

Return to “Field of Glory II: Modding”