Page 1 of 1

3 Consecutive errors!

Posted: Mon Dec 20, 2021 7:33 pm
by Animebryan
Why?

Image

I don't understand the 1st error, Beat Timer isn't enabled in any of the sections of my level nor are any Beat Blocks even used, and it's bitching about Dirtblocks but I don't understand why.

Re: 3 Consecutive errors!

Posted: Mon Dec 20, 2021 8:54 pm
by Hoeloe
Often, errors will cascade. If one thing fails, multiple things will start to fail which may not seem related. This isn't something we can control, it's just the nature of how programs work (keep in mind that retail software also errors like this, it's just that most of it closes down the moment it encounters a single error, giving no time for the others to be raised) - think of it like hitting glass with a hammer - the spot where the hammer falls is the source of the problem, but cracks spread throughout every part of it.

Usually when fixing errors, it's best to work on them one at a time, and the first one that appears is most likely to be the culprit. In this case, some code in bettereffects is trying to use an image that doesn't exist. Since bettereffects (as the name suggests) handles effects rendering, it's quite likely that there's an image missing somewhere for an effect file. I can't get more specific than that because there's not much more information to go on.

Re: 3 Consecutive errors!

Posted: Mon Dec 20, 2021 10:37 pm
by Animebryan
Solved it. Found a effect txt file in my level folder but no graphic file associated with it. Apparently I forgot to copy over the image file to the level folder. Wish those errors would help pinpoint the problem better though (effect-x.txt file has no graphic/.png file associated with it/ is missing).

Not only that, but why was it bitching about the Beat Timer & YI Dirt Blocks? Neither of those had anything to do with the problem & just creates more confusion. Those error messages are flawed & need to be more accurate.

Re: 3 Consecutive errors!

Posted: Tue Dec 21, 2021 10:51 am
by Waddle
The error messages aren't the problem here; the errors don't pinpoint the problem you were having because they specifically pinpoint what was going wrong in their respective scripts. They're perfectly accurate. As for WHY these particular errors cropped up, one would have to look at the code behind the beat blocks & YI dirt blocks. I have little experience with those, but if you wish to complain about these errors, that's where your complaint should go, not the error messages.

It's precisely as Hoeloe said; that first error pinpoints the issue perfectly (img is nil, i.e., no image was found), and from there, bettereffects breaking likely caused the other two scripts to fail.