Thread Tools Display Modes
11-07-07, 07:55 PM   #1
Sent_
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 6
Is Possible to reload data without /reloadui

Here's my problem

I have this .toc file
Code:
[...]
MyMod.lua
MyMod2.lua

players_list.lua
players_list.lua only contains a table with players names and stuff.

My question is, is it possible to reload the players_list.lua file content without having to reload the entire ui? What I want is to update the mod on-the-fly.

TIA
  Reply With Quote
11-07-07, 08:10 PM   #2
Kaomie
A Scalebane Royal Guard
 
Kaomie's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 438
Not possible.
__________________
Kaomie
"WE LOTS OF PEOPLE FROM STRONG SERVER GUILDS" - Trade Channel
  Reply With Quote
11-07-07, 08:45 PM   #3
mulesh
A Chromatic Dragonspawn
 
mulesh's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 193
Move your players_list.lua table to a savedvariable.
Add this to your TOC
Code:
## SavedVariables: Players_ListDB
Just treat Players_ListDB as a table variable
Code:
Players_ListDB = {
{ "Player1",  --[1] },
{ "Player2", --[2] },
{ "Player3", --[3] },
}
or something like that.
__________________
"Don"t tase me bro!" ~ Andrew Meyer
  Reply With Quote
01-04-08, 03:20 PM   #4
sylvanaar
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 92
If you arent wanting to change the data in that file from within the game, then it is very easy to reload the data. Just create a LoD addon and reference the same file in the TOC.

so if you want to reload Addon1\File1.lua

you create another addon Addon2

in its TOC you reference the other file

..\Addon1\File1.lua

Remember that Addon2 has to be LoD.

then in the game you type /script LoadAddOn("Addon2")

since Addon2 refers to File1.lua it will be reloaded.

You can do this any number of times by creating additional addons.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Is Possible to reload data without /reloadui


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