Team Color Shift Not Working
Moderator: Forum Moderators
Forum rules
Before posting critique in this forum, you must read the following thread:
Before posting critique in this forum, you must read the following thread:
Team Color Shift Not Working
Hi,
I am doing a bit of an update to a classic Era of Magic sprite, and I was wondering if anyone could help me.
My issue: for whatever reason, when i plug this unit into the game, it doesnt shift the color on the magenta areas, but instead uses the original red color from the orginal sprite.
Can anyone test this sprite in their own game, or perhaps give me an idea on how to fix this issue?
This is the sprite:
[/super]
Thank you!
I am doing a bit of an update to a classic Era of Magic sprite, and I was wondering if anyone could help me.
My issue: for whatever reason, when i plug this unit into the game, it doesnt shift the color on the magenta areas, but instead uses the original red color from the orginal sprite.
Can anyone test this sprite in their own game, or perhaps give me an idea on how to fix this issue?
This is the sprite:
[/super]
Thank you!
Re: Team Color Shift Not Working
Some of your colors (I don't know which ones) aren't the right shade of magenta That's the only problem I found with it. Perhaps you didn't include to the unit file?
Also, what did you mean by, the original red color from the original sprite? I thought the original sprite has proper magenta tc? I'm a bit confused by this, but I hope this solves your problem regardless.
Code: Select all
{MAGENTA_IS_THE_TEAM_COLOR}
Also, what did you mean by, the original red color from the original sprite? I thought the original sprite has proper magenta tc? I'm a bit confused by this, but I hope this solves your problem regardless.
One foot in my mouth, and one in the grave; that's the way I like it, and that's the way it'll stay.
[shameless_advertising]
Also the author of Elvish Incursion, a short little prologue.
[/shameless_advertising]
[shameless_advertising]
Also the author of Elvish Incursion, a short little prologue.
[/shameless_advertising]
Re: Team Color Shift Not Working
Thanks for your answer.
The color shift macro is called in the appropriate place in the unit file.
What I mean by the red coloring from the original file is that I see this:
in its entirety, instead of an even partially color shifted sprite.
I don't have this original png anywhere in the game data files thought, so I have no idea why or how Wesnoth is using it.
Could you perhaps test the color-shifted sprite in your own verison of the game to let me know if it's working for you or not? Perhaps its a Wesnoth cache issue.
Thanks for the help
The color shift macro is called in the appropriate place in the unit file.
What I mean by the red coloring from the original file is that I see this:
in its entirety, instead of an even partially color shifted sprite.
I don't have this original png anywhere in the game data files thought, so I have no idea why or how Wesnoth is using it.
Could you perhaps test the color-shifted sprite in your own verison of the game to let me know if it's working for you or not? Perhaps its a Wesnoth cache issue.
Thanks for the help
Re: Team Color Shift Not Working
Well it's probably finding that sprite then, and not yours.ahvth wrote:I am doing a bit of an update to a classic Era of Magic sprite
Images aren't cached anywhere, so if you see a different image in place of your own, then that has to be another add-on image with the same image path.
Re: Team Color Shift Not Working
That's what I originally figured as well, but after thoroughly searching for any other copy of the original sprite anywhere in the proximity of wesnoth, I've found nothing...zookeeper wrote:if you see a different image in place of your own, then that has to be another add-on image with the same image path.ahvth wrote:I am doing a bit of an update to a classic Era of Magic sprite
If someone could test this sprite in game and report to me whether or not it is accepting team colors at all, I would be much obliged
Re: Team Color Shift Not Working
Before I replied earlier, I downloaded the image from this page and loaded it into my campaign, and it worked fine except for a few magenta pixels that weren't the right color. I went into debug mode and changed the team and it worked the same for blue. That was how I knew that a few pixels were the wrong color.
Try going to your add-ons folder and moving all of the addons to a folder on your desktop. Put one campaign back in that has a custom hero sprite. Rename the hero baseframe (maybe put an underscore at the beginning of the name) and place the goldenmage.png image in the same folder and rename it to what the hero's baseframe was. Load the campaign and test.
That's pretty much what I did, only I didn't empty my add-ons folder. If you still have the same problem, then it's beyond my comprehensive capabilities
I could do the same thing I did earlier and take screenshots if you would like. I'm using BfW v1.12.5
Try going to your add-ons folder and moving all of the addons to a folder on your desktop. Put one campaign back in that has a custom hero sprite. Rename the hero baseframe (maybe put an underscore at the beginning of the name) and place the goldenmage.png image in the same folder and rename it to what the hero's baseframe was. Load the campaign and test.
That's pretty much what I did, only I didn't empty my add-ons folder. If you still have the same problem, then it's beyond my comprehensive capabilities
I could do the same thing I did earlier and take screenshots if you would like. I'm using BfW v1.12.5
One foot in my mouth, and one in the grave; that's the way I like it, and that's the way it'll stay.
[shameless_advertising]
Also the author of Elvish Incursion, a short little prologue.
[/shameless_advertising]
[shameless_advertising]
Also the author of Elvish Incursion, a short little prologue.
[/shameless_advertising]
Re: Team Color Shift Not Working
Thanks everyone for your suggestions.
I got it working following Vulpine's suggestions.
Weird that it didnt work until I moved it into another campaign... one of the many mysteries of life.
I got it working following Vulpine's suggestions.
Weird that it didnt work until I moved it into another campaign... one of the many mysteries of life.
Re: Team Color Shift Not Working
Glad to hear!
Naw, it's one of the countless mysteries of coding. There are more mysteries in coding than in life.ahvth wrote:Weird that it didnt work until I moved it into another campaign... one of the many mysteries of life.
One foot in my mouth, and one in the grave; that's the way I like it, and that's the way it'll stay.
[shameless_advertising]
Also the author of Elvish Incursion, a short little prologue.
[/shameless_advertising]
[shameless_advertising]
Also the author of Elvish Incursion, a short little prologue.
[/shameless_advertising]
- Celtic_Minstrel
- Developer
- Posts: 2211
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Team Color Shift Not Working
Just for the record,
{MAGENTA_IS_THE_TEAM_COLOR}
isn't required to TC a unit image, at least in 1.13; I'm fairly sure it's not required even in 1.12, though. All it does is set flag_rgb=magenta
, but if I recall correctly, magenta is already the default value of the flag_rgb key.Re: Team Color Shift Not Working
It is required in 1.12. Your memory is a bit rusty, I guess.Celtic_Minstrel wrote:I'm fairly sure it's not required even in 1.12, though.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
- Celtic_Minstrel
- Developer
- Posts: 2211
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Team Color Shift Not Working
Ah, so it is. Sorry about that, then. I thought it had already been the default before that commit, but I guess not.