WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   addon incompatible (https://www.wowinterface.com/forums/showthread.php?t=50037)

programdat 10-12-14 09:16 PM

addon incompatible
 
I am trying to write a simple hello world program just to get myself started writing addons. I have created the needed files and it is showing up in the addons menu in wow. However next to my addon in red writing it shows "incompatible". Any help would be greatly appreciated.

Here is the code in my TOC

##Interface:50400
##Title:Hello, World!
##Author:Me
##Version:v1.0.0
HelloWorld.lua
HelloWorld.xml

Duugu 10-12-14 09:32 PM

It's 54000. Not 50400. :)

Seerah 10-12-14 09:37 PM

No, it's 50400.

Try it like this:
Code:

## Interface: 50400
## Title: Hello, World!
## Author: Me
## Version: v1.0.0
HelloWorld.lua
HelloWorld.xml


programdat 10-12-14 09:46 PM

I have tried both solutions and neither have changed it.

karmamuscle 10-13-14 12:48 AM

Is the addon for Mists of Pandaria (50400) or Warlords of Draenor Beta (60000)?

p3lim 10-13-14 03:20 AM

Quote:

Originally Posted by Duugu (Post 297663)
It's 54000. Not 50400. :)

In-game:
Code:

/dump GetBuildInfo()

Lombra 10-13-14 04:08 AM

For reference, it goes like this: (not sure about the actual terms)
Code:

      5.      04.      00
Game ver.Major ver.Minor ver

The minor version is usually not reflected in the interface version, except for the very first release, it seems. (first MoP version was 50002 or something iirc)

We haven't had major versions in the tens since vanilla (and probably never will again, I guess), but that made the formula more clear. Version 2.1.0 was 20100, while 1.10.0 was 11000.

p3lim 10-13-14 09:19 AM

They are operating on three versions:
  • version - Something similar to Semantic Versioning, where major is the expansion, minor is the content patch, and patch is fixes (patches).
  • build - Internal version, we use it to differentiate interface versions
  • interface version - An integer version of version

All of these three, as well as the published date, is returned by GetBuildInfo.

programdat 10-13-14 10:09 AM

2 Attachment(s)
When I used the GetBuildInfo() in game it returned the 50400. However it in not working. I am posting the toc, lua, and xml files, as well as the addon folder i am using. Thanks again for your help guys.Attachment 8220

Attachment 8221

Duugu 10-13-14 10:23 AM

Quote:

Originally Posted by programdat (Post 297682)
When I used the GetBuildInfo() in game it returned the 50400.

Jaja. Sorry. I know, I know. My fault. :)

Duugu 10-13-14 10:39 AM

The addon does not show up as incompatible in the addons list. Even not if I test your code without any changes. *shrug*

It does not work because of the UI tag in the XML. Everything is case sensitive. It's UI and not Ui. (first and last line)

Lua Code:
  1. <UI xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\..\FrameXML\UI.xsd">
  3.   <Script File="HelloWorld.lua"/>
  4.   <Frame name="HelloWorldFrame">
  5.    <Scripts>
  6.     <OnLoad>
  7.      HelloWorld();
  8.     </OnLoad>
  9.    </Scripts>
  10.   </Frame>
  11. </UI>

There's no need to load the lua file via the toc if you're loading it in the XML. This would be enough.
Code:

##Interface:50400
##Title:Hello, World!
##Author:Me
##Version:v1.0.0
HelloWorld.xml

Or you're removing the
Code:

  <Script File="HelloWorld.lua"/>
tag from the XML and use
Code:

##Interface:50400
##Title:Hello, World!
##Author:Me
##Version:v1.0.0
HelloWorld.lua
HelloWorld.xml

instead. Just two ways to get the same thing done.

Btw: If I'm copy&paste your toc data from your first post there are leading blanks in front of some lines. Don't know where they are from ... but if this is the case in your toc too, then you'll have to remove them to have the addon loaded correctly.

It's
Code:

##Interface:50400
 ##Title:Hello, World!
 ##Author:Me
 ##Version:v1.0.0
 HelloWorld.lua
 HelloWorld.xml

right now, and it should be
Code:

##Interface:50400
##Title:Hello, World!
##Author:Me
##Version:v1.0.0
HelloWorld.lua
HelloWorld.xml


p3lim 10-13-14 11:12 AM

Quote:

Originally Posted by Duugu (Post 297685)
It does not work because of the UI tag in the XML. It's UI and not Ui. (first and last line)

Incorrect again.

https://github.com/tekkub/wow-ui-sou...ller.xml#L1-L2

Duugu 10-13-14 11:24 AM

Quote:

Originally Posted by p3lim (Post 297687)

Yay. :D

Ok. I'll shut up.

programdat 10-13-14 08:25 PM

Well duugu, I tried what you said anyways and still nothing. I may just try to start over entirely.


All times are GMT -6. The time now is 11:31 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI