Exec not working/does nothing
-
Hello, I'm having an issue with my ZM server. Basically, when trying to exec a cfg file in my gamesettingsfolder, nothing happens.
For example, if I want to manually change map and I do
exec zm_classic_processing.cfg; map zm_buried
in the server terminal, the cfg isn't loaded and the map breaks. But if I do
ui_zm_gamemodegroup "zclassic"; ui_gametype "zclassic"; g_gametype "zclassic"; ui_zm_mapstartlocation "processing"; map zm_buried
it works perfectly.
I also tried making a cfg file "hello.cfg" with just "say hello" in it, and trying to execute it withexec hello.cfg
Then nothing happens, but if I manually type
say hello
In the terminal, then the command executes like expected.
Is there something I'm missing? Do I need IW4MAdmin for this? I read the documentation but couldn't find anything about it.
Thanks in advance and sorry for the inconvenience.
-
IIRIC the exec command can only execute stock cfg files packed inside the cfgs. while the exec token for the maprotation can only execute cfgs in the gamesettings folder.
-
Xerxes Thanks for the blazingly fast reply!
Interesting, Is there a command like exec to execute custom cfgs or any inside gamesettings?. Do you know if maybe IW4Admin has something like this? -
You could write your own iw4ma plugin that sends each line of a cfg file to your server via rcon.
but then again this would be overkill to just change the map.
imho you should just change the map rotation and rotate the map.