[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?
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?
![[Image: image.png?ex=690c58ff&is=690b077f&hm=d8e...1d3241f4b&]](https://cdn.discordapp.com/attachments/284323424032129024/1343677563976810537/image.png?ex=690c58ff&is=690b077f&hm=d8e89ec4ea94d3ba89ae044c65d7789486ff3aebb8ad6ae0ea741b11d3241f4b&)
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&]](https://cdn.discordapp.com/attachments/284323424032129024/1343677563976810537/image.png?ex=690c58ff&is=690b077f&hm=d8e89ec4ea94d3ba89ae044c65d7789486ff3aebb8ad6ae0ea741b11d3241f4b&)
Archived author: Takenbacon • Posted: 2025-02-24T20:17:44.416000+00:00
Original source
ah, it's configs with multiple periods in the name
Archived author: Sogla • Posted: 2025-02-24T20:18:47.624000+00:00
Original source
``"\w+.\w+"` to `".*"` try to capture everything between "
Archived author: Takenbacon • Posted: 2025-02-24T20:19:46.145000+00:00
Original source
looks like that works, nice
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
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;
}```