Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago
How do I add new selection pictures/cameos into the game? Do they have to be a particular file size or image x by x size? What file format do they need to be?

I want to add Combine Soldier cameos.

UserPostedImage

UserPostedImage
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Sponsor
UTD^Force
11 years ago

How do I add new selection pictures/cameos into the game? Do they have to be a particular file size or image x by x size? What file format do they need to be?

I want to add Combine Soldier cameos.

UserPostedImage

UserPostedImage

Originally Posted by: Gameanater 



I've been trying to figure it out for almost 5 minutes by searching in the English.Big, then I found Defeated.tga, and modified it so when you lose you will see this: "You bone headed noob! You were defeated?! Wanna try again" and some other words that will be censored when posted here xD
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago


I've been trying to figure it out for almost 5 minutes by searching in the English.Big, then I found Defeated.tga, and modified it so when you lose you will see this: "You bone headed noob! You were defeated?! Wanna try again" and some other words that will be censored when posted here xD

Originally Posted by: UTD^Force 



xD!

Nice!

English.big, eh? Hmm...

I'll check it out and see what I can find

Meanwhile, still looking to know about the file format and size stuff. 😛
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
UTD^Force
11 years ago
I'll try to figure out tomorrow.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago

I'll try to figure out tomorrow.

Originally Posted by: UTD^Force 


Thanks. :P

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
klingondragon
11 years ago
They are .tga I think and they have to be a certain size and part of a bigger picture
I looked into it and found I couldn't do it (I didn't have the tools or patience)

The problem I can remember most is that I had no idea how they worked and so couldn't make them
Rrtaya_tsamsiyu
11 years ago
Edit; Gimp  or a png to tga  converter can help with this.

============================================
i'm guessing you want to make both unit images [the one you see when you select a unit] and button images.

Unit images must be 122x98 [WidthxHeith] and button images must be 62x50.

All of your images must be combined into one big image. Look at one of the sauserinterface512 images in Textures in the original Generals files to see what i mean.

This big image containing your images has to be .tga, and is stored in the same directory as the other texture images are. The name of your big image must always end with '512'. From looking at the game files, i think you can add '_xxx' [x's are numbers] to the end, but i haven't tested this.

============================================
But how do we use our images if they're all trapped in one mega-image?
MappedImages INIs.

============================================
Mapped Image INIs have entries that point to your unit and button images.
They must be named the same as the big image they are used on, minus the _xxx if you add that.

The Mapped Image INIs are in this directory;
'Data\INI\MappedImages\TextureSize_512\YourImage512.INI'

You might want to make your big image oversized, so you can add more images later.

You don't need borders like the game's big images have, those are optional.

Here is an entry from SAUserInterface512.INI.
MappedImage SAChinook_L
  Texture = SAUserInterface512_001.tga
  TextureWidth = 512
  TextureHeight = 512
  Coords = Left:367 Top:393 Right:487 Bottom:489
  Status = NONE
End

'MappedImage SAChinook_L' is what the Chinook wants, and it's what he's gonna get. You can name your MappedImage anything you want.

'Texture = SAUserInterface512_001.tga' is what big image we need to look at.

Texture Width and Height is size of our big image. It must be the size of the image, not always just 512.

'Coords =...' says where the borders of our image are in the big image. The Top and Bottom are measured down from the top, and the sides are measured from the left.

'Status = NONE' No clue what this does.

============================================
So that's basically it.

1.Make your unit images and button images
2.Put your images into one big image. The more organized the better. Must be .tga
3.Make a new MappedImage INI for your new big image and add entries.
4.Make your unit use your new images, change SelectPortrait and ButtonImage entries
5.Enjoy!
one soul at a time
CommieDog
11 years ago

All of your images must be combined into one big image. Look at one of the sauserinterface512 images in Textures in the original Generals files to see what i mean.

Originally Posted by: Rrtaya_Tsamsiyu 


Not true. You can have as many image files as you want. The important thing is that they be mapped correctly (which is really easy if the images are all in separate files).
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Rrtaya_tsamsiyu
11 years ago
Sorry, shouldn't have said "must," thanks for the correction.

All of them being in one file keeps your .big uncluttered though, and it takes less disk space.

hmm, i think you would still only need one INI file though using the _xxx method on your pictures.
one soul at a time
UTD^Force
11 years ago
I've done it, the big image appears fine. But the button image is still the same, the button which you click on to build the tank is still the same, but when it's in the build process it appears as it should be.
Here is it:   Help,.png (1,435kb) downloaded 77 time(s).
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
klingondragon
11 years ago
You have to change the image used in commandbutton.ini
UTD^Force
11 years ago
Thanks, I'll fix when I get back home.
And, nice 89 posts for you to become a colonel.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago

I've done it, the big image appears fine. But the button image is still the same, the button which you click on to build the tank is still the same, but when it's in the build process it appears as it should be.
Here is it:

Originally Posted by: UTD^Force 



I tried to look at the picture and Google Chrome gave me this:


Duplicate headers received from server


The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue.
Error code: ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

Google Chrome wrote:


Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago
@Ryteria... Whatever, however the heck I'm supposed to spell and say your name. xD

Quite a good tutorial there! Thank you!

I decided for the file conversion I'm just going to use Zamzar,  which I used for the special map preview of Zero Hour Revolutions.

For the picture size issue I'm probably going to (try) to use Photoshop to crop some Garry's Mod screenshots of Combine Soldiers to get them the right size. As for the smaller Button Images, I don't care about those. The AmericaInfantryCIAOfficer unit uses its selection picture for both the Cameo and Button Image, and I haven't noticed any problems with that.

But I'm confused as to WHERE I put my new .tga's. The existing one's are a .BIG file... And for modding, you make new .ini's in the INI folder (for some stuff). I don't know where I'm actually supposed to put my new images for the mod...
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Gameanater
  • Gameanater
  • 55.5% (Neutral)
  • General Topic Starter
11 years ago
Okay, I should rephrase that.

Where do I put the new .tga file? In the same folder as the mahnewimage.ini?
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
UTD^Force
11 years ago

Okay, I should rephrase that.

Where do I put the new .tga file? In the same folder as the mahnewimage.ini?

Originally Posted by: Gameanater 



In Data> English> Art> Textures.
And, uh... I'm not going to be here in the next 20 hours, enjoy every second of them before I come back xD
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Rrtaya_tsamsiyu
11 years ago
Lol, and thanks for the compliment. And yeah, for the picture size just use crop and scale it down. And put it where UTD said. Thanks UTD.
one soul at a time