Addon Settings.

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » Support » Addon Settings.
Addon Settings.
 Lakshmi.Elidyr
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2018-07-12 20:53:43
Link | Quote | Reply
 
If anyone can help to how exactly an add-on stores information in the settings.xml I would greatly appreciate it! Thanks guys!
Offline
Posts: 42635
By Jetackuu 2018-07-12 21:06:02
Link | Quote | Reply
 
What are you asking?
 Lakshmi.Elidyr
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2018-07-12 21:12:00
Link | Quote | Reply
 
Jetackuu said: »
What are you asking?

How does windower specifically save the table to settings.xml.

From what I am understanding you create defaults = T{} then use config.save. Can it store table information though?

defaults = T{}
defaults.player = T{[name] = "playername",[id] = 1}

Just a small example. Or is that even how it works?
 Bismarck.Xurion
Offline
Server: Bismarck
Game: FFXI
user: Xurion
Posts: 693
By Bismarck.Xurion 2018-07-13 03:39:16
Link | Quote | Reply
 
I can't confirm right now, but it's probably just key/value pairs in a recursive way. But I'm not sure what you're trying to achieve.

Your example above would just be output as
Code
<?xml version="1.1" ?>
<settings>
    <global>
        <player>
            <name>playername</name>
            <id>1</id>
        </player>
    </global>
</settings>
 Lakshmi.Elidyr
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2018-07-13 12:45:36
Link | Quote | Reply
 
Bismarck.Xurion said: »
I can't confirm right now, but it's probably just key/value pairs in a recursive way. But I'm not sure what you're trying to achieve.

Your example above would just be output as
Code
<?xml version="1.1" ?>
<settings>
    <global>
        <player>
            <name>playername</name>
            <id>1</id>
        </player>
    </global>
</settings>

I just wasn't entirely sure how much I could store in the files, and how to properly handle it. I think I have it figured out though with a little testing. Was trying to save myself some time. I also wanted to prevent it from saving settings on a specific character for specific stuff to prevent issues. Not sure how that is done either.
 Bismarck.Xurion
Offline
Server: Bismarck
Game: FFXI
user: Xurion
Posts: 693
By Bismarck.Xurion 2018-07-14 03:47:35
Link | Quote | Reply
 
I don't use them much, but IIRC the <global> node contains the default settings, and <character> nodes contain specifics that overload the <global> ones.

I don't know if there's a strict limit - probably not worth even concerning yourself with it until you see lag/choppiness due to memory usage, and even then there's functionality to check what memory usage each addon has.
Log in to post.