Raised This Month: $110 Target: $400
 27% 

[INCLUDE] AutoExecConfig: Read and append to auto configs


Post New Thread Reply   
 
Thread Tools Display Modes
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 12-20-2018 , 13:30   Re: [INCLUDE] AutoExecConfig: Read and append to auto configs
Reply With Quote #61

Probably, but i haven't heard about performance problems yet. I've scratched the itch i had and at this time i don't have plans to add any big new features. Sorting the file would require to rewrite the parser a bit. Right now it just tries to find lines that look like a cvar; it doesn't know about comments and to what cvar they belong. Sorting would require to keep comment and cvar together. Not sure what you mean with a global config, each plugin should have their own so a default makes little sense. You can use one file for several plugins, although i would not recommend it and never tested it. Many sourcemod plugins create their own config file, i'm not sure why that would lead to crashes.
__________________
AutoExecConfig | CallAdmin | More plugins
Join the AlliedModders discord server
You can add me on steam or discord (Impact#9229) if you need help with one of my plugins. Pm me before doing so

Last edited by Impact123; 12-20-2018 at 13:39.
Impact123 is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Old 04-09-2021 , 14:46   Re: [INCLUDE] AutoExecConfig: Read and append to auto configs
Reply With Quote #62

Nice include! Could you make a way to update cvar descriptions?

I do a lot of changes to my cvars, including to the descriptions and default values and they don't seem to update if the file is already created. I know it'll probably be a pain is the ass to do so though.

Thanks
__________________
azalty is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 04-09-2021 , 14:53   Re: [INCLUDE] AutoExecConfig: Read and append to auto configs
Reply With Quote #63

Here's my previous answers to similar questions
https://forums.alliedmods.net/showth...75#post2069775
https://forums.alliedmods.net/showth...46#post2585946
I probably could do this, but I'm not planning to in the foreseeable future. I did work on a enum struct based prototype a while ago but lost the motivation and time continuing it
__________________
AutoExecConfig | CallAdmin | More plugins
Join the AlliedModders discord server
You can add me on steam or discord (Impact#9229) if you need help with one of my plugins. Pm me before doing so

Last edited by Impact123; 04-09-2021 at 14:57.
Impact123 is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Old 11-17-2021 , 17:02   Re: [INCLUDE] AutoExecConfig: Read and append to auto configs
Reply With Quote #64

For everyone looking to update cvars' descriptions: https://github.com/kidfearless/Auto-Exec-Config-Class

It took me so long to finally find it
__________________
azalty 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 05:36.


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