3 registered members (NewbieZorro, TipmyPip, 1 invisible),
19,045
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Perhaps not the root problem given your description, but shouldn't these:
#define wait(i) _wait(i);
#define wait(i) my_wait(i);
...be these:
#define wait(i) _wait(i)
#define wait(i) my_wait(i)
?
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
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
Expert
|
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
Expert
|
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
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
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
[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
OP
Expert
|
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
Expert
|
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!  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: JibbSmart]
#387847
11/24/11 15:42
11/24/11 15:42
|
Joined: Jul 2008
Posts: 894
TechMuc
User
|
User
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  ). 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
Expert
|
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
|
|
|
|