|
0 registered members (),
1,251
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Syntex error on nonexisting line
#251424
02/12/09 23:48
02/12/09 23:48
|
Malice
Unregistered
|
Malice
Unregistered
|
I'm getting a compiler syntex error on a line in my script that doesn't exist. The "main" script ends on line 131 but the compiler throughs a error on line 132. I looked the code over and didn't see any errors. Do you see a error??? The only thing that I change was the commenting format from /**/ to //. //////////////////////////////////////////////////////////////////////////////////////////////////
//
// Introducion
// ===========
// Script: Main loop and start up settings.
// ======= --------------------------------
// Script type: Stand alone
// ============ -----------
// Version: 02
// ======== --
// Date: Early 2009
// ===== ----------
// Start Date: 1/05/2009 10:00 am
// =========== ------------------
// Last modified: 2/12/2009 5:24 pm
// ============== -----------------
// Programmer: ****** ******** Malice
// =========== ----------------------
// Goal: This script is a center location for all data required to set the engine and start
// ===== ----------------------------------------------------------------------------------
// it up.
// ------
//
// A Word for the Programmer: I'm not sure who you are or why you are reading this. I hope
// ========================== ------------------------------------------------------------
// that I have made the script clear for all readers.
// --------------------------------------------------
//
//
//
// Mention: Thanks go out to the members of the 3d gamestudio forum for answering my
// ======== ------------------------------------------------------------------------
// questions even the pointless and stupid ones. Thanks to the 3dgamestudio design
// -------------------------------------------------------------------------------
// team for this great software. An most importent Thanks to my family and friends
// --------------------------------------------------------------------------------
// for the support and encouragement.
// ----------------------------------
//
// The END: Thank you for you interest in my work
// ======== -------------------------------------
// ****** ********
// ===============
// AKA Malice
// ==========
// ******* Texas USA
// =================
//
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie";//location of Main folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\scripts";//location Lirte-C scripts folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\models";//location model folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\images";//location image folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\levels";//location *.WNB levels folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\multimedia";//location media folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\multimedia\sounds";//location sounds folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\multimedia\videos";//location videos folder
#define PRAGMA_PATH "%EXE_DIR%\work\3dUnseelie\MapEntities";//location *.wmp map enities folder
#include <acknex.h>
#include <default.c>
#include "mtlFX.c"
#include "Devs.c"
#include "TestData.c"
#include "Camera.c"
#include "Animation.c"
#include "PlayerMovement.c"
#include "EventTimers.c"
#include "PlayerEnt.c"
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// Function MAIN
// =============
// Code Type: Master engine loop.
// ========== -------------------
// Function Type: Independent
// ============== -----------
// Version: 01
// ======== --
// Date: Early 2009
// ===== ----------
// Start Date: 1/05/2009
// =========== ---------
// Last modified: 2/05/2009 7:00 pm
// ============== -----------------
// Programmer: ****** ******** Malice
// =========== ----------------------
//
// Goal: The goal of this function is to set engine varibles, load the start level and run
// ===== ---------------------------------------------------------------------------------
// the main rendering loop (done invisible and NOT should in the code below)
// --------------------------------------------------------------------------
//
//
//
// A Word for the Programmer: The main engine loop is the starting point for the program.
// ========================== -----------------------------------------------------------
// Startup can be used for setting verible before the main loop
// ------------------------------------------------------------
// runs.
// -----
// Complexity: Simple
// =========== ------
// Future: As needed
// ======= ---------
// Additional info in function: None
// ============================ ----
//
//
//
//
//
//
//
//////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
function main()
{
tree_range = 100; // coarse-grained tree, bigger regions
max_entities=5000;
shadow_stencil = 2;// set the engine shadow model to dynamic shadows
video_screen =1;
video_mode =8 ;
level_load("test.WMB");
} Please Help!!! Malice Texas USA
|
|
|
Re: Syntex error on nonexisting line
[Re: ]
#251426
02/12/09 23:51
02/12/09 23:51
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi! Do you have an empty line after 131? Put one if not and try again. Ottawa ![smile smile](/ubb7/images/graemlins/default_dark/smile.gif)
|
|
|
Re: Syntex error on nonexisting line
[Re: DrunkenPirate]
#251582
02/13/09 21:36
02/13/09 21:36
|
Malice
Unregistered
|
Malice
Unregistered
|
Found it last night... It's another error caused by comments in one of the include scripts.
Thanks for the replys
Malice Texas USA
|
|
|
|
|
|