Staredit Network

Staredit Network -> Modding Assistance -> Wireframe Worries
Report, edit, etc...Posted by Voyager7456(MM) on 2005-08-23 at 20:10:47
Meh.

OK, so here's my problem. I've created a custom wireframe for a unit. HOWEVER, when I put it into SC, it doesn't display damaged health (like terran units do, turning certain parts of a wireframe yellow/red). It displays shield damage fine though.

Why is this happening? ermm.gif
Report, edit, etc...Posted by TERRAINFIGHTER on 2005-08-23 at 20:18:56
I think you have to match the wireframes color PERFECTLY or else it wont change at all crazy.gif
Report, edit, etc...Posted by Voyager7456(MM) on 2005-08-23 at 20:36:59
That's the strange part, I used the SC color pallete to do it! disgust.gif
Report, edit, etc...Posted by TERRAINFIGHTER on 2005-08-23 at 20:43:06
sounds to me like you need to update it if you dont have the correct version cause they mightve slightly changed the color during one of the patches
Report, edit, etc...Posted by Voyager7456(MM) on 2005-08-23 at 20:47:09
I've looked over patch_rt.mpq, and I can see nothing related to the palette... Does anyone know what it's called, I wanna make sure I didn't miss anything. pinch.gif
Report, edit, etc...Posted by BSTRhino on 2005-08-23 at 21:24:29
Hey Voyager, I had the exact same problem with you once upon a time. It's not very obvious how to fix it, but I worked it out in the end. I wrote about it in the Converting to and from GRP graphics tutorial, but that's real long and most of it won't be relevant to you. Here's the relevant part:

QUOTE(BSTRhino)
The wireframe HP colors are very tricky. If you look hard, you'll notice that each of the four colors at the special indexes #208-211 appear three times in other places on the color palette, most noticeably at 216, 217, 218 and 219. What you will find is, in a lot of graphics programs, if you choose color #208 on the palette and start drawing your wireframe with it, then use your Info palette or something similar, you'll find the actual color that gets drawn on the image is #135. This is because, in RetroGRP's palette, color #208 has the RGB values of 252, 252, 56. The exact same RGB values can be found at indexes 216 and 135. To deal with the situation of the same color appearing multiple times in the same color palette, most graphic design programs just take the first index that matches the color you're drawing with, which happens to be #135. In this palette, the color would be right, but the index would be wrong, and so you'd most probably find your wireframe would not change with your unit's health.

One way to fix this is to edit the color table and change the colors at #208-211 to unique colors, or the #216-219 colors if that is what you're using. To change a color in the color table in Photoshop, open the color table by going to Image > Mode > Color Table and double click on a color to change it. Remember, the color palette you use is not saved to the GRP file, so even if it looks funny in your editor, it will give you the correct color indexes and therefore the correct colors when you play StarCraft.


The main idea is Photoshop or other programs will paint the right colour but the wrong colour index, and you need to get the correct colour indexes, the colours aren't important because they're not saved into the GRP. So that's what's causing the problem. If you use that eyedropper tool you can see that when you draw with the colour at #208 you'll get #135 on the actual drawing. I solved this by changing the colour at #208 and the other wireframe indexes. I hope that works for you too.

Does that help you?
Report, edit, etc...Posted by Voyager7456(MM) on 2005-08-24 at 10:28:00
As always, BSTRhino, you are correct. That solved my problems.

Thanks! biggrin.gif
Report, edit, etc...Posted by Staredit.Net Essence on 2005-08-24 at 11:47:38
jerry.gif
Report, edit, etc...Posted by TerminaterCE on 2005-09-05 at 21:31:42
... The Tutorial Mentions Photoshop.

What Do I Use If I Dont Have Photoshop? disgust.gif disgust.gif disgust.gif
Report, edit, etc...Posted by Voyager7456(MM) on 2005-09-05 at 21:40:55
I don't think you NEED Photoshop, just something that can load custom palettes, I'd guess, and edit the colors in the palette.

(I used Paintshop Pro, because it came with my computer).
Report, edit, etc...Posted by SacredElf on 2005-09-05 at 21:41:47
well, then ur screwed if u dont want to waste that much time doing it on paint happy.gif
Report, edit, etc...Posted by TerminaterCE on 2005-09-05 at 22:09:11
Can Paint Load Custom Pallets?

Yes Yes I Know Stupid Question. tongue.gif
Report, edit, etc...Posted by BSTRhino on 2005-09-05 at 22:10:29
Yeah, you don't need Photoshop, I tried to describe the concepts as well as I could without being Photoshop specific. The only problem is, if you don't have Photoshop, you need to work out how to apply the concepts to your graphics editing package.

Edit: I know that in paint you can edit custom palettes, but I've never seen it edit a 256-color palette.
Report, edit, etc...Posted by TerminaterCE on 2005-09-05 at 22:10:41
Can Paint Load Custom Pallets?

Yes Yes I Know Stupid Question. tongue.gif
Report, edit, etc...Posted by StealthyDeath on 2005-09-06 at 16:04:39
It can to a certain degree, but like BSTRhino said, it cannot edit a 256 color palette which is what Starcraft uses. Basically, no.
Report, edit, etc...Posted by TerminaterCE on 2005-09-06 at 19:56:58
Damn! disgust.gif
Report, edit, etc...Posted by SuperToast on 2005-09-07 at 21:29:06
Get gimp, I'm pretty sure you can do it somehow on there.
Report, edit, etc...Posted by TerminaterCE on 2005-09-07 at 21:47:39
Gimp? confused.gif
Report, edit, etc...Posted by TERRAINFIGHTER on 2005-09-07 at 21:50:27
I think "Gimp" is a 3d moddeling tool that creates 3d models and can even create animations for attacking moving or any other animation you feel like adding
Report, edit, etc...Posted by SuperToast on 2005-09-08 at 01:09:32
GIMP - The Free GNU Image Manipulation Program - which means: free photoshop

Gimp can do most of the things photoshop can do, and some other ones it can't. It's a little odd to work with though, or at least I think it is.
Report, edit, etc...Posted by BroodKiller on 2005-09-08 at 10:11:13
QUOTE(BSTRhino @ Sep 6 2005, 04:10 AM)
Edit: I know that in paint you can edit custom palettes, but I've never seen it edit a 256-color palette.
[right][snapback]306369[/snapback][/right]


Remember the old PalEdit? Was it of any use actually? Never had to tamper with it....
Report, edit, etc...Posted by Voyager7456(MM) on 2005-09-08 at 18:00:12
I used PalEdit for editing the palettes to get it to work properly. As long as you have PalEdit + an editor that can load 256 color pallettes it should work.
Next Page (1)