- Joined
- Mar 23, 2014
- Messages
- 9
- Reaction score
- 2
- First Language
- english
- Primarily Uses
Hey everyone,
My game is coming along nicely now, but last night I got this error that at times will cause the game to crash upon entry. The window states:
"Script 'YEZ Job System: Classes' line 540: NoMethodError occurred. Undefined method 'include?' for nil:nilClass"
Heres the sequence of events, help me solve this mystery pls.
1. Last night I commented out various battle/menu commands like Camp, Tactics, Passives and Attack (in my game all forms of attacking are skill based). But I stayed above the "do not edit past this point" segments at all times.
2. Added premade Skill (Heal) via Database Editor > Classes > Skills to Learn, to a new character(actor) with a new class I invented, lets call him CharaX using ClassX. I havent done anything to the new class except name it, added elemental/state resistances via Database Editor. If CharaX is in the party the game crashes immediately.
3. So then I experimented. I changed up the party, excluding CharaX. Game now crashes upon battle entry.
4. I removed the premade Skill and game runs fine. Made a new custom simple skill as a test and tried to assign it to ClassX via Database Editor > Classes > Skills to Learn. Still crashes in the same circumstances as above.
5. Removed test skill, changed party added back CharaX, game runs fine. NOW if I add any of the premade characters to the party like Ralph or Ulrika, game crashes upon battle entry. Mysterious huh!
Here is the offending script segment:
And the "YEZ Job System: Classes" Script I've been using: http://pastebin.com/Hx6GrPzS
My hunch is that one can no longer rely on the Database editor because of the Yanfly engine, and to get it to work I'll have to really get in there and make sure each character and class is mentioned and defined via the script and not via the easy WSYIWYG Database editor. =(
My game is coming along nicely now, but last night I got this error that at times will cause the game to crash upon entry. The window states:
"Script 'YEZ Job System: Classes' line 540: NoMethodError occurred. Undefined method 'include?' for nil:nilClass"
Heres the sequence of events, help me solve this mystery pls.
1. Last night I commented out various battle/menu commands like Camp, Tactics, Passives and Attack (in my game all forms of attacking are skill based). But I stayed above the "do not edit past this point" segments at all times.
2. Added premade Skill (Heal) via Database Editor > Classes > Skills to Learn, to a new character(actor) with a new class I invented, lets call him CharaX using ClassX. I havent done anything to the new class except name it, added elemental/state resistances via Database Editor. If CharaX is in the party the game crashes immediately.
3. So then I experimented. I changed up the party, excluding CharaX. Game now crashes upon battle entry.
4. I removed the premade Skill and game runs fine. Made a new custom simple skill as a test and tried to assign it to ClassX via Database Editor > Classes > Skills to Learn. Still crashes in the same circumstances as above.
5. Removed test skill, changed party added back CharaX, game runs fine. NOW if I add any of the premade characters to the party like Ralph or Ulrika, game crashes upon battle entry. Mysterious huh!
Here is the offending script segment:
#--------------------------------------------------------------------------
# new method: class_skills
#--------------------------------------------------------------------------
def class_skills
result = []
for i in @skills
next unless YEZ::JOB::COMMON_SKILLS_LIST.include?(i)
result.push($data_skills)
end
return result unless $imported["JobSystemBase"]
for i in @skills
next unless YEZ::JOB::CLASS_SKILLS_LIST[@class_id].include?(i) or
YEZ::JOB::CLASS_SKILLS_LIST[subclass_id].include?(i) or
YEZ::JOB::CLASS_SKILLS_LIST[0].include?(i)
result.push($data_skills)
end
return result
end
# new method: class_skills
#--------------------------------------------------------------------------
def class_skills
result = []
for i in @skills
next unless YEZ::JOB::COMMON_SKILLS_LIST.include?(i)
result.push($data_skills)
end
return result unless $imported["JobSystemBase"]
for i in @skills
next unless YEZ::JOB::CLASS_SKILLS_LIST[@class_id].include?(i) or
YEZ::JOB::CLASS_SKILLS_LIST[subclass_id].include?(i) or
YEZ::JOB::CLASS_SKILLS_LIST[0].include?(i)
result.push($data_skills)
end
return result
end
And the "YEZ Job System: Classes" Script I've been using: http://pastebin.com/Hx6GrPzS
My hunch is that one can no longer rely on the Database editor because of the Yanfly engine, and to get it to work I'll have to really get in there and make sure each character and class is mentioned and defined via the script and not via the easy WSYIWYG Database editor. =(
Last edited by a moderator: