Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] do you also want to capture the data type? or what is missing?

[DiscordArchive] do you also want to capture the data type? or what is missing?

[DiscordArchive] do you also want to capture the data type? or what is missing?

rektbyfaith
Administrator
0
02-24-2025, 08:13 PM
#1
Archived author: Tereneckla • Posted: 2025-02-24T20:13:33.096000+00:00
Original source

do you also want to capture the data type? or what is missing?
rektbyfaith
02-24-2025, 08:13 PM #1

Archived author: Tereneckla • Posted: 2025-02-24T20:13:33.096000+00:00
Original source

do you also want to capture the data type? or what is missing?

rektbyfaith
Administrator
0
02-24-2025, 08:14 PM
#2
Archived author: Takenbacon • Posted: 2025-02-24T20:14:55.631000+00:00
Original source

If I use sogla's example, it mostly works it just skips some and I'm not entirely sure why
[Image: image.png?ex=690c58ff&is=690b077f&hm=d8e...1d3241f4b&]
rektbyfaith
02-24-2025, 08:14 PM #2

Archived author: Takenbacon • Posted: 2025-02-24T20:14:55.631000+00:00
Original source

If I use sogla's example, it mostly works it just skips some and I'm not entirely sure why
[Image: image.png?ex=690c58ff&is=690b077f&hm=d8e...1d3241f4b&]

rektbyfaith
Administrator
0
02-24-2025, 08:17 PM
#3
Archived author: Takenbacon • Posted: 2025-02-24T20:17:44.416000+00:00
Original source

ah, it's configs with multiple periods in the name
rektbyfaith
02-24-2025, 08:17 PM #3

Archived author: Takenbacon • Posted: 2025-02-24T20:17:44.416000+00:00
Original source

ah, it's configs with multiple periods in the name

rektbyfaith
Administrator
0
02-24-2025, 08:18 PM
#4
Archived author: Sogla • Posted: 2025-02-24T20:18:47.624000+00:00
Original source

``"\w+.\w+"` to `".*"` try to capture everything between "
rektbyfaith
02-24-2025, 08:18 PM #4

Archived author: Sogla • Posted: 2025-02-24T20:18:47.624000+00:00
Original source

``"\w+.\w+"` to `".*"` try to capture everything between "

rektbyfaith
Administrator
0
02-24-2025, 08:19 PM
#5
Archived author: Takenbacon • Posted: 2025-02-24T20:19:46.145000+00:00
Original source

looks like that works, nice
rektbyfaith
02-24-2025, 08:19 PM #5

Archived author: Takenbacon • Posted: 2025-02-24T20:19:46.145000+00:00
Original source

looks like that works, nice

rektbyfaith
Administrator
0
02-24-2025, 08:42 PM
#6
Archived author: Takenbacon • Posted: 2025-02-24T20:42:12.189000+00:00
Original source

anyone have any suggestions on how we should _cleanly_ deal with config validation/checking? It's going to be a bit subjective but I really can't make up my mind lol
rektbyfaith
02-24-2025, 08:42 PM #6

Archived author: Takenbacon • Posted: 2025-02-24T20:42:12.189000+00:00
Original source

anyone have any suggestions on how we should _cleanly_ deal with config validation/checking? It's going to be a bit subjective but I really can't make up my mind lol

rektbyfaith
Administrator
0
02-24-2025, 08:42 PM
#7
Archived author: Takenbacon • Posted: 2025-02-24T20:42:28.920000+00:00
Original source

currently there's quite a few configs that do this:
``` SetConfigValue<float>(RATE_POWER_MANA, "Rate.Mana", 1);
if (_rate_values[RATE_POWER_MANA] < 0)
{
LOG_ERROR("server.loading", "Rate.Mana ({}) must be > 0. Using 1 instead.", _rate_values[RATE_POWER_MANA]);
_rate_values[RATE_POWER_MANA] = 1;
}```
rektbyfaith
02-24-2025, 08:42 PM #7

Archived author: Takenbacon • Posted: 2025-02-24T20:42:28.920000+00:00
Original source

currently there's quite a few configs that do this:
``` SetConfigValue<float>(RATE_POWER_MANA, "Rate.Mana", 1);
if (_rate_values[RATE_POWER_MANA] < 0)
{
LOG_ERROR("server.loading", "Rate.Mana ({}) must be > 0. Using 1 instead.", _rate_values[RATE_POWER_MANA]);
_rate_values[RATE_POWER_MANA] = 1;
}```

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