|
|
|
|
|
|
|
|
|
|
|
|
SGT_FW
by Aku_Aku. 05/31/26 11:05
|
|
|
|
|
3 registered members (VoroneTZ, TipmyPip, 1 invisible),
5,669
guests, and 5
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
C++ - Engine sdk
#337625
08/12/10 08:24
08/12/10 08:24
|
Joined: Feb 2010
Posts: 320 TANA/Madagascar
3dgs_snake
OP
Senior Member
|
OP
Senior Member
Joined: Feb 2010
Posts: 320
TANA/Madagascar
|
Hello, I tried to use the engine sdk from C++, with the sample code. It compiles fine but when I run it, it shows the following error in the startup screen : Error in line 1: Include file viewer.c not found <#include <viewer.c> > . And after that it runs just fine. Is it normal or am I missing something? Thanks for your help.
// 3dgss.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "3dgss.h"
// Include the engine data types, variables, and functions
#include "adll.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
engine_open("terrain.hmp");
while(engine_frame());
engine_close();
return 0 ;
}
VC++ 2010 Express Gamestudio 7.86 Com
|
|
|
Re: C++ - Engine sdk
[Re: 3dgs_snake]
#337637
08/12/10 10:08
08/12/10 10:08
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
instead of passing terrain to engine_open (which passes it as a commandline parameter to engine), pass null to engine open, and use level_load.
if you pass it to engine open engine tries to run in viewr mode, thus looking ofr viewer.c
3333333333
|
|
|
Re: C++ - Engine sdk
[Re: Altimeter]
#338795
08/21/10 17:33
08/21/10 17:33
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
it's probably because, in lite-c, engine the engine automatically assumes you wanted to include acknex.h and default.c, looks like it does the same for c++ sdk, i guess, in this case, JCL will have to look this up.
p.s. also they are in 2 weeks company holiday atm.
3333333333
|
|
|
Re: C++ - Engine sdk
[Re: Aku_Aku]
#339238
08/25/10 14:00
08/25/10 14:00
|
Joined: Feb 2010
Posts: 320 TANA/Madagascar
3dgs_snake
OP
Senior Member
|
OP
Senior Member
Joined: Feb 2010
Posts: 320
TANA/Madagascar
|
Hi, I don't really understand what you want to ask but I will try to answer  The C/C++ SDK for the engine is in the game studio install path. I think that every 3dgs license can use it except the free one. Look here for an usefull tutorial on how to start.
|
|
|
|