|Go to Page...|
|Thread Tools||Display Modes|
|04-03-21, 07:40 AM||#1|
Issues using SetStatusBarTexture
First of all i know that some people previously asked some tips about the same problem i have. So i would say that i already try the way they solve their problems but it didn"t worked for me.
I have a lua code who is supposed to make a bar spawn somewhere on my screen IG. All my problem is about the function "SetStatusBarTexture" so i traced it :
The message "!!!Texture for bar not load!!!" appared each time even if entirely closed WoW.
i also "tested my test" by puting the return of CreateFrame in a first (and it returned a table as expected, the "equivalent of pointer" in lua). I put that test because the bar never appeared.
This is not the entir code, i posted just the part which have trouble (and i tested the rest of the code with debug trace to be sure that the issue come from here.
Most of the time this error is caused by the path which is not the good one. So there is the absolute path of the files that i try to use (on windows 10) :
And i try those different path, none of the worked (the a is still equal to nil) :
You may ask "why try all those folder ?" and i would respond "I don't know who to fixe this because i don't understand what's happening so i try everythin i thinked about"
You may also say "some of those path would not work anyway" and i just generated all the possible combination it would be possible to write the path with...
So if someone have an idea...
Thank you for the one who'll take the time to read this
In case it help here's the complete code :
Last edited by koromire69 : 04-03-21 at 08:18 AM.
|04-03-21, 09:37 AM||#2|
I did that?
In lua code, paths are either double backslash\\ or single forward slash /
not \ or //
In XML you use \
And .png files won't work, just .blp or .tga of the correct format.
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
Last edited by Fizzlemizz : 04-03-21 at 09:41 AM.
|04-03-21, 11:04 AM||#3|
Do you have Lua errors enabled?
AFAIK SetLenght doesn't exist, replace it with SetWidth (or use SetSize).
|04-03-21, 11:57 AM||#4|
Thank you, i'm taking good notes about this !
No, can i turn them on via WoW or do i have to download something ?
You're right, i changed the function.
|04-03-21, 12:16 PM||#5|
|04-03-21, 12:24 PM||#6|
Thank you Now i've turned Lua error am i able to see the "errors returned by function" or something like that ?
|04-03-21, 12:54 PM||#7|
|04-04-21, 02:34 AM||#8|
Thank you a lot, by giving me access to this tool i was able to investigate and find out what was going wrong :
I had a comment in the toc. file who generated a error (but didn't blocked the rest of the code, so the error was invisible to me without the error's log), i removed it and the texture charged !
|WoWInterface » Developer Discussions » Lua/XML Help » Issues using SetStatusBarTexture|