Wrong Magic Graphics

Mu online season 21 - grand opening

konnichiwa

LOMCN VIP
VIP
Mar 26, 2003
261
0
132
Magic displayed incorrectly (black region around fire), any idea how i can fix this? the WIL has no trasparancy... so i'm guessing those colors close to black must be removed, dont know, will somone with exp in WILs or mir graphics give me any clues?

cheers,
Konni

wrongmagic.gif
 

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Hmm your right, looking at the wils using a few editors that black bit is def there, manybe it Masks anything Black as well as that lovely pink (transapernt) on the magics??

Is it not worth exporting, re-coulouring the images and making a new wil for your client, yer a bit of work but cannot take that long really.
 

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
ask youknowwho about that, he had the same problem with his files, all you have to do is make about 4 shades transparent.
 

YouKnowWho

Dedicated Member
Dedicated Member
Dec 12, 2003
60
0
32
Yes, I had this exact problem.

Within the mir2 folder, there was a file called npal.idx.

This file contains colour maps for several different things, i.e. making things red, green, blue etc..

It also contains a colour map for removing the black from around magic.

Basically you read these colour maps in, then when you want to draw magic, you take the destination, and source pixel add them together, the result you then get, has to be looked up in the colour map, then the result you get from that you use as your destination pixel.

The above, may not be 100% correct, as its been ages since I had to write that function, but it’s pretty easy to figure out, once you know you have to use colour maps/lookup tables.
 

konnichiwa

LOMCN VIP
VIP
Mar 26, 2003
261
0
132
right, thanks i got it working now.

YKW, there was no mapping file unfortunatly, i so i had to figuire out an algorithem to get my alpha values (which i calculated before hand) and then render them with my alpha blending i'd done before (which is why they are the wrong size, i'm missing the odd lines for somereason, i'll do that later)

anyway, i'll put the algorithem here incase anyone needs it, its very simple ^^
ALPHABYTE = (byte)(255 - (((256 - REDBYTE) + (256 - GREENBYTE) + (256 - BLUEBYTE)) / 3));

i wont put my alpha blending one here as you can get that anywhere.

cheers,
konni

rightmagic.gif
 

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Not sure if this is Applicable in New interface also but def on Old one you can click DC to change it to MC + AC to change to AMC...

Konni - are you reading a CMLIST as per MIR3 client or have you filled in your own Values? I have a CMLIST with all the right values in if your using such a thing....
 

konnichiwa

LOMCN VIP
VIP
Mar 26, 2003
261
0
132
Demonic said:
Not sure if this is Applicable in New interface also but def on Old one you can click DC to change it to MC + AC to change to AMC...

Konni - are you reading a CMLIST as per MIR3 client or have you filled in your own Values? I have a CMLIST with all the right values in if your using such a thing....


i have no idea... the only thing i've used from the Mir3 Client is the Data, Map and Sound files, havent bothered with anything else, would you care to explain CMLIST?

Yeah i noticed on the older interface you can change the stat display, can you do it on the new one too? if so i'll stuff it in.
 

konnichiwa

LOMCN VIP
VIP
Mar 26, 2003
261
0
132
MiloFoxburr said:
oh and CL on the interface is class name not the character name

thats kinda stupid... you can only have 1 class :s dont think you'd forget, oh well, wemade.... *shakes head*
 

Miles

LOMCN VIP
VIP
Mar 27, 2003
1,195
0
213
konnichiwa said:
thats kinda stupid... you can only have 1 class :s dont think you'd forget, oh well, wemade.... *shakes head*

Maybe you could have sub classes and put the name there? And the last screenshot looks pretty good ^^.

/Miles