Edited textures not showing

Moderator: rbodleyscott

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

Edited textures not showing

Post by Latro »

So I copied a few edited units from Ancients to Medieval.
After a bit of work I got them into the game but they don't show their edited Diffuse textures. They show their unedited versions.
Ayone who knows what might be causing this?
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: Edited textures not showing

Post by rbodleyscott »

Latro wrote: Mon Jun 06, 2022 9:06 am So I copied a few edited units from Ancients to Medieval.
After a bit of work I got them into the game but they don't show their edited Diffuse textures. They show their unedited versions.
Ayone who knows what might be causing this?
They cannot show their unedited versions if they are not in the build. So you cannot have replaced all of the vanilla textures. There are several texture1, texture2 etc sub-folders they can be in.
Richard Bodley Scott

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

Re: Edited textures not showing

Post by Latro »

The edited versions have different filenames from the unedited ones.
I copied the files from /units, gave those different filenames and edited their diffuse, saving with the new filename.
They worked fine in Ancients, side by side with their originals.
Latro
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 328
Joined: Wed Dec 19, 2012 4:05 pm

Re: Edited textures not showing

Post by Latro »

Example:

African_Foot. Based on Egyptian Spearmen.
In Medieval it shows them as the original Egyptian Spearmen.
Attachments
Screen_00000019.jpg
Screen_00000019.jpg (1006.07 KiB) Viewed 1581 times
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: Edited textures not showing

Post by rbodleyscott »

Ancients used a different system, with the game searching for textures matching the unit name. This however had the disadvantage that if two units (e.g. a mounted and dismounted version) used the same textures, the textures had to be duplicated, which was a pain and not very efficient.

Medieval uses a different system whereby the texture references are read off from the reference in the model - the .s4f file. Those references are also present in Ancients but are only used by the Editor.

This means that in order for your new units to work in Medieval, you need to edit the texture references in the .s4f file to match the names of your new textures.

Unfortunately you cannot just edit the file like a text file, it won't work. You need to use the ARCHON Tool.

Here is a DropBox link to download it.

https://www.dropbox.com/s/pjqoal5fapolr ... 3.zip?dl=0

Here is the documentation, such as it is:

https://archonwiki.slitherine.com/index ... nd_Shaders

You need the .EXE, the .dll and config file in the same folder, then run it by double clicking on the .EXE.

You load the unit you want to modify, then click on the texture entries on the right of the screen and pick the textures you want the unit to use from the UnitTextures folder. Then Save the unit.

Good luck. If you get stuck, don't hesistate to ask.
Richard Bodley Scott

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

Re: Edited textures not showing

Post by Latro »

Thanks a bunch.
It works.
Attachments
Screen_00000000.jpg
Screen_00000000.jpg (873.69 KiB) Viewed 1556 times
Post Reply

Return to “Field of Glory II: Medieval - Modding”