Jump to content

Recommended Posts

So I start up my game after saving, then closing it. And when I press continue it says this:

 

Script 'Game_Map' line 202: NoMethodError occurred.

undefined method 'width' for nil:NilClass

 

I've checked that script (which is a built in script) over, and over again, but I can't figure it out. I don't like asking for help, but here I am. If you need more info, let me know please.

 

EDIT: Now every time I start up the game, it gives me a 'NoMethodError occurred'. At first it was for one script, but after I get rid of that one, it says a new NoMethodError occurred and so on until there are no scripts left. I have no clue what is happening. From what I see, it seems it just won't create any new variables for the scripts. This is completely weird and I can't fix it no matter what I do.

Edited by Drexanz Xikam

Share this post


Link to post
Share on other sites

Are you starting a new test game? Or continuing from a save file that was made before you added the script?

Share this post


Link to post
Share on other sites

I'm continuing a save, but I saved after I already had that script. My problem is, I haven't added any new scripts. And now I can't even test my game because it has an error every single time.

 

Edit: So I just realized I deleted the Game_Map script, I got it back now. But that didn't fix the problem I originally had, the game still crashes after I load the save file. Just to test it, I deleted my save and saved a new one, but it still crashes. 

 

I am still very confused, I hadn't edited anything, this just randomly started happening.

 

Edit 2:

Here's a video

https://www.youtube.com/watch?v=E6PDfnlfdA4

So as you can see this is how the error happens...But if I start a new game, then go back to the title, it let's me do a new game. I can also start a new game, then save, then go back to the title screen and continue. But if I close the game, then reopen it and don't start a new game, it crashes. What this lead me to believe is; It must be defining this 'width' variable thingy when I do a new game, but once I close the game, it gets rid of the defined variable. I don't know if this is even close to being right, it just seems like it's doing something like that.

 

Edit Once Again:

I think I found out that it has something to do with Yanfly's Save Engine. So that means I have a conflicting script somewhere?

Edited by Drexanz Xikam

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted