page06

Com files, where and how to use them, plus examples

 

Com files are very useful for running a Dedicated Server in combination with the FBDaemon. You dont have to use them, but i have found they simplify some tasks so much I cannot do without them now.

What is a com file?

If you look in your Dedicated Server directory look for a file called rcu , This is the file type required for use as a com file. Make a copy of this file and rename it setup. Edit it and remove the contents so its clear, SAVE , DONT saveas or you will screwup the file type. Now you have a file called setup which  you can make all your com files with. leave it in the Dedicated Server directory.

All of these files; to run are REQUIRED to be in the Dedicated Server directory.

How do you activate them?

They can be activated ingame by an admin by the command (FBDaemon needs to be active) <<<file dotmedium

They can be activated by adding this to the properties files of a mission. com=file dotmedium\n 

You can activate com files as part of another com file. Like a sub programme.

Any of the server commands avaliable can be made into a com file.

 

The following is a list of my most common com files i use.

01. difficulty1, difficulty2, difficulty3

Most commands in IL2FB can be run ingame, but one cannot. This is the difficulty setting. The reason is that they need to be executed whilst a map is not running. If you remember the server file, i had you edit it with a line file difficulty1 before loading the map. Ok now lets create it.

Take the setup file you have just made, copy and paste it. Rename it to difficulty1 

Open it with notepad and add the following then save it. Note: 0=off,1=on

difficulty SeparateEStart 1
difficulty ComplexEManagement 1
difficulty EngineOverheat 1
difficulty TorqueGyroEffects 1
difficulty FlutterEffect 1
difficulty WindTurbulence 1
difficulty StallsSpins1
difficulty Vulnerability 1
difficulty BlackoutsRedouts 1
difficulty RealisticGunnery 1
difficulty LimitedAmmo 1
difficulty LimitedFuel 1
difficulty CockpitAlwaysOn 1
difficulty NoOutsideViews 0
difficulty HeadShake 1
difficulty NoIcons 0
difficulty NoPadlock 0
difficulty Clouds 1
difficulty NoInstantSuccess 1
difficulty TakeoffLanding 1
difficulty RealisticLandings 1
difficulty NoMapIcons 1
difficulty NoMinimapPath 0
difficulty NoSpeedBar 0

Now once you have saved it, copy and paste twice. Rename them to difficulty2 and difficulty3 and then open each and change values to settings you want then, save. Now you have 3 easy to set difficulty setups. To activate you need to end the map, activate the file reqired then reload a map again. Or easier, change the line file difficulty1 in the server file to the difficulty file you require. Then reboot the server.

 

02. localip

I use this to set my ip of my host internet address. If you remember the server file, i had you edit it with a line file localip after loading the map.

Take the setup file you have just made, copy and paste it. Rename it to localip 

Open it with notepad and add the following then save it. Note: Replace the xxx.xxx.xxx.xxx with the ip that you want to add. If you have more than one just add a line for each required. Remember the Dedicated Server automatically creates 1 ip(socket). If the ip you create isnt avaliable it will ignore it. 

socket udp CREATE LOCALHOST xxx.xxx.xxx.xxx LOCALPORT 21000

 

03. doteasy, dotmedium, dothard 

I use doteasy, dotmedium and dothard to change the icon range settings ingame. Very useful. 

Take the setup file you have just made, copy and paste it. Rename it to dotmedium 

Open it with notepad and add the following then save it.

mp_dotrange FOE COLOR 2.5 DOT 15 RANGE 5.0 TYPE 1.5 ID 1.0 NAME 1.0
mp_dotrange FRIENDLY COLOR 2.5 DOT 15 RANGE 5.0 TYPE 1.5 ID 1.0 NAME 1.0

Now once you have saved it, copy and paste twice. Rename them to doteasy and dothard and then open each and change values to settings you want then, save. Now you have 3 easy to set icon dot range setups. The admin can activate ingame at anytime or activate them from the properties file when the map loads.

 

04. racestart 

This is a fun com file which i use for starting races in race maps.

Take the setup file you have just made, copy and paste it. Rename it to racestart 

Open it with notepad and add the following then save it.

timeout 10 chat 2 minutes to race...get to postions now!
timeout 30000 chat Race on race on
timeout 60000 chat 1 minute to race....last chance
timeout 90000 chat pilots, hurry now
timeout 120000 chat Pilots, Starting positions
timeout 126000 chat Pilots, Starting positions
timeout 143000 chat And we’re in the hands of the Starter
timeout 148000 chat (RED)(RED)(RED)(RED)
timeout 149000 chat (RED)(RED)(RED)
timeout 150000 chat (RED)(RED)
timeout 151000 chat (RED)
timeout 152000 chat (GO)(GO)(GO)(GO)(GO)
timeout 152100 chat (GO)(GO)(GO)(GO)(GO)
timeout 152200 chat (GO)(GO)(GO)(GO)(GO)

Activate in game to start a race countdown. Can be added to a propeties file aswell, but you only have 2 minutes from map load to get to starting positions Note: Once this sort of file is activated the timeouts will count time until final timeout passes. So if a map reloaded just after the file is run it will carry on counting into the next map.

Go to the next stage

Return to Contents