Artis wanted round two
2 Attachment(s)
Since my request for recolorization of my icon was so succesful, I thought I'd try my luck with a background texture.
Attached is a .tga called white marble, which I want to use with LibSharedMedia as, you guessed it, a background! :banana: The problem is that is shows up as entirely green. I'm guessing that means it isn't compatible, and I have no idea how to fix that. That image is also attached. Any and all help greatly appreciated! :D |
This texture is not scaled to a power of 2. It needs to be either 1024x1024 or 2048x1024 or 2048x2048 if you really want it to be that big.
|
Is it as simple as cropping or exporting in Gimp? Yeah, I have Gimp, but I am a near total newbie.
|
Taking a guess, I set the canvas size to 1024x1024. The original image had an odd numbered coordinate. Trying to see if this works now.
Edit: still green :( |
1 Attachment(s)
|
Weird. While I'm sure there is nothing wrong with your copy, it doesn't seem to work for me. "Blizzard Marble" works fine on line 16, but "White Marble" does not.
My main chunk has the following. Lua Code:
And MUI_Installer.lua Lua Code:
|
Are you closing the game and restarting? Images are only loaded into memory once.
|
1 Attachment(s)
Quote:
Attached is my latest version of the file. Based on Google, I have resized to a maximum of 512x512 and made sure to add an Alpha layer. Then I found an old thread, and checked file paths. I have tried a few variants of the following, again with no success. For example, with "" instead of [[]] or one \ or \\ and with and without the extension. Code:
LSM:Register("background", "White Marble", [[Interface\AddOns\MyrroUI\Media\white marble]]) |
I don't know if this is related, by as soon as I replaced the background from LibSharedMedia's built in "Blizzard Marble", the font colour stopped working, and has never recovered. You can see the assigned colour in the CreateInstaller() function linked above. The colour for all three text lines display as white.
They are supposed to be gold, silver, and bronze, in order. I am going to try forcing those as in-line hex colourization. |
Rename to white_marble (just to take care of any chance that it doesn't like the space) and put .tga at the end of the file path.
(edit: the space shouldn't matter, though) |
For sheer redundancy, I renamed both the font and the image to remove spaces. RomanSD.ttf and WhiteMarble.tga are the actual file names.
Code:
LSM:Register("font", "Roman SD", "Interface\\AddOns\\MyrroUI\\Media\\RomanSD.ttf") |
1 Attachment(s)
Oh yes, here the new in game image for reference. If you look at the first post, the text "MyrroUI Developer" was on one line, and gold. I created some additional text.
Here is what it looks like now. Green background and bleached text colour. And I'm stumped on both. |
You did completely exit the game before adding/changing the file name?
That and incompatible format are the two main reasons people get green textures. |
Quote:
Yeah, I've heard incorrect naming, bad file paths (still confused which is correct -- maybe that's it?) in the Lua code, and incompatible file formats (which is why I attached my image file). Knowing Murphy and his law, it will end up being something stupidly simple to fix, and I'm just not spotting it right now. |
I'm beginning to wonder if the image has too many colours, or something like that. Colour depth of 256, according to the Wowace thread.
Edit: Nope. Turns out the original was greyscale, and I changed the mode to RGB. Phooey! |
Is it RGB with an alpha layer? A 32-bit .tga, not a 24-bit one?
|
1 Attachment(s)
|
1 Attachment(s)
Quote:
TY TY TY TY TY |
Changed it to RGB, resized to 512x512 and added an alpha chanel.
I'm glad you're up-and-running :) Edit: for future. With Gimp I resized the image Munk uploaded to 512x512* then created a new image set to 512x512, and in the advanced setting of creating a new image set "color space" to RGB and set the "fill with" to transparency. Copied, pasted and exported to .tga using the default settings. * (I have a memory of reading somewhere that 512 was the laregest wow would except but that may have changed) |
1 Attachment(s)
Damn, I thought I had done all that, but I guess it didn't save in the export process.
Once again, thank you EVERYBODY for helping fix this. It was driving me bonkers!! Here is the finished, but unpopulated with options, product. I fixed the text colours with hex codes. Colour codes link, because it is awesome: http://www.colourlovers.com/palette/..._silver_bronze And my code, in case someone wants to do this again, and needs help. Lua Code:
|
All times are GMT -6. The time now is 11:17 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI