Bug with Macros (flowCanvas 1.3 Unity 5.4.1f1 Personal)

FlowCanvas Forums Support Bug with Macros (flowCanvas 1.3 Unity 5.4.1f1 Personal)

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #977
    ktysdal
    Participant

    Hi, my name is Kjartan and I just bought flowCanvas.
    I have been playing around with it for a little bit now, and I think I found a bug with the macro system.

    I started recreating a simple RTS camera and I decided to put some of the math into a macro so that I could reuse it.
    You can see from the screenshot that I have the exact same Macro duplicated twice, and only one of them works (you can see based on the colors of the lines, the blue’ish ones are for some reason not working..).

    Here is a link to the project files with the bug:
    –link removed because it contains paid products–

    Attachments:
    You must be logged in to view attached files.
    #980
    ktysdal
    Participant

    I have investigated a bit more and it seems like the problem is starting from the integer value from the “Get Pixel Width” node.
    I made another simpler setup that also fails every time. You can see it in the screenshot.

    This time I am just using a Macro that is is not doing anything (called “IntFloat”). The only thing it is doing is passing data from Float / Int data from input to output inside the macro.
    The macro is simply refusing to pass data through it. If I bypass the macro and connect directly to the Set Value nodes then everything works fine.

    Attachments:
    You must be logged in to view attached files.
    #983
    Gavalakis
    Keymaster

    Hello and thanks for getting FlowCanvas!

    Indeed there is a bug here (introduced in last version). Thanks for finding out and for reproduction.
    To fix this, please open up FlowGraph.cs and replace method OnGraphStarted() contents with the following code:

    Regarding sharing projects, please do not include the full FlowCanvas source code! You can email me instead if need be (support@paradoxnotion.com). Thus I’ve removed the link from your first post.

    Let me know if everything works correctly for you after the fix.
    Cheers!

    Join us on Discord: https://discord.gg/97q2Rjh

    #985
    Gavalakis
    Keymaster

    There seems to be something wrong with the formatting on the above piece of code. I’m sorry about that!
    I’ve attached an image here to show the correct code until I fix this formatting issue.

    Code

    If you have any trouble with this, please let me know and I will send you an email ASAP.
    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #994
    ktysdal
    Participant

    Hello Gavalakis,
    Thank you so much! The fix seems to works perfectly 🙂

    Sorry about the link. I was sitting with this a bit late and I did not think that through.
    Next time I will just contact you directly.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.