1. #391
    sipe's Avatar Trials Developer
    Join Date
    Dec 2012
    Location
    Helsinki, Finland
    Posts
    455

    Re: Trials Evolution - Guide to the Editor

    There is no "half tick" or "half frame" concept.

    First there is regular game logic updates, physics releated stuff, synchronization and all sort of things including trigger system components and after that frame is rendered.

    I think the order of execution in trigger system is the order when item was added into the track. (Johannes can confirm this).

    So if you have multiple visibility events changing states during "tick" or "frame", the last executed event will decide the state of the target.
    Share this post

  2. #392

    Re: Trials Evolution - Guide to the Editor

    Originally Posted by pzrtak
    I'd still say basically the same answer, however this time your ticks are 1 second apart. As both filters would interrogate the barrel at the same time. One doesn't have priority over the other.

    First Tick

    Is barrel visible? - - -Is barrel invisible
    Yes - - - - - - - - - - -No
    Turn barrel Invisible- Do Nothing

    Next tick

    Is barrel visible? - - -Is barrel invisible
    No - - - - - - - - - - -Yes
    Do Nothing - - - - - -Turn barrel Visible

    Repeat ad infinitum

    I could be wrong, of course. (and the filters could do something a little different, is barrel visible? No. Make barrel visible, instead of the other filter doing it.
    Well yes, the ticks are farther apart, but would it be visibly noticeable now? rather than a blurry object of some sort?
    Share this post

  3. #393
    Happyflow's Avatar Senior Member
    Join Date
    Apr 2014
    Posts
    1,001

    Re: Trials Evolution - Guide to the Editor

    True thing but the true question is why would you want to make filters actually doing nothing? I don't quite get what you want to achieve? If you want objects to blink you can simply use two data sources that would change visibility with different time intervals.
    Share this post

  4. #394

    Re: Trials Evolution - Guide to the Editor

    Originally Posted by sipe
    There is no "half tick" or "half frame" concept.

    First there is regular game logic updates, physics releated stuff, synchronization and all sort of things including trigger system components and after that frame is rendered.

    I think the order of execution in trigger system is the order when item was added into the track. (Johannes can confirm this).

    So if you have multiple visibility events changing states during "tick" or "frame", the last executed event will decide the state of the target.
    So there IS a top-to-bottom-type execution system. Ahhhh, thats good then.


    Originally Posted by Happyflow
    True thing but the true question is why would you want to make filters actually doing nothing? I don't quite get what you want to achieve? If you want objects to blink you can simply use two data sources that would change visibility with different time intervals.
    I don't really want to, I'm just exploring the possibilities.
    Also, explain that to the people on the last page discussing two different ways to change the weather. It really doesn't matter, they just want to know if its possible.
    Share this post

  5. #395
    Happyflow's Avatar Senior Member
    Join Date
    Apr 2014
    Posts
    1,001

    Re: Trials Evolution - Guide to the Editor

    Originally Posted by JF1zl3
    So there IS a top-to-bottom-type execution system. Ahhhh, thats good then.
    Yes and no.
    If I got it right the game engine calculates the result of all triggers happening at the same time first. Then it renders a screen.
    What happens to your obbject depends on the order the impulses have been created in. Meaning that the object would either stay the way it is or disappear forever. But it would not blink. Correct sipe?
    Share this post

  6. #396

    Re: Trials Evolution - Guide to the Editor

    Originally Posted by Happyflow
    Originally Posted by JF1zl3
    So there IS a top-to-bottom-type execution system. Ahhhh, thats good then.
    Yes and no.
    If I got it right the game engine calculates the result of all triggers happening at the same time first. Then it renders a screen.
    What happens to your obbject depends on the order the impulses have been created in. Meaning that the object would either stay the way it is or disappear forever. But it would not blink. Correct sipe?
    Yes, that's still top to bottom though. This just means that the two triggers need to be occurring at at least 1 tick apart from each other. Even then, it might be what prztak was describing earlier with a blurry-effect or something else strange like that.
    Share this post

  7. #397
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Trials Evolution - Guide to the Editor

    Originally Posted by JF1zl3
    I agree with Happy Flow on data sources being pretty straightforward to understand. But I also noticed that its very similar to programming, so maybe that's why I found it so easy to grasp. I just know its going to be crazy awesome getting into stuff like that.

    Question.
    What if I had a barrel with visibility set to true.
    And then I created a filter that checks to see if its visibility is set to true. And if it is then it sets it to false.
    And then I have another filter that checks to see if its visibility is set to false. And if it is it sets it to true.
    What would happen to the barrel? Would it repeatedly blink in and out of visibility?

    simpler more programming-esque version

    If Barrel.Visibility = True Then
    Barrel.Visibility = False
    Else
    Barrel.Visibility = True
    End If

    How would that look if it were executed?
    Do you just wanna toggle an object from visible and invisible? Its simple.

    Use the visibility event. set to toggle. Use an interval trigger set to how ever fast you want the object to 'flicker' 60 ticks = 1 sec. Every second the object will go on, then another second it will go off.
    Share this post

  8. #398

    Re: Trials Evolution - Guide to the Editor

    Originally Posted by Jarr3tt88
    Originally Posted by JF1zl3
    I agree with Happy Flow on data sources being pretty straightforward to understand. But I also noticed that its very similar to programming, so maybe that's why I found it so easy to grasp. I just know its going to be crazy awesome getting into stuff like that.

    Question.
    What if I had a barrel with visibility set to true.
    And then I created a filter that checks to see if its visibility is set to true. And if it is then it sets it to false.
    And then I have another filter that checks to see if its visibility is set to false. And if it is it sets it to true.
    What would happen to the barrel? Would it repeatedly blink in and out of visibility?

    simpler more programming-esque version

    If Barrel.Visibility = True Then
    Barrel.Visibility = False
    Else
    Barrel.Visibility = True
    End If

    How would that look if it were executed?
    Do you just wanna toggle an object from visible and invisible? Its simple.

    Use the visibility event. set to toggle. Use an interval trigger set to how ever fast you want the object to 'flicker' 60 ticks = 1 sec. Every second the object will go on, then another second it will go off.
    Happyflow asked the same thing so I'll quote myself for the answer.

    Originally Posted by JF1zl3
    Originally Posted by Happyflow
    True thing but the true question is why would you want to make filters actually doing nothing? I don't quite get what you want to achieve? If you want objects to blink you can simply use two data sources that would change visibility with different time intervals.
    I don't really want to, I'm just exploring the possibilities.
    Also, explain that to the people on the last page discussing two different ways to change the weather. It really doesn't matter, they just want to know if its possible.
    Share this post

  9. #399
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Trials Evolution - Guide to the Editor

    I thought you were asking a question so I was answering it...lol Was it hypothetical? Am I missing something?

    What are you asking to achieve? Now I'm confused.
    Share this post

  10. #400

    Re: Trials Evolution - Guide to the Editor

    Originally Posted by Jarr3tt88
    I thought you were asking a question so I was answering it...lol Was it hypothetical? Am I missing something?

    What are you asking to achieve? Now I'm confused.
    It was a roundabout way of asking if paradoxical instructions can be given, and how those would resolve, rather than a specific answer.
    Share this post