Need help with Crystal Engine-GF script errors

Tigrean

Veteran
Veteran
Joined
Dec 31, 2013
Messages
105
Reaction score
7
First Language
English
I'm working with RPG Maker VX Ace and  so far I got it working for the most part but when i try to go to the GF character to set skills for learning I get an error stating

Crystal Engine - GF Menu line 222: NoMethodError occurred.

undefined method 'has_key?' for nil:NilClass.

Here are lines 221-223 of the script.

221 def include?(item)
222   @actor.learning_skills.has_key?(item.id)
223 end

Then the next issue is when i finish a fight I get another error

Crystal Engine - GF Junction line 157: NoMethodError occurred. Undefined method "[]" for nil:Class.

Here are the lines for that statement

153 class <<self; alias gain_exp_ce_junction gain_exp; end
154  def self.gain_exp
155    $game_party.guardian_forces.each do |actor|
156      actor.gain_ap($game_troop.ap_total)
157      if actor.learning_skills[actor.learning_skill][0] == actor.learning_skills[actor.learning_skill][1]
158        text = sprintf(Vocab::obtainSkill, $data_skills[actor.learning_skill].name)
159        $game_message.add('\.' + text)
160      end

Also I'm creating a class and gender system using events and a map. When I say yes to the class I want I get another error: Crystal Engine - GF Junction line 225: typeError occurred. Nil can't be coerced into Fixnum.

Here are the lines of this statement:

223 alias change_exp_gf_junction change_exp
224   def change_exp(exp, show)
225     value = exp - self.exp
226     @junctioned_actors.each do |actor|
227      actor.change_exp(actor.exp + (value / @junctioned_actors.size), show)
228    end

Now if I change line 225 to value = self.exp I fix the error above but then when I walk for a bit I get this error:

Crystal Engine - GF Junction line 285: NoMethodError occurred. undefined method "[]" for nil:NilClass.

Here are the lines of that statement:

279  alias refresh_ce_gf_juntion refresh
280   def refresh
281     refresh_ce_gf_juntion
282     return if @junction_skills.nil?
283     return if @junction_skills.empty?
284     return if @learning_skill == 0
285     if @junction_skills[@learning_skill][0] == @junction_skills[@learning_skill][1]
286      skills = @junction_skills.keys
287       index = skills.index(@learning_skill)
288       @learning_skill = skills[index + 1]
289       if @learning_skill.nil?
290         @junction_skills.each do |key, ap|
291           unless ap[0] == ap[1]
292             @learning_skill = key
293             return
294           end
295         end
296       end

Can someone please help me I need to get these working before I feel I can move on to continue the game I'm creating. Sorry for creating such a wall of text.
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
"NoMethodError" for "NilClass" usually means that something wasn't initialized before it was used, and that means that the error can be anywheere, but most likely NOT in the line given.


Which also means that trying to copy those lines for a bughunt is absolutely useless.


Please (as told in any post about script errors) LINK to the original place of the ENTIRE script you've problems with, and also list all scripts in your project, not only the ones who report errors.


Also, please read the instructions about the following script (they're different than usual), temporarely import it into your project and give us a screenshot of the console output created by the backtracer. That console output will list all scripts related to the error, and we'll need links to all those scripts:


http://himeworks.wordpress.com/2013/06/09/custom-main-full-error-backtrace/
 

Tigrean

Veteran
Veteran
Joined
Dec 31, 2013
Messages
105
Reaction score
7
First Language
English
Alright I posted the script in main but I have no Idea on how to open a debug consul? Never mind I will have the error consoles shortly.
 
Last edited by a moderator:

Tigrean

Veteran
Veteran
Joined
Dec 31, 2013
Messages
105
Reaction score
7
First Language
English
Ok I have all the stuff you requested I really do Appretiate this. I have Word docs for the original Crystal engine scripts I'm trying to use you can also find them at this Website http://crystalnoel42.wordpress.com/scripts-list/ .  I apologize for the quality of the pictures I have no Idea how to doa screen shot in Windows 8 so i took pictures of the screen with my phone.

Crystal Engine-GF Menu.txtCrystal Engine-GF Junction.txtCrystal Engine - Guardian Forces.txtCrystal Engine - Basic.txtIMG_07641.JPGIMG_07651.JPGIMG_07671.JPGIMG_07681.JPG

I hope this will help
 

Attachments

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
Screenshot: Hit the key "Printscreen" on your keyboard, then go to a picture program (or MS Paint if you have nothing else) and copy it from clipboard (Ctrl-V)


I don't know the scripts so you probably have to wait for someone else to check for the errors, but at first guess it might be that you set some of the notetags required in the actors in the wrong way, you should check those instructions and compare them with your database actor data.
 

Tigrean

Veteran
Veteran
Joined
Dec 31, 2013
Messages
105
Reaction score
7
First Language
English
Ok I looked at the scripts and verified that I did the Note tags right and it seem they all are correct. So I guess I have to wait for someone who knows the scripts to help me out. Hopefully someone soon been trying to contact the original creator and have been failing. I'm down to my last chance brefore I will have to scrap my whole project and start fresh.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Are you testing your game from a savefile?
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,567
Latest member
sashalag
Top