System Timer Ticker

Cohadar

master of fugue
Reaction score
209
>>ABCT
ABCT..?

>>If someone knows how to use this system, then the one probably knows what is a boolexpr.
You sure?
In the past, I know using CSCache before i acknowledge anything about BoolEpxr.

@Cohadar
You still havent explain about the BoolExpr thingy.

What boolexpr thingy ffs?
There is no boolexpr anywhere in this sys.
It is used like this:

Code:
//==============================================================================
private function PeriodicFunc takes nothing returns boolean
    local SpellData data = TT_GetData() // TT
   // ---- do something here
endfunction


call TT_Start(function PeriodicFunc, data) // TT

Download the map for the example of use before you ask stupid questions. PLEASE.

ABC + ABCC + ABCT
 
Reaction score
456
> call TriggerAddCondition(Triggz[Counter], Condition(userFunc))
There is.
 

Cohadar

master of fugue
Reaction score
209
It is inside the system and invisible to the user so no there is not.
 

Jesus4Lyf

Good Idea™
Reaction score
397
The reason being that if you have one timer that runs at 5 second period for example and you cast a spell in second 2 it will take 3 seconds before spell actually gets activated by the system.
The array system with the countdown that I suggested earlier in this thread works for that, but...
>it is actually faster to use attaching
Fair enough. Just a thought. :D

>Omg~ You are stealing Cohadar's business by making another alike system.
Actually, Key Timers came first and did this already. But talk about KT in the KT thread, kthx.
>It's only text, nothing has been stolen.

>the Initfunc requirement for implementing
My bad, just tested it and it works fine, sorry. :)

With the returns false thing... The fact that it's a boolexpr doesn't matter. Just don't return nothing (lol?). If you want to know what happens if you do, try it yourself. And tell us what happens. :D
 

0zaru

Learning vJASS ;)
Reaction score
60
So,basically, for end the timer the userFunc must return true when all effects are finished or It will leak?
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
This may make fatal error i assume?:
JASS:
//==============================================================================
private function PeriodicFunc takes nothing returns boolean
    local SpellData data = TT_GetData() // TT
   // ---- do something here

return
return true
endfunction


call TT_Start(function PeriodicFunc, data) // TT


Though it is something idiot...

So the userFunc must return a boolean either it is false or true?
 

Cohadar

master of fugue
Reaction score
209
So,basically, for end the timer the userFunc must return true when all effects are finished or It will leak?

true means - stop calling this function and clean up leaks
false means - continue calling this function.

You cannot return nothing I believe NewGen will not even let you compile that.
 

Jesus4Lyf

Good Idea™
Reaction score
397
Ugh... Ok, for those who have never messed with Conditions, or who don't comprehend...

JASS:
function Test takes nothing returns nothing
call BJDebugMsg("Loop")
endfunction

function Trig_Test_Actions takes nothing returns nothing
call TT_Start(function Test, 0)
endfunction

//===========================================================================
function InitTrig_Test takes nothing returns nothing
    set gg_trg_Test = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( gg_trg_Test, 1.00 )
    call TriggerAddAction( gg_trg_Test, function Trig_Test_Actions )
endfunction


You can make a condition out of a function that takes nothing and returns nothing, and the result is the condition seems to return false. I believe the reason is that null converts to 0 which converts to false with booleans.

Example, the above creates a permanant entry in TT. Try it yourself... It constant displays the "Loop" message. However, for safety and uncertainty, I recommend you don't use this. If you want a permanant entry, try this instead...

JASS:
function Test takes nothing returns boolean
call BJDebugMsg("Loop")
return false
endfunction

And just because these suggestions are actually swinging out this wide...
JASS:
function Test takes nothing returns boolean
call BJDebugMsg("Loop")
return null
return false
endfunction

Does the same thing as the first one - returning nothing and shouldn't be used.

Everyone clear? :)

>So,basically, for end the timer the userFunc must return true when all effects are finished or It will leak?
Not leak, just keep looping forever. Returning true is the equivilent of destroying the timer, if you think of the Start call as making a new timer (in effect). Hope that explains it.
Also it shouldn't be when "all effects" are finished, each attachment should perform one effect (imo), and if you want a subsequent effect, call Start again when you return true with a different function, etc.
 

Cohadar

master of fugue
Reaction score
209
If you use function that returns nothing instead of function that returns boolean
it will cause desyncs.

So yeah, try not to play stupid.
 

Jesus4Lyf

Good Idea™
Reaction score
397
Didn't know that. There you go. I was right in saying; DON'T DO IT, PEOPLE! :D :p

Why would you?... lol... :nuts:

Edit: Just wanted to mention something...
>The reason being that if you have one timer that runs at 5 second period for example and you cast a spell in second 2 it will take 3 seconds before spell actually gets activated by the system.

See, the things I used Key Timers for with periods > 1 second was things like checking to see if a unit had left range, or if a hero was more "in battle" to switch a camera's focus or to update a hero's bounty based on the support heroes around it... So it actually doesn't matter if it starts at an odd time. And besides, you don't generally use a timer for spells with periods > 0.5 seconds, you use a loop with a sleep action. :p I'm being general.
 

Cohadar

master of fugue
Reaction score
209
No need to be that hard on him.
His system is indeed edited from TT but he used his original ideas to alter it and make something different.
There is nothing wrong with that, especially when you give credit properly.
Now can we please stop this discussion.


I expect some people to start making spells with TT.
I will not name anyone but...
maybe some nicknames :)
Flare, ~GaLs~, Uberplayer .....
 

Demi666

New Member
Reaction score
127
I did not forget anything, the forum script obviously have some stupid rule to lowercase I in square brackets.

If you don't believe me try quoting my post and see that is capitalized.


Dunno.


LOL GG DAXTREME :D " why use this system " " dunno " :p just thought it was funny

i dont really know what an attachment system does yet:p so ima dl it and find out:D when i come home from pool :p
 

Flare

Stops copies me!
Reaction score
662
sounds interesting, ill give it a go if i can understand it. hopefully you have details in the examples of what certain lines of code do (obviously not the ones irrelevant to the system)

i'd love to know, HOW can you know if the system is faster than everything else, and what is the big deal with it being the fastest if everything occurs in small fractions of a second in the 1st place?
 

Cohadar

master of fugue
Reaction score
209
i'd love to know, HOW can you know if the system is faster than everything else, and what is the big deal with it being the fastest if everything occurs in small fractions of a second in the 1st place?
It is all explained in the first post, you just don't seem to posses enough technical knowledge to understand it....

The big deal with TT is not that it is faster than anything else,
the big deal is that is simpler to use than anything else.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>I expect some people to start making spells with TT.
>>Flare, ~GaLs~, Uberplayer .....
Time to remove your ABC from my computer.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
I had using quite lot of attaching system such as HSAS ABC CS GlobalArray Gamecache.
But what I found best was HSAS... Just because it has no limitation of handle for attaching...

I'll probably try using this to make some spells indeed. ;)
 

Jesus4Lyf

Good Idea™
Reaction score
397
>Only if you don't need trigger attaching....

*Thinks of an evil thing to post*
*Keeps an eye on Cohadar's face while he reads*

Hey umm...
You could always use...
*Glances at Cohadar*
Key Triggers, the ExecCount method!
*Looks back to Cohadar and sees a flaming red face*
*Runs the hell away*

:D Just kidding. I don't want to die today. ;)
But I do it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top