• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[Tutorial/Information] Is DBC editing really good for you?

Neth

BETA Tester
Greetings, in this tutorial ( more an information imo but w/e ) i'll show you why you shouldn't edit DBC when you can simply do it core side.

I will take TrinityCore in this example because it's the current core I work with.

When you edit DBC there are lots of collums and when you're news it's a total mess to remember what you did and what was the original value, anyway TrinityCore has the following function : void SpellMgr::LoadSpellInfoCorrections() in SpellMgr.cpp
with this function you will be able to overwrite most dbc value without editing your spell.dbc you can see some example here : https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Spells/SpellMgr.cpp#L3003

Remember that in some case you will need to edit DBC but if you can avoid it then do it
 

Rochet2

Moderator / Eluna Dev
I'f i remember right. Spells are moved to a map or something from the dbc store. So the core has the spells twice in memory.
the map is editable, while the dbc store isn't.

Eluna adds a function you can use to edit dbc. It basically just creates a new map of the dbc if needed for editing.

so basically such isn't for other dbc by default.

Eluna;
see SetEntry and LookupEntry
https://github.com/ElunaLuaEngine/TC-Eluna-3.3.5a/blob/master/src/server/shared/DataStores/DBCStore.h
 
Last edited:
Top