VX Ace No Method Error: Spriteset_Map line 46

When I try to start a New Game, I get this: Script 'Spriteset_Map' line 46: NoMethodError occurred. Undefined method 'tiletset_names' for nil:NiClass.

Untitled.png
That usually means you either have a script that is not compatible with another script, or you have no valid tileset listed for the starting map, so it is throwing an error when it tries to load the map.
That usually means you either have a script that is not compatible with another script, or you have no valid tileset listed for the starting map, so it is throwing an error when it tries to load the map.

Thank you. I checked the tileset, it's correct. Not sure how to tell which scripts are incompatible, but I got:

Keyboard Manager by Zalerinian
More Informative Saves by Mjshi
Basic Autosave by Vlue
Choice Set-Up Position by SoulPour777
Insane Anti-Lag by TheoAllen
Unlimited FPS by HimeWorks

New Game opens with choicelist. Maybe Choice Set-Up is incompatible? Not sure.
Considering you have 6 scripts by 6 different authors it would be a miracle if they all worked together. I'd really cut that list down myself.

From my experience, insane Anti-Lag works well with most scripts, but it needs to be near the top of the list to work well (else it overwrites the other scripts above it). Try that first, then from there you'll need to play with the order of the scripts.

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

Considering you have 6 scripts by 6 different authors it would be a miracle if they all worked together. I'd really cut that list down myself.

From my experience, insane Anti-Lag works well with most scripts, but it needs to be near the top of the list to work well (else it overwrites the other scripts above it). Try that first, then from there you'll need to play with the order of the scripts.

Moved to: RGSSx Script Support

Thank you. Insane Anti-Lag is at the top in Script Editor. I'll play with the order of the scripts.
Okay, it has something to do with the tileset, because I deleted three scripts already and the error is still coming up. Now all I have is Keyboard Manager, Autosave, and More Informative Saves. Here's my tileset and the map you start on in New Game:

Spoiler
tileset.png

EDIT: I went to my save files in game and tried to open a file, but I just get the error sound effect.
Did you make those saves before installing the Anti-Lag script? If so you have to delete all save games, as any save games made before the anti-lag script is added will fail, and even having them present in the directory will mess things up.

Also, try setting the tilesets so that there are at least 4. Strange things tend to happen when you go below the minimum for the editor.
Did you make those saves before installing the Anti-Lag script? If so you have to delete all save games, as any save games made before the anti-lag script is added will fail, and even having them present in the directory will mess things up.

Also, try setting the tilesets so that there are at least 4. Strange things tend to happen when you go below the minimum for the editor.

Thank you. I did make them before. I deleted the save files and added a fourth tileset (just copy and pasted the first one into the fourth sloth), but I still get the same nomethoderror.
Sounds like a bug with the others. Drop all scripts then, and add them back one at a time and test. Whichever one is the first the error occurs on is the one that is having conflicts with the others, either due to a bad order or just due to how the script is written.

And as a side note, if you are going to add any anti-lag scripts, best add them first. That way you can find what works with them and what doesn't work with them.
Sounds like a bug with the others. Drop all scripts then, and add them back one at a time and test. Whichever one is the first the error occurs on is the one that is having conflicts with the others, either due to a bad order or just due to how the script is written.

And as a side note, if you are going to add any anti-lag scripts, best add them first. That way you can find what works with them and what doesn't work with them.

Thank you. I deleted all scripts, but still get the same error message.
Ok, one last thing then. Are those tilesets the right size? If they are not, strange things can occur. Make sure the tile sets are the sizes required for the slots you are putting them in (A1 - A5 have different sizes than B - E for instance). I'm afraid I don't know the exact sizes required, but it should be in the help file.

Otherwise, all you can do is try to use a new project, as you might have accidentally edited a default script by mistake, hence the error.
Ok, one last thing then. Are those tilesets the right size? If they are not, strange things can occur. Make sure the tile sets are the sizes required for the slots you are putting them in (A1 - A5 have different sizes than B - E for instance). I'm afraid I don't know the exact sizes required, but it should be in the help file.

Otherwise, all you can do is try to use a new project, as you might have accidentally edited a default script by mistake, hence the error.

Just checked, tiletsets are the right size and in the right slots. Do you mean redo the game from scratch by "use a new project," or just test the game out in a new project?
I mean start over with a new project, see if it will load those tilesets and scripts. If it does, it means you somehow messed up the default scripts in the original project. If not, then you have a better idea where the error is.
I mean start over with a new project, see if it will load those tilesets and scripts. If it does, it means you somehow messed up the default scripts in the original project. If not, then you have a better idea where the error is.

They work in a new project, so I'm going to check the scripts.
Ok. From here you'll just have to debug which script it is. Best way is to add one at a time, run it, and see which it is. However, you also did say you couldn't get it to work in your other project even with no scripts, so chances are one of the main scripts got messed up too by accident (maybe you accidentally hit enter when on one of them or something?). You *might* be able to restore the old default scripts via copying the scripts file to your old project, but if you are not that far along I'd suggest just starting over.
Thank you. Default scripts don't work, I get the same error message. Game without scripts also doesn't work, I get the same error message. Not sure why this is happening now, either, as I've had the scripts for 7 months, no problem, and the error message just today pops up.
Ok...I think I'm confused now. You said it worked on a new project right, with no scripts (see two posts up)? So the error is somewhere in the scripts if it is not working now. But that contradicts what you just posted. So which is it?
Ok...I think I'm confused now. You said it worked on a new project right, with no scripts (see two posts up)? So the error is somewhere in the scripts if it is not working now. But that contradicts what you just posted. So which is it?

I copy and pasted the edited scripts and the tilesets into a new project and the new project worked fine.
I replaced the edited scripts with the default scripts in my game, kept the tilesets as they are, and I got the nomethod error message.
I took out all scripts from the game, kept the tilesets as they are, but I still get the same error message.
I am also confused. You don't replace any scripts. The custom scripts goes below the material tag and above main. Every script that is in the game when you start a new project is not touched, unless you know what you're doing.
Also try starting on a different map then transfer to the bad map.
That's the problem. NEVER replace the default scripts, for any reason. If you do, then you will break the default functions, like say loading a map. Only place the new scripts where it is marked to place them, and nowhere else.

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-no-method-error-spriteset_map-line-46.79223/