NoMethodError (Ocarina script)

#--------------------------------------------------------------------------
# * Get Song : Get a Song
#--------------------------------------------------------------------------
def get_song(song_id)
# Return if Song Doesn't Exist
return unless Game_Instrument::Songs.keys.include?(song_id)
# Return if song already known
return if @songs.include?(song_id)
# Push Song into the list
@songs << song_id
end




While I try using the Ocarina the error appear.


Script 'Instrument' line 134: NoMethodError occurred


undefined method 'include?' for nil:NilClass


(For some reason, most of the errors I have with script is NoMethodError)
1) please give a link to the script you're talking about, we can't help you otherwise. Do NOT copy the script here, give a link.


2) Did you start a new game after installing the script? That error often happens if you try to load an old savefile that is no longer compatible with the script
1) please give a link to the script you're talking about, we can't help you otherwise. Do NOT copy the script here, give a link.


2) Did you start a new game after installing the script? That error often happens if you try to load an old savefile that is no longer compatible with the script



1> http://www.rpgmakervxace.net/topic/12768-ocarina-of-time-script/
2> I used the save file. I'll try. Thanks.
1) please give a link to the script you're talking about, we can't help you otherwise. Do NOT copy the script here, give a link.


2) Did you start a new game after installing the script? That error often happens if you try to load an old savefile that is no longer compatible with the script



Thanks. It works.

Original thread: https://forums.rpgmakerweb.com/threads/nomethoderror-ocarina-script.55911/