Simple WoW Interface not working (Lua)

I am trying to create a simple hadron interface for Hello World for World of Warcraft. But this will not work: / Can someone tell me what I am doing wrong?

Here is the HelloWorld.toc file:

## Interface: 60000
## Title: HelloWorld
## Notes: HelloWorld Addon
## Version: 1.0
HelloWorld.xml

Here is the HelloWorld.xml file:

<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/..\FrameXML\UI.xsd">
<Script file= "HelloWorld.lua"/>    <!-- wrong quotation here -->
    <Frame name= "HelloWorldFrame"> <!-- and here (see answer)-->
        <Scripts>
            <OnLoad>
                HelloWorld_OnLoad();
            </OnLoad>
        </Scripts>
    </Frame>
</Ui>

And here is the HelloWorld.lua file:

function HelloWorld_OnLoad()
    print("Hello World!");
end

If I run the game, I can see the HelloWorld addon in the list. But after entering the system, nothing happens to the character.

+4
source share
1 answer

Make sure you check all the scripts for the “wrong” quotes. Compilers or interpreters expect either ", or '( "in the case of Lua and files).

- , " ". , .

+3

All Articles