WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   AceDB-3.0 dont read the saving DB (https://www.wowinterface.com/forums/showthread.php?t=59578)

redlemon 05-05-23 10:32 PM

AceDB-3.0 dont read the saving DB
 
Hi,

I have a problem. AceDB-3.0 dont read the saving DB.
It'save correct.
Code:

local defaults = {
    char = {
        position = {
            x = 50,
            y = 50
        },
        Shown = true
    }
}

Code:

local AceDB = LibStub("AceDB-3.0")

EuF.DB = LibStub("AceDB-3.0"):New("EnemyUnitFrameDB", defaults)

dataPlayer = EuF.DB.char

Code:

local function Load_DB()
    Euf_mainFrame:ClearAllPoints()
    Euf_mainFrame:SetPoint("CENTER", UIParent, "CENTER", dataPlayer.position.x, dataPlayer.position.y)
    Euf_mainFrame:SetShown(dataPlayer.Shown)--Euf
    print("[INFO EUF] Load Profile " )
end

thank for your help.

Fizzlemizz 05-05-23 10:57 PM

Do you have the:

Code:

## SavedVariables: EnemyUnitFrameDB
Entry in your .toc file? That the line that tells the game to actually save the entries to disk when you logout.

redlemon 05-05-23 11:54 PM

My code :
Code:

## Interface: 100100
## Title:Enemy Unit Frame
## Author: Baudson JF
## Version: 1.0
## SavedVariables:EnemyUnitFrameDB
## IconTexture: Interface\Icons\Ability_Marksmanship

Your code :

Code:

## SavedVariables: EnemyUnitFrameDB
Damn space... I'm really tired
A big thank-you


All times are GMT -6. The time now is 10:23 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI