Raised This Month: $81 Target: $400

[SP] ConfigMap: StringMap & SMCParser

Post New Thread Reply   
Thread Tools Display Modes
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 12-20-2020 , 15:09   Re: [SP] ConfigMap: StringMap & SMCParser
Reply With Quote #11

Sorry for long silence. I tested ConfigMap.GetBool, works perfect (last test: 0.000090 sec).
You should update include with this method. Also, fix typo in description:
int GetInt(const char[] key_path, int& i, int base=10);

int GetFloat(const char[] key_path, float& f); // int to float

You should post some example about iterating sections and keys (and there's a problem with random sorting, i know that's the StringMap feature)

Last thing: fix typo on GitHub Wiki (about escaping dots)
If you're trying to access a key such as "mywebsite.com", then you'd have to use a string like "mywebsite.com" to access the value.

Last edited by MAGNAT2645; 01-03-2021 at 12:45.
MAGNAT2645 is offline
Veteran Member
Join Date: Apr 2012
Old 08-26-2023 , 18:31   Re: [SP] ConfigMap: StringMap & SMCParser
Reply With Quote #12

Update Announcement for ConfigMap.
  • Added Math Parsing,
  • Keys are now stored and in the order they were presented in the config file
  • DataPacks were removed, making ConfigMap fully shareable across plugins
  • Changes to the cfg file can be detected
  • Partial String Interpolation added
  • File Inclusion added
  • More Key-based operations such as getting keys as ints or floats.
nergal is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 15:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode