Torque Game EngineTorque Game Engine Documentation
Version 1.3.x

Exporting a DIF file from QuArK

Once you have constructed your masterwork level, it is time to export it to DIF format so that it can be viewed in-game. A variety of export options can be found under the menu when your mapfile is open. The first five options are the ones that we are most interested in.

QuArK Default Export Options

Tip

Advanced users can create their own export options. The command line options for the map2dif exporter can be found in Appendix E, The Map2Dif Utility.

Once your map is exported, you will need to copy it into your /data/interiors folder so that your game can see it. This folder is located inside your game folder in the Torque directory. For the demo application, it would be torque/example/demo/data/interiors/.

DIF files can be accessed from this folder or from any of its subfolders. Your textures must also be present either in the interiors folder, or the same subfolder as the DIF file itself.

Tip

If you are using .PNG textures, you will want the .PNG versions to be in you /data/interiors folder or subfolder, while the .JPG copies that you are using with QuArK are stored elsewhere.

Loading Your Interiors In-Game

This is a quick overview on how to load your interiors into the mission editor. This is covered in detail in Chapter 4, Mission Editor Introduction.

Procedure 9.2. Placing DIF Interiors in the Mission Editor

  1. Open your game, or the Torque Demo if you don't yet have your game set up.

  2. Press F11 to open the Mission Editor

  3. Press F4 to show the World Editor Creator options, or select it from the Window menu.

  4. Browse through the creation hierarchy to Interiors\(game name)\data\interiors\, and select your interior as shown in the figure below. You object will appear in the scene with no lighting from the sun.

    
                                        Loading a DTS Interior in the Mission Editor

    Loading a DTS Interior in the Mission Editor

  5. Adjust your interior's location as desired.

  6. Relight the scene by pressing Ctrl-L. This will light your object. It may take several seconds.

  7. Exit the mission editor (F11) and explore your interior in-game!