Minimum script statements needed to load a simple mission?
by Juan Aramburu · in Torque Game Engine · 03/21/2006 (10:48 pm) · 0 replies
How does one load a mission starting from an empty main.cs file using TSE? What are the minimum functions to call? My objective currently is to generate a mission file with my own heightmap & texture, but I need a way to view it. I tried copying over TGE examples into TSE, but of course that errors out. I have no problem in TGE knowing what the terrain/texture looks like as there's an editor. Using the TSE, I just need to see how the output terrain & texture look to verify that my .raw file & the options used to generate the .chu & .tqt are correct.
Also, I keep getting a "failed to open output file" on generateChunkFile....
My main.cs is just this: "enableWinConsole(true);"
And the command is this: "generateChunkFileFromRaw16("Heightmap.raw", 512, 1, 1.0/128.0, "Heightout.chu", 100, 512);
Heightmap.raw was from a 512x512 sized image.
All files are in the same directory as tse_debug.exe.
Also, I keep getting a "failed to open output file" on generateChunkFile....
My main.cs is just this: "enableWinConsole(true);"
And the command is this: "generateChunkFileFromRaw16("Heightmap.raw", 512, 1, 1.0/128.0, "Heightout.chu", 100, 512);
Heightmap.raw was from a 512x512 sized image.
All files are in the same directory as tse_debug.exe.