shobhit-pathak / MatchZy

MatchZy is a plugin for CS2 (Counter Strike 2) for running and managing practice/pugs/scrims/matches with easy configuration and Get5 (G5API/G5V) support as well!
https://shobhit-pathak.github.io/MatchZy/
MIT License
263 stars 76 forks source link

[REQ] Improvements to the MatchZy configuration loading system #6

Open crashzk opened 1 year ago

crashzk commented 1 year ago

It would be interesting to have MatchZy create the gamemode_competitive_server.cfg file and use it as a basis for general server configuration.

In theory it would copy the gamemode_competitive.cfg settings from CS2 itself, the question of creating a gamemode_competitive_server.cfg file would be because this way we can better configure the server with our settings and in future CS2 updates the file is not replaced.

So in the knife.cfg, live.cfg, prac.cfg, warmup.cfg files we can only place the configurations that the plugin will execute when running these configurations.

I don't know if you understand more or less, but it would be something similar to the configuration system that WarMod [BFG] uses.

https://bitbucket.org/warmod/warmod.bitbucket.org/src/master/ https://forums.alliedmods.net/showthread.php?t=225474 https://warmod.bitbucket.io/scripting/include/warmod_configs.inc

shobhit-pathak commented 1 year ago

Apologies but I didn't get this one 😅 We will need the knife.cfg, live.cfg and other cfgs anyways, right?

I'll try going through the plugins which you've shared so that I get more clarity, thanks for highlighting this tho!

crashzk commented 1 year ago

Apologies but I didn't get this one 😅 We will need the knife.cfg, live.cfg and other cfgs anyways, right?

Yes, we still need them, even the others I mentioned.

However, we can use the gamemode_competitive_server.cfg configuration file as the default, in this case it would need to be created when the plugin runs for the first time on the server.

Then we use its config by default, and in the files knife.cfg, live.cfg for example, we only use it when we "activate" them, let's say.

I don't know if I could explain it better... lol In any case, the links I mentioned can help, I believe. In any case, I'm here if you need me.