Ttanasart-pt / Pixel-Composer

Node base VFX editor for pixel art.
MIT License
681 stars 30 forks source link

Loop Index on Loop Array not properly working, also general issues with Arrays, Loops and Render Cache/Spritesheet #41

Closed TheShankar closed 1 year ago

TheShankar commented 1 year ago

Here is a sample: General View: image

Inside the Array Loop: image

In theory, what I think should happen is: Array[1] gets blended with Array[0] Array[2] gets blended with Array[1]

But Loop Index is just stuck to a singular number, sometimes it's 0 (first loop), sometimes it's 4(last loop). I've had this same problem with both Loop Array and just the Normal Loop. Here is the file: Buggy But Doesn't Crash.zip

I'm also having tons of different issues with "Silent Bugs" on Arrays and related things like Loops, Cache Array, Render/Split Spritesheet and whatnot. Here is a file: Silent Buggy.zip

In theory, this file is a previous attempt at doing the same effect as "buggy but don't crash", but something has "silent bugged" around the way, meaning I didn't get an error message, but things stopped working. Now the file is "cursed", if you try to open it you may get an error message or nothing, but the Loop Array node won't work anymore: image

Here is the bug I get sometimes: image

I had other bugs in different files, the messages change.

Maybe we could get a "Refresh Everything" button? feels like many of these bugs are because there are bugged connections and general issues, that somewhat are still present in the save file and/or memory. If we could flush all the caches and have Pixel Composer recreate the node connections from the "scratch", it could be solved?

Ttanasart-pt commented 1 year ago

To send in data between group. You should use the dedicated group input / output node. As tunnel break rendering order, it should only be use in the same context (Tunnel node is a organizing tool, not flow control).

This node setup should give you the result you want. image image

TheShankar commented 1 year ago

Thank you! I was using the tunnel in/out because for whatever reason adding a new loop input wasn't working. Probably something bugged in my end and I didn't realize.

Thank you anyway, it's working fine now!