<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AModulesLoadFromListFile</id>
	<title>API:ModulesLoadFromListFile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AModulesLoadFromListFile"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:ModulesLoadFromListFile&amp;action=history"/>
	<updated>2026-10-18T19:24:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:ModulesLoadFromListFile&amp;diff=30613&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:ModulesLoadFromListFile&amp;diff=30613&amp;oldid=prev"/>
		<updated>2026-10-16T19:47:21Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Module}}&lt;br /&gt;
Loads the definitions of the UI modules listed in a text file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ModulesLoadFromListFile(listFilePath, moduleType, allowLooseFiles)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;listFilePath : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Path of the list file. It must be a wide string (&amp;lt;code&amp;gt;L&amp;quot;...&amp;quot;&amp;lt;/code&amp;gt;).&lt;br /&gt;
;moduleType : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – A &amp;lt;code&amp;gt;SystemData.UiModuleType&amp;lt;/code&amp;gt; value from 1 to 5. Every listed module is given this type.&lt;br /&gt;
;allowLooseFiles : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;: the list file must be inside the game archives. &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;: the client first looks for it on disk and then in the archives.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The stock list file &amp;lt;code&amp;gt;interface/default/EADefaultMods.txt&amp;lt;/code&amp;gt; contains one &amp;lt;code&amp;gt;.mod&amp;lt;/code&amp;gt; path per line, for example &amp;lt;code&amp;gt;interface/default\EASystem_DialogManager\EASystem_DialogManager.mod&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The modules are only registered with the client. Call [[API:ModulesInitializeAllEnabled|ModulesInitializeAllEnabled]] afterwards to run them.&lt;br /&gt;
* &amp;lt;code&amp;gt;allowLooseFiles&amp;lt;/code&amp;gt; is also passed on to the loader. The stock UI passes &amp;lt;code&amp;gt;IsInternalBuild()&amp;lt;/code&amp;gt;, which is always &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;allowLooseFiles&amp;lt;/code&amp;gt; must be a real boolean, and &amp;lt;code&amp;gt;listFilePath&amp;lt;/code&amp;gt; a wide string, or an &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; error is raised.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
These are written to the UI log; the call returns normally.&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;ModulesLoadFromListFile&amp;#039;: file %ls does not exist.&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;ModulesLoadFromListFile&amp;#039;: Module Type %d is invalid.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;interfacecore/interfacecore.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ModulesLoadFromListFile( SystemData.Directories.DefaultInterface..L&amp;quot;/EADefaultMods.txt&amp;quot;, SystemData.UiModuleType.DEFAULT_INGAME, IsInternalBuild() )&lt;br /&gt;
ModulesLoadFromListFile( L&amp;quot;interface/MythicApprovedAddOns/MythicApprovedMods.txt&amp;quot;, SystemData.UiModuleType.MYTHIC_APPROVED_ADDON, IsInternalBuild() )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:ModulesLoadFromDirectory|ModulesLoadFromDirectory]]&lt;br /&gt;
* [[API:ModuleLoad|ModuleLoad]]&lt;br /&gt;
* [[API:ModulesInitializeAllEnabled|ModulesInitializeAllEnabled]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>