View Single Post
Bittersweet
Veteran Member
Join Date: May 2012
Old 05-22-2013 , 16:53   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3663

Quote:
Originally Posted by antjuh View Post
I have set up a dedicated CSS server. Mapvoting and mapcycling is working.

Now I want to run one server from one folder, with multiple links with different maplists.

For instance, if I start shortcut CS, I want only CS maps to appear in mapvotes and randomcycle.
If I start the shortcut Allmaps for Instance, I want all maps to appear in the votes and randomcycle.

Is there a way to accomplish this without changing my config files all the time?

What I ask basically, is when I start the "allmaps" link, I want only to load maps from umc_mapcycle1.txt for instance. When I start the "CS" link, I want umc_mapcycle2.txt to be loaded. Is this possible?

Tried to find the answer in this forum and in google already. What I have tried so far:
-Manually load the mapcycle file by executing the cvars in the console (sm_umc_vc_cyclefile "umc_mapcycle1.txt", sm_umc_endvote_cyclefile "umc_mapcycle2.txt")
-Tried to rename the UMC CFG files and tried to load them manually using sm_execcfg (For instance, umc-votecommand2.cfg)
-Tried to load above mentioned methods using a exec file
-Tried to run above commands from the startup string from my shortcuts
-Tried to put above mentioned commands to exec from different CFG files
I don't think you can do it that way, because you can't set umc cvars (or pass values through from) your OS. What you can do is use batch files in Windows, and Linux has something similar. These are just text files that execute shell commands. So what you can do is create a separate batch file for each case you have, start with the CS maps you mentioned above. If it were Windows, you might have a batch file like this:

Code:
@echo off
copy drive:\path\umc_mapcycle_cs.txt drive:\path\umc_mapcycle.txt
drive:\path\srcds.exe [server startup options ...]
You would name this batch file Server_Startup_CS_Only, and link to that with your CS link you mention above. Of course umc_mapcycle_cs.txt would have all of the maps that go with the CS set, and you would need a separate file for each set (startup link) you want. You can add other copy commands for randomcycle maps, or any other text files you wanted changed per set.

It is possible to put everything in one batch file and have a menu asking you which set you want to run, rather than putting them all in separate batch files.
__________________
Thank you in advance for your help

My plugins:
[CS:S] BOT Swat | [ANY] CVAR Randomizer | [CS:S] SM CS:S Tag Beta | [CS:S] Bot2Player
Awesome & Crucial plugins by other people:
[CS:S/CS:GO] GunGame | [UMC3] Ultimate Mapchooser | [ANY] Server Crontab | [ANY] SM ForceCamera
Bittersweet is offline