Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   .replacecolor(int,int) (https://forums.graalonline.com/forums/showthread.php?t=85486)

DustyPorViva 05-07-2009 02:00 PM

.replacecolor(int,int)
 
obj.replacecolor(#000000,#FFFFFF)
Applies to images and gani's alike. Replaces any instance of the first color(hex value) with the second in the object.

Also, a gani command:

REPLACECOLOR int #000000 #FFFFFF

While on the topic of gani commands, the ability to do something like...
COLOREFFECT {0,1,2,3} 1 1 1 .5
to apply the effect to all sprites in the array. This should be applied to all gani commands.

Crow 05-07-2009 02:20 PM

Agree with everything you said. This would be an awesome addition, especially when it comes to user-based customization. Users love to customize their stuff.

[email protected] 05-07-2009 05:58 PM

I'd also like support for ganis to support these
HTML Code:

REPLACECOLOR player.attr[#]

Admins 05-07-2009 09:09 PM

It's mainly for the bodies?

DustyPorViva 05-07-2009 09:49 PM

Quote:

Originally Posted by Stefan (Post 1490085)
It's mainly for the bodies?

Well it'd also be cool to be able to change the color of simple hairs and such. I know BI uses an extensive body system and each item(hair,skin,coat,belt) and such has multiple color variations which this would be useful for.

cbk1994 05-07-2009 10:04 PM

Awesome idea.

xXziroXx 05-08-2009 02:04 AM

I completely agree with this suggestion, would be extremely useful.

Twinny 05-08-2009 02:22 AM

I requested this ages ago....didn't even get an official response :p

Inverness 05-08-2009 03:45 AM

/signed

Stryke 05-10-2009 12:20 AM

Excellent suggestion.

[email protected] 06-23-2009 07:09 PM

Hell yeah, please. Thanks

zokemon 06-26-2009 12:14 AM

Haha, I was thinking of making a suggestion like this recently too. Not like it hasn't been thought of million times before though.

Still, it should be done!

I was thinking more of a replacepallete function or so (replaces a certian palette index with another color). In terms of efficiency, I think this might be better. It would only worked for indexed images though.

DustyPorViva 06-26-2009 12:16 AM

Quote:

Originally Posted by zokemon (Post 1501758)
Haha, I was thinking of making a suggestion like this recently too. Not like it hasn't been thought of million times before though.

Still, it should be done!

I was thinking more of a replacepallete function or so (replaces a certian palette index with another color). In terms of efficiency, I think this might be better. It would only worked for indexed images though.

Problem is working with images when it comes in terms of gani's tends to be a pain in the ass. I thought it'd be easier to just replace any instance of the color in the gani itself(or image) rather than fiddling around with images in the gani and such.

Inverness 08-31-2009 04:29 AM

I'd like to know if this feature is in the next version of Graal.

Rufus 10-26-2009 11:05 PM

Quote:

Originally Posted by Inverness (Post 1520005)
I'd like to know if this feature is in the next version of Graal.

Yeah, I kind of need it so I'd like to know too.

Crono 10-26-2009 11:50 PM

That would be nice. :]

Inverness 10-27-2009 03:32 AM

Customizable bomies ftw!

Admins 10-27-2009 02:37 PM

It's not really possible to add that anytime soon. It would be easier if you separate the images for each body part and use the normal color-sprite commands.

DustyPorViva 10-27-2009 06:10 PM

Quote:

Originally Posted by Stefan (Post 1534456)
It's not really possible to add that anytime soon. It would be easier if you separate the images for each body part and use the normal color-sprite commands.

Color sprite commands only allow using ATTR's, though, and they run out very fast, especially since GANI code doesn't even allow array's or anything. We have to have one color in each ATTR, for each body part.

fowlplay4 10-27-2009 06:28 PM

I wrote this script to output an avatar image, is there anyway there could be functionality to adjust the body image colors when they are drawn? Currently it would output them with the default colors on the image.

http://forums.graalonline.com/forums...50&postcount=4

Also..

GraalControl.saveimage("urscreenlulz.png");

would be cool too.

Rufus 10-27-2009 07:39 PM

Quote:

Originally Posted by Stefan (Post 1534456)
It's not really possible to add that anytime soon. It would be easier if you separate the images for each body part and use the normal color-sprite commands.

Quote:

Originally Posted by DustyPorViva (Post 1534483)
Color sprite commands only allow using ATTR's, though, and they run out very fast, especially since GANI code doesn't even allow array's or anything. We have to have one color in each ATTR, for each body part.

Yeah, Dusty pretty much explained the reason why this was suggested. We're using up most ATTRs already through different parts, adding colors to them is not possible right now through script and it needs to be else we can't do it. Well we can use images for every single color and recolor every single image to every single shade, but there is no one in the world who is going to sit and recolor masses of images, and it's just more flooding of files on players' hard drives. Unless you have some other idea, it seems we're pretty screwed if this isn't added in some way.

Admins 10-27-2009 08:31 PM

I thought more of using COLOREFFECT or findimg(sprite).red/green/blue/alpha in the gani script.

DustyPorViva 10-27-2009 08:32 PM

Quote:

Originally Posted by Stefan (Post 1534506)
I thought more of using COLOREFFECT or findimg(sprite).red/green/blue/alpha in the gani script.

Well like I said, you can only use ATTR's with COLOREFFECT... and as far as I know, findimg in the gani script is pretty bugged.


All times are GMT +2. The time now is 05:12 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.