Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Syntex error on nonexisting line #251424
02/12/09 23:48
02/12/09 23:48

M
Malice
Unregistered
Malice
Unregistered
M



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 //.

Code:
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// 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
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

Re: Syntex error on nonexisting line [Re: Ottawa] #251437
02/13/09 02:50
02/13/09 02:50
Joined: Jan 2009
Posts: 34
D
DrunkenPirate Offline
Newbie
DrunkenPirate  Offline
Newbie
D

Joined: Jan 2009
Posts: 34
Yea the error warnings of the engine are terrible. Also watch out for a similar error when you forget to put a ';'. It will say the line after the forgotten ; has a syntax error, when it's actually the line before.

Re: Syntex error on nonexisting line [Re: DrunkenPirate] #251582
02/13/09 21:36
02/13/09 21:36

M
Malice
Unregistered
Malice
Unregistered
M



Found it last night... It's another error caused by comments in one of the include scripts.

Thanks for the replys

Malice
Texas USA


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1