Quote:
Originally Posted by ssphreak
Powerlord - Does randomcycle.smx work with CSGO? I knew it didn't work when CSGO was 'new', but have they gotten it to work?
Bittersweet, I have checked that out a couple times trying to make sense of it. I don't have any UMC modules or anything, I just found this pluggin and want randomcycle part of it. I need a 'dumbed' down version of that to just see how the maps are listed. -
thanks to both of you for the replies - phreak
|
It's the SM "key/values" format. There are program routines in SourePawn to handle this file format, so you see it again and again throughout SM.
For just random cycle use only, creating a umc_mapcycle.txt will be very easy, since you don't need to worry about groups and options used in other modules.
You'll need to create a txt file umc_mapcycle.txt that looks something like this:
Code:
"umc_mapcycle"
{
"ssphreak's maps"
{
"de_dust" {}
"de_dust2" {}
"de_aztec" {}
}
}
The group name "ssphreak's maps" could be named anything, like "Group A". Of course, the maps you list must actually exist on your server. The most important detail is that you maintain matching braces, in other words for every "{" you must have an "}". The other thing to understand about the braces is that they form a set of data, and the name given to the set would precede the braces. I don't believe you can change the main set "umc_mapcycle". This is known as the "root node". If you change that, I don't think UMC would recognize anything else after that. You can change/add options to any level under the root node. When you add an option, it applies to everything on that level in the tree.
Anyway, you asked for a dumbed down version and I've probably gone on too far beyond that. Here's some more information about Keyvalues themselves:
http://wiki.alliedmods.net/KeyValues...Mod_Scripting)
Edit: Since you just want UMC for randomly choosing a map, you should only need to the core module and randcycle module, these 2 plugins: umc-core.smx and umc-randomcycle.smx.
__________________