Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Is "execute" still supported? #417807
02/18/13 00:57
02/18/13 00:57
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline OP
Expert
Uhrwerk  Offline OP
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Hello Mr. Lotter,

I was wondering if execute is still supported by the engine. I tried:
Code:
#include <acknex.h>

void main()
{
	execute("beep()");
	execute("sys_exit(0)");
	execute("level_load(\"test.wmb\")");
}

but none of these executes works, neither without nor with a semicolon. Has the support for this function seized?


Always learn from history, to be sure you make the same mistakes again...
Re: Is "execute" still supported? [Re: Uhrwerk] #417810
02/18/13 09:20
02/18/13 09:20
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Execute is unchanged AFAIK, but of course of little use as it's for C-Script only.

Re: Is "execute" still supported? [Re: jcl] #417823
02/18/13 14:45
02/18/13 14:45
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline OP
Expert
Uhrwerk  Offline OP
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
The manual says
Originally Posted By: Manual
Under lite-C the function uses the C-Script interpreter. It can only be used for calling engine functions with engine variables, and has no access to functions or variables of the script.
so I was under the impression that it did work under Lite-C. So execute cannot be used at all in Lite-C? Or is there an error in my code?


Always learn from history, to be sure you make the same mistakes again...
Re: Is "execute" still supported? [Re: Uhrwerk] #418005
02/20/13 10:00
02/20/13 10:00
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I've checked to be sure, but no, it can not be used in lite-C. The manual was wrong here. It could be used in the early lite-C version that supported a mix of lite-C and C-Script, but I believe since A7 the C-Script interpreter can not be called anymore in a lite-C project. This was apparently never corrected in the manual.

Re: Is "execute" still supported? [Re: jcl] #418047
02/20/13 14:58
02/20/13 14:58
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline OP
Expert
Uhrwerk  Offline OP
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Thanks for the info! :-)


Always learn from history, to be sure you make the same mistakes again...

Moderated by  old_bill, Tobias 

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