(if i need to provide js snippets or more screenshots, i'll gladly do so, just not right this second bc it's 3 AM for me rn and i've been beating my head against the wall for hours already lmao. for what it's worth, i'm pretty new to javascript and plugins, and i might be making a beginner mistake or ten.)
What I'm trying to do is call "img/pictures/FILENAMEHERE" from a param the user can set before using the command within an event, and when defining the filepath in the param, I've defined it as "img/pictures/FILENAMEHERE". Every time I try to run the plugin command in an event, though, the log tells me "sorry boss i couldn't find anything at img/pictures/img/pictures/FILENAMEHERE," despite the fact that loading the images with MZ's built-in command works just fine. I've tried telling the plugin command "ok so just look for FILENAMEHERE instead," but that just confuses it even more (seemingly) because I didn't specify whether it's supposed to check the img folder or not.
Are there any, like, pieces of basic js syntax I should make sure I'm aware of that might be causing the doubling-up in the filepath? (Or, and I'm really hoping this isn't the case, is it possible that running MZ on my Linux laptop via Steam might be screwing with things?)