Page 1 of 1
Army List
Posted: Fri Oct 13, 2017 8:26 pm
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.
Re: Army List
Posted: Fri Oct 13, 2017 8:33 pm
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?
Re: Army List
Posted: Fri Oct 13, 2017 9:34 pm
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.
Re: Army List
Posted: Fri Oct 13, 2017 9:39 pm
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
Re: Army List
Posted: Fri Oct 13, 2017 9:57 pm
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.
Re: Army List
Posted: Fri Oct 13, 2017 10:34 pm
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'
Re: Army List
Posted: Sat Oct 14, 2017 6:50 am
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.
Re: Army List
Posted: Sat Oct 14, 2017 8:14 am
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
Re: Army List
Posted: Sat Oct 14, 2017 8:56 am
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.
Re: Army List
Posted: Sat Oct 14, 2017 1:43 pm
by rbodleyscott
You have to put “_0” after the name of the unit for the .s4f filename.
As in
MyUnit_0.s4f
MyUnit.txt
Re: Army List
Posted: Sat Oct 14, 2017 5:18 pm
by Latro
Thanks!!