rpg maker vx ace lite - erase picture problem

i put an image to make a simple dark place, but now i can't erase it, no matter where i put the "erase picture 1" this message always appear:



Script 'Sprite_Picture' line 54: NoMethodError occurred.



undefined method 'width' for nil:NilClass



is something of the free version or is something i don't see i did wrong?

i make the image appear like this in a parallel proccess:



@>Control Variables: [001: x] = player's screen X

@>Control Variables: [002: y] = player's screen Y

@>Show Picture: 1, 'Nameless', Center (Variable [001][002]), (100%,97%),



i make the parallel proccess dissapear with a Switch but the message appear anyway :/

thanks for your time
Can you please post screenshots of both the event you use to make the image appear, and the one you use to make it disappear?
hi Shaz, i did the same again in a new project with only that and the problem is still the same
hWdnFX0.png

jxoyu4t.png

and this is the picture i use
1EfWZrM.png

thanks for your time
I can't get it to show an error. Everything works fine.
Where did you download your Ace Lite from, and how long ago? There's definitely nothing in there that would cause that issue, and I don't recall hearing anything about any picture issues with older versions. There WAS an issue (I think) with variables (but that might not have been Ace Lite).

If you downloaded it a while ago, I suggest you redownload and reinstall. Also make sure you get it from rpgmakerweb.com or Steam and not somewhere else, as that'll ensure you have the most up-to-date version.
i downloaded it from Steam in the first days of september, i will try if downloading it again the issue got fixed
i will edit this comment with the result
Question: my progress will not be erase if i uninstall the software from Steam, right?
Result: the problem continue...
thanks for your time, brb
idk how to upload videos/gif to imgur so i put it on youtube...

i only have 21 hours because from september to october i was without modem and the hours of disconnected mode don't count, and when i get internet back i barely get out of Paladins lol
maybe the time i spend on disconnected mode affected the software? but even with the re-install of the software it does not fix the problem (something important is that the data of the projects don't got erased, so i did a backup of the document fold for nothing...)
thanks for your time
I wonder if it's trying to activate that event multiple times? Any chance you're holding the key down for a while, or that your key might be a bit buggy? After the Erase Picture, add a command to Wait 60 Frames. See if that works. If it doesn't, try this:

On the first button, turn on a switch after showing the picture. Add a second page to that event with the same sprite in the "pressed" position, and use that switch as one of the page conditions. On the second button, copy and paste the page you've got there. On the first page, change the button to the "pressed" version and delete the commands. On the second page, turn the same switch off after erasing the picture, and set the switch as the condition for the page.

So you'll have:
Button 1
Page 1
Sprite is button, not pressed.
No conditions.
Command to show picture and turn on a switch.

Page 2
Sprite is button, pressed.
Conditioned by switch from previous page.
No commands

Button 2
Page 1
Sprite is button, pressed.
No conditions.
No commands.

Page 2
Sprite is button, not pressed.
Conditioned by same switch as button 1
Command to erase picture and turn off the switch.


This will make absolutely sure that you can't push that button twice in a row. But only go to that trouble if the Wait command doesn't work.
Try putting this into your project data folder. Overwriting the map you have there.
I've done some research and found that it's a known bug.
Btw, Lite has the same issue with centered pictures as the first release of RM VX Ace had. Erasing them makes RM crashes (sprite_picture line 54). And since we cannot modify any script in Lite, it's quite an issue. The only trick is to "move picture" again with upper left just before erasing them.
Source:
http://blog.rpgmakerweb.com/announcements/rpg-maker-lite/

So you can work around that bug by using a Move picture command to upper-left (instead of center) immediately followed by the Erase picture command.
If it flickers because of the Move, set the upper-left coordinates to start beyond the 544x416 realm of VX Ace's display area.
hi all, i am a lazy person so i try first the easy one and actually work 😀
i totally ignore if the problem are the coordinates for the player screen or the picture being on the center but doing what cabfe says the problem don't show anymore
49684cu.png

6K1LJ67.png

thanks Roninator2, Shaz and cabfe for the quick answers and the help, thank you very much 😀
thanks for your time 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-vx-ace-lite-erase-picture-problem.87807/