• Profile picture of Riyoox

    Riyoox 2020-07-17 09:39:45 UTC

    Hi @ralph, Hi community, is it possible to make the file format (.nodes) public, so that Stick Nodes can be used by other tools?

    I’m planning to write a tool for Unity that can import stickfigures from Stick Nodes so you can use them as playable characters. (I don’t know yet if it’s even possible)

    Now you could already take a picture of an stickfigure, but the joints etc. have to be created in Unity afterwards.

    Sorry, I’m new and don’t know where to post this 🙂

    4
    • Ralph:

      2020-07-17 10:01:59 UTC 5
    • I could probably figure out and write up a sensible way to read a .nodes file and what each byte/group of bytes mean in order, but, tbh it changes a lot as updates come out and its just more nonsense to deal with i ain’t got time for

      sorry m8

      idk if you can even really do it, you’d have to reconstruct shapes via Unity, how would you even do that? (draw the segments, triangles, etc)

      2020-07-17 10:55:25 UTC 2
      • Replying to: Ralph (Developer)I could probably figure out and write up a sensible way to r

        I can’t say that much without knowing the format.
        I would have to recognize the individual segments (head, leg, arm, whatever) in the file and take them over one-to-one in Unity as sprite renderer. After that I would only have to connect the single parts with joints.

        In Unity I only need the segments and the joints, nothing more.
        The controls and so on have to be done by Unity scripts.

        There are some limitations to this, but I’m confident that it will work somehow.

        2020-07-17 11:16:40 UTC 0
        • Replying to: RiyooxI can't say that much without knowing the format. I would h

          well for example, when reading the limbs all you’ll be provided will be, like:

          x1,y1,angle,length,thickness,shapetype

          from that, you’d have to render, for example, a trapezoid, if that’s the given shape type

          while it’s likely doable in Unity it may be a bit advanced
          add in colors and gradients, etc

          2020-07-17 11:31:18 UTC 0
          • Replying to: Ralph (Developer)well for example, when reading the limbs all you'll be prov

            Is it possible that you can send me a decoded file from a very simple stickfigure (stickfigure from Stick Nodes logo). Gladly also modified, it should contain at least limbs and joints.

            Then I will try if it works and contact you again 🙂

            2020-07-17 11:44:41 UTC 1
            • Replying to: RiyooxIs it possible that you can send me a decoded file from a ve

              what i’m saying tho, is, can you code this?

              just saying bc like, im not gonna go and try to write out all the process for reading a .nodes files if you’re like “lol nvm”

              the file is decoded, you’ll need to take it into your code and stream the bytes from the file and convert to proper data structures, whether it be 32 bit floats/ints or 8 bit bytes etc… understand the data and recreate the structure of the stickfigure with lots of math

              2020-07-18 17:46:31 UTC 0
              • Replying to: Ralph (Developer)what i'm saying tho, is, can you code this? just saying bc

                If it’s not too time-consuming, I’ll do it. That’s why I asked for an approximate sample file to decide how complex it will be.

                Here is a prototype in Unity: https://youtu.be/auOH3hZEpf0

                The character is without animations and is only controlled by the physics engine (Apply forces), that’s why the movements look so weird 🙂 I try to recreate something like Stick Fight: The Game.

                My goal would be to write an importer that only imports the limbs and joints. Then just add the existing Unity Scripts and that’s it!

                2020-07-20 14:44:41 UTC 0