<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.mekwars.org/mediawiki-1.34.1/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tubealloy</id>
	<title>MMNet Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.mekwars.org/mediawiki-1.34.1/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tubealloy"/>
	<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php/Special:Contributions/Tubealloy"/>
	<updated>2026-04-12T09:13:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Setting_up_IntelliJ_IDEA&amp;diff=1145</id>
		<title>Setting up IntelliJ IDEA</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Setting_up_IntelliJ_IDEA&amp;diff=1145"/>
		<updated>2016-05-08T12:15:18Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Note - I use IntelliJ Ultimate with the Darcula theme, your IDE may look slightly different'''&lt;br /&gt;
&lt;br /&gt;
If you do not have a subversion client installed you should install tortoisesvn and tick the option to install the command line tools during installation&lt;br /&gt;
&lt;br /&gt;
1. Open IntelliJ IDEA and hit file -&amp;gt; New -&amp;gt; Project from version control -&amp;gt; Subversion &lt;br /&gt;
&lt;br /&gt;
2. Click the green + and enter the url for Mekwars ( svn://svn.code.sf.net/p/mekwars/code/trunk ). Highlight the added repository and click on Checkout &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijsvn.JPG]]&lt;br /&gt;
&lt;br /&gt;
3. Create a directory to store the code by clicking on the folder icon then highlight the folder and click ok (mekwarssvn in this example)&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijdirectory.jpg]]&lt;br /&gt;
&lt;br /&gt;
4. Highlight the &amp;lt;pathtoproject&amp;gt;\p\mekwars\code\trunk and click ok &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijsvnbranch.jpg]]&lt;br /&gt;
&lt;br /&gt;
5. Select the 1.8 format if prompted, you should see &amp;quot;Checking out files to blahblahblah&amp;quot; and a progress bar at the bottom of your IDE. Once finished you will be prompted to open the project.&lt;br /&gt;
&lt;br /&gt;
6. You should have a directory layout that looks like this &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijdirectorylayout.jpg]]&lt;br /&gt;
&lt;br /&gt;
7.Highlight &amp;quot;trunk&amp;quot; and either press F4 or right-click and select &amp;quot;open module settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
8.Select &amp;quot;Project&amp;quot;. Set the SDK to your installed Java version. Set the Project language level to 7&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijprojectsdk.jpg]]&lt;br /&gt;
&lt;br /&gt;
9.Select &amp;quot;Modules&amp;quot; and set the folders as shown in the screenshot below ( highlight src and click on &amp;quot;Sources&amp;quot; on top and do the same for resources and the client and dist libs ). Click OK when done&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijmodulesettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
Then switch to Dependencies and click the green +&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;jar or directory&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Add MegaMek.jar from one of the dist folders so that megamek classes are recognised by the ide as below. &lt;br /&gt;
&lt;br /&gt;
If you still see some unknown classes in the IDE then add the dist/client/lib and dist/server/lib in the same way&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijmegamekjar.jpg]]&lt;br /&gt;
&lt;br /&gt;
10.Click on the &amp;quot;Ant Build&amp;quot; option on the right&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijantlocation.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
11.Click the green +&lt;br /&gt;
&lt;br /&gt;
12.Select build.xml, you should see the following&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijantwindow.jpg]]&lt;br /&gt;
&lt;br /&gt;
13.Highlight &amp;quot;compile&amp;quot; and click the play button. Click messages at the bottom to see the ant build in progress&lt;br /&gt;
&lt;br /&gt;
14.If this fails check the previous steps, if successful then highlight and run dist-client and dist-server &lt;br /&gt;
&lt;br /&gt;
15.Assuming everything ran successfully you should have a &amp;quot;dist&amp;quot; folder in trunk now containing both client and server&lt;br /&gt;
&lt;br /&gt;
16.Expand dist/server and right-click on MekWarsServer.jar. Select &amp;quot;Run MekwarsServer.jar&amp;quot;. It will fail immediately but you will notice it appear in the top right of the screen &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijrunconfigurationlocation.jpg]]&lt;br /&gt;
&lt;br /&gt;
17.Click the drop-down and select &amp;quot;Edit Configurations&amp;quot;&lt;br /&gt;
&lt;br /&gt;
18.Copy these settings (altering for your path ). The working directory is the important bit that was missing&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijserverworkingdirectory.jpg]]&lt;br /&gt;
&lt;br /&gt;
19.Click ok and click the play button next to the drop-down. You should see the server called in the run window at the bottom of the IDE&lt;br /&gt;
&lt;br /&gt;
20.Repeat steps 16 - 19 but for dist/client/MekWarsClient.jar and instead of hitting play at step 19 hit the bug next to the play button&lt;br /&gt;
&lt;br /&gt;
21.Connect to 127.0.0.1 as a username with no password. If you set a breakpoint in the src folder by clicking on a line number then the IDE will pause and allow you to debug. &lt;br /&gt;
&lt;br /&gt;
Note you can also debug the server in the same way&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Setting_up_IntelliJ_IDEA&amp;diff=1144</id>
		<title>Setting up IntelliJ IDEA</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Setting_up_IntelliJ_IDEA&amp;diff=1144"/>
		<updated>2016-05-08T12:01:34Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Note - I use IntelliJ Ultimate with the Darcula theme, your IDE may look slightly different'''&lt;br /&gt;
