Manuals
A Pilot Client For Online Simulation (Based on DAFSIM Protocol)
One thing you need to know before : You can not run FS with several pilot clients installed, so if you want to try Squawkwin, you must disable the other clients.
First thing first is to open
two TCP ports number 55008 and 55009 in ALL your
firewalls, routers, NATs, Windows firewall and so on.
The full path to reach your software on these ports must be opened
and cleared.
The pilot client is available as an auto-installer executable software.
Unzip the package somewhere is a temporary folder, launch SwInstal.exe, select your version of simulator ( FSX, FS2004, FS2002 or X-Plane 9.3 and above) then click OK.
After having installed Squawkwin, all you need to do is to run FS or X-Plane.
You will find a new entry in your FS2004 menu (no need in FSX). Select “SquawkWin” and click “Open”.
Hint : You may also press on your keyboard Shift + Tab keys to open (or show/hide) SquawkWin and specially if you don't see the menu at first installation or in FSX.

With FS2004, a multiplayer session will be launched automatically, with FSX, SquawkWin will create an internal multiplayer session.

A new window fully integrated in FS Window will appear. This is the SquawkWin user interface :
Hint : For X-Plane you must double click the Icon on your desktop to launch xSquawkWin.exe. The xSquawkWin.exe will link with the xSquawkWin.xpl module using 127.0.0.1:55007 TCP

Move your mouse cursor over the Squawkwin’s text window and click the right mouse button. The SquawkWin menu will appear.
Click "Options" then "Main setup"

then fill the name and homebase fields like this :

Click "Save" button.
Move your mouse cursor over the Squawkwin’s text window and click the right mouse button.
Click "Options" then "Main setup"
Fill the fields 
IMPORTANT:
You should open 2 TCP ports on your router and firewall to use SquawkWin in the best conditions .
Note : Users with closed ports will also be accepted as the server will manage them using TCP Tunneling technique but this will consume much more bandwidth on the server.
Move your mouse cursor over the Squawkwin’s text window and click the right mouse button.

Select “Networks...”, then choose your favorite Network.
A new window will appear where you can enter your callsign and then connect.

If everything is ok, you should be connected to the network server.
If you are licensed to kick out "bad boys" , please refer to KICKING A PLAYER in the SquawkRadar section
III. Using the PTA ( Plane Type Assignator ) Please read carefully this manual
In odrer to let the other players to see you in the right plane when you join their multiplayer session, they need to know the ICAO type of your aircraft and also it's livery.
Your SquawkWin will send it to the others and you will receive theirs.
Unfortunately, the ICAO type of the aircrafts is not mandatory in our preferred flight simulators and there is no standard field defined in the aircraft.cfg (or acf files in XPlane) to be sure to get that code.
For this reason, SquawkWin will try to "guess" the ICAO type of your planes (the ones installed on your PC) in order to inform your neighbors about your aircraft.
This automatic "guess" process is not perfect because many times the aircraft designers do not put enough information in the aircraft.cfg files.
Here is an example of "hard to guess" entries in these files :
In such a case, SquawkWin can not guess the right ICAO code and will have 25% chances to select the right code.
Therefore, I have created a new tool to allow the teaching of SquawkWin to pick-up the right ICAO type and livery of your aircrafts in case it is wrong. This tool is called P.T.A ( Plane Type Assignator )
How does it work ? A rule will be created that associates a string (the plane name or a substring) to an ICAO type (and optionnally the Airlines ICAO code of three digits)
This rule will replace the ICAO codes found by SquawkWin
Let's have an example :
To open the PTA window, click the menu like this :
You will get the following window :

Explanation about the fields :
As you may see in the previous picture, SquawkWin has not "guessed" well the ICAO type of the Drealiner and has assigned B762 instead of B783 or B788 or B789
Now let's create a new rule as we said :
You should get this screen :
As you will see, we have a new rule that appears in field 6 and in field 5 all the Dreamliners have now ICAO type B788 and a star * is prepending the lines where a rule applies.
Now SquawkWin will send ICAO type B788 to the other players whenever you use the Dreamliner
Okay, now what about the livery ?
If I click on the first Lufthansa Dreamliner in the field 5, I will get DLH in field 3, this means that SquawkWin has well guessed the ICAO code of the Airlines ( livery ) as shown below :
But if I click on the next line with Lufthansa Cargo, SquawkWin will also believe it is DLH whereas it should be GEC, so let's create a rule for the ICAO Airlines code :
Now whenever a plane has "Lufthansa Cargo" in his title, SquawkWin will assign ICAO code GEC for this Airline ( Livery )
An advanced user or administrator can create a rules files ( Rules.txt ) and distribute it to all the pilots of his group.
You don't need to create rules if SquawkWin has found the right ICAO type and code !
IV. Using the PTO ( Plane Type Overrider ) Please read carefully this manual
Please read the PTA section before starting this one.
The PTO works like a LookUp Table : It is a "transposer".
I have developed the PTO for the next purposes :
To open the PTO window, click the menu like this :
You will get the following window :

