Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,787 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 5 1 2 3 4 5
Re: Manipulating the function scheduler? [Re: EvilSOB] #387795
11/23/11 18:46
11/23/11 18:46
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Perhaps not the root problem given your description, but shouldn't these:
Code:
#define wait(i)		_wait(i);
#define wait(i)		my_wait(i);

...be these:
Code:
#define wait(i)		_wait(i)
#define wait(i)		my_wait(i)

?


Formerly known as JulzMighty.
I made KarBOOM!
Re: Manipulating the function scheduler? [Re: JibbSmart] #387796
11/23/11 18:51
11/23/11 18:51
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
void my_wait_func(var) = wait; //save pointer of wait in my_wait_func

#define wait(i) do{ diag("waiting\n"); my_wait_func(i); } while(0)

Re: Manipulating the function scheduler? [Re: EvilSOB] #387801
11/23/11 19:34
11/23/11 19:34
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
[edit]
Techmuc ninja'd me with a solution x)

Last edited by Joozey; 11/23/11 19:35.

Click and join the 3dgs irc community!
Room: #3dgs
Re: Manipulating the function scheduler? [Re: Joozey] #387805
11/23/11 20:51
11/23/11 20:51
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hehehe, no he didnt.

I tried that before, and again with TechMuch's exact code,and get a syntax error on
Code:
void my_wait_func(var) = wait;

AND Ive tried with an empty function pointer and engine_getscript in the start of main, but it return NULL.
It seems 'wait' is a function, not a 'script'....
.
.
.
Next!

Nice try though...

[EDIT] Check your post for typo's please Jibb. What you ask makes no sense to me...



Last edited by EvilSOB; 11/23/11 20:53. Reason: Footnote to JibbSmart

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Manipulating the function scheduler? [Re: EvilSOB] #387810
11/23/11 21:49
11/23/11 21:49
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: EvilSOB
[EDIT] Check your post for typo's please Jibb. What you ask makes no sense to me...

It makes sense what he writes, otherwise there would be an extra ';' at the end which the Lite-C compiler doesn't really like.

About wait(), I'm not even sure if its a real function anyway, since it returns to the caller of the function that calls wait and does other quite interesting stuff.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Manipulating the function scheduler? [Re: WretchedSid] #387826
11/24/11 08:40
11/24/11 08:40
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
"since it returns to the caller of the function that calls wait"
Doesn't every function return to the function that called it? I don't understand this sentence...


~"I never let school interfere with my education"~
-Mark Twain
Re: Manipulating the function scheduler? [Re: Germanunkol] #387836
11/24/11 12:50
11/24/11 12:50
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hmmm.. Either JibbSmart sneakily editied his post befor JustSid saw it,
or Im going blind...

Yes Jibb, you are correct. The ';' characters in the defines WERE misplaced.
Damn typos. Thanks for pointing that out, it may have bitten me later.

But, as you say, it doesnt help with my root problem.

[EDIT] Time to increase my font size AGAIN! tongue Sorry Jibb!

Last edited by EvilSOB; 11/24/11 13:55. Reason: Apology

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Manipulating the function scheduler? [Re: EvilSOB] #387841
11/24/11 13:40
11/24/11 13:40
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Nope laugh No edits.


Formerly known as JulzMighty.
I made KarBOOM!
Re: Manipulating the function scheduler? [Re: JibbSmart] #387847
11/24/11 15:42
11/24/11 15:42
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
the best way would be to hook the engine wait call. doing this it would be possible to execute user defined script within any wait call (any script you need - at least if the script does not start a wait call again wink ).

If you really need such a plugin we can talk about this.

Re: Manipulating the function scheduler? [Re: TechMuc] #387850
11/24/11 15:59
11/24/11 15:59
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
NEED is too strong a word.
Its a de-bugging tool, so I feel a plugin is more work than its worth.

But as a point of note... its been a while since 'the developer' posted
any comments in this thread...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 3 of 5 1 2 3 4 5

Moderated by  old_bill, Tobias 

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