This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [HELP]Editing water in LightIntBand.dbc  (Read 1642 times)

spik96

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 275
    • View Profile
[HELP]Editing water in LightIntBand.dbc
« on: February 15, 2015, 12:55:47 pm »
Hi !

I'm trying to edit the OceanWater value near Ratchet in the Dark Nights patch you can find here viewtopic.php?f=59&t=7488&start=15
The color is greenish and I would like to fix it back to its original value (blue).

With LightMapper I found the ID : 205
With http://www.wowdev.wiki/index.php?title=Light.dbc , I deduced the skyParam ID was 214 (Which makes sense as it's the same skyParam than 206 and 207 which are areas with the same OceanWater value on LightMapper)

To get the final ID I used the formula found here : http://www.wowdev.wiki/index.php ... ntBand.dbc
So it's 214*18-17=3835.
The lines are 3850 and 3851.
I changed the colors back to their original value (columns 18&19 as the primary index is 0).
I think I changed the wrong cells cause the color is still the same.

Where am I wrong ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Github ]https://github.com/Koward[/url]    Skype : koward723 =)

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: [HELP]Editing water in LightIntBand.dbc
« Reply #1 on: February 15, 2015, 02:20:17 pm »
Hey spik. First and foremost, the darker nights patch doesn't change the water's surface color. It's the original water that reacts so poorly to darker light settings. I never got around to adding this to the patch because, well I sorta forgot.

As for your issue, I believe you're using the wrong ID. The water values in the Sky & Fog settings are fake. Either way you're not counting properly. Should have been a range from 3835-3850 (only 16 rows). Anyway, the real water color is the next column over, the one  named Water Settings on the dev wiki. So take 215*18-17, and you get 3853.

Your range in LightIntBand.dbc is therefore 3853-3868. Rows 3867 and 3868 are going to be the settings you're looking for, if my memory serves. Take the original values in column 19 and scale them to a darker color. I used this: http://www.w3schools.com/tags/ref_colormixer.asp when making the original patch, it works great :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

spik96

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 275
    • View Profile
Re: [HELP]Editing water in LightIntBand.dbc
« Reply #2 on: February 15, 2015, 02:47:42 pm »
Thanks for your answer !

Why would my ID be wrong ?
I found the original one (205) with Lightmapper ( http://i.imgur.com/azsdkBH.jpg )
You can also see on the screenshot the color I'm talking about.

Why 215 and not 214 ?
« Last Edit: February 15, 2015, 02:50:25 pm by Admin »
Github ]https://github.com/Koward[/url]    Skype : koward723 =)

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: [HELP]Editing water in LightIntBand.dbc
« Reply #3 on: February 15, 2015, 02:49:00 pm »
214 is the ID for the sky and fog settings. 215 is the ID for the water settings.

Sorry if I was unclear :P
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

spik96

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 275
    • View Profile
Re: [HELP]Editing water in LightIntBand.dbc
« Reply #4 on: February 15, 2015, 03:07:44 pm »
Thanks ! The values are the same. That's really strange.

In 3860 the value is different in #18. I'm checking if it's the good one..
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Github ]https://github.com/Koward[/url]    Skype : koward723 =)

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: [HELP]Editing water in LightIntBand.dbc
« Reply #5 on: February 15, 2015, 03:10:53 pm »
Oh that's right there are 18 rows, duh xD For some reason I was really thinking 16. :P

Okay yeah so it would be 3868 and 3869. Rows 16 and 17 out of 18.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

spik96

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 275
    • View Profile
Re: [HELP]Editing water in LightIntBand.dbc
« Reply #6 on: February 15, 2015, 06:03:28 pm »
The values are still the same for these rows.

Here I made a comparison of the rows in the area. The rows with differents values are marked in green.
I know it's the good column because the others have absolutely no changes.

http://i.imgur.com/Cp0DeHM.png

I forgot the 3878.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Github ]https://github.com/Koward[/url]    Skype : koward723 =)

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: [HELP]Editing water in LightIntBand.dbc
« Reply #7 on: February 15, 2015, 09:15:47 pm »
Looks like that might just be a difference between Cata and WotLK. I'm fairly sure I didn't touch the water's surface.

Either way you should be able to tweak it from there.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »