Can't Dup Nilclass

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Any error "undefined" or "nilclass" means that the object the script is trying to use does not exist.


For established and well-tested scripts there are only four possible ways such error can happen:


1) you loaded an old savefile.


A lot of scripts require you to start a new game to set them up correctly, all older savefiles become incompatible and result in undefined or nilclass errors.


2) you made a mistake when copying the script and left some lines uncopied (most likely at the end)


Check and try to copy again if that is the case


3) you made a wrong configuration in the script


A lot of the larger scripts can't be "copied and forgotten", you need to set them up before they can run correctly.


4) the script is incompatible with another script you're using


Finding the other script might be difficult...


Please follow the link to "how to use a script" in my signature - it describes all possible steps and how to bughunt the problem.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Please provide the full error text.  It should have a script name and line number and maybe other useful information as well.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,381
Reaction score
8,537
First Language
English
Primarily Uses
RMMV
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

MicahMonferno

Villager
Member
Joined
May 7, 2016
Messages
22
Reaction score
1
First Language
English
Primarily Uses
Script 'Game_Interpreter' Line 1411: Type error occurred


can't dup NIlclass
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
then the command you used in one of your events is wrong. Please provide a screenshot of the event with that script command that causes this error.
 

MicahMonferno

Villager
Member
Joined
May 7, 2016
Messages
22
Reaction score
1
First Language
English
Primarily Uses
I found it out! The map id was set wrong! But when I place an item it comes up as another graphic than I set it as, why?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
@MicahMonferno Unfortunately we can't read your mind to learn what you have done, and we don't have crystal balls to see into your computer either.


If you want detailed help instead of guesses, you need to give us the information of what you have done - preferably with screenshots as any description you try will be missing information.
 

MicahMonferno

Villager
Member
Joined
May 7, 2016
Messages
22
Reaction score
1
First Language
English
Primarily Uses
Yeah, it does suck you can't do that.


I will provide screen shots ASAP (•◡•)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
I can't check the entire script series, but at minimum you mistyped in the notebox of the item - compare how it is supposed to be written in the example of the script.
 

MicahMonferno

Villager
Member
Joined
May 7, 2016
Messages
22
Reaction score
1
First Language
English
Primarily Uses
I did, but if you see in the note box of the item I think it's the decor ID, but if it set it to anything but 1, It says can't dup Nilclass
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
you completely mistyped the way the decor type is listed, and that might have thrown off the note reader. You need to fix that in all cases.


And why are you using 17 as decor ID anyway? there aren't 17 events on your decor map...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top