Clones

Moderators: rbodleyscott, Slitherine Core, Gothic Labs

Post Reply
macdonncadh
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 63
Joined: Fri Apr 24, 2015 1:30 am

Clones

Post by macdonncadh »

I have a silly question: if I clone a unit X number of times, in order to add historical flag graphics - say just the pike and musket unit of country Y. Do each of the cloned units have to be created in the squads file (if so, I might as well name them there according to their historical designation) or will the editor pick up added graphics for that unit in that country in the unit placement module, and then name them in the Text1 file? OR am I going to have to name them in the text file and make them in the Squads file.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28261
Joined: Sun Dec 04, 2005 6:25 pm

Re: Clones

Post by rbodleyscott »

macdonncadh wrote:OR am I going to have to name them in the text file and make them in the Squads file.
This.

Note also that if you clone the models, the model .S4F files have an internal reference to the texture name, so they will still point to the old texture filename.

If you want to change the references, you will need the .s3F versions of the files. If you PM me with a list of models, I can supply you with the .s3F versions.
Richard Bodley Scott

Image
pipfromslitherine
Site Admin
Site Admin
Posts: 9862
Joined: Wed Mar 23, 2005 10:35 pm

Re: Clones

Post by pipfromslitherine »

If you are careful to keep the texture names exactly the same size, you can actually edit the binary files too if you wish. The texture names are stored very early in the file data and are pretty easy to see in any binary editor (they tend to show text too).

Cheers

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

Re: Clones

Post by rbodleyscott »

pipfromslitherine wrote:If you are careful to keep the texture names exactly the same size, you can actually edit the binary files too if you wish.
Hmm, I tried that and it did not seem to work, but maybe I did something wrong.
Richard Bodley Scott

Image
pipfromslitherine
Site Admin
Site Admin
Posts: 9862
Joined: Wed Mar 23, 2005 10:35 pm

Re: Clones

Post by pipfromslitherine »

You definitely have to be careful, and you cannot move any bytes around, just replace the existing characters.

Cheers

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

Re: Clones

Post by rbodleyscott »

pipfromslitherine wrote:You definitely have to be careful, and you cannot move any bytes around, just replace the existing characters.
That is what I thought I had done. But who knows.
Richard Bodley Scott

Image
macdonncadh
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 63
Joined: Fri Apr 24, 2015 1:30 am

Re: Clones

Post by macdonncadh »

Thanks Gentlemen...I thought I had come up with a time saver but I should have remembered most short cuts are not that short. I'll watch the .S3F thing too. They are easy enough to edit. I wanted to do something with the Bill and Bow formations but I do not seem to have that stock. The keil and shot looks very similar and I have those models.

Thanks again.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28261
Joined: Sun Dec 04, 2005 6:25 pm

Re: Clones

Post by rbodleyscott »

The bill and bow model is a clone of the keil shot anyway, with sound effect changed in the model .txt file.
Richard Bodley Scott

Image
Ubberdorc
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 31
Joined: Thu Aug 07, 2014 11:03 pm

Re: Clones

Post by Ubberdorc »

I was able to get this method to work using Notepad++
I know this is a dead thread but it might be useful for others.

pipfromslitherine wrote: Tue Oct 13, 2015 11:01 pm If you are careful to keep the texture names exactly the same size, you can actually edit the binary files too if you wish. The texture names are stored very early in the file data and are pretty easy to see in any binary editor (they tend to show text too).

Cheers

Pip
Post Reply

Return to “Modders Corner”