Mario Kart Forum

Go Back   Mario Kart Wii , Mario Kart 7 & Mario Kart Wii U Forum > Mario Kart Wii > Mario Kart Workshop


Reply
 
Thread Tools Display Modes
Old 09-12-2011   #1 (permalink)
Yay!
 
Ultimate Chimera's Avatar
Default Posteffect.blight... What is it?

You may have seen this file in the posteffect folder in an szs file. What is it?

It controls lighting effects (hence the 'blight' filetype).

Header is:
0x00 (4) = "BGHT" magic
0x04 (4) = File size (always 05 A8)
0x08 (4) = Unknown value (seen as 02 00 00 00 in Bowser's Castle)
0x0C (4) = Unknown value (always 00 00 00 00?)
0x10 (2*2) = Unknown value (both seen as 00 10 in Bowser's Castle)
0x14 (4) = Unknown value (always 00 00 00 FF?)
0x18 (F) = Padding

However, one thing to note is that although 16 lights are stored in this file, only 8 can be referenced by the KCL (IDs 00 to 07). The next 8 have unknown uses.

Here is one Light Object.



The first object starts at 0x28.

These addresses are relative to the start of the object.
0x00 (4) = The magic, LOBJ
0x04 (4) = Size of each one (always 00 00 00 50)
0x08 (8, or 2*4?) = Unknown value (always 02 00 00 00 00 00 00 00)
0x10 (4) = Unknown value (00 00 02 01 if used, 00 00 00 01 if not)
0x14 (2) = Light ID, also references a color at the end of the file for ambient light
0x16 (2) = Unknown value (always 06 41)
0x18 (4*3) = Vector, angle of light
0x24 (4) = Unknown value (always 00 00 00 00)
0x28 (4) = Unknown value (always 00 00 00 00)
0x2C (4) = Unknown value (always 00 00 00 00, these three might be a vector?)
0x30 (4) = Float Unknown value (always 3F 80 00 00)
0x34 (4) = RGBA Light Color (RR GG BB AA)
0x38 (4) = Unknown Value (always 00 00 00 FF)
0x3C (4) = Float Unknown Value (Part of another vector? Always 42 B4 00 00, 90 in float point)
0x40 (4) = Float Unknown Value (Always 3F 00 00 00?)
0x44 (4) = Float Unknown Value (Always 3F 00 00 00?)
0x48 (8) = Padding? (always 00 00 00 00 00 00 00 00, unless it is the last light. In that case, it's 00 00 00 FF 00 00 00 00)
0x50 = End of object, start of next

At 0x0528 in the file, a list of colors starts, separated by four 00's. These are the ambient colors used by each light. They're in order.

0x00 (4) = RGBA Ambient Light Color
0x04 (4) = Padding
0x08 = start of next color

Just like light objects, there are 16 ambient colors. All unused ones are 64 64 64 FF (a neutral gray).

Last edited by Ultimate Chimera; 09-13-2011 at 11:15 AM. Reason: Posted on wiki anyway
Ultimate Chimera is offline   Reply With Quote
Old 09-12-2011   #2 (permalink)
Stuff
 
SR*Chim's Avatar
Default

Nice :3
SR*Chim is offline   Reply With Quote
Old 09-13-2011   #3 (permalink)
I'm playing again mk just for summer :d
 
Eηrγx's Avatar
Default

So now it'll be possible to edit peoperly this posteffect? It's this, or I missed the point of the thread
Eηrγx is offline   Reply With Quote
Old 09-13-2011   #4 (permalink)
Yay!
 
Ultimate Chimera's Avatar
Default

QUOTE:
Originally Posted by EnryxTMN View Post
So now it'll be possible to edit peoperly this posteffect? It's this, or I missed the point of the thread
Colors and light angles, as of now... So yeah, that's about right.
Ultimate Chimera is offline   Reply With Quote
Old 07-29-2012   #5 (permalink)
Current BKT holder of Pipe underworld
Default

so, out of curiosity, in Common.szs there is the texture for the bikes flame for when you trick and get the boost or manuel boost ect... how do i change the flames colour? i have a feeling its in default.blight
fergal5963 is offline   Reply With Quote
Old 07-30-2012   #6 (permalink)
Yay!
 
Ultimate Chimera's Avatar
Default

It's not in the blight file, it's inside RK_Race.breff.
Ultimate Chimera is offline   Reply With Quote
Old 07-30-2012   #7 (permalink)
Current BKT holder of Pipe underworld
Default

ok that is a lot of hex lol. which lines would i find the color's hex code for the mini turbo spark and the flame that appears when shrooming, using a mini turbo, boost pad ect
fergal5963 is offline   Reply With Quote
Old 07-31-2012   #8 (permalink)
Lee Sin is blind.
 
MrSkopelos27's Avatar
Default

QUOTE:
Originally Posted by fergal5963 View Post
ok that is a lot of hex lol. which lines would i find the color's hex code for the mini turbo spark and the flame that appears when shrooming, using a mini turbo, boost pad ect
You might want to compare the original file with DarkyBenji's. (I think he has edited it)
MrSkopelos27 is offline   Reply With Quote
Old 07-31-2012   #9 (permalink)
Yay!
 
Ultimate Chimera's Avatar
Default

Extract them using Wiimm's tools, then compare with DarkyBenji's. It's easier, but there are many files for a single miniturbo color.
Ultimate Chimera is offline   Reply With Quote
Old 08-01-2012   #10 (permalink)
Popeska
 
DryBonesKart's Avatar
Default

I thought blight was a disease
DryBonesKart is offline   Reply With Quote
Reply




Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Texture Tutorial (plus posteffect changes) Jσrdαη™ Mario Kart Workshop 22 04-05-2012 06:45 PM


All times are GMT -4. The time now is 06:24 AM


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 PL2