&lt;br /&gt;
If you do not have a subversion client installed you should install tortoisesvn and tick the option to install the command line tools during installation&lt;br /&gt;
&lt;br /&gt;
1. Open IntelliJ IDEA and hit file -&amp;gt; New -&amp;gt; Project from version control -&amp;gt; Subversion &lt;br /&gt;
&lt;br /&gt;
2. Click the green + and enter the url for Mekwars ( svn://svn.code.sf.net/p/mekwars/code/trunk ). Highlight the added repository and click on Checkout &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijsvn.JPG]]&lt;br /&gt;
&lt;br /&gt;
3. Create a directory to store the code by clicking on the folder icon then highlight the folder and click ok (mekwarssvn in this example)&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijdirectory.jpg]]&lt;br /&gt;
&lt;br /&gt;
4. Highlight the &amp;lt;pathtoproject&amp;gt;\p\mekwars\code\trunk and click ok &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijsvnbranch.jpg]]&lt;br /&gt;
&lt;br /&gt;
5. Select the 1.8 format if prompted, you should see &amp;quot;Checking out files to blahblahblah&amp;quot; and a progress bar at the bottom of your IDE. Once finished you will be prompted to open the project.&lt;br /&gt;
&lt;br /&gt;
6. You should have a directory layout that looks like this &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijdirectorylayout.jpg]]&lt;br /&gt;
&lt;br /&gt;
7.Highlight &amp;quot;trunk&amp;quot; and either press F4 or right-click and select &amp;quot;open module settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
8.Select &amp;quot;Project&amp;quot;. Set the SDK to your installed Java version. Set the Project language level to 7&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijprojectsdk.jpg]]&lt;br /&gt;
&lt;br /&gt;
9.Select &amp;quot;Modules&amp;quot; and set the folders as shown in the screenshot below ( highlight src and click on &amp;quot;Sources&amp;quot; on top and do the same for resources and the client and dist libs ). Click OK when done&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijmodulesettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
Then switch to Dependencies and click the green +&lt;br /&gt;
Select &amp;quot;jar&amp;quot; &lt;br /&gt;
Add MegaMek.jar from one of the dist folders so that megamek classes are recognised by the ide&lt;br /&gt;
[[File:Intellijmegamekjar.jpg]]&lt;br /&gt;
&lt;br /&gt;
10.Click on the &amp;quot;Ant Build&amp;quot; option on the right&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijantlocation.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
11.Click the green +&lt;br /&gt;
&lt;br /&gt;
12.Select build.xml, you should see the following&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijantwindow.jpg]]&lt;br /&gt;
&lt;br /&gt;
13.Highlight &amp;quot;compile&amp;quot; and click the play button. Click messages at the bottom to see the ant build in progress&lt;br /&gt;
&lt;br /&gt;
14.If this fails check the previous steps, if successful then highlight and run dist-client and dist-server &lt;br /&gt;
&lt;br /&gt;
15.Assuming everything ran successfully you should have a &amp;quot;dist&amp;quot; folder in trunk now containing both client and server&lt;br /&gt;
&lt;br /&gt;
16.Expand dist/server and right-click on MekWarsServer.jar. Select &amp;quot;Run MekwarsServer.jar&amp;quot;. It will fail immediately but you will notice it appear in the top right of the screen &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijrunconfigurationlocation.jpg]]&lt;br /&gt;
&lt;br /&gt;
17.Click the drop-down and select &amp;quot;Edit Configurations&amp;quot;&lt;br /&gt;
&lt;br /&gt;
18.Copy these settings (altering for your path ). The working directory is the important bit that was missing&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijserverworkingdirectory.jpg]]&lt;br /&gt;
&lt;br /&gt;
19.Click ok and click the play button next to the drop-down. You should see the server called in the run window at the bottom of the IDE&lt;br /&gt;
&lt;br /&gt;
20.Repeat steps 16 - 19 but for dist/client/MekWarsClient.jar and instead of hitting play at step 19 hit the bug next to the play button&lt;br /&gt;
&lt;br /&gt;
21.Connect to 127.0.0.1 as a username with no password. If you set a breakpoint in the src folder by clicking on a line number then the IDE will pause and allow you to debug. &lt;br /&gt;
&lt;br /&gt;
Note you can also debug the server in the same way&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijmegamekjar.jpg&amp;diff=1143</id>
		<title>File:Intellijmegamekjar.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijmegamekjar.jpg&amp;diff=1143"/>
		<updated>2016-05-08T12:00:06Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1142</id>
		<title>MWClient execution logic</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1142"/>
		<updated>2016-05-07T12:14:47Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1) Main method sets up logs using static methods of CampaignData which points to MWLogger ( Should we switch to a logger like log4j? )&lt;br /&gt;
