Quantcast
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO Tools & Utilities for Developers

Category: LotRO Tools & Utilities for DevelopersOfficial Update 24 Lua Documentation
Interface Information
Download
How do I install this? (FAQ)
Name: Official Update 24 Lua Documentation
Author:
Date: 06-04-2019 04:15 PM
Size: 2.08 MB
Version: 2306.0061.2853.
Rate File:  out of 5 with 0 votes  
Description
Welcome to Lua UI scripting in LOTRO! To get you started, we have some handy resources for you.

First, for those of you that wish to familiarize yourself with the system to create scripts of your own, we have our complete API documentation in a series of HTML pages including all currently available functionality and code example snippets. Once you have unzipped it, open the folder and open index.html to get started.
File Statistics
User Rating:
 out of 5 with 0 votes
Downloads: 539
Views: 2163
Favorites: 1
Uploaded By:
 
Last Modified: 06-04-2019 04:42 PM by Silorien    

View Pictures. Download Now! Post A Comment


Post A Reply
Author Comments Comment Options
Unread 06-12-2019, 02:46 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 261
File comments: 751
Uploads: 19
Fonts now working

I got a chance to test after the patch today, June 12, and the new fonts are all working perfectly. Thanks Silorien.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-07-2019, 06:11 PM  
Stever1388
The Undying
Interface Author - Click to view interfaces

Forum posts: 30
File comments: 120
Uploads: 10
That's what I thought. Too bad, I got super excited when I saw a new LUA package had been uploaded.
Stever1388 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-07-2019, 12:01 AM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 226
Uploads: 16
Re: Actions

Quote:
I'm looking at these actions and I noticed that the quickslots are listed. Is it possible to activate a custom quickslot using the actions now? I use all custom quickslots (Bevy o' Bars) and I would like to have the same key activate different quickslots depending on different circumstances - for example, when progressing through the guardian's block response line, have the "5" key perform "Shield-swipe" initially and then "Shield-taunt" and then finally "Shield-smash".

Not sure how these actions are used. Maybe the issue is still that we can only detect when the key has been pressed, but we have no way to tell a custom quickslot to "activate" or perform its action. I vaguely remember that was part of the issue many years ago.
Correct. Nothing has changed in that regard.
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-06-2019, 09:47 PM  
Stever1388
The Undying
Interface Author - Click to view interfaces

Forum posts: 30
File comments: 120
Uploads: 10
Actions

I'm looking at these actions and I noticed that the quickslots are listed. Is it possible to activate a custom quickslot using the actions now? I use all custom quickslots (Bevy o' Bars) and I would like to have the same key activate different quickslots depending on different circumstances - for example, when progressing through the guardian's block response line, have the "5" key perform "Shield-swipe" initially and then "Shield-taunt" and then finally "Shield-smash".

Not sure how these actions are used. Maybe the issue is still that we can only detect when the key has been pressed, but we have no way to tell a custom quickslot to "activate" or perform its action. I vaguely remember that was part of the issue many years ago.
Stever1388 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-06-2019, 07:17 AM  
Shazzah
The Wary

Forum posts: 0
File comments: 5
Uploads: 0
"Those are the actual font textures used for rendering. There will be 2 for each font, so you should see that number expand to 96 in the next patch."


Oh wow! It's great to see things being updated.
Shazzah is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-06-2019, 12:04 AM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 226
Uploads: 16
Re: 64 bit client

Quote:
Any update on LUA support in the 64-bit client?
Yes, it's fully supported.
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-05-2019, 07:47 PM  
robhupf
The Wary
 
robhupf's Avatar

Forum posts: 3
File comments: 17
Uploads: 0
64 bit client

Any update on LUA support in the 64-bit client?
robhupf is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-05-2019, 04:36 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 261
File comments: 751
Uploads: 19
Quote:
Those are the actual font textures used for rendering. There will be 2 for each font, so you should see that number expand to 96 in the next patch.
Ah. Thanks for the explanation.

And thanks again for giving the Lua API some much needed attention.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-05-2019, 11:07 AM  
Silorien
The Wary
Interface Author - Click to view interfaces

