DryFire
 

Converting Version 2 layouts to Version 3 format

Sample layout

Take a look at any of the Version 3 layouts provided with the software to see the common format - for example: c:\program files\dryfire\layouts\olympicskeet.wdf.

Start of file

The start of a Version 3 layout should be of this form:

' *******************************
' Name of layout
' *******************************

' ************************************************************
' Version, layout limits and simulator angle
' ************************************************************

#Version, 3
#Limits, 28, 72, 30, 130
#SimAngle, 0
#MinDelay, 0
#MaxDelay, 0
#PostLocation, 50, 50, 4.5

' ************************************************************
' Information displayed when layout is loaded
' ************************************************************

#Info, Title of layout.
#Info, 
#Info, Details of layout to be shown on-screen when the layout is loaded.
The #Limits line is moved from its current location in the Version 2 file.

The #SimAngle value is taken from the last value on the Version 2 #WDF line. The simulator angle is zero for all layouts except skeet. The #WDF line is no longer required.

The #MinDelay and #MaxDelay values are taken from the Version 2 #Delay line if present. Minimum is the first value, maximum the second. These are the minimum and maximum delay times, in seconds, before the clay is released after calling "Pull". The #Delay line is no longer required.

The #PostLocation value is only required if there is a known reference point within the layout - such as the post (hoop) in skeet.

Common section after the start

Everything from the above #Info section down to the line:

' Traps

should be deleted. The "Traps", "Stands", "Targets" and "Other features" sections are layout-specific and need to be retained.

In place of the deleted section you should copy the contents of the file: c:\program files\dryfire\layouts\wdfheader.txt.

This ensures that all layouts have the same standard non-layout-specific information near the start of the file

Common section at the end of the file

Everything from the line:

' ******************** ROUTINES/FUNCTIONS ********************

to the end of the file should be deleted.

In its place you should copy the contents of the file: c:\program files\dryfire\layouts\wdffunctions.txt.

This ensures that all layouts have the same standard non-layout-specific functions at the end of the file.

 
Web site design by DryFire.    DHTML Menu By Milonic JavaScript