Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Après avoir exécuter un PathFinding sur un évent (via la commande pour déplacer un évent/le joueur), le jeu plante.
- Voici l'erreur :
- [code]
- ================================Erreur de script================================
- Message :
- undefined method `each' for "endin":String
- Type : NoMethodError
- Script : 00650 MapSystem/00700 Pathfinding.rb (PSDK)
- Ligne : 447
- Date : 17/01/2020 17:03:44
- Logiciel : Pokémon SDK 24.48
- ===================================Backtraces===================================
- [21] : 00650 MapSystem/00700 Pathfinding.rb (PSDK) | ligne 447 stucked?
- [20] : 00650 MapSystem/00700 Pathfinding.rb (PSDK) | ligne 385 update_watch
- [19] : 00650 MapSystem/00700 Pathfinding.rb (PSDK) | ligne 313 update
- [18] : 00650 MapSystem/00700 Pathfinding.rb (PSDK) | ligne 117 update
- [17] : 00650 MapSystem/00600 Game_Map.rb (PSDK) | ligne 397 update
- [16] : 01400 GamePlay/00200 Scene_Map.rb (PSDK) | ligne 67 update
- [15] : 01400 GamePlay/00200 Scene_Map.rb (PSDK) | ligne 63 loop
- [14] : 01400 GamePlay/00200 Scene_Map.rb (PSDK) | ligne 63 update
- [13] : 01400 GamePlay/00200 Scene_Map.rb (PSDK) | ligne 36 main
- [12] : 01400 GamePlay/00200 Scene_Map.rb (PSDK) | ligne 31 loop
- [11] : 01400 GamePlay/00200 Scene_Map.rb (PSDK) | ligne 31 main
- [10] : tools/GameLoader/Z_main.rb (PSDK) | ligne 10 <top (required)>
- [9] : tools/GameLoader/3_load_extensions.rb (PSDK) | ligne 35 rgss_main
- [8] : tools/GameLoader/50_load_game_uncompiled.rb (PSDK) | ligne 31 <top (required)>
- [7] : /lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb (ruby) | ligne 59 require
- [6] : /lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb (ruby) | ligne 59 require
- [5] : ScriptLoad.rb (PSDK) | ligne 128 load_tool
- [4] : tools/GameLoader/Z_load_uncompiled.rb (PSDK) | ligne 8 <top (required)>
- [3] : /lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb (ruby) | ligne 59 require
- [2] : /lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb (ruby) | ligne 59 require
- [1] : ScriptLoad.rb (PSDK) | ligne 128 load_tool
- [0] : Game.rb (RMXP) | ligne 16 <main>
- ===================================Fin du log===================================
- [/code]
- Voici le def contenant la ligne en question :
- [code]
- def stucked?
- # Get the data
- route = @character.path
- route_index = @character.move_route_index
- x = @character.x
- y = @character.y
- z = @character.z
- b = @character.__bridge
- # Iterate commands to the last one, which is Lentgh - 2 (considering the empty command at end)
- route[route_index..[route.length - 2, route_index + OBSTACLE_DETECTION_RANGE - 1].min]&.each do |command| # Le problème est à cette ligne
- return true unless @cursor.sim_move?(x, y, z, command.code, b)
- x = @cursor.x
- y = @cursor.y
- z = @cursor.z
- b = @cursor.__bridge
- end
- return false
- end
- [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement