AFAIK, I'm using C-Script (it's in a wdl file). Here's the code for my main level as an example:



path "C:\\Program Files (x86)\\GStudio7\\template_6"; // Path to A6 templates directory
path "C:\\Program Files (x86)\\GStudio7\\template_6\\code"; // Path to A6 template code subdirectory
//path "C:\\Program Files (x86)\\GStudio7\\template_6\\images"; // Path to A6 template image subdirectory
//path "C:\\Program Files (x86)\\GStudio7\\template_6\\sounds"; // Path to A6 template sound subdirectory
//path "C:\\Program Files (x86)\\GStudio7\\template_6\\models"; // Path to A6 template model subdirectory
path "C:\\Program Files (x86)\\GStudio7\\work"; // Path to work subdirectory
path "C:\\Program Files (x86)\\GStudio7\\work\\Exterior GL PIX\\Horizon Pix"; // Path to HPIX subdirectory
path "C:\\Program Files (x86)\\GStudio7\\work\\Exterior GL PIX\\Textures"; // Path to textures subdirectory


string level_str = <GLMainMap.WMB>; // give file names in angular brackets
SAVEDIR "\\screens"; // Save games in subfolder "\gamesave"

////////////////////////////////////////////////////////////////////////////
// Included files
include <gid01.wdl>; // global ids
include <display00.wdl>; // basic display settings
include <doors.wdl>;
include <nogouraud.wdl>;
include <sky01.wdl>;
include <tree1.wdl>;



var myscreenshot_count=0;

function myscreenshot()
{
file_for_screen("shot.png",myscreenshot_count); // saves a screenshot to "shot123.png"
myscreenshot_count+=1;
}



function main()
{
// set some common flags and variables
// freeze all entity functions
freeze_mode = 1;
// no level has been loaded yet...
gid01_level_state = gid01_level_not_loaded;

// entry: Warning Level (0,1, or 2)
// entry_help: Sets sensitivity to warnings (0 = none, 1 = some, 2 = all).
warn_level = 2; // announce bad texture sizes and bad wdl code


// entry: Starting Mouse Mode (0, 1, or 2)
mouse_mode = 0;

// wait 3 frames (for triple buffering) until it is flipped to the foreground
wait(3);

max_entities = 6000;

// now load the level
level_load(level_str);

wait(3); // let level load
// level should be loaded at this point...
gid01_level_state = gid01_level_loaded;

//+++ load starting values

//video_switch(11,32,1); //1024x768 in fullscreen mode
video_set(1920,1200,0,1);
d3d_antialias = 1;

//file_for_screen("test-shot.png",123);


camera.flags |= ISOMETRIC;

on_s = myscreenshot;



// un-freeze the game
freeze_mode = 0;


// main game loop
while(1)
{
if(gid01_level_state != gid01_level_loaded)
{
freeze_mode = 1; // pause the game
while(gid01_level_state != gid01_level_loaded) { wait(1); }
freeze_mode = 0; // resume the game
}
wait(1);
}

}


Last edited by Galen; 07/30/09 13:03.