Alter Config is an SCInterface feature that allows you to make changes to lines in Sensor configuration files without editing the configuration files manually. By specifying a file, a match string, and a replacement line, SCInterface will apply the replacement line wherever the match is found in the file; if SCInterface doesn't find the match string, it will add the replacement line to the file. You also have the option to apply a config file change to the SCInterface configuration for a server. For example, if you apply a replacement value for maxPlayers in the file serversettings.conf for a Battlefield 1942 server, you can also apply the new maxPlayers value to the numSlots field for that BF1942 server's SCInterface Admin page.

To help organize their Alter Config commands, users may specify Alter Config types. Within these types, any number of possible changes can be saved for later use. Users with SC-Wide privileges may view, edit, add, and delete Alter Configs. Users that only have admin privs on an SC or Sensor may view available Alter Configs.


Adding an Alter Config

To add an Alter Config to a SConnector:
  1. Click the Admin tab.
  2. Click the SConnector Admin tab.
  3. You will see a table of SConnectors. Click the name of the SConnector to which you would like to add startup parameters.
  4. Click the Alter Config tab.
  5. Cick the Add Alter Configurations tab.
  6. Enter a name for the alterConfig.
  7. In the "Parameter Name" field, specify a new type for the alterConfig. Or, select an existing group from the dropdown list.
  8. In the "Filename" field, specify a filename where you would like the change applied.
  9. In the "Match" field, specify a string to find in the file.
  10. In the "Replace" field, specify the replacement line. Remember, any dynamic parts must be encapsulted by "~##" and "##~" (without the quotes).
  11. Optional: In the "DB Option" field, specify a field to update on the SCInterface Admin page for the server. The parameter you update must be used in the "Replace" field.
  12. Click the Add button to save the new alterConfig.
Adding an Alter Config

Editing Alter Configs

To View & Edit Alter Configs for an SConnector (or its parent):
  1. Click the Admin tab.
  2. Click the SConnector Admin tab.
  3. You will see a table of SConnectors. Click the name of the SConnector to which you would like to edit Alter Configs.
  4. Click the Alter Configs tab.
  5. You will see any Alter Configs for this SConnector, as well as any that it inherits from its parent SConnector. For each Alter Config, the filename, match string, replacement line, and DB option is displayed.
  6. If you have SC-Wide privileges, you will see an edit icon (Edit Icon). Click the edit icon for a configuration to edit it. Note: Editing inherited configurations will bring you to the Admin page for the parent SConnector automatically.
  7. You may change the grouping of the configuration in the "ParamName" field. You may also edit the Filename, Match, Replace, and DB Option for the configuration.
  8. Click the Edit button to save any changes.
Editing Alter Configs

Deleting Alter Configs

To delete Alter Configs:
  1. Click the Admin tab.
  2. Click the SConnector Admin tab.
  3. You will see a table of SConnectors. Click the name of the SConnector from which you would like to delete Alter Configs.
  4. Click the Alter Configs tab.
  5. Click the Delete Alter Configs tab.
  6. You may delete macros from either this SConnector or its parent. To delete a configuration, click the Remove icon (remove icon) for that Alter Config. Note: Deleting an inherited Alter Config will bring you to the Admin page for the parent SConnector automatically.
Deleting Alter Configs

Related Topics: