Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Gameanater  
#1 Posted : Thursday, August 28, 2014 6:12:16 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
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.

Combine Soldier with AR2/Pulse-Rifle

Combine Elite

Edited by user Thursday, August 28, 2014 6:17:51 PM(UTC)  | Reason: Not specified

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Sponsor
Offline UTD^Force  
#2 Posted : Thursday, August 28, 2014 6:18:44 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Originally Posted by: Gameanater Go to Quoted Post
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.

Combine Soldier with AR2/Pulse-Rifle

Combine Elite


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
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 1 user thanked UTD^Force for this useful post.
Gameanater on 8/28/2014(UTC)
Offline Gameanater  
#3 Posted : Thursday, August 28, 2014 6:21:14 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Originally Posted by: UTD^Force Go to Quoted Post

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


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. :P

Edited by user Thursday, August 28, 2014 6:22:00 PM(UTC)  | Reason: Not specified

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline UTD^Force  
#4 Posted : Thursday, August 28, 2014 6:21:44 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
I'll try to figure out tomorrow.
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline Gameanater  
#5 Posted : Thursday, August 28, 2014 6:24:48 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Originally Posted by: UTD^Force Go to Quoted Post
I'll try to figure out tomorrow.

Thanks. :P
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline klingondragon  
#6 Posted : Thursday, August 28, 2014 6:39:58 PM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
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
Offline Rrtaya_tsamsiyu  
#7 Posted : Thursday, August 28, 2014 9:42:47 PM(UTC)
Rrtaya_tsamsiyu
Colonel
Joined: 5/8/2012(UTC)
Posts: 615
United States
Location: USA, Tennessee, Home, Livingroom, couch.

Thanks: 102 times
Was thanked: 194 time(s) in 139 post(s)
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.
Code:
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!

Edited by user Thursday, August 28, 2014 11:00:36 PM(UTC)  | Reason: Not specified

one soul at a time
thanks 3 users thanked Rrtaya_tsamsiyu for this useful post.
CommieDog on 8/28/2014(UTC), UTD^Force on 8/29/2014(UTC), Gameanater on 8/29/2014(UTC)
Offline CommieDog  
#8 Posted : Thursday, August 28, 2014 11:38:21 PM(UTC)
CommieDog
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 8/3/2003(UTC)
Posts: 3,086
United States

Thanks: 445 times
Was thanked: 186 time(s) in 130 post(s)
Originally Posted by: Rrtaya_Tsamsiyu Go to Quoted Post
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.

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
thanks 2 users thanked CommieDog for this useful post.
Rrtaya_tsamsiyu on 8/29/2014(UTC), Gameanater on 8/29/2014(UTC)
Offline Rrtaya_tsamsiyu  
#9 Posted : Friday, August 29, 2014 3:29:34 AM(UTC)
Rrtaya_tsamsiyu
Colonel
Joined: 5/8/2012(UTC)
Posts: 615
United States
Location: USA, Tennessee, Home, Livingroom, couch.

Thanks: 102 times
Was thanked: 194 time(s) in 139 post(s)
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.

Edited by user Friday, August 29, 2014 3:31:13 AM(UTC)  | Reason: Not specified

one soul at a time
Offline UTD^Force  
#10 Posted : Friday, August 29, 2014 10:12:09 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
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:
File Attachment(s):
Help,.png (1,435kb) downloaded 64 time(s).
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline klingondragon  
#11 Posted : Friday, August 29, 2014 10:17:37 AM(UTC)
klingondragon
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 4/10/2014(UTC)
Posts: 1,591
United Kingdom
Location: Laniakea; Virgo Supercluster; Local Sheet; Local Group; Milky Way Galaxy; Orion–Cygnus Arm; Gould Belt; Local Bubble; Local Interstellar Cloud; Sol System; Sol III; Europe; United Kingdom of Great Britain and Northen Ireland; Great Britain; England; Essex

Thanks: 16 times
Was thanked: 247 time(s) in 217 post(s)
You have to change the image used in commandbutton.ini
thanks 1 user thanked klingondragon for this useful post.
UTD^Force on 8/29/2014(UTC)
Offline UTD^Force  
#12 Posted : Friday, August 29, 2014 10:50:38 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Thanks, I'll fix when I get back home.
And, nice 89 posts for you to become a colonel.

Edited by user Friday, August 29, 2014 10:53:22 AM(UTC)  | Reason: Not specified

Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline Gameanater  
#13 Posted : Friday, August 29, 2014 6:27:47 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Originally Posted by: UTD^Force Go to Quoted Post
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:


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


Google Chrome wrote:
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

Edited by user Friday, August 29, 2014 6:28:26 PM(UTC)  | Reason: Not specified

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline Gameanater  
#14 Posted : Friday, August 29, 2014 6:35:24 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
@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...

Edited by user Friday, August 29, 2014 6:39:06 PM(UTC)  | Reason: Not specified

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline Gameanater  
#15 Posted : Friday, August 29, 2014 6:38:16 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
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.
Offline UTD^Force  
#16 Posted : Friday, August 29, 2014 7:43:14 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Originally Posted by: Gameanater Go to Quoted Post
Okay, I should rephrase that.

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


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

Edited by user Friday, August 29, 2014 7:56:22 PM(UTC)  | Reason: Not specified

Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
thanks 2 users thanked UTD^Force for this useful post.
CommieDog on 8/29/2014(UTC), Gameanater on 8/30/2014(UTC)
Offline Rrtaya_tsamsiyu  
#17 Posted : Friday, August 29, 2014 10:41:09 PM(UTC)
Rrtaya_tsamsiyu
Colonel
Joined: 5/8/2012(UTC)
Posts: 615
United States
Location: USA, Tennessee, Home, Livingroom, couch.

Thanks: 102 times
Was thanked: 194 time(s) in 139 post(s)
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
thanks 2 users thanked Rrtaya_tsamsiyu for this useful post.
UTD^Force on 8/30/2014(UTC), Gameanater on 8/30/2014(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.