Explanation about the fields :
When a pilot joins your multiplayer session, the PTO works with SquawkWin using THREE levels of hierarchy :
Let's now have some examples :
Example 1
Assume you are using FS2004 or XPlane 9.3 with only the default planes ... And an FSX pilot joins your multiplayer session using a plane called Airbus A321 MyPaint05 ...
- In FS2004 you may decide to create a rule that will show this pilot in a Boeing 734-400 ( which is the closest twin jet you have in this simulator )
then the rule should be created like this :
- In field 1, type this A321
- In field 2, select the local Boeing 737-400
- Click button "Add this rule" to validate
- In XPlane you may do the same, just replace the Boeing 737-400 by ( for instance ) the default Boeing 777 or ( any closest plane you want )
Example 2
Assume you are using a simulator with some addons installed but you don't have any 3 engines Jet like the DC10 or MD11... And another pilot joins your multiplayer session using a plane called Douglas DC10 Varig ...
When your SquawkWin receives this information, it receives also the type of that remote plane and thus SquawkWin knows the ICAO engines prefix is L3J which means Land 3engines JetHere are some useful links about these codes : http://www.icao.int/anb/ais/txtfiles/doc8643_31_0.txt and http://www.eais.com.pk/Aircraft%20Type%20Information/A/1.htm
- Assume you have in your PC, a Boeing 777-200 then you may decide that any 3 engines Jet you don't have in your addons will be represented by this Boeing 777-200, so here are the steps to create the default rule :
- In field 6, go to the line labelled "L3J : Three engines Jet ->>" and select in the combobox on the right the Boeing 777-200
- Click button "Validate these default rules"
Example 3
Assume that with some friends, you have built and want to test a new experimental plane called "XPER Private Labs" that is Amphibian, equipped with 9 Turbo prop engines ...Hmmmm interesting, huh ?
- So let's assume that the ICAO engines prefix ( this is fake of course, not found in the ICAO official list ) would look like this A9T
To ensure that all the testers that could join your session with such a plane, even if his name changes, you will create a dedicated default rule like this :
- In field 7, directly type A9T
- In field 8, select the "XPER Private Labs"
- Click button "Validate these default rules"
Recommendations for optimal use of SquawkWin :
- If your internet connection allows it, you should set in SquawkWin : Right click to get the menu then Options->Main setup->Upload bandwidth then > 128 Kbits/s / Excellent
- Limit your FPS (Frames Per Second) to 30 fps maximum
- Setup your joystick with a wide enough null zone to avoid sending a lot of messages to the others for nothing and saturating your bandwidth
- Windows XP users must have installed SP2 or SP3
- TeamSpeak 2 is managed by SquawkWin and SquawkRadar (not TeamSpeak 3)
- The multithreaded core of SquawkWin in FSX and XPlane allows now more smoothness and stability as you may consider military or civilian formation flying, air refueling as well as very sharp airshow demonstration : To get this fluidity, if you are using a multicore CPU, ensure you are using all the cores with FSX and X-Plane ( check the internet to get the tricks on how to balance better the CPU load with FSX or X-Plane for multicore CPU's ) because, by default, when you start FSX or X-Plane, only CPU0 is used at 100% and the others at less ...
And also informations :
- Only X-Plane 9.3 and above (preferably 9.62) are managed by xSquawkWin
- Of course all X-Plane pilots using xSquawkWin can be controlled by ATC's using SquawkRadar
- xSquawkWin will disable the "Speech" and "Radio tchater" of X-Plane
- For the moment, with the actual version of X-Plane and SDK, the lights on the AI aircrafts are not controlled.
- xSquawkWin does not manage the weather (like in FSX and FS9) but X-Plane can already be set to handle the real weather and pickup the real life METARs
- SquawkWin for FS9 (and now FSX) is compatible with FSUIPC and can fill the AI array for TCAS and Radar uses for example. You can also disable this feature in SquawkWin.
An ATC Radar Client For Online Simulation (using DAFSIM Protocol)
How to setup and connect your SquawkRadar
(SR) :
CAUTION : If you use SquawkRadar under Windows VISTA, then disable the AERO interface or SR would crash to desktop because of the 3D mode of AERO !
First thing first is to open
TCP port number 55004 in ALL your firewalls, routers,
NATs, Windows firewall and so on.
The full path to reach your software on TCP port 55004 must be open
and cleared.
On your PC (running (c)Microsoft Windows)
if you have not created the folder for SR, then create a folder called
DAFSIM and in this folder create another folder called SR
This should looks like : C:\dafsim\SR
Copy and unzip in (C:\dafsim\SR)
the SquawkRadar.zip file and double click to launch SquawkRadar.exe
Now there are two steps : One step should be done only ONCE to setup
the installation and the second step is the normal and usual connecting
step.
In SR, click "Setup" tab control then click "Network Setup" Button
FIRST STEP TO DO ONLY AT THE VERY FIRST INSTALLATION
In SR, click "Setup" tab control then click "Network Setup" Button
SECOND STEP (WHAT TO DO EACH TIME YOU LAUNCH YOUR RADAR)
Hint : You may press F1 key to read a condensed HELP and find-out by your self...
KICKING A PLAYER
This may be done for a player that does not respond (not front of his PC) or a player that disturbs others.
If you have some trouble
to open/setup your modem, here is are some good helpfull links:
http://portforward.com/routers.htm
http://www.dslreports.com/faq/7074
If your flight simulation network is not a LAN, you need to setup your website like this :
Assume that you have a website called www.mywebsite.com,
then you can create a flight simulation network called MYWEBSITE.
For the moment I have only written the tools for a PHP compatible website,
but if you are ASP skilled, then you can help the community and contribute by converting
my PHP to it's equivalent in ASP and I'll put it online with your name.
Now, in your website, create two folders like this:
www.mywebsite.com/dafsim
and
www.mywebsite.com/whazzup
Unzip somewhere on your hard disk, the file php_dafsim.zip
Choose a password for your flight simulation network
Edit the file password.php and replace "yourpassword" by your password.
Now upload all the files to the folder www.mywebsite.com/dafsim, and give PHP pages the execution and file creation rights (use chmod command).
To test that everything is up and running, open your browser and in enter the url http://www.mywebsite.com/dafsim/servers.php (of course, replace mywebsite by the real name of your website ...)
You should read the following message:
Congratulations ! Your PHP code for dafsim is up and running.
There are two items to setup : One item is the website, the other one is the Dafnode server.
First thing first, setup your website as explained above.
Installing and running the Dafnode :
Next step is to open
TCP port number 55000 in ALL your firewalls, routers,
NATs, Windows firewall and so on.
The full path to reach your software on TCP port 55000 must be open
and cleared.
On your hard disk (your own PC or any windows machine) create a folder
called DAFSIM and then in this folder create a folder called dafnode.
This should looks like : C:\dafsim\dafnode
In the dafnode folder (C:\dafsim\dafnode)
unzip the Dafnode.zip file and double click to launch Dafnode.exe
Now there are two steps : One step should be done only ONCE in order to setup
at first the installation and the second step is the normal and usual connecting
step.
FIRST STEP TO DO ONLY AT THE VERY FIRST INSTALLATION

SECOND STEP (WHAT TO DO EACH TIME YOU LAUNCH YOUR SERVER)
You can create in advance accounts for members
by clicking "Setup and Database" tab control then "Members
Database" button ... I let you find out by yourself...
When a member is banned, then even if he tries to connect with a new
name and new login, he will be refused. The only way to get accepted
is to use another PC or reformat the Hard Drive, and this could take
several hours or several PC's :-)
Take a look at the PHP code I've made to understand more... and don't forget to read the FAQ, there are some nice tricks !
The Dafnode has been split in two parts: A core part and the graphic (GUI) part.
The core part is called DCS (Dafnonode Core Server) and the graphic part is DGI (Dafnode Graphic Interface)
There are three items to setup : One item is the website, the other one is the core server (DCS) and the last one is the graphic interface DGI.
In this document, the term DCS will designate the file winDCS.exe under Windows, or linDCS under Linux
First thing first, setup your website as explained above.
Installing and running the DCS :
Next step is to open
TCP port number 55000 in ALL your firewalls, routers,
NATs, Windows firewall and so on.
The full path to reach your software on TCP port 55000 must be open
and cleared.
On your hard disk, create a folder
called DAFSIM and then in this folder create a folder called dafnode.
This should looks like : C:\dafsim\dafnode or any folder under Linux that ends with dafsim/dafnode
NOTA :
a) If you already have installed dafnode.exe, then you just need to copy there the DCS.exe ( dafnode.exe and DCS.exe do share the same database and config files )
b) It is NORMAL to create a folder called dafnode to install in it the DCS; DCS means ... Dafnode Core Server
In the DCS folder (C:\dafsim\dafnode)
unzip the DCS.zip file and double click to launch DCS.exe
Now there are two steps : One step should be done only ONCE in order to setup
the installation and the second step is the normal and usual connecting
step.
FIRST STEP TO DO ONLY AT THE VERY FIRST INSTALLATION





SECOND STEP ( HOW TO MAKE YOUR SERVER START AUTOMATICALLY )

#!/bin/bash ./lindcs_x86_32 DELAY_TO_CONNECT_AT_STARTUP=5 PASSWORD_TO_WEBSITE=yourpassword &
The & at the end allows the session window, such as putty, to be closed. This also allows for any crashes. It will automatically restart itself on a crash, not a full system restart or shut down.
ADVICES
Copyright © DAFSIM by Karim BENNEGADI 2004-2011
Products, brands and trademarks are property of their respective owners/companies