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


Dearmad
Jul 28, 2006, 11:18 AM
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
Jul 28, 2006, 01:11 PM
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?

Gerikes
Jul 28, 2006, 01:16 PM
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
Jul 28, 2006, 01:24 PM
There it is! You're a bloody genius! Thank you... now to see if I can change it...

THANK YOU!!!!!!!!!

Dearmad
Jul 28, 2006, 01:46 PM
Well dang... I changed it everywhere and it's not showing up. I wonder what I'm doing wrong....

Gerikes
Jul 28, 2006, 01:56 PM
Well dang... I changed it everywhere and it's not showing up. I wonder what I'm doing wrong....

Isn't "not showing up" the whole idea? : O)

Dearmad
Jul 28, 2006, 02:06 PM
Very funny. I mean it is ALWAYS showing up no matter what I do to it... I'll try again...

Gerikes
Jul 28, 2006, 02:35 PM
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.

Dearmad
Jul 28, 2006, 03:07 PM
I GOT IT WORKING! Thanks man... now I have a nice, SMALL, soft alpha'd circle for air unit ranges. Looks NICE! IMHO.

RogerBacon
Jul 29, 2006, 10:57 AM
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

Dearmad
Jul 29, 2006, 11:41 AM
I'll post it as a mod component for others. It'll also be in the next release of my my own more complete mod too:

http://forums.civfanatics.com/showthread.php?t=179346

Dearmad
Jul 29, 2006, 11:50 AM
meantime here's the file:

http://forums.civfanatics.com/downloads.php?do=file&id=515

Gerikes
Jul 29, 2006, 03:32 PM
I think that the only problem I'd have with it is that I can't tell if the forests are bombable or not at first glance. But, that's just my preference.