Forums WoW Modding Support Archives TrinityCore Discord Archives [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

[DiscordArchive] I might be missing something obvious, but I'm trying to move the Eluna configuration values out of w

rektbyfaith
Administrator
0
04-07-2024, 01:08 AM
#1
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?
rektbyfaith
04-07-2024, 01:08 AM #1

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?

rektbyfaith
Administrator
0
04-07-2024, 01:10 AM
#2
Archived author: Foe • Posted: 2024-04-07T01:10:25.244000+00:00
Original source

```C++
#ifdef TRINITY
std:Confusedtring configError;
if (!sConfigMgr->LoadAdditionalFile(ELUNA_CONFIG, true, configError))
{
printf("Error loading file: %s\n", configError.c_str());
return;
}
#endif```
rektbyfaith
04-07-2024, 01:10 AM #2

Archived author: Foe • Posted: 2024-04-07T01:10:25.244000+00:00
Original source

```C++
#ifdef TRINITY
std:Confusedtring configError;
if (!sConfigMgr->LoadAdditionalFile(ELUNA_CONFIG, true, configError))
{
printf("Error loading file: %s\n", configError.c_str());
return;
}
#endif```

rektbyfaith
Administrator
0
04-07-2024, 01:18 AM
#3
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
rektbyfaith
04-07-2024, 01:18 AM #3

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

rektbyfaith
Administrator
0
04-07-2024, 01:20 AM
#4
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
rektbyfaith
04-07-2024, 01:20 AM #4

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)