&lt;br /&gt;
2) Stdout and StdErr are set to /logs/megameklog.txt since megamek uses stdout and stderr ( duplicated code in MWDedHost, again should we use log4j? )&lt;br /&gt;
&lt;br /&gt;
3) Args are parsed, ded is set to true if -dedicated is set, enable or disable splash is read. &lt;br /&gt;
&lt;br /&gt;
4) New CConfig is created by reading &lt;br /&gt;
  data/mwconfig.txt or data/mwconfig.txt.bak&lt;br /&gt;
  serverdata.dat if present&lt;br /&gt;
  images including camo '''if''' not a dedicated server&lt;br /&gt;
&lt;br /&gt;
5 )Splash screen is enabled or disabled and data/mechfiles/units.cache is deleted if it exists&lt;br /&gt;
&lt;br /&gt;
6) The created CConfig is passed as the argument for a new MWClient&lt;br /&gt;
&lt;br /&gt;
7) The MWClient either calls the MekWarsDed.jar if it's a dedicated instance or sets the look and feel if not.&lt;br /&gt;
&lt;br /&gt;
8) MWClient stores a reference to the java runtime bean at rt &lt;br /&gt;
&lt;br /&gt;
9) MWClient creates a new CConnector, passing itself as the argument (since it implements IClient ) and sets the splash window. &lt;br /&gt;
&lt;br /&gt;
10) If not a ded the client retrieves settings and sets data as follows -&lt;br /&gt;
&lt;br /&gt;
  Create a new CCampaign which in turn holds CPlayer and a reference to MWClient&lt;br /&gt;
  Grab the player reference from the CCampaign&lt;br /&gt;
  Initialise and set the protocal commands (comm, ping, pong and acksignon )&lt;br /&gt;
  Initialise and set gui commands ( Ping and Mail )&lt;br /&gt;
  Set the &amp;quot;loading data&amp;quot; status on the splash screen&lt;br /&gt;
  Show sign on dialog if autoconnect is false or if serverip, name or password are empty&lt;br /&gt;
  Create a datafetcher on specified port &lt;br /&gt;
  Check for data/servers/&amp;lt;serverip&amp;gt;.&amp;lt;serverport&amp;gt;/dataLastUpdated.dat. Set the cache to use this directory&lt;br /&gt;
  Load the ops list&lt;br /&gt;
  set up ops&lt;br /&gt;
