Notice: fwrite(): Write of 483 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - Script issue

The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: BloodyChaos on July 05, 2013, 04:19:26 PM

Title: Script issue
Post by: BloodyChaos on July 05, 2013, 04:19:26 PM
I am trying to use this skill Tree script http://forums.rpgmakerweb.com/index.php?/topic/13212-lune-skill-tree/ in the demo it works perfect but after i plugged it into my game i get this error message; Script 'Skill Tree' line 457: NoMethodError occured. undefined method 'size' for nil:NilClass
any ideas for fixing this, i have no other skill related scripts installed
Title: Re: Script issue
Post by: LoganF on July 05, 2013, 04:32:24 PM
The line in question


for i in 0...@table.size


In an earlier line, just a few up, is where @table is assigned a value


@table = Skill_Tree::Actor[a]


The error occurs because @table is nil, meaning that Skill_Tree::Actor[a] is returning nil, likely because whoever actor 'a' is, hasn't been given a skill tree, even if that actor 'a' isn't going to get one.

Make sure that you have a Skill Tree set up and defined, or at least an empty table where you don't want one for that character, so that @table has a value (even if it contains nothing relevant).

You can do this by adding an empty array for each actor you have in your game:


Actor[1] = []
Actor[2] = []
Actor[3] = []
# and so on


Thus, when the @table variable is being assigned to, it will be given the value @table = []. Then, at line 457, it will be interpreted as:


for i in 0...0 #where 0 is @table.size


Bear in mind, that I have no idea how this script works, and that my suggestion is based on a cursory glance at what I can see as being relevant. It may or may not work. Give it a try, and let me know how it goes.
Title: Re: Script issue
Post by: BloodyChaos on July 08, 2013, 05:26:53 PM
That worked perfect thank you, but now I hit a new problem, It might be a compatibility problem with my battle system but I am using this battle script, http://www.rpgmakervxace.net/topic/4337-rmvxa-tankentai-v100-update-fully-functioning-english-version-installation-instructions/ and here is my error I get whenever an enemy attacks without a skill, Script 'Skill Tree' line 1185: NoMethodError occurred. undefined method 'Skkill_mult' for NilClass.
Title: Re: Script issue
Post by: &&&&&&&&&&&&& on July 08, 2013, 06:08:22 PM
Well, here's your problem.

Quote from: BloodyChaos on July 08, 2013, 05:26:53 PM
http://www.rpgmakervxace.net/topic/4337-rmvxa-tankentai-v100-update-fully-functioning-english-version-installation-instructions/


You spelled Hentai wrong.
Title: Re: Script issue
Post by: BloodyChaos on July 08, 2013, 06:32:27 PM
lol