The DFX map editor and bin files

Tools needed: Devils Claw bin tools and notepad (download here) Get a blank bin file here

*************WARNING************

Do not have your bin file in your map making folder when you open your map in Xmed

you will loose all your mission goals

*************WARNING************

 

Sample

'[Mission Dialog]'2

'[info]'
Title = "HmS Airport.v2 by *HmS*Trevor";
Briefing = "Your mission - if you choose to accept it - is to clear the airport of targets, the rebels have hidden their radios in housing complex north of your location, in addiTion you have to destroy all their red targets, get the crates in hangars.
There is a hidden trigger to stop the STRIKER and ATV from respawning. Have Fun

<ucFF8030>Goals: <-uco>

<cFF8030> 1.<-co> Destroy radios around B.

<cFF8030> 2.<-co> Destroy all crates in the hangars.

<cFF8030> 3.<-co> Destroy the oil reserves.

<cFF8030> 4.<-co> Destroy their comms centre.

<cFF8030> 4.<-co> Get to helo pad in NW corner for rescue

<ucFC8030>Note: <-uco>

<cFF8030> -<-co> Stay in mission zone Tree line or death (warning given)

<ucFC8030>Important: <-uco> Any Comments please go to: http://www.Hardmaps.com";

 

The first section is what the player sees ingame when he presses the "i" key.

 

 

 

<cFF8030> this changes the colour of the number 1.

<-co> this stops the colour change

 

 

 

 

 

 

 


'[WPNames]'
STRWPNAME000 = "null";
STRWPNAME001 = "Oil Depot";
STRWPNAME002 = "Bravo";
STRWPNAME003 = "Charlie";
STRWPNAME004 = "Delta";
STRWPNAME005 = "Echo";
STRWPNAME006 = "Foxtrot";
STRWPNAME007 = "Golf";
STRWPNAME008 = "Hotel";
STRWPNAME009 = "India";
STRWPNAME010 = "Juliet";
STRWPNAME011 = "Kilo";
STRWPNAME012 = "Lima";
STRWPNAME013 = "Mike";
STRWPNAME014 = "November";
STRWPNAME015 = "Oscar";
STRWPNAME016 = "Papa";
STRWPNAME017 = "Quebec";
STRWPNAME018 = "Romeo";
STRWPNAME019 = "Sierra";
STRWPNAME020 = "Tango";
STRWPNAME021 = "Uniform";
STRWPNAME022 = "Victor";
STRWPNAME023 = "Whiskey";
STRWPNAME024 = "X-Ray";
STRWPNAME025 = "Yankee";
STRWPNAME026 = "Zulu";

 

This section gives your player waypoints their names

fig.3

'[WinConditions]'
STRWINCOND000 = "null";
STRWINCOND006 = "Destroy all radios";
STRWINCOND003 = "Eliminate crates";
STRWINCOND005 = "Destroy all oil supplies";
STRWINCOND008 = "destroy all coms";
STRWINCOND046 = "Get to exfil";

STRWINDIRECTIVE000 = "null";
STRWINMSG000 = "null";
STRWINMSG006 = "radios neutralised";
STRWINMSG003 = "crates neutralised";
STRWINMSG005 = "oil neutralised";
STRWINMSG008 = "coms neutralised";
STRWINMSG046 = "You made it";

 

This is an important area, you have to add all your mission goals here, if the player has downloaded your map then he will see any custom goals you create here.

To get the correct goals to show for all players these numbers need to be as .mis file, simply open the .mis file in notepad and look for the line subgoals_win 6 3 5 8 46 0 0 0, these numbers will not match your map LOL they are from HmS Airport.

Failure to do this will result in players seeing the wrong goals when the map is run in a public server

 

You also have to add the loose messages

 

'[LoseConditions]'
STRLOSECOND000 = "null";

Unused
'[PeopleNames]'
STRNAME000 = "null";
STRNAME001 = "Alpha 1";

This is how you name the Blue team bots

 

'[CineText]'
STRREGION = " ";
STRTIME = " ";

 

Unused
'[LOCATIONS]'
LOCATION000 = "null";
LOCATION001 = "Radio ";
LOCATION002 = "Helo pad";
LOCATION003 = "Coms";
This is your section for name areas of the map

*************WARNING************

Do not have your bin file in your map making folder when you open your map in Xmed

you will loose all your mission goals

*************WARNING************

 

 

Step 1

Create your map, test it then complete all changes.

Step 2

Now you have it in its finished state you need to open the .mis file in notepad to find some info needed for your bin file.

// mission metafile, saved on 12/31/2006, 20:25

begin general_information
file_version 2
name "HmS_Airport-tr"
designer "*HmS*Trevor"
terrain FLAT
cnv_file
tt_file
terrain_color 0
attrib 16777216
visible_if 0
notvisible_if 0
arty 0
water_level 0
water_color 0
murk 0
fog_level 0
fog_color 0
weather_type 0
lowest_elev 0
num_items 3252
num_events 68
sunset full_00
start_time 2000
minutes_per_day 0180
viewx 95295
viewy -17490
viewz 0
viewzoom 0.003604
gen_def_val1 0
gen_def_val2 0
gen_def_val3 0
gen_def_val4 0
hardwin 0
hardlose 0

 
subgoals_win 6 3 5 8 46 -1 -1 -1

This is the line you are looking for, note that these numbers match those in the sample bin (fig.3) see above

subgoals_lose -1 -1 -1 -1 -1 -1 -1 -1

win_scores 0 0 0 0 0 0 0 0
lose_scores 0 0 0 0 0 0 0 0
terrain_tile_tga
wind 0 0
wp_names_blue 0 0 0 0 0 0 0 0
wp_names_red 0 0 0 0 0 0 0 0
player_type 1
max_saves 3

 

*************WARNING************

Do not have your bin file in your map making folder when you open your map in Xmed

you will loose all your mission goals

*************WARNING************

 

Step 3

Naming bots.

If you have freindly (blue team) bots in your map you name them by giving them a number in their item attributes that relates to there name in the bin file. See the red box and text below.

*************WARNING************

Do not have your bin file in your map making folder when you open your map in Xmed

you will loose all your mission goals

*************WARNING************

 

Step 4

Naming area of your map.

As with player naming you do this by giving your NAMED LOCATION MARKER a number. See the red box and text below

You can increase the size of the area just like any waypoint by changing the number in the distance box.

*************WARNING************

Do not have your bin file in your map making folder when you open your map in Xmed

you will loose all your mission goals

*************WARNING************

 

Written by *HmS*Trevor