&lt;br /&gt;
If it is a ded then it does the following &lt;br /&gt;
  create protocol commands&lt;br /&gt;
  create datafetcher, grab the ops&lt;br /&gt;
  delete mmconf/gameoptions.xml if it exists&lt;br /&gt;
&lt;br /&gt;
11) Once past this step both deds and players load the camaignData by calling getData() and timestamping before and after data retrieval.The datafetcher updates the last updated stamp and serialises itself&lt;br /&gt;
&lt;br /&gt;
12) At this point deds have the username prepended with [Dedicated]&lt;br /&gt;
&lt;br /&gt;
13) Options for dedrestarts, savedgamemaxdays, dedowners, port, ignore lists and keywords are read in at this point. The autosave purging thread is started.&lt;br /&gt;
&lt;br /&gt;
14) The splash is set to &amp;quot;connecting&amp;quot; and the chatserver ip and port are set.&lt;br /&gt;
&lt;br /&gt;
15) Non-dedicated clients now start loading up the gui as follows &lt;br /&gt;
  Create a new CMainFrame passing in the MWClient as the parameter and set the logout image&lt;br /&gt;
  Sets the window dimensions and components using either pack() or validate() depending on whether packframe is true. It also sets various gui items like size, location, state&lt;br /&gt;
  Mute sound if set&lt;br /&gt;
  update attack menu&lt;br /&gt;
  set browser to allow urls to be opened in system browser &lt;br /&gt;
  connect to chat server&lt;br /&gt;
  set splash to &amp;quot;constructing gui&amp;quot;&lt;br /&gt;
  set main frame to visible&lt;br /&gt;
  get rid of the splash&lt;br /&gt;
  refresh the status, playerpanel, bmpanel and hqpanel&lt;br /&gt;
  Send client version and username to the chat server&lt;br /&gt;
  Send /getsavedmail to the chat server&lt;br /&gt;
  Start the repair thread ( for repairing mechs )&lt;br /&gt;
&lt;br /&gt;
If it's a ded then instead it &lt;br /&gt;
  Tries to connect to the server up to 20 times with a 90 second sleep time&lt;br /&gt;
