Soldak Entertainment Forums

Soldak Entertainment Forums (http://www.soldak.com/forums/index.php)
-   Din's Curse modding (http://www.soldak.com/forums/forumdisplay.php?f=24)
-   -   Changing NPC Outline Colour (http://www.soldak.com/forums/showthread.php?t=4331)

ebarstad 10-16-2011 03:19 AM

Changing NPC Outline Colour
 
I was trying out Heron's UI mod and one of the things I really like about it is that it outlines NPCs in Black (instead of blue, red, cyan, white, etc.) when you mouse over them. However, he did that by actually editing the white.tga texture, which affected other elements of the UI.

Is there a way to make all the outlines black without actually editing the white.tga file? Shaders/system.sdr has code related to outlines, but I'm not sure if that's what I want and, if so, how I'd override that file.

Any help would be much appreciated.

ebarstad 10-17-2011 01:06 AM

Ok, so that IS the file I want to override -- I edited it directly and got the black outlines I wanted. Now, how do I create a mod that overrides that file so that I don't have to change the file directly? I tried creating a mod_black_outlines.zip file which included a Shaders folder and a file called mod_black_outlines.sdr. In the file I put:

Code:

OutlineBlack overrides OutlineCyan
{
        cull Front
        deformVerts Offset 1.0
        highlightsSurface 1

        {
                texture Textures/white.tga
                colorGen OriginAndConstant Black
        }
}

OutlineBlack overrides OutlineGreen
{
        cull Front
        deformVerts Offset 1.0
        highlightsSurface 1

        {
                texture Textures/white.tga
                colorGen OriginAndConstant Black
        }
}

OutlineBlack overrides OutlineWhite
{
        cull Front
        deformVerts Offset 1.0
        highlightsSurface 1

        {
                texture Textures/white.tga
                colorGen OriginAndConstant Black
        }
}

OutlineBlack overrides OutlineOrange
{
        cull Front
        deformVerts Offset 1.0
        highlightsSurface 1

        {
                texture Textures/white.tga
                colorGen OriginAndConstant Black
        }
}

OutlineBlack overrides OutlineBlue
{
        cull Front
        deformVerts Offset 1.0
        highlightsSurface 1

        {
                texture Textures/white.tga
                colorGen OriginAndConstant Black
        }
}

OutlineBlack overrides OutlineRed
{
        cull Front
        deformVerts Offset 1.0
        highlightsSurface 1

        {
                texture Textures/white.tga
                colorGen OriginAndConstant Black
        }
}

However, this didn't work. Basically, I just copied this text from system.sdr and added "OutlineBlack overrides" to each function. Any tips would be welcome.

Also, is there a way to make it so the outlines are always on, not just when you mouse over an NPC?

Shadow 10-17-2011 09:33 AM

Right now I think you would have to replace the entire file and the overrides stuff only works with database stuff.

You can't directly add an outline to everyone. You could probably do it with some convoluted way with a status effect that was on everyone that had an effect that used the outline shader.

ebarstad 10-17-2011 10:23 AM

Sorry for being dense, but are you saying I'd have to overwrite the file in the assets003.zip or can I still change the outline via a mod and I'm just not doing it correctly?

Bluddy 10-17-2011 11:15 AM

Quote:

Originally Posted by ebarstad (Post 27299)
Sorry for being dense, but are you saying I'd have to overwrite the file in the assets003.zip or can I still change the outline via a mod and I'm just not doing it correctly?

You never want to change anything in assets003.zip. Just create another zip file with the same directory structure as assets003.zip and put the single, modified file there.

Shadow 10-17-2011 12:12 PM

Yeah, what Bluddy said. When there are multiple copies of a file with the same name, the game will first use the one that is a normal file (not in a zip) and then it will use which ever one is in the zip file highest alphabetically (z before a).

ebarstad 10-17-2011 12:55 PM

Thanks Bluddy and Shadow. One of the problems I was having was that my zip looked like this:

mod.zip / mod folder / Shaders / system.sdr

Once I realized that I had to remove the mod folder, the modified file worked just fine.

Hannes-Erich 11-16-2011 05:25 PM

Quote:

Originally Posted by ebarstad (Post 27306)
Thanks Bluddy and Shadow. One of the problems I was having was that my zip looked like this:

mod.zip / mod folder / Shaders / system.sdr

Once I realized that I had to remove the mod folder, the modified file worked just fine.

For the less-savvy among us, could you (or someone, anyone) make a mod file available for download that we can drop in our assets folder?

I just bought DC yesterday and am quite enjoying it, but I would prefer slightly less conspicuous outlines around creatures I'm fighting. :)

ebarstad 11-16-2011 05:32 PM

1 Attachment(s)
Sure, here it is. Goes here (Win 7):

C:\Program Files (x86)\Din's Curse\Assets

Hannes-Erich 11-16-2011 05:43 PM

Quote:

Originally Posted by ebarstad (Post 27868)
Sure, here it is. Goes here (Win 7):

C:\Program Files (x86)\Din's Curse\Assets

Thanks, that was fast! :D

Just hopped in-game and gave it a whirl. WOW! I wasn't expecting it to make that much difference, but it makes a WORLD of difference. The black outlines give the NPCs and creatures an impressively illustrated, faux cell-shaded look. It looks great. Combat feels much more immersive now that I have a more detailed look at what I'm fighting. (Found myself zooming in for a closer look, heh.) Thanks again!


All times are GMT -4. The time now is 11:25 AM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2007 - 2019 Soldak Entertainment, Inc.