Beta: SOTS2 Texture File Extractor

Moderator: Makail

User avatar
Rossinna-Sama
Posts: 1816
Joined: Sun Nov 11, 2012 5:38 am

Re: Beta: SOTS2 Texture File Extractor

Post by Rossinna-Sama » Thu Nov 14, 2019 9:30 pm

Glabrezu wrote:
Tue Nov 12, 2019 6:17 pm
Rossinna-Sama wrote:
Tue Nov 12, 2019 11:41 am
Have to make an entry for any new textures in the Skin1.xml hiding in the UI\Skin1 folder. The following should work.

<sprite id="bal_sniper_ii" texture="weapons/Icons/bal_sniper_ii.bmp" x="0" y="0" w="32" h="32"></sprite>

Fairly sure it is also case sensitive, so be careful with that.
Aha! That must be the step I am missing!
It was indeed the missing step.
Thank you kindly!
You wouldn't happen to have figured out a way to stop SOTS2 or GIMP from reversing Red and Blue? That drives me nuts and is the main reason I won't do custom icons yet.
Sword of the Stars 2 : Project Hiver Modder
Creator of the Work-In-Progress Seimei Visual Novel series.
My dream game: Combination of Sword of the Stars 2, Angels Fall First, Conquest: Frontier Wars and Warzone 2100.

Glabrezu
Posts: 30
Joined: Thu Aug 19, 2010 3:27 pm

Re: Beta: SOTS2 Texture File Extractor

Post by Glabrezu » Fri Nov 15, 2019 9:19 am

Rossinna-Sama wrote:
Thu Nov 14, 2019 9:30 pm
You wouldn't happen to have figured out a way to stop SOTS2 or GIMP from reversing Red and Blue? That drives me nuts and is the main reason I won't do custom icons yet.
I don't really do graphics, I am only using GIMP because paint.net wasn't doing the job. I can only tell you what I did.
As previously said I used the pre-existing sniper icon, used GIMP the "colour saturation" option, chose "red" as the master colour, moved the first slider until it (the red target reticule part of the icon) went a pretty shade of green.
I also made a purple version of the sniper icon.
I did the same with the variable laser and the cutting laser (turned them purple in this case).
I only changed icons, I didn't mess around with projectiles.
The "new" icons look the same in game as they did when edited with GIMP (no colour changes, other than the ones I had wanted).
That pretty much it (and all I did). I doubt that's helpful to you.
Aye, I'm using the latest version of GIMP, 64bit.

Ah yeh, I also used the phalanx icon, turned it green too, yeh i like green, had to use Color Balance option for it. Middle slider till the right green.
Like I said I doubt any of this info is helpful to you.

User avatar
Rossinna-Sama
Posts: 1816
Joined: Sun Nov 11, 2012 5:38 am

Re: Beta: SOTS2 Texture File Extractor

Post by Rossinna-Sama » Fri Nov 15, 2019 8:39 pm

So far the easiest way I've found to preserve colors is to make everything the way you want color wise, then once finished, go to Color - Components - Channel Mixer and make a new template which Blue in Red channel is 1, Red in Red channel is 0, Red in Blue channel is 1 and Blue in Blue channel is 0.

I've tried it mostly with weapon icons so far, and the colors look like they should once they are ingame. It appears to just be how .DDS files are read by the game or something like that.
Sword of the Stars 2 : Project Hiver Modder
Creator of the Work-In-Progress Seimei Visual Novel series.
My dream game: Combination of Sword of the Stars 2, Angels Fall First, Conquest: Frontier Wars and Warzone 2100.

Glabrezu
Posts: 30
Joined: Thu Aug 19, 2010 3:27 pm

Re: Beta: SOTS2 Texture File Extractor

Post by Glabrezu » Sun Nov 17, 2019 3:11 pm

What I do seems way less technical than what you do, but then I'm just making little changes for myself (so it doesn't need to be that good), I am fiarly sure what you do is a bit more in depth and is for the modding you are doing for yourself than others, you also put in a lot of effort into what you do :)

Scottish Kiltz
Posts: 13
Joined: Thu Aug 16, 2018 9:11 am

Re: Beta: SOTS2 Texture File Extractor

Post by Scottish Kiltz » Mon Mar 06, 2023 1:55 pm

Afternoon,

I am hoping some out there are able to assist with this as my PM's don't seem to leave the outbox despite complying with all the message rules. I can't remember very well.

I am trying to get back into modding this beautiful game again. I am having trouble with this texture conversion program however.

Now, I know that you can drag and drop an SOTS II image onto the .exe and it will convert to .dds which is simple and great. Problem is it doesn't seem to work in reverse. Thus I am trying to get the command prompt line correct so as to convert a new image back into SOTS II (.tga~ or .bmp~).

I understand it should be as simple as: Extract -S XYZ.dds -O XYZ.tga~

Problem is that the Command Prompt doesn't recognise 'Extract' as a command (despite the help command saying otherwise).

If anyone can remember how to write the line correctly, please could they reply.

my Command line is as follows:

C:\User\Extract>Extract -S XYZ.tga~ -O XYZ.dds & C:\User\Extract>Extract -S XYZ.dds -O XYZ.tga~

Any corrections will be greatly appreciated.

Scottish KIltz

Blaze of Glory
Posts: 19
Joined: Tue Aug 23, 2011 7:43 pm

Re: Beta: SOTS2 Texture File Extractor

Post by Blaze of Glory » Tue Mar 14, 2023 11:33 pm

Kind of a late reply, but in case you are still looking for an answer:

It sounds like command prompt isn't finding the Extract.exe you are trying to run. Are you running the command from the same folder that the Extract.exe is located in? and if so, are you using the same file name as the exe? It looks like in the new github download it's Extract64.exe or Extract32.exe not just Extract.

If those aren't the issue, then it might be you need to use .\Extract or .\Extract.exe to tell it to look in the current directory for the exe. From a quick test, it seems to be working for me.

command I used:
.\Extract64.exe -S XYZ.dds -O "XYZ.tga~"

Scottish Kiltz
Posts: 13
Joined: Thu Aug 16, 2018 9:11 am

Re: Beta: SOTS2 Texture File Extractor

Post by Scottish Kiltz » Wed Mar 15, 2023 6:17 am

Pal, you have just made yourself a star!

I was missing the .\ bit before the Extract64.exe after changing to the correct directory and that seems to work. I don't understand what it does as part of the command line but it works.

I did notice it didn't like me telling it to convert an original image into .dds. kept saying no DDS Header found.

Anyway, I can now extract in both directions which is what I needed.

Many thanks

SK

Post Reply

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 3 guests