Raised This Month: $ Target: $400
 0% 

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: nergal
Forum: Snippets and Tutorials 08-26-2023, 17:31
Replies: 11
Views: 17,169
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

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...
Forum: Snippets and Tutorials 09-28-2020, 13:09
Replies: 11
Views: 17,169
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

alright, put this code in your cfgmap.inc and test out how it goes:


public int GetBool(const char[] key_path, bool& b, bool simple=true) {
if( this==null ) {
return 0;
}
PackVal...
Forum: Snippets and Tutorials 09-27-2020, 18:21
Replies: 11
Views: 17,169
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

it's not bad but what would I return if there's a failure? I guess I could have it pass something like a reference to a bool and the method itself returns an int.

Another thing is that your method...
Forum: Snippets and Tutorials 09-26-2020, 18:23
Replies: 11
Views: 17,169
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

Sounds good, have it work from a number (1 and 0) or the words 'true' and 'false?
Forum: Snippets and Tutorials 09-24-2020, 14:38
Replies: 11
Views: 17,169
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

I've updated the OP with the latest code and even converted the library into an include file.
I've also provided a tutorial link on all the capabilities of ConfigMap and how to use it.
Forum: Snippets and Tutorials 06-29-2020, 13:55
Replies: 11
Views: 17,169
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

yes! you gotta compile it with Voice Changer. I also want to add that ConfigMap is loop-friendlier than KeyValues since all you need to do get a specific section and iterate that section, here's an...
Forum: Snippets and Tutorials 11-18-2019, 20:47
Replies: 11
Views: 17,169
Posted By nergal
[SP] ConfigMap: StringMap & SMCParser

presenting ConfigMap which is a StringMap Tree very much similar to KeyValues.

Difference is that it only works with strings as values and stringmaps as sections.


API:

ConfigMap(const...
Showing results 1 to 7 of 7

 
Forum Jump

All times are GMT -4. The time now is 11:17.


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