Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: engine_getscript + wait [Re: Helghast] #308077
02/01/10 14:37
02/01/10 14:37
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I admit that your explanations still don't make any sense to me. If it does not return to the calling function, then where does it return to?

Can you check the return path in the debugger of your development system? Or are you calling engine_getscript not from an external language but from within a script?

Re: engine_getscript + wait [Re: jcl] #308079
02/01/10 14:44
02/01/10 14:44
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
I'm calling it from within the script, I'm using this to create Triggers of which I can run custom functions off.
The files are uploaded already, in the contest entry of me.
If needed, I can point out where it occurs.


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: engine_getscript + wait [Re: Helghast] #308080
02/01/10 14:46
02/01/10 14:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Why do you call engine_getscript from within a script? This is a function of the SDK, to be used in external languages. In a script, the function pointer is just the name of the function.

Re: engine_getscript + wait [Re: jcl] #308084
02/01/10 14:57
02/01/10 14:57
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
I asked this before, because previously in A6, I could do this with execute.
You suggested back then when i asked for a replacement to use this instead, so I did.

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=247735


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: engine_getscript + wait [Re: Helghast] #308094
02/01/10 15:48
02/01/10 15:48
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, now I at least understand what you want to do. But still I don't know why you have a problem.

When you call a function, it does not matter how you got its pointer, as long as it's the right one. The function itself does not know that you called engine_getscript before. It just executes and returns.

Maybe something else in your project causes a problem? For testing, write a simple script that just gets and calls your function pointer. Check if it returns correctly. Also check if you've defined the prototype correctly and if you're really calling the right function pointer.

Re: engine_getscript + wait [Re: jcl] #308207
02/02/10 08:51
02/02/10 08:51
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
I found out what the problem was;

the entity that calls the function, was removed, thus the handle to you/my was invalid, and the function didnt get executed.
I mis-understood this part, because i was thinking that my handle was the global dummy function i get the handle with (like i showed above).

thanks for the help.


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Page 2 of 2 1 2

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