&lt;br /&gt;
16)Set up the timeout thread&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1141</id>
		<title>MWClient execution logic</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1141"/>
		<updated>2016-05-07T11:45:39Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Under construction'''&lt;br /&gt;
1) Main method sets up logs using static methods of CampaignData which points to MWLogger ( Should we switch to a logger like log4j? )&lt;br /&gt;
&lt;br /&gt;
2) Stdout and StdErr are set to /logs/megameklog.txt since megamek uses stdout and stderr ( duplicated code in MWDedHost, again should we use log4j? )&lt;br /&gt;
&lt;br /&gt;
3) Args are parsed, ded is set to true if -dedicated is set, enable or disable splash is read. &lt;br /&gt;
&lt;br /&gt;
4) New CConfig is created by reading &lt;br /&gt;
  data/mwconfig.txt or data/mwconfig.txt.bak&lt;br /&gt;
  serverdata.dat if present&lt;br /&gt;
  images including camo '''if''' not a dedicated server&lt;br /&gt;
&lt;br /&gt;
5 )Splash screen is enabled or disabled and data/mechfiles/units.cache is deleted if it exists&lt;br /&gt;
&lt;br /&gt;
6) The created CConfig is passed as the argument for a new MWClient&lt;br /&gt;
&lt;br /&gt;
7) The MWClient either calls the MekWarsDed.jar if it's a dedicated instance or sets the look and feel if not.&lt;br /&gt;
&lt;br /&gt;
8) MWClient stores a reference to the java runtime bean at rt &lt;br /&gt;
&lt;br /&gt;
9) MWClient creates a new CConnector, passing itself as the argument (since it implements IClient ) and sets the splash window. &lt;br /&gt;
&lt;br /&gt;
10) If not a ded the client creates the gui etc. as follows -&lt;br /&gt;
&lt;br /&gt;
  Create a new CCampaign which in turn holds CPlayer and a reference to MWClient&lt;br /&gt;
  Grab the player reference from the CCampaign&lt;br /&gt;
  Initialise and set the protocal commands (comm, ping, pong and acksignon )&lt;br /&gt;
  Initialise and set gui commands ( Ping and Mail )&lt;br /&gt;
  Set the &amp;quot;loading data&amp;quot; status on the splash screen&lt;br /&gt;
  Show sign on dialog if autoconnect is false or if serverip, name or password are empty&lt;br /&gt;
  Create a datafetcher on specified port &lt;br /&gt;
  Check for data/servers/&amp;lt;serverip&amp;gt;.&amp;lt;serverport&amp;gt;/dataLastUpdated.dat. Set the cache to use this directory&lt;br /&gt;
  Load the ops list&lt;br /&gt;
  set up ops&lt;br /&gt;
&lt;br /&gt;
If it is a ded then it does the following &lt;br /&gt;
  create protocol commands&lt;br /&gt;
  create datafetcher, grab the ops&lt;br /&gt;
  delete mmconf/gameoptions.xml if it exists&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1140</id>
		<title>MWClient execution logic</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1140"/>
		<updated>2016-05-07T10:39:59Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1) Main method sets up logs using static methods of CampaignData which points to MWLogger ( Should we switch to a logger like log4j? )&lt;br /&gt;
&lt;br /&gt;
2) Stdout and StdErr are set to /logs/megameklog.txt since megamek uses stdout and stderr ( duplicated code in MWDedHost, again should we use log4j? )&lt;br /&gt;
&lt;br /&gt;
3) Args are parsed, ded is set to true if -dedicated is set, enable or disable splash is read. &lt;br /&gt;
&lt;br /&gt;
4) New CConfig is created by reading &lt;br /&gt;
  data/mwconfig.txt or data/mwconfig.txt.bak&lt;br /&gt;
  serverdata.dat if present&lt;br /&gt;
  images including camo '''if''' not a dedicated server&lt;br /&gt;
&lt;br /&gt;
5 )Splash screen is enabled or disabled and data/mechfiles/units.cache is deleted if it exists&lt;br /&gt;
&lt;br /&gt;
6) The created CConfig is passed as the argument for a new MWClient&lt;br /&gt;
&lt;br /&gt;
7) The MWClient either calls the MekWarsDed.jar if it's a dedicated instance or sets the look and feel if not.&lt;br /&gt;
&lt;br /&gt;
8) MWClient stores a reference to the java runtime bean at rt &lt;br /&gt;
&lt;br /&gt;
9) MWClient creates a new CConnector, passing itself as the argument (since it implements IClient ) and sets the splash window. &lt;br /&gt;
&lt;br /&gt;
10) If not a ded the client creates the gui etc. as follows -&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1139</id>
		<title>MWClient execution logic</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1139"/>
		<updated>2016-05-07T09:54:19Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1) Main method sets up logs using static methods of CampaignData which points to MWLogger ( Should we switch to a logger like log4j? )&lt;br /&gt;
&lt;br /&gt;
2) Stdout and StdErr are set to /logs/megameklog.txt since megamek uses stdout and stderr ( duplicated code in MWDedHost, again should we use log4j? )&lt;br /&gt;
&lt;br /&gt;
3)Args are parsed, ded is set to true if -dedicated is set, enable or disable splash is read. &lt;br /&gt;
&lt;br /&gt;
4)New CConfig is created by reading &lt;br /&gt;
    data/mwconfig.txt or data/mwconfig.txt.bak&lt;br /&gt;
    serverdata.dat if present&lt;br /&gt;
    images including camo '''if''' not a dedicated server&lt;br /&gt;
&lt;br /&gt;
5)Splash screen is enabled or disabled and data/mechfiles/units.cache is deleted if it exists&lt;br /&gt;
&lt;br /&gt;
6)The created CConfig is passed as the argument for a new MWClient&lt;br /&gt;
&lt;br /&gt;
7)The MWClient either calls the MekWarsDed.jar if it's a dedicated instance or sets the look and feel if not.&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1138</id>
		<title>MWClient execution logic</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MWClient_execution_logic&amp;diff=1138"/>
		<updated>2016-05-07T09:53:57Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: Created page with &amp;quot;1) Main method sets up logs using static methods of CampaignData which points to MWLogger ( Should we switch to a logger like log4j? )  2) Stdout and StdErr are set to /logs/m...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;1) Main method sets up logs using static methods of CampaignData which points to MWLogger ( Should we switch to a logger like log4j? )&lt;br /&gt;
&lt;br /&gt;
2) Stdout and StdErr are set to /logs/megameklog.txt since megamek uses stdout and stderr ( duplicated code in MWDedHost, again should we use log4j? )&lt;br /&gt;
&lt;br /&gt;
3)Args are parsed, ded is set to true if -dedicated is set, enable or disable splash is read. &lt;br /&gt;
&lt;br /&gt;
4)New CConfig is created by reading &lt;br /&gt;
        data/mwconfig.txt or data/mwconfig.txt.bak&lt;br /&gt;
        serverdata.dat if present&lt;br /&gt;
        images including camo '''if''' not a dedicated server&lt;br /&gt;
&lt;br /&gt;
5)Splash screen is enabled or disabled and data/mechfiles/units.cache is deleted if it exists&lt;br /&gt;
&lt;br /&gt;
6)The created CConfig is passed as the argument for a new MWClient&lt;br /&gt;
&lt;br /&gt;
7)The MWClient either calls the MekWarsDed.jar if it's a dedicated instance or sets the look and feel if not.&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1137</id>
		<title>MekWars Developers</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1137"/>
		<updated>2016-05-07T09:44:17Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Setting up IntelliJ IDEA]]&lt;br /&gt;
&lt;br /&gt;
[[Code entry-points]]&lt;br /&gt;
&lt;br /&gt;
[[MWClient execution logic]]&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Code_entry-points&amp;diff=1136</id>
		<title>Code entry-points</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Code_entry-points&amp;diff=1136"/>
		<updated>2016-05-07T08:55:18Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Taken from manifest main properties&lt;br /&gt;
&lt;br /&gt;
'''Client''' - src\client\MWClient.java &lt;br /&gt;
&lt;br /&gt;
'''Server''' - src\server\MWServ.java&lt;br /&gt;
&lt;br /&gt;
'''Dedicated host''' - src\dedicatedhost\MWDedHost.java&lt;br /&gt;
&lt;br /&gt;
'''Updater''' - src\updaters\MekWarsAutoUpdate.java&lt;br /&gt;
&lt;br /&gt;
'''OperationsEditor''' - src\OperationsEditor\MainOperations.java&lt;br /&gt;
&lt;br /&gt;
'''PlanetDatConverter''' - src\server\campaign\tools.PlanetDatConverter\PlanetDatConverter.java&lt;br /&gt;
&lt;br /&gt;
'''Tracker''' - src\tracker\MWTracker.java&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Code_entry-points&amp;diff=1135</id>
		<title>Code entry-points</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Code_entry-points&amp;diff=1135"/>
		<updated>2016-05-07T08:54:41Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: Created page with &amp;quot;Taken from manifest main properties  Client - src\client\MWClient.java   Server - src\server\MWServ.java  Dedicated host - src\dedicatedhost\MWDedHost.java  Updater - src\upda...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Taken from manifest main properties&lt;br /&gt;
&lt;br /&gt;
Client - src\client\MWClient.java &lt;br /&gt;
&lt;br /&gt;
Server - src\server\MWServ.java&lt;br /&gt;
&lt;br /&gt;
Dedicated host - src\dedicatedhost\MWDedHost.java&lt;br /&gt;
&lt;br /&gt;
Updater - src\updaters\MekWarsAutoUpdate.java&lt;br /&gt;
&lt;br /&gt;
OperationsEditor - src\OperationsEditor\MainOperations.java&lt;br /&gt;
&lt;br /&gt;
PlanetDatConverter - src\server\campaign\tools.PlanetDatConverter\PlanetDatConverter.java&lt;br /&gt;
&lt;br /&gt;
Tracker - src\tracker\MWTracker.java&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1134</id>
		<title>MekWars Developers</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1134"/>
		<updated>2016-05-07T08:47:26Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Setting up IntelliJ IDEA]]&lt;br /&gt;
&lt;br /&gt;
[[Code entry-points]]&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1133</id>
		<title>MekWars Developers</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1133"/>
		<updated>2016-05-07T08:47:16Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Setting up IntelliJ IDEA]]&lt;br /&gt;
[[Code entry-points]]&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1130</id>
		<title>MekWars Developers</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1130"/>
		<updated>2016-05-05T16:36:17Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Setting up IntelliJ IDEA]]&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Setting_up_IntelliJ_IDEA&amp;diff=1129</id>
		<title>Setting up IntelliJ IDEA</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=Setting_up_IntelliJ_IDEA&amp;diff=1129"/>
		<updated>2016-05-05T16:33:31Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: Created page with &amp;quot;'''Note - I use IntelliJ Ultimate with the Darcula theme, your IDE may look slightly different'''  If you do not have a subversion client installed you should install tortoise...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Note - I use IntelliJ Ultimate with the Darcula theme, your IDE may look slightly different'''&lt;br /&gt;
