The new version of CWSRestart will allow you to import presets. This can help you to deploy settings to a larger number of PCs. Another case where presets are useful are custom servers. Presets can be imported via the CWSProtocol. Or you can copy a preset into the preset subfolder, to load it automatically.

Presets are simple XML files. A sample preset would look like this:

<?xml version="1.0" encoding="utf-8" ?>
<!-- This is a sample preset file that can be used to set settings in CWSRestart -->
<Preset Name="CubeWorldMITM">
  <Server Port="12345" Location="C:\Test\Server.exe" Process="Server" DoNotRedirectOutput="false" BypassSendQuit="false">
      <Check Name="Internet" Enabled="True" />
      <Check Name="LAN" Enabled="false" />
      <Check Name="Loopback" Enabled="True" />
    <Process Process="Notepad" />
    <Process Process="Calc" />

As you can see, the structure is pretty self explaining. The only required element is the root element Preset with the Name attribute. Everything else is purely optional. The upcoming version of CubeWorld MITM will use presets to automatically configure CWSRestart. This way you don't have to edit the config file anymore :)

from by

comments powered by Disqus