Page 1 of 1

Edited textures not showing

Posted: Mon Jun 06, 2022 9:06 am
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?

Re: Edited textures not showing

Posted: Mon Jun 06, 2022 10:24 am
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.

Re: Edited textures not showing

Posted: Mon Jun 06, 2022 10:49 am
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.

Re: Edited textures not showing

Posted: Mon Jun 06, 2022 10:59 am
by Latro
Example:

African_Foot. Based on Egyptian Spearmen.
In Medieval it shows them as the original Egyptian Spearmen.

Re: Edited textures not showing

Posted: Mon Jun 06, 2022 1:39 pm
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.

Re: Edited textures not showing

Posted: Mon Jun 06, 2022 2:06 pm
by Latro
Thanks a bunch.
It works.