Sudden undefined error for nested clips?

I’m working on a project that seemed to be functioning fine for a while, but now when I run it, it seems to think that certain clips are undefined. For example, this error occurs:
wick undefined error
In this case, “face” is a nested clip inside “alien”, which is nested inside “alien_Anim”


Unless I’m interpreting the error message wrong, it seems to think that the clip “alien” is undefined. Not sure if this is a bug or something I’m doing wrong. Full project here (disclaimer that my code may be probably pretty messy at the moment):
alienadjectives9-20-2020_3-09-08AM.wick (127.4 KB)

I just want to add that this definitely seems to be an issue with nested clips, specifically. I’ve had this same error occur with other clips, and the issue always seems to be that it treats lowest level clip as undefined. But sometimes I have no problems telling a nested clip to do something (like go to a certain frame), so I’m having some difficulty understanding exactly what the conditions for this error are…

The error reporter has been giving a lotta wrong errors lately. Maybe try using the test editor?

Idk, I saw ur project, it keeps on giving random errors, but there might be really an error in ur project that you didn’t notice (a typo or an undefined thing).

I tried my best to debug it, I didn’t change much though.
alienadjectives9-20-2020_1-29-09PM.wick (127.4 KB)

Thanks for having a look at it! I actually tried running it in the test editor earlier and got the same results, so it doesn’t seem specific to the current version of editor.

I worked on the project some more, and I think I’ve gotten the errors to stop for now. My solution was to move some of the code to different scripts. For example, clicking on a UFO should change the alien, and previously the code for that was in the UFO’s Mouseclick script. When I changed the Mouseclick script to only set a global boolean to true, and moved the code to change the alien into the alien’s Update script, it worked. The code seems to work fine when it’s contained within the clip it pertains to - it’s referencing one clip from another clip’s scripts that seems to be causing the errors. If that makes sense. I can post the updated file for comparison, if this helps anyone who may be experiencing these issues as well (I also did some general cleanup so its a bit less chaotic now - mostly the UFOs are now an array of clones rather than six separate clips with duplicated code)
newAlien9-20-2020_6-08-28PM.wick (124.1 KB)

1 Like

Cool! Good to hear that you managed to fix the problem : )
:+1:

(That’s also a smart solution, ur file size went down by 3 kb in the process)