Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by k_ivan. 06/10/26 14:39
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (VoroneTZ, TipmyPip, 1 invisible), 5,575 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
C++ - Engine sdk #337625
08/12/10 08:24
08/12/10 08:24
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline OP
Senior Member
3dgs_snake  Offline 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.

Code:
// 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 Offline
Senior Expert
Quad  Offline
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: Quad] #337652
08/12/10 11:11
08/12/10 11:11
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline OP
Senior Member
3dgs_snake  Offline OP
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
OK, I did like you said. Now it displays an error about default.c, but it's ok for me (it's not even noticeable, as the application window shows up faster).

Thanks a lot!

Re: C++ - Engine sdk [Re: 3dgs_snake] #338794
08/21/10 17:26
08/21/10 17:26
Joined: Mar 2007
Posts: 75
Hamburg, Ger
Altimeter Offline
Junior Member
Altimeter  Offline
Junior Member

Joined: Mar 2007
Posts: 75
Hamburg, Ger
Same problem here. The errormessage pops up briefly in the startscreen, but later the game starts without problems. It happens only with engine sdk, not whith plugin sdk.

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 Offline
Senior Expert
Quad  Offline
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: Quad] #339234
08/25/10 13:42
08/25/10 13:42
Joined: Sep 2009
Posts: 1,035
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,035
Budapest
I would like to know is there a C++ SDK for A7 and A8.
How can i get that?
It needs a Pro license?

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 Offline OP
Senior Member
3dgs_snake  Offline 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 smile

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.

Re: C++ - Engine sdk [Re: 3dgs_snake] #339245
08/25/10 14:24
08/25/10 14:24
Joined: Sep 2009
Posts: 1,035
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,035
Budapest
I have found a link, that points this: http://server.conitec.net/down/AcknexWrapper_7_82_1_0_2.zip
So that was in my mind, i have to download that.

Re: C++ - Engine sdk [Re: Aku_Aku] #339252
08/25/10 15:32
08/25/10 15:32
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...


A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: C++ - Engine sdk [Re: pararealist] #339263
08/25/10 17:02
08/25/10 17:02
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
c++ sdk is located at the engine_sdk folder on your gamestudio installation dir.


3333333333
Page 1 of 2 1 2

Moderated by  TWO 

Gamestudio download | 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