[CORE]ConfigUtils - Save only certain settings and more
-
Latest: ConfigUtils.js
maaany features that are useful?
-
What is new?
ConfigUtils v1.0-2.3:
- orignal name "CertainSave"
- added .save module
- added del & delall
- added openFolder()
ConfigUtils v2.5:
- renamed to ConfigUtils
- added saveactive
- added toggleconfig
- cleaned code
To do:
-
Dont read config from file and filter, create file with certain module(s) settings in it.
-
Make it support multiple modules (is already possible with core? idk) .cu save x x
-
@FaaatPotato why wouldn't Core support it? It's basis of varargs reading. In JS I would recommend to use 'arguments' (plz read about it if you don't understand)
-
@idk-my-name TL;DR: arguments is a pseudoarray. You can define function without args and read them by using arguments.
e.g:function doShit() { print("arguments:", arguments) return arguments.length }
-
@idk-my-name yes but not with generated subcommands/parameters helper
would have to do onExecute: function () ...
but after last update you can add variable parameter count using
generated subcommands/parameters helper
-
@idk-my-name said in [CORE]ConfigUtils - Save only certain settings and more:
support it? It's basis of varargs reading
cause idk anything about js
@idk-my-name said in [CORE]ConfigUtils - Save only certain settings and more:
plz read about
i will ty
-
ConfigUtils v3.0
- added onTabComplete (important for laizy fucks jk jk)
- added support for multiple modules when using .cu save
Example:
.cu save x,x,x,x...
.cu save KillAura,AntiBot,Zoot- results [KillAura,AntiBot,Zoot]-CU in your configs folder
To do:
- Make autocomplete for additional modules meaning .cu save x,x,x,x
- Clean code
- fix bug where modules get saved under [modulename]-CS instead of modulename-CS
- add check for duplicate input .cu save x,a,a,c <- filter out in chat, in code it works already
- print which module cant be found if !isValidModule
- limit filename/chatname after 3 modules
- add hoverevent for modules if longer than 3
@FaaatPotato said in [CORE]ConfigUtils - Save only certain settings and more:
Dont read config from file and filter, create file with certain module(s) settings in it.
-
ConfigUtils v3.02
~ fixed an issue where game would crash if you autocompleted [ or ]
~ halfed, cleaned code
~ renamed file saving...
~ changed how long file names get handled- added debug for modules that cant be found/isRender
- added hoverEvent
To do:
Dont read config from file and filter, create file with certain module(s) settings in it.
-
ConfigUtils v3.03
- autocomplete fixed by @CzechHek
- added check for duplicates in input
To do:
- dont use ... in file name if input > 3
-
ConfigUtils v3.04-3.07
- changed file saving (name: x.cu / x,x,x...cu)
- added hover event for toggleconfig
- removed shit code from .cu toggleconfig
why didnt i think of this before wtf:
for each (var line in lineList) { var target = moduleManager.getModule(line.split(" ")[0]) if (!target.getState()) target.setState(true), toggeledModules.push(target.getName()); }
time to stfu and stop spamming forum with log