LOG:
---------- Erreur de script : Pokemon_Battle_Core 1 ----------
----- Type
TypeError
----- Message
no implicit conversion from nil to integer
----- Position dans Pokemon_Battle_Core 1
Ligne 2614
----- Backtrace
Script : Pokemon_Battle_Core 1 | Ligne : 2614 | Méthode : in `[]'
Script : Pokemon_Battle_Core 1 | Ligne : 2614 | Méthode : in `refresh'
Script : Pokemon_Battle_Core 1 | Ligne : 2612 | Méthode : in `each'
Script : Pokemon_Battle_Core 1 | Ligne : 2612 | Méthode : in `refresh'
Script : Pokemon_Battle_Core 1 | Ligne : 2590 | Méthode : in `initialize'
Script : Pokemon_Battle_Core 1 | Ligne : 135 | Méthode : in `new'
Script : Pokemon_Battle_Core 1 | Ligne : 135 | Méthode : in `main'
Script : Main | Ligne : 53
je reçois un message d'erreur "no implicit conversion from nil to integer"
J'ai essayé de voir d'où ça venais mais je vois pas 0_o
voici les quelques lignes ou se trouve le bug
Code: |
self.contents.clear src_rect = Rect.new(0, 0, 315, 42) if @enemy bitmap = RPG::Cache.picture("partystatusenemy.png") else bitmap = RPG::Cache.picture("partystatus.png") end self.contents.blt(0, 0, bitmap, src_rect, 255) src_rect = Rect.new(0, 0, 30, 30) if @enemy ball_x = 173 coeff = -2 else ball_x = 52 coeff = 2 end for i in [url=mailto:1..@party.size]1..@party.size[/url] bitmap = RPG::Cache.picture("ballpartystatus.png") if @party.actors[@battle_order[i-1]].dead? bitmap = RPG::Cache.picture("ballpartystatusko.png") end self.contents.blt(ball_x + coeff*16*(i-1), 2, bitmap, src_rect, 255) end end def reset_position if @enemy self.x = -16 else self.x = 325-16 end refresh end end
|