lotrointerface.com
Search Downloads


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

Reply
Thread Tools Display Modes
  #1  
Unread 09-09-2023, 11:27 PM
Morgantine's Avatar
Morgantine Morgantine is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Jul 2023
Location: Ohio
Posts: 5
Lua and "import"

Where is the "import" command defined? It doesn't seem to be a standard Lua command; standard Lua seems to use "require" instead. Is it a Turbine thing?
Reply With Quote
  #2  
Unread 09-10-2023, 10:18 AM
Garan's Avatar
Garan Garan is online now
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
Quote:
Originally Posted by Morgantine
Where is the "import" command defined? It doesn't seem to be a standard Lua command; standard Lua seems to use "require" instead. Is it a Turbine thing?
Yes, it is a Turbine thing. Note, it does not only allow gaining access to user defined .lua source files, it also determines what portion of the built-in tables/methods (and their underlying C objects) are accessible to each apartment - if you don't import Turbine.Gameplay, for instance, you will not have access to anything defined there, but your plugin will have a smaller memory footprint (unless another plugin loaded into the same apartment did import Turbine.Gameplay).
Reply With Quote
Reply


Thread Tools
Display Modes

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
Plugin Request: Skillbar Background "Titan bar mod?" Layanor LotRO Wish List (L) 0 05-13-2012 12:53 PM
ArtAssetID for "world join ghosted" and "webstore" icons ? Adra Lua Programming Help (L) 3 10-03-2011 02:20 AM
Lua - communicating with "the oudside world" darkangel05 Lua Programming Help (L) 3 12-09-2010 09:31 PM
How deep is the "stack search" for Luas in "/Plugins/ magill General Authoring Discussion (L) 0 09-26-2010 01:45 PM
Sept. 19th Update: Morale/Power Bars "almost" fixed... AncientWolf General Authoring Discussion (L) 2 09-20-2007 03:08 AM


All times are GMT -5. The time now is 12:31 AM.


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