Help with 1.4 oUF
i have this problem with 1.4 with oUF_Jasje anyone know how to fix? cause i have no idea :D
Code:
Message: Interface\AddOns\oUF\elements\range.lua:34: attempt to index local 'range' (a boolean value) |
In oUF 1.3 the range element used the following variables:
Code:
self.Range = true In oUF 1.4 the range element uses the following variables: Code:
self.Range = { Update your layout as required. |
to help abit since i dont know anything about coding etc... here is my hole LUA
http://pastebin.com/musLtFC3 |
Quote:
Since you're using a premade layout, it should be quite easy to modify it for 1.4. Check out wowwiki.com (API and Widget API) to look up the used API-functions. As you're active here, you will have noticed, that there are many threads considering the 1.3 > 1.4-changes. If you have specific questions, feel free to ask. |
I pretty much gave you the exact change you need to make to get rid of the error you posted. Do a search on self.Range and you should see where you need to change the code (hint: you need to do it in 2 places).
If you struggle doing that, then you may have to consider re-creating your layout in a unit frame addon that is more friendly to non-programmers. |
I tryed but it didnt work :p
|
ahhh, are you sure about that?
you may have fixed that error but got one for something else! (there are some significant changes between oUF 1.3 and 1.4) post up the error message and I'll throw a few more hints |
Quote:
|
i get this when i change the range
Code:
Message: Interface\AddOns\oUF_Jasje\oUF_Jasje.lua:956: attempt to call method 'SetManyAttributes' (a nil value) |
This has nothing to do with the range-element...
As you can see in this error-message, you got an error in line 956 while calling SetManyAttributes(). In your pastebin, 955 is such a call, so I guess it is this one. With 1.4, this function is deprecated, haste documented the new Spawn() and SpawnHeader() here. You simple incorporate the options from SetManyAttributes into a SpawnHeader(). |
it didnt work either, am just getting error :(
|
any error message?
|
yes this
Code:
Message: Interface\AddOns\oUF\elements\range.lua:34: attempt to index local 'range' (a boolean value) |
Again, I'm looking at your pastebin and see in line 791ff, 938ff that you have not included the changes, that were already pointed out to you...
Are you serious about this? You don't seem to read, what is posted here... :confused: You will have to change every occurence. I hope you have a decent text-editor (I recommend notepad++), just use the built-in search function. Make sure to catch every occurence to be changed. |
I dont change in the pastebin, i change in my LUA in my computer.
and why should i change i pastebin? then i cant use it in-game.. and yes i have notepad++ |
The paste is all I have to guess, what is going wrong...
You must learn, how to read an error-message, because all necessary information is in there (k, most of the time). Quote:
After that, it gives you the "stack" in which order the functions are called. Since oUF is working fine, skip everything until one of your files is called, oUF_Jasje.lua in this case. It gives you the line, where the error is based (this line can be wrong, look some lines around it). I don't know what is in your line 954, but I guess (based on your pastebin), it could be the wrong usage of the range-element, since in your pastebin there is a wrong usage in 938, so if you inserted something above this, it could have go down the 16 lines offset. |
Game92, I don't know if you've yet given up on trying to update your layout, but if not take a look at this pastey
I have not tested the changes, but it should cover all of the errors you have posted so far. The changes I have made are highlighted in the pastey, and are covered by the comments Mischback and myself have detailed in the posts we have made in trying to help you. Make sure you read the code and try to understand why the changes have been made. If you take the updated code and try it out you may still get errors. In which case make sure you provide as much detail as possible (copy of the code you are running, the exact error message that was received, what you were doing at the time, any other details you can provide that you think may be related) People are willing to provide help as long as you try to do some things yourself . Posting messages like "I tryed but it didnt work" only end up with those people trying to help you getting frustrated, so please try to provide more detail. |
thanks, i will try this when i come home ;)
|
Okey, tested got this error.
Code:
Message: Interface\AddOns\oUF_Jasje\oUF_Jasje.lua:1001: Bad argument #2 to 'Spawn' (string expected, got nil |
Again, I can only roughly guess based on your pastebin, and since that thing has got less than 1000 lines, I can NOT make ANY educated guess. Give current code or fix your stuff yourself. yj589794 has already pointed out, what is needed to help you. Don't expect us to poke about in a fog.
Your error says, that the second argument to spawn() is not of the expected type, have you changed the spawn-calls to the new syntax, that I already pointed out at you? |
All times are GMT -6. The time now is 10:13 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI