Quantcast
Is it possible to list files in a directory? - LoTROInterface
lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > General Authoring Discussion (L)

Reply
Thread Tools Display Modes
  #1  
Unread 07-09-2021, 08:32 PM
Bailey The Cat Bailey The Cat is offline
The Wary
 
Join Date: Feb 2021
Posts: 2
Is it possible to list files in a directory?

I'm very new to LUA in general, especially with the limited APIs given to us for these plugins. Is there a command I can use to parse a directory for files (like a "dir" or "ls" command) for purposes of dynamically populating a context menu?
Reply With Quote
  #2  
Unread 07-09-2021, 09:52 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 298
Nope. The API is extremely limited. Very little of the Lua file library is implemented. The latest API (U25, 11-05-2019) docs are at:
https://www.lotrointerface.com/downl...mentation.html

We can access .lua and .plugindata files as long as we know the file names ahead of time or the user provides them (that is trickier but can be done) but that is it. No other file types and no directory functionality at all. Note, access to .plugindata files is also very limited but at least there are workarounds for that (see https://www.lotro.com/forums/showthr...gins+for+noobs if you haven't already)

Last edited by Garan : 07-09-2021 at 10:00 PM.
Reply With Quote
  #3  
Unread 07-09-2021, 10:22 PM
Bailey The Cat Bailey The Cat is offline
The Wary
 
Join Date: Feb 2021
Posts: 2
Quote:
Originally Posted by Garan
Nope. The API is extremely limited. Very little of the Lua file library is implemented. The latest API (U25, 11-05-2019) docs are at:
https://www.lotrointerface.com/downl...mentation.html

We can access .lua and .plugindata files as long as we know the file names ahead of time or the user provides them (that is trickier but can be done) but that is it. No other file types and no directory functionality at all. Note, access to .plugindata files is also very limited but at least there are workarounds for that (see https://www.lotro.com/forums/showthr...gins+for+noobs if you haven't already)
Thanks for the quick reply! Its a shame I won't be able to do what I wanted with this plugin, but I'll find some sort of alternative.
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
An alpha list? magill General Authoring Discussion (L) 2 07-07-2012 01:59 PM
Directory problems with 1st Skin TimeStamp Interface Help (L) 6 01-15-2011 06:36 PM
Is there a list... MrJackdaw Lua Programming Help (L) 1 11-07-2010 07:34 AM
Skill Cooldown List cinna Interface Requests (D) 2 10-28-2010 06:18 AM
Quest list/check list Kaisoul Interface Requests (L) 0 10-05-2010 01:31 AM


All times are GMT -5. The time now is 07:15 AM.


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