Raised This Month: $ Target: $400
 0% 

[SP] ConfigMap: StringMap & SMCParser


Post New Thread Reply   
 
Thread Tools Display Modes
MAGNAT2645
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:
Code:
int GetInt(const char[] key_path, int& i, int base=10);

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

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)
Quote:
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
nergal
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
Reply


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 12:11.


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