<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>Config.sol</title><revhistory><revision><revnumber>8</revnumber><date>2015-09-07 00:08:11</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>7</revnumber><date>2015-09-07 00:07:43</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>6</revnumber><date>2015-09-06 23:59:57</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>5</revnumber><date>2015-09-06 23:59:37</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>4</revnumber><date>2015-09-06 23:58:56</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>3</revnumber><date>2015-09-06 23:57:35</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2015-09-06 23:31:31</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2015-09-06 22:34:21</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><para>The Config.sol file is not actually an extra file you can create to use with your bot, but one that the bot creates automatically. This file is stored in your flash storage folder and contains information about your bot and account. For example, the email, password, and server information are stored in Config.sol.  </para><para>You can view information in Config.sol through the bot using Config.whatever. All of the startup parameters settings can be viewed this way. Some of, but not all, of the information you can access here is: </para><itemizedlist><listitem override="none"><screen><![CDATA[Config.username
Config.password
Config.server
Config.proxy
Config.maintenance
etc.
]]><![CDATA[
...
]]><![CDATA[
echo "My password that I keep forgetting is {Config.password}!"]]></screen></listitem></itemizedlist><para>Note that the <emphasis>C</emphasis> in <emphasis>Config</emphasis> is capitalized. This is required. For a full list of startup parameters see here: <ulink url="http://romulus.neatportal.com/wiki/Config.sol/wiki/StartupParameters#">StartupParameters</ulink> </para><para>Now for the really neat bit of Config.sol... you can also store custom information in here using startup parameters and then retrieve it later. For example: </para><itemizedlist><listitem override="none"><screen><![CDATA[-owner Bob]]></screen></listitem></itemizedlist><para>You could enter the above in the Director custom profile parameters or custom parameters box and it would setup an entry &quot;owner&quot; with the value &quot;Bob&quot; in the Config.sol file. You could later access this in the bot as Config.owner. </para><itemizedlist><listitem override="none"><screen><![CDATA[...
if (city.enemyArmies[0].king == Config.owner) return // go back to wherever we were and let our owner attack us
execute "alliancechat Help! Help! I'm under attack from someone other than {Config.owner}!!"  // we didn't return above, so yell for help
return
...]]></screen></listitem></itemizedlist><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://romulus.neatportal.com/wiki/Config.sol/wiki/CategoryExtras#">CategoryExtras</ulink> </para></article>