HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

This system I made

09-13-2008, 05:56 AM#1
dead_or_alivex
Not the best of topic titles, but...

Could I have comments on this system I made? Link. If it's okay, if I can improve anything.

It basically handles everything timer-related in the map with a single timer, allows any period for functions to be executed, and supports data-passing. In that sense, it's kinda like TT, but with different features, methods, and usage.

Expand JASS:

Edit: Code.
09-16-2008, 06:12 AM#2
dead_or_alivex
Bump. This was on the second page already.

Another thing: is it true that desyncs can be caused by true/false (can't remember which) returns in timer callbacks?
09-18-2008, 02:11 AM#3
Vexorian
hmnn, I dunno perhaps actually posting the code would help.

Quote:
hing: is it true that desyncs can be caused by true/false (can't remember which) returns in timer callbacks?
non-sense.
09-18-2008, 05:49 AM#4
fX_
im not sure but i think you pass data by passing the calling function's struct itself? if i were to use this system, should ALL my struct's be the same/analogous?
09-18-2008, 11:22 AM#5
dead_or_alivex
Quote:
hmnn, I dunno perhaps actually posting the code would help.
Alright, no problem. Added the code to the first post.

Quote:
non-sense.
Kay, good to know. I thought I'd missed some major issues with desyncs there. O.o

Quote:
im not sure but i think you pass data by passing the calling function's struct itself?
The "calling function's struct"? Not very sure what you mean. You can pass any struct, be it from a .create() in the calling function itself or from a return, etc.

Quote:
if i were to use this system, should ALL my struct's be the same/analogous?
Nope, that's not a requirement (unless you were using some kind of universal struct for your entire map); if it were, it'd be pretty restrictive. You can pass any structs you create.
09-18-2008, 12:02 PM#6
Captain Griffen
Quote:
hing: is it true that desyncs can be caused by true/false (can't remember which) returns in timer callbacks?

It can be caused by them not being there where they should be - conditions, boolexprs, etc., since they seem to be evaluated differently in the mac version to the PC.
09-19-2008, 04:42 PM#7
dead_or_alivex
Quote:
It can be caused by them not being there where they should be - conditions, boolexprs, etc., since they seem to be evaluated differently in the mac version to the PC.
Meaning, having condition functions and boolexprs without returns, or with certain return values?

Is this issue Mac-specific?
09-20-2008, 02:27 AM#8
Pyrogasm
Quote:
Originally Posted by dead_or_alivex
Meaning, having condition functions and boolexprs without returns, or with certain return values?

Is this issue Mac-specific?
From their non-existence. This will desync Mac users from PC users or crash Mac users outright:
Collapse JASS:
function foo takes nothing returns boolean
    call BJDebugMsg("Blah")
endfunction
Edit: and yes it is Mac-specific.
09-20-2008, 06:21 AM#9
dead_or_alivex
Okay, thanks for the information.

Any comments on the system now? :P