lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 07-30-2011, 03:05 AM
Fido Fido is offline
The Undefeated
 
Join Date: Jul 2011
Posts: 6
Newbie: Simple window

Hi,
i'd like to start with programming plugins. I'd like to make first a simple window, but i make something wrong:
I have a file : window.lua - here a tried many variations.
At the moment it starts as follow
Code:
import "Turbine";
import "Turbine.UI";
import "Turbine.UI.Lotro";

Window = class( Turbine.UI.Lotro.GoldWindow );

function Window:Constructor()
Turbine.UI.Lotro.GoldWindow.Constructor( self );
...
Here I've copied the code from Turbine examples.
The I have a file : main.lua
Code:
import "Fido.simple.Window"
window = Window();
window:SetVisible(true);
and : simpleLotro.plugin
Code:
<?xml version="1.0"?>
<Plugin>
	<Information>
		<Name>simpleLotro</Name>
		<Author>Fido</Author>
		<Version>0.1</Version>
	</Information>
	<Package>Fido.simple.main</Package>
</Plugin>
But in game I get the error:
Code:
...d of the Rings Online\Plugins\Fido\simple\Window.lua:5: attempt to call global 'class' (a nil value)
I've tried with other Windows, but it is always the same error. What is the problem?
Thanks for help.
Fido
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skirmish window and Item selection window mysticdrew Graphics modification help (L) 3 02-02-2011 08:21 AM
Total newbie help, hopefully a simple question alyssandra General Authoring Discussion (L) 5 12-03-2010 03:47 PM
Newbie Drowning In A Sea Of XML! Emberleaf XML modification help (L) 4 10-24-2010 08:13 PM
Dark and simple Lazer121 Interface Requests (D) 0 04-27-2008 05:49 PM
Newbie help! Zhara Chit Chat 3 08-15-2007 04:15 PM


All times are GMT -5. The time now is 10:20 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui