Skip to content
  • 0 Unread 0
  • Recent
  • Popular
  • Users
  • Donate
Collapse
Home Docs Stats Discord Donate
Download
  1. Home
  2. BO2 Server Hosting Support
  3. Exec not working/does nothing

Exec not working/does nothing

Scheduled Pinned Locked Moved BO2 Server Hosting Support
4 Posts 2 Posters 677 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Batpope
    Batpope
    Batpope
    wrote on last edited by
    #1

    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 with

    exec 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.

    1 Reply Last reply
    0
    • Xerxes
      Xerxes
      Xerxes
      Plutonium Staff
      wrote on last edited by
      #2

      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.

      Batpope 1 Reply Last reply
      1
      • Xerxes Xerxes

        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.

        Batpope
        Batpope
        Batpope
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • Xerxes
          Xerxes
          Xerxes
          Plutonium Staff
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Unread 0
          • Recent
          • Popular
          • Users
          • Donate