Hi FoxySeta, sorry I didn't check the command implementation in the interpreter, I just assumed it is already using stringValueOf so I think your change should be fine there.
Can I safely edit the original instead than creating a new one since it's going to be fixed in the next update?
Yes!
could it be that you also need to forcely preload your animations shown through variable just like if they were characters?
Yes, not sure if I mentioned that only Show Picture supports the calculation of the filename by variable without preloading. However, you could add the same experimental logic to Show Animation yourself.
Just look for PlayPictureAnimation in Component_CommandInterpreter. There look for the line where the picture is create using @interpreter.createPicture and add the following under it: (Take care of the correct indentation of the code):
Code:
if !picture
@interpreter.pointer--
@interpreter.isWaiting = yes
@interpreter.waitCounter = 1
return
That will check if the graphic is already loaded, if not it will pause the interpreter. I haven't tested it but it is the same code used in Show Picture tho. However, keep in mind that depending on the amount and size of graphic()s the entire game might get stuck for a short moment especially if it is a web game because then the graphic needs to be loaded from the server first.
Also, I had to do something similar with Pan Screen as well. Would you mind checking them all soon or later?
What is the issue with Pan Screen?