Packing a map.cfg into the .bsp?

Discussion in 'Mapping Questions & Discussion' started by Axl, Sep 29, 2015.

  1. Axl

    Axl L1: Registered

    Messages:
    19
    Positive Ratings:
    1
    So I made a map that requires there to be 5 flag captures per round. (tf_flag_caps_per_round "5")

    Servers automatically default to 3. I used to use a point_servercommand in the map to make this change but valve recently turned that entity off by default. So is it possible to pack a map.cfg into the BSP? Is there another way of changing flag cap limit that I'm not aware of?

    It seems like bad form having to use either of those routes, but as far as I know there's no other way to change the default.
     
  2. Izotope

    aa Izotope Never releases maps

    Messages:
    592
    Positive Ratings:
    539
    If you have a server and want to host your map, you can enable servercommands.
    And you can pack any config files just like any other custom asset, with a lump-pak-file thingie,
    like pakrat or VIDE or packBSP or whatever the names are. pakrat masterrace
     
    • Thanks Thanks x 1
  3. Axl

    Axl L1: Registered

    Messages:
    19
    Positive Ratings:
    1
    Thanks but yeah I have my own server and I'm aware of how to configure things locally. The map I'm referring to is going to be released publicly so I need to figure out what I can to do to make it run consistently on other servers that I don't have control of. I don't normally release my maps publicly because of this issue. For some reason I like designing maps around source mod plug-ins and non-default server variables. :eek:

    edit: okay I went ahead and packed my maps config file into the BSP. Path was cfg/mapname.cfg.

    Tested it on a dedicated server and a listen server and the flag capture variable is not changing. It doesn't seem to be getting executed. hmmm
     
    Last edited: Sep 29, 2015
  4. Zed

    aa Zed Certified Most Crunk™

    Messages:
    1,234
    Positive Ratings:
    994
    Most servers running custom maps are going to be using point_servercommand 1 anyways so I don't see why you'd have anything to worry about.
     
    • Thanks Thanks x 1
  5. Axl

    Axl L1: Registered

    Messages:
    19
    Positive Ratings:
    1
    Yeah good point.
     
  6. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    Possible or not, it's an unethical practice IMO, especially since some config commands can carry over to other maps if the server cfg isn't properly configured
     
  7. Axl

    Axl L1: Registered

    Messages:
    19
    Positive Ratings:
    1
    Yeah I'm with you. It's unfortunate that a change like this has to be done through server commands. Makes me long for the old TFC goal entities.