July 31, 200223 yr Hi all.Here's the code for a road: include TMFmacros.incinclude CFS2TMFmacros.inc; Line Test; ===================================================================; DATA_BASEdata_base label word dw 1 ; world set number dd 2667133 ; North Bound dd 2444872 ; South Bound dd 310192082 ; East Bound dd 262470223 ; West Bound dd 0 ; VOR data dw 0 ; lowest VOR freq dw 0 ; highest VOR freq dd 0 ; seeds level 8 data dd 0 ; seeds level 9 data dd 0 ; seeds level 10 data dd 0 ; seeds level 11 data dd 0 ; seeds level 12 data dd 0 ; traffic data dd 0 ; minimum safe altitude data dd terrain_data - data_base; terrain mesh data dd 0 ; object data dd 0 ; library data dd 0 ; facilities data dd 0 ; anchor point data dd 0 ; ATIS data dd 0 ; NDB data dd 0 ; dynamic object paths data dd 0h,0h ; minimum library id dd 0h,0h ; maximum library id dd 0 ; miscellaneous data dd 0 ; title and description data dd 0 ; magnetic variation data dd 0 ; exception and exclusion data dd 87654321h ; magic number dd 0 ; compression switch dw 0 ; spare dd 0h,0h,0h,0h ; GUID dd 0 ; product id dd 0 ; product build number dd 0 ; new facility data pointers dd 0 ; new facility name list data dd 0 ; new facility band list data dd 0 ; new facility data; ===================================================================; TERRAIN_DATAterrain_data label word dd terrain_header_end - terrain_data ; end of terrain header dd 514 ; version dd 0 ; unknown entry dd 0 ; unknown entry dd 0 ; elevation header dd 0 ; land class header dd 0 ; unknown header dd 0 ; class lookup header dd 0 ; season header dd 0 ; class lookup list dd 0 ; water class header dd 0 ; elevation index dd 0 ; land cover index dd 0 ; unknown index dd 0 ; flatten polygon header dd decal_header - terrain_data ; decal header dd 0 ; reserved dd 0 ; reserved dd 0 ; main terrain data dd 0 ; reserved dd 0 ; reserved dd 0 ; reserved dd 0 ; regions header dd 0 ; reserved dd 0 ; reservedterrain_header_end label word; ===================================================================; DECAL_HEADERdecal_header label word DECAL_HEADER 256, decal_list, decal_textures, decal_end; DECAL_DATAdecal_data label word; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - data_start_0 label word DECAL_DATA 1, 6, 3, 28, 0, 0, 0 DECAL_GEOMETRY 1, DECAL_ROAD_LINE, 1, 0 ; 1st set of points -------------------------------------------- DECAL_POINTS 8 +0c0h CFS2LINE_RIB 0, 120, 0, 0 CFS2LINE_RIB 0, 127, 63, 0 CFS2LINE_RIB 86, 120, 0, 85 CFS2LINE_RIB 86, 127, 63,85 CFS2LINE_RIB 172, 120, 0, 170 CFS2LINE_RIB 172, 127, 63, 170 CFS2LINE_RIB 255, 120, 0, 255 CFS2LINE_RIB 255, 127, 63, 255 data_end_0 label word; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - data_start_1 label word DECAL_DATA 1, 7, 0, 28, 0, 0, 0 DECAL_GEOMETRY 1, DECAL_ROAD_LINE, 1, 0 ; 1st set of points -------------------------------------------- DECAL_POINTS 8 +0c0h CFS2LINE_RIB 0, 120, 0, 0 CFS2LINE_RIB 0, 127, 63, 0 CFS2LINE_RIB 86, 120, 0, 85 CFS2LINE_RIB 86, 127, 63,85 CFS2LINE_RIB 172, 120, 0, 170 CFS2LINE_RIB 172, 127, 63, 170 CFS2LINE_RIB 255, 120, 0, 255 CFS2LINE_RIB 255, 127, 63, 255 data_end_1 label word; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - data_start_2 label word DECAL_DATA 1, 7, 1, 28, 0, 0, 0 DECAL_GEOMETRY 1, DECAL_ROAD_LINE, 1, 0 ; 1st set of points -------------------------------------------- DECAL_POINTS 8 +0c0h CFS2LINE_RIB 0, 120, 0, 0 CFS2LINE_RIB 0, 127, 63, 0 CFS2LINE_RIB 86, 120, 0, 85 CFS2LINE_RIB 86, 127, 63,85 CFS2LINE_RIB 172, 120, 0, 170 CFS2LINE_RIB 172, 127, 63, 170 CFS2LINE_RIB 255, 120, 0, 255 CFS2LINE_RIB 255, 127, 63, 255 data_end_2 label word; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - data_start_3 label word DECAL_DATA 1, 7, 2, 28, 0, 0, 0 DECAL_GEOMETRY 1, DECAL_ROAD_LINE, 1, 0 ; 1st set of points -------------------------------------------- DECAL_POINTS 4 +0c0h CFS2LINE_RIB 0, 120, 0, 0 CFS2LINE_RIB 0, 127, 63, 0 CFS2LINE_RIB 76, 120, 0, 85 CFS2LINE_RIB 76, 127, 63,85 data_end_3 label word; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -; ===================================================================; DECAL_ LIST decal_list label word DECAL_LIST 1, decal_groups, decal_data decal_groups label word DECAL_GROUP 189, 437, decal_data, data_start_0, data_end_3; ===================================================================; TERRAIN DECALS TEXTURESdecal_textures label word TEXTURE_HEADER 1, texture_groups, texture_data, texture_endtexture_groups label word TEXTURE_GROUP texture_data, texture_start_0, texture_end_0texture_data label wordtexture_start_0 label word TEXTURE_DATA "1140", 0, 3, 4texture_end_0 label wordtexture_end label word; ===================================================================; DECAL_ENDdecal_end label word; =================================================================== The dirt road trails off into the distance...
Create an account or sign in to comment