[DiscordArchive] I might be missing something obvious, but I'm trying to move the Eluna configuration values out of w
[DiscordArchive] I might be missing something obvious, but I'm trying to move the Eluna configuration values out of w
Archived author: Foe • Posted: 2024-04-07T01:08:18.308000+00:00
Original source
I might be missing something obvious, but I'm trying to move the Eluna configuration values out of worldserver.conf and into its own config file. I am calling LoadAdditionalFile and this seems to work properly (i can see the values get loaded like they should), however when calling ie. GetStringDefault using sConfigMgr, it always tries to read from worldserver.conf ie. ```Missing name Eluna.Enabled in config file D:/Server/worldserver.conf, add "Eluna.Enabled = 1" to this file```
I should be able to do it this way, right?
tring configError;Archived author: Foe • Posted: 2024-04-07T01:10:25.244000+00:00
Original source
```C++
#ifdef TRINITY
std:
tring configError;
if (!sConfigMgr->LoadAdditionalFile(ELUNA_CONFIG, true, configError))
{
printf("Error loading file: %s\n", configError.c_str());
return;
}
#endif```
Archived author: Foe • Posted: 2024-04-07T01:18:27.616000+00:00
Original source
I figured it out, I was missing ```[eluna]``` at the top of the config file
Archived author: Foe • Posted: 2024-04-07T01:20:08.819000+00:00
Original source
It still says that it's missing in the worldserver.conf though if the value is actually missing, but I imagine that's because we're loading an additional file and not an initial config file