Joined
Mar 18, 2023
Messages
5
Reaction score
0
First Language
vietnamese
Primarily Uses
RMVXA
1679652913370.png
i've been trying for a while to figure out why this error keep appearing even though it was fine yesterday for me

the screenshot below is what came out when i followed some random help
1679652783836.png
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,819
Reaction score
1,368
First Language
English
Primarily Uses
RMVXA
You should never change the default scripts.

Line 53 is "else"

put the original code back and see what happens.
It looks like you deleted one line.

and sprite picture only has 83 lines, so you are using a custom script. What is that script?
 

AkiraKotatsuhime

炬燵姫
Veteran
Joined
Jan 2, 2013
Messages
285
Reaction score
200
First Language
DE / ドイツ語
Primarily Uses
N/A
In contrast, I commonly encourage to edit and extend default code. But this only applies to people who know what they're doing and can help themselves if a change blows up. Some may ask why, it's because stacking additional code into the same functions through ALIAS can't go well forever, and will make you loose any overview on what the function is doing. But back to the main issue here.

If you can't solve this by reversing all changes done to "Sprite_Picture", please post a full copy of it so we know what to work with. The two errors shown don't contain any good useful information besides "Some referenced object that could be literally anything does not exist.", so context is necessary.

~炬燵あ
 
Joined
Mar 18, 2023
Messages
5
Reaction score
0
First Language
vietnamese
Primarily Uses
RMVXA
You should never change the default scripts.

Line 53 is "else"

put the original code back and see what happens.
It looks like you deleted one line.

and sprite picture only has 83 lines, so you are using a custom script. What is that script?
oh i tried to look up a guide and i just followed with it and just think "oh yeah this would work", i also tried reverting it back to normal and somehow it still gave me the same issue1679665683489.png
 

AkiraKotatsuhime

炬燵姫
Veteran
Joined
Jan 2, 2013
Messages
285
Reaction score
200
First Language
DE / ドイツ語
Primarily Uses
N/A
Never ever define anything for NilClass. What the hell am I looking at?

~炬燵あ
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
45,990
Reaction score
16,776
First Language
English
Primarily Uses
RMMV
What "guide" are you talking about? What is the script?

If you get the error, then hit F11 in the editor, it'll take you to the line that threw the error. Post a picture of that (with the line numbers not cut off like you've done above).

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

 
Joined
Mar 18, 2023
Messages
5
Reaction score
0
First Language
vietnamese
Primarily Uses
RMVXA
well i went on a digging spree on google and went to the second page of google and found this. https://rpgmaker.net/forums/topics/20002/
so i thought to attach it right onto Sprite_Picture

but i think i should put the project files onto here so it's less confusing
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,398
Reaction score
10,835
First Language
German
Primarily Uses
RMMV
so i thought to attach it right onto Sprite_Picture
I assume you didn't try to understand the comment in that post of what that script does, right?

Because it is intended to stop the error messages, NOT to solve the problem.


To give you a better description and to help you understanding that answer, it's comparable to this:

"Hey, in my car the oil warning lamp has gone red, what should I do about it?"
"Easy, just put black tape over the lamp and you can continue driving without being bothered by that red lamp."

Of course that only works until your car breaks down due to bad oil and you have to replace the engine. I think it would have been cheaper to simply change the oil when the lamp turned red...


Take this as a warning: never use a script if you don't understand its purpose.
 
Joined
Mar 18, 2023
Messages
5
Reaction score
0
First Language
vietnamese
Primarily Uses
RMVXA
i decided to throw away
"if @picture.name.empty?
self.bitmap = nil
else"
after a while of staring at the common event i uses that causes the issue it turn out the picture i was using was empty so after a while more of staring at Scene_Picture i just decide to throw away the part that make it (i think) name itself as nil when picture is empty. and it fixed it (but i have no ideas if it's illegal or unorthodox) ! but i did ended up learning a lots more from this thread
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
45,990
Reaction score
16,776
First Language
English
Primarily Uses
RMMV
The error is a symptom of a problem. Stopping the error is not making the problem go away - the problem will still be there, but it just won't tell you about it.

This is not a good thing. That script is a bad idea.
 

orochii

Abomination of life, or life itself.
Veteran
Joined
Apr 29, 2012
Messages
694
Reaction score
432
First Language
Spanish
Can you undo changes to either the first error, or prior to it? What was the initial issue you wanted to try and solve?
 

Latest Threads

Latest Profile Posts

It's Sunday. Stop working and take a break. Relax a little.
Ooops ended up trying out making my own A2 tile page instead of testing doors everywhere. Went well so far I think.
I guess I'm done making a blue squirrel's life difficult for posting new threads on different forums.
That's just for today so don't get used to this, squirrel-ish friend! :p
Got new hard drive, now trying to install the softwares I lost to the dead drive, and more than half of them won't install because they're already installed on the dead drive, and uninstallers won't run because they can't find where their programs are installed. So I take it having a drive die on you screws you in more ways than just data loss. >:\
PC got fixed finally. Back online again. Turns out I have no business trying to self repair pcs because it was getting to like 176F / 80C. Shop installed a totally new cooling system and now it runs fine and is super quiet.

Forum statistics

Threads
131,487
Messages
1,220,217
Members
173,225
Latest member
ZecaVn
Top