Bust talksprite problems, show picture method.

I for the life of me cant get talksprites to work.

I've tried using galv's scripts but i cant get it to work properly, so im trying the show picture method and that wont work either.

everytime it comes to the part where the talksprite would be shown i get an error:

Script 'Game_pictures'line 20: Nameerror occurred. uninitialized constant Game_Pictures::Game_picture

ive tried renaming the picture, resizing the picture, putting it in different x/y areas, everything.

and still this error.

I wish I could get galv's script to work but i get a different error or it just will show the tiny character box instead of a bust.

im new to rpg maker, obviously, and hope this isnt an annoying question, but ive scoured google for a good answer and couldnt find anything (anybody with a similar problem just goes "OH FIXED IT" without explaining!)

thank you.

(rpgmaker VX ACE)

I've moved this thread to Script Support. Thank you.

Moved to: Script Support

sorry OTL

thank you.
we can't help you without seeing what exactly you did - screenshots of the event page that creates the error are the minimum.
Additionally it would help if you give us a screenshot of the backtracer output to see which scripts are involved here (follow the link "how to use a script" in my signature to the bughunting part, that explains how to install and use the Backtracer for Ace)

That said, it looks like you made a mistake with the filename or the format of the picture you're using (unless you really messed up your game scripts), so it might help to get that picture attached as well.
ive messed with the axis and its still the same

Spoiler
tumblr_oo0e62zTfe1u0p0sao2_1280.png
tumblr_oo0e62zTfe1u0p0sao1_1280.png
Ah nevermind, Someone helped me figure out Galv's script.

I would like to be able to use pictures in my game though, so im still sad i couldnt figure that problem out *shrugs*
I would like to be able to use pictures in my game though, so im still sad i couldnt figure that problem out *shrugs*
We can only help if you answer our questions.
In this case it will probably require a screenshot of the backtracer output and to see the file of the picture that you try to display, both of which I already requested above.
If you don't understand how to get that from the directions I gave you, simply ask.
The error line you get should look like this:
Code:
@data[number] ||= Game_Picture.new(number)
Just copy the above line and change the error line in your script to that one to be sure.

If it still doesn't work, you have a bigger problem.
Check if you didn't accidentally delete the script named Game_Picture from your script list.
If it is not there, you will have to add it back, right above the Game_Pictures script.
You can copy it from a new project if you need it.

If it still doesn't work, I am out of ideas. Check for any scripts which modify the Game_Pictures class, maybe it's from another script.
Although changing that method to give that error must be a pretty obvious mistake for any scripter, so I doubt that you will find any custom scripts messing this up.

Ohh, and just to make a note:
It is a script issue, meaning it's not the image(s) you try to display, neither a missing file issue.
We can only help if you answer our questions.
In this case it will probably require a screenshot of the backtracer output and to see the file of the picture that you try to display, both of which I already requested above.
If you don't understand how to get that from the directions I gave you, simply ask.

sorry my response took so long OTL

heres the backtrace

also it does this with every picture i try, even ones i got of overlays from DLC that apparently just work for people

Spoiler
tumblr_oo8jwgNJqC1u0p0sao1_1280.png


The error line you get should look like this:
Code:
@data[number] ||= Game_Picture.new(number)
Just copy the above line and change the error line in your script to that one to be sure.

If it still doesn't work, you have a bigger problem.
Check if you didn't accidentally delete the script named Game_Picture from your script list.
If it is not there, you will have to add it back, right above the Game_Pictures script.
You can copy it from a new project if you need it.

If it still doesn't work, I am out of ideas. Check for any scripts which modify the Game_Pictures class, maybe it's from another script.
Although changing that method to give that error must be a pretty obvious mistake for any scripter, so I doubt that you will find any custom scripts messing this up.

Ohh, and just to make a note:
It is a script issue, meaning it's not the image(s) you try to display, neither a missing file issue.


this is my game picture script, i havent touched anything in here and it does this error with new projects as well

Spoiler
tumblr_oo8k32Ltus1u0p0sao1_1280.png
this is my game picture script, i havent touched anything in here and it does this error with new projects as well
wrong, this is your game_pictures script and not your game_picture script.
See the difference in the name (s at the end) and that both are lines in your script editor?

Please check the other one as well, compare it to the same script in a new project.
wrong, this is your game_pictures script and not your game_picture script.
See the difference in the name (s at the end) and that both are lines in your script editor?

Please check the other one as well, compare it to the same script in a new project.


X.X boy do i feel dumb, youre right, that was the problem OTL

thank you for the help, i have no idea how the script in my game got all messed up in the first place, but im glad its fixed now so if it happens again i can fix it.

Original thread: https://forums.rpgmakerweb.com/threads/bust-talksprite-problems-show-picture-method.76962/