&lt;br /&gt;
If you do not have a subversion client installed you should install tortoisesvn and tick the option to install the command line tools during installation&lt;br /&gt;
&lt;br /&gt;
1. Open IntelliJ IDEA and hit file -&amp;gt; New -&amp;gt; Project from version control -&amp;gt; Subversion &lt;br /&gt;
&lt;br /&gt;
2. Click the green + and enter the url for Mekwars ( svn://svn.code.sf.net/p/mekwars/code/trunk ). Highlight the added repository and click on Checkout &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijsvn.JPG]]&lt;br /&gt;
&lt;br /&gt;
3. Create a directory to store the code by clicking on the folder icon then highlight the folder and click ok (mekwarssvn in this example)&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijdirectory.jpg]]&lt;br /&gt;
&lt;br /&gt;
4. Highlight the &amp;lt;pathtoproject&amp;gt;\p\mekwars\code\trunk and click ok &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijsvnbranch.jpg]]&lt;br /&gt;
&lt;br /&gt;
5. Select the 1.8 format if prompted, you should see &amp;quot;Checking out files to blahblahblah&amp;quot; and a progress bar at the bottom of your IDE. Once finished you will be prompted to open the project.&lt;br /&gt;
&lt;br /&gt;
6. You should have a directory layout that looks like this &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijdirectorylayout.jpg]]&lt;br /&gt;
&lt;br /&gt;
7.Highlight &amp;quot;trunk&amp;quot; and either press F4 or right-click and select &amp;quot;open module settings&amp;quot;&lt;br /&gt;
&lt;br /&gt;
8.Select &amp;quot;Project&amp;quot;. Set the SDK to your installed Java version. Set the Project language level to 7&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijprojectsdk.jpg]]&lt;br /&gt;
&lt;br /&gt;
9.Select &amp;quot;Modules&amp;quot; and set the folders as shown in the screenshot below ( highlight src and click on &amp;quot;Sources&amp;quot; on top and do the same for resources and the client and dist libs ). Click OK when done&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijmodulesettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
10.Click on the &amp;quot;Ant Build&amp;quot; option on the right&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijantlocation.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
11.Click the green +&lt;br /&gt;
&lt;br /&gt;
12.Select build.xml, you should see the following&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijantwindow.jpg]]&lt;br /&gt;
&lt;br /&gt;
13.Highlight &amp;quot;compile&amp;quot; and click the play button. Click messages at the bottom to see the ant build in progress&lt;br /&gt;
&lt;br /&gt;
14.If this fails check the previous steps, if successful then highlight and run dist-client and dist-server &lt;br /&gt;
&lt;br /&gt;
15.Assuming everything ran successfully you should have a &amp;quot;dist&amp;quot; folder in trunk now containing both client and server&lt;br /&gt;
&lt;br /&gt;
16.Expand dist/server and right-click on MekWarsServer.jar. Select &amp;quot;Run MekwarsServer.jar&amp;quot;. It will fail immediately but you will notice it appear in the top right of the screen &lt;br /&gt;
&lt;br /&gt;
[[File:Intellijrunconfigurationlocation.jpg]]&lt;br /&gt;
&lt;br /&gt;
17.Click the drop-down and select &amp;quot;Edit Configurations&amp;quot;&lt;br /&gt;
&lt;br /&gt;
18.Copy these settings (altering for your path ). The working directory is the important bit that was missing&lt;br /&gt;
&lt;br /&gt;
[[File:Intellijserverworkingdirectory.jpg]]&lt;br /&gt;
&lt;br /&gt;
19.Click ok and click the play button next to the drop-down. You should see the server called in the run window at the bottom of the IDE&lt;br /&gt;
&lt;br /&gt;
20.Repeat steps 16 - 19 but for dist/client/MekWarsClient.jar and instead of hitting play at step 19 hit the bug next to the play button&lt;br /&gt;
&lt;br /&gt;
21.Connect to 127.0.0.1 as a username with no password. If you set a breakpoint in the src folder by clicking on a line number then the IDE will pause and allow you to debug. &lt;br /&gt;
&lt;br /&gt;
Note you can also debug the server in the same way&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijserverworkingdirectory.jpg&amp;diff=1128</id>
		<title>File:Intellijserverworkingdirectory.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijserverworkingdirectory.jpg&amp;diff=1128"/>
		<updated>2016-05-05T16:29:58Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijrunconfigurationlocation.jpg&amp;diff=1127</id>
		<title>File:Intellijrunconfigurationlocation.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijrunconfigurationlocation.jpg&amp;diff=1127"/>
		<updated>2016-05-05T16:26:38Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijantwindow.jpg&amp;diff=1126</id>
		<title>File:Intellijantwindow.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijantwindow.jpg&amp;diff=1126"/>
		<updated>2016-05-05T16:22:30Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijantlocation.jpg&amp;diff=1125</id>
		<title>File:Intellijantlocation.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijantlocation.jpg&amp;diff=1125"/>
		<updated>2016-05-05T16:19:11Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijmodulesettings.jpg&amp;diff=1124</id>
		<title>File:Intellijmodulesettings.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijmodulesettings.jpg&amp;diff=1124"/>
		<updated>2016-05-05T16:16:48Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijprojectsdk.jpg&amp;diff=1123</id>
		<title>File:Intellijprojectsdk.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijprojectsdk.jpg&amp;diff=1123"/>
		<updated>2016-05-05T16:14:08Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijdirectorylayout.jpg&amp;diff=1122</id>
		<title>File:Intellijdirectorylayout.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijdirectorylayout.jpg&amp;diff=1122"/>
		<updated>2016-05-05T16:11:09Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijsvnbranch.jpg&amp;diff=1121</id>
		<title>File:Intellijsvnbranch.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijsvnbranch.jpg&amp;diff=1121"/>
		<updated>2016-05-05T16:07:33Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijdirectory.jpg&amp;diff=1120</id>
		<title>File:Intellijdirectory.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijdirectory.jpg&amp;diff=1120"/>
		<updated>2016-05-05T16:03:25Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijsvn.JPG&amp;diff=1119</id>
		<title>File:Intellijsvn.JPG</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=File:Intellijsvn.JPG&amp;diff=1119"/>
		<updated>2016-05-05T15:59:56Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: svn settings&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;svn settings&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
	<entry>
		<id>http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1118</id>
		<title>MekWars Developers</title>
		<link rel="alternate" type="text/html" href="http://www.mekwars.org/mediawiki-1.34.1/index.php?title=MekWars_Developers&amp;diff=1118"/>
		<updated>2016-05-05T15:47:58Z</updated>

		<summary type="html">&lt;p&gt;Tubealloy: Created page with &amp;quot;Placeholder&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Placeholder&lt;/div&gt;</summary>
		<author><name>Tubealloy</name></author>
		
	</entry>
</feed>