TEXTURES

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

TEXTURES

Post by enric »

Probably is a stupid question, by I can't find the texture for US_INFANTRY (should it be on the BA root DATA/BATTLE/UNITTEXTURES, no?)
Richcat
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 219
Joined: Sun Nov 07, 2010 10:09 pm

Re: TEXTURES

Post by Richcat »

Have a look for a GI.psd in there thats what the us_infantry_0.s4f file references
Cheers
Richcat
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: TEXTURES

Post by enric »

Richcat wrote:Have a look for a GI.psd in there thats what the us_infantry_0.s4f file references
Can you be more explicit?

I have no application to open us_infantry_0.s4f, ?
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: TEXTURES

Post by enric »

Richcat,

Thank you you've given me the clue.
pipfromslitherine
Site Admin
Site Admin
Posts: 9702
Joined: Wed Mar 23, 2005 10:35 pm

Re: TEXTURES

Post by pipfromslitherine »

The s4f is a binary file, but if you open with a text editor you should be able to see some image filenames in with the muck. The texture for a unit doesn't have to have the same name as the unit s4f or other files. In this case it looks like it is GI.DDS

Cheers

Pip
follow me on Twitter here
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: TEXTURES

Post by enric »

pipfromslitherine wrote:The s4f is a binary file, but if you open with a text editor you should be able to see some image filenames in with the muck. The texture for a unit doesn't have to have the same name as the unit s4f or other files. In this case it looks like it is GI.DDS

Cheers

Pip
Thanks Pip, this was the clue that Richcat just gave me.

Opening the s4f with a editor, at the beginning of the garbage of characters, I see the name gi.psd, no GI.DDS but, in TEXTURES I found a GI.DDS that do the job... so I'll assume that if s4f refers as XX.psd it become xx.DDS....
Richcat
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 219
Joined: Sun Nov 07, 2010 10:09 pm

Re: TEXTURES

Post by Richcat »

Sorry Eric - Pips right its not as I said GI.pds but as Pip said GI.dds :oops:
I always thought the texture file referenced in the s4f files had to be a .dds or wouldn't work. I sure thats what used to happened a few years ago maybe its no longer important as long as the filename is correct, and can be .gif, .psd etc . :?:
Cheers
Richcat
pipfromslitherine
Site Admin
Site Admin
Posts: 9702
Joined: Wed Mar 23, 2005 10:35 pm

Re: TEXTURES

Post by pipfromslitherine »

The texture loader always looks for the types it can load. Richard just builds them pointing to the 'originals' I imagine and then claps in innocent artistic happiness when it still works after he saves it down as a DDS or TGA ;)

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy : Modders Corner ”