Thread Tools Display Modes
05-05-23, 10:32 PM   #1
redlemon
A Murloc Raider
Join Date: May 2023
Posts: 5
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.
  Reply With Quote
05-05-23, 10:57 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,834
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
05-05-23, 11:54 PM   #3
redlemon
A Murloc Raider
Join Date: May 2023
Posts: 5
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
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » AceDB-3.0 dont read the saving DB

Thread Tools
Display Modes

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