Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    line() with int vectors will crash FUZE

    Bug Reporting (FUZE 4 Nintendo Switch)
    2
    4
    204
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nisse5 F last edited by

      Using the line() function when the vectors are of int type will crash FUZE. Float vectors works.

      1 Reply Last reply Reply Quote 2
      • Willpowered
        Willpowered Fuze Team last edited by

        Hi @Nisse5, I'm unable to reproduce your issue after trying a couple different methods. Could you post some example code that demonstrates the problem?

        N 1 Reply Last reply Reply Quote 0
        • N
          Nisse5 F @Willpowered last edited by

          @Willpowered Ouch, I thought it was so easy to reproduce that I didn't save my source code. Will try to recreate it somehow.

          1 Reply Last reply Reply Quote 0
          • Willpowered
            Willpowered Fuze Team last edited by

            Sounds good, and thanks.

            I tested with the following code, doing my best to force the values to be integers:

            int x1 = 0
            int y1 = 0
            int x2 = 100
            int y2 = 100
            
            p1 = {int(0), int(0)}
            p2 = {int(100), int(100)}
            
            vector pt1 = {0, 0}
            vector pt2 = {100, 100}
            
            loop
                clear()
                line({x1, y1}, {x2, y2}, {1, 1, 1, 1})
                line(p1, p2, {1, 1, 1, 1})
                line(pt1, pt2, {1, 1, 1, 1})
                update()
            repeat
            

            It all runs successfully, so maybe this is a symptom of another bug? If you're able to reproduce it let me know!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post