Need help: When air unit slected I DON'T want all the tiles highlighted as in Vanilla

Dearmad

Dead weight
Joined
Aug 18, 2001
Messages
1,527
I'm looking for a way to either "unclutter" that ugly square graphic that highlights EVERY saquare when you select an air unit, or do away with it entirely. Anyone help out with this one? I've spent a day or so trying to fix this one and am not good enough to figure this out... :cry:
 
Dearmad said:
Oh BTW I've unpacked the art files and can't find anything that looks like that square outlined shape used with air units. So, anyone else seen it? Or is it coded in somewhere else?

I'm not sure about warlords, but here's what I know about Vanilla, hopefully it's similar.

The code that controls when and when not to show the "max range" plot colors is located in the SDK. CvGame::updateColoredPlots. It checks if the selected unit is of the air variety, checks the maximum range the air units in the selection group can fly, and lays down the textures onto the plots.

However, you can probably erase the part of the texture that makes the plots colored. In vanilla, this was found in art\terrain\plottextures\plottexture.dds. There are multiple plot textures there, just find the one that looks like the targets and alpha it out.

Edit: I'm pretty sure it's the one under the diagnal 8.

Hope that helps!
 
Dearmad said:
Very funny. I mean it is ALWAYS showing up no matter what I do to it... I'll try again...

Make sure the file you're editting is in the right spot. It's easy to put the file in the wrong directory when you have to create the structure yourself. That's normally my common problem with those files.
 
I GOT IT WORKING! Thanks man... now I have a nice, SMALL, soft alpha'd circle for air unit ranges. Looks NICE! IMHO.
 

Attachments

  • Image2.jpg
    Image2.jpg
    51.7 KB · Views: 76
Dearmad said:
I GOT IT WORKING! Thanks man... now I have a nice, SMALL, soft alpha'd circle for air unit ranges. Looks NICE! IMHO.

Looks nice. Why not post it so others can use it too?

Roger Bacon
 
Back
Top Bottom