Loop Flow Control ?

Discussion in 'PC Editor Discussion' started by skitalec, Feb 1, 2024.

  1. skitalec

    skitalec New Member

    Joined:
    Oct 15, 2023
    Messages:
    9
    Likes Received:
    2
    HI all.
    I faced with problem in TSW editor. There is no any type of loops in flow diagram. In standart UE editor we have many type of loops(foreachm while…e.t.c). But where this in TSW editor?
     

    Attached Files:

  2. pwilson79

    pwilson79 Well-Known Member

    Joined:
    Apr 18, 2021
    Messages:
    247
    Likes Received:
    380
    Yeah, they're not giving us much to work with in that department, are they? Let's hope they throw us a bone, as the saying goes, in the next iteration of the editor.
     
  3. skitalec

    skitalec New Member

    Joined:
    Oct 15, 2023
    Messages:
    9
    Likes Received:
    2
    I do not understand... This is most basic functionality in UE editor. Why this not available in TSW editor thad based on UE!
     
  4. cActUsjUiCe

    cActUsjUiCe Developer

    Joined:
    Sep 21, 2017
    Messages:
    800
    Likes Received:
    2,639
    I honestly think it's a bug that it's not there.
     
  5. skitalec

    skitalec New Member

    Joined:
    Oct 15, 2023
    Messages:
    9
    Likes Received:
    2
    You can try, see screenshot.
     
  6. cActUsjUiCe

    cActUsjUiCe Developer

    Joined:
    Sep 21, 2017
    Messages:
    800
    Likes Received:
    2,639
    I mean a bug with the editor itself. Not a bug with your PC.
     
  7. fceschmidt

    fceschmidt Well-Known Member

    Joined:
    Oct 22, 2020
    Messages:
    312
    Likes Received:
    404
    It's definitely a bug with the editor. I think I even understood why it's there. The only flow control node which you can use in TSW Editor is the Branch node (K2Node_IfThenElse).
    All other flow control nodes (Do N, For loop, etc.) are implemented as macros in the original unreal editor and something probably went wrong with shipping TSW Editor with regards to built-in macros.

    To be honest you could just create those macros by yourself. This is a for loop macro, as an example:

    EDIT: I forgot an add node previously.

    upload_2024-2-2_10-38-38.png
     
    Last edited: Feb 2, 2024
    • Like Like x 1
    • Helpful Helpful x 1
  8. skitalec

    skitalec New Member

    Joined:
    Oct 15, 2023
    Messages:
    9
    Likes Received:
    2
    Many thanks!
     
    • Like Like x 2
  9. pwilson79

    pwilson79 Well-Known Member

    Joined:
    Apr 18, 2021
    Messages:
    247
    Likes Received:
    380
    Nice to know we can add some functionality back into the editor on our own! (thanks, fceschmidt! ) I'm wondering now if the problem with built-in macros might be why I was getting the compilation errors I was seeing with the road spline blueprint system that I bought from the marketplace. It might just be worth seeing if I can reconstruct those macros myself...

    Edited to add: I'm feeling good about this, just fixed up the first broken blueprint. Had to re-create the "For Each Loop" and "Is Valid" nodes to do it. UE 4.26 on the left of my screen, "migrated" blueprints in the TCW PC Editor on the right. fix, save, compile... I should take a break!

    p.s.: Can we have these common Macros back please, Dovetail?
     
    Last edited: Feb 5, 2024
  10. pwilson79

    pwilson79 Well-Known Member

    Joined:
    Apr 18, 2021
    Messages:
    247
    Likes Received:
    380
    Thanks again, guys! Just thought I'd let you know I've just now gotten my road splines (+ traffic) system working in my level. I just had to re-create all the for loops, for each loops, and every other kind of loop in 5 or 6 different blueprints to do it. I darn near gave myself a migraine last night.
     
  11. fceschmidt

    fceschmidt Well-Known Member

    Joined:
    Oct 22, 2020
    Messages:
    312
    Likes Received:
    404
    Oh wow that's great news! Makes me hopeful about being able to get other stuff from the marketplace to work that I've laid my eyes on :)
     

Share This Page