Forum posts: 2
File comments: 4
Uploads: 4
Those are the actual font textures used for rendering. There will be 2 for each font, so you should see that number expand to 96 in the next patch.
Silorien is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-05-2019, 10:56 AM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 261
File comments: 751
Uploads: 19
typo

Quote:
Originally Posted by Silorien
Okay, I think I've found the problem with the missing fonts. The enumerations are correct, but because nothing refers to these fonts internally, they end up being stripped from data in the final build. I'll have to add a dummy reference to them to fix the problem. These should automatically start working with our next patch, which should be soon.
Cool!

Um, while we have your attention and you're looking into support for fonts in the Lua API, I've identified what looks like 76 distinct font templates via IRV (Lua plugin for displaying image resources in the client). The list is actually probably larger as I haven't let the plugin scan for resources in a while (it takes quite a lot of memory since image handling still has a significant memory leak so it requires baby sitting to avoid crashes ). Anyway, the enumeration only has 48 entries currently (not counting Undefined), any chance of identifying the other fonts and enabling them in the API? The image below shows the 76 fonts I located so far:

irv_fonts

I know... give us an inch and we want a league... but it really is appreciated
Thanks!

Last edited by Garan : 06-12-2019 at 02:47 PM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-05-2019, 10:36 AM  
Silorien
The Wary
Interface Author - Click to view interfaces

Forum posts: 2
File comments: 4
Uploads: 4
Okay, I think I've found the problem with the missing fonts. The enumerations are correct, but because nothing refers to these fonts internally, they end up being stripped from data in the final build. I'll have to add a dummy reference to them to fix the problem. These should automatically start working with our next patch, which should be soon.
Silorien is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-04-2019, 09:57 PM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 226
Uploads: 16
Just did a folder comparison and verified that the only differences from the previous version of the documentation are in the Turbine.UI.Lotro.Action and Turbine.UI.Lotro.Font enumerations.

Last edited by Thurallor : 06-04-2019 at 09:58 PM.
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-04-2019, 09:45 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 261
File comments: 751
Uploads: 19
Alas, there is something amiss with the new font enumerations.

Specifically, BookAntiqua12, BookAntiqua14, BookAntiqua16, BookAntiqua18, BookAntiquaBold12, BookAntiquaBold14, BookAntiquaBold18 and BookAntiquaBold19 do not work when assigned to a control - that is, the text is still displayed as Verdana20 which is the default font when a nil or an invalid value is set.

Interestingly, the values that had been previously identified (albeit with the wrong font family) but were not defined in the enumeration work fine. For instance, BookAntiqua20 which was not previously in the enumeration but I had located the value 1107296270 as a valid font (which I erroneously named as TimesRoman) works correctly.

It appears that while the enumerations were added, the fonts were not actually implemented in the SetFont method.

FWIW, I tried sending this info to Silorien on the Lotro forums but he doesn't accept PMs there so I will submit it as a bug report incase he doesn't check back here.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-04-2019, 07:40 PM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 226
Uploads: 16
Hey Garan, I have added the new enumeration values to the wiki page on this site. Feel free to participate.
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-04-2019, 05:18 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 261
File comments: 751
Uploads: 19
Quote:
Originally Posted by Silorien
New in this change:
Added Font enumerations (See Turbine_UI_Lotro_Font.html)
Added Action enumerations (See Turbine_UI_Lotro_Action.html)
Ooh! Goody! Thanks!

I'll have to check on the fonts as soon as I get a chance.

At a quick glance, I noticed a few actions missing such as cutText(8), copyText(170), pasteText(100), toggleFPS(42) and ExitGame(268435570). I'll have to do an actual comparison between the new enumeration and the list of missing actions I had previously documented (it's on the official forums somewhere in the lua section) to see what else might be missing - my list was also incomplete as it was wayyyyy out of date. I gave up on documenting missing enumerations back in 2014 and just used the numeric equivalents when needed.

Last edited by Garan : 06-04-2019 at 05:19 PM.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

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


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui