You should consider joining our Discord to ask for support.

We created a support channel using the new Discord Forum feature!

You can also visit our new website, it has a help section in English and French

0 like 0 dislike
415 views
in Crash by (260 points)
closed by

Hi,

I'm using the latest version of okémon Studio tool. 1.0.2.
I just created a new project, then set my start position to the pink girl trainer with a random team (top right of the map Village Péhaisse-de-Cas)
When she throw her first pokémon, the game crash. It was working before but now this crash still happend with a fresh new project.
Log :

================================Erreur de script================================
Message :
undefined method `play_before' for nil:NilClass
 
Type : NoMethodError
Script : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00002 Transition/00100 RBYTrainer.rb (PSDK)
Ligne : 103
Date : 28/07/2022 06:11:02
Game Version : 256
Logiciel : Pokémon SDK 26.2
===================================Backtraces===================================
[25] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00002 Transition/00100 RBYTrainer.rb (PSDK) | ligne 103 create_player_send_animation
[24] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00002 Transition/00100 RBYTrainer.rb (PSDK) | ligne 102 each
[23] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00002 Transition/00100 RBYTrainer.rb (PSDK) | ligne 102 create_player_send_animation
[22] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00002 Transition/00000 Transition.rb (PSDK) | ligne 98 start_actor_send_animation
[21] : 01500 Yuki/00100 Animation/00101 Commands.rb (PSDK) | ligne 205 update_internal
[20] : 01500 Yuki/00100 Animation/00101 Commands.rb (PSDK) | ligne 36 update
[19] : 01500 Yuki/00100 Animation/00100 Animation.rb (PSDK) | ligne 112 update
[18] : 01500 Yuki/00100 Animation/00102 MessageLocked.rb (PSDK) | ligne 16 update
[17] : 01500 Yuki/00100 Animation/00101 Commands.rb (PSDK) | ligne 39 update
[16] : 01500 Yuki/00100 Animation/00100 Animation.rb (PSDK) | ligne 112 update
[15] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00002 Transition/00000 Transition.rb (PSDK) | ligne 23 each
[14] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00002 Transition/00000 Transition.rb (PSDK) | ligne 23 update
[13] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00200 Visual.rb (PSDK) | ligne 64 each
[12] : 01600 Alpha 25 Battle Engine/00002 Battle_Visual/00200 Visual.rb (PSDK) | ligne 64 update
[11] : 01600 Alpha 25 Battle Engine/00001 Battle_Scene/00100 Scene.rb (PSDK) | ligne 69 update
[10] : 01450 Systems/00000 General/00003 GamePlay__Base/00000 GamePlay__Base.rb (PSDK) | ligne 260 main_process
[9] : 01450 Systems/00000 General/00003 GamePlay__Base/00000 GamePlay__Base.rb (PSDK) | ligne 153 main
[8] : tools/GameLoader/Z_main.rb (PSDK) | ligne 17 <top (required)>
[7] : tools/GameLoader/3_load_extensions.rb (PSDK) | ligne 54 rgss_main
[6] : tools/GameLoader/50_load_game_uncompiled.rb (PSDK) | ligne 45 <top (required)>
[5] : ScriptLoad.rb (PSDK) | ligne 189 require
[4] : ScriptLoad.rb (PSDK) | ligne 189 load_tool
[3] : tools/GameLoader/Z_load_uncompiled.rb (PSDK) | ligne 14 <top (required)>
[2] : ScriptLoad.rb (PSDK) | ligne 189 require
[1] : ScriptLoad.rb (PSDK) | ligne 189 load_tool
[0] : Game.rb (RMXP) | ligne 11 <main>
===================================Fin du log===================================
closed with the note: Résolu

1 Answer

0 like 0 dislike
by (260 points)
selected by
 
Best answer
battle.dat download : https://we.tl/t-NZhql4YUL6
by (28.0k points)
Your problem comes from the fact you forgot to define the appearance of the player in battler or in map (properly).
I'm making a little fix that will show something anyway: https://gitlab.com/pokemonsdk/pokemonsdk/-/commit/5829b030585ca67f8423113e72aa75eba50bd85f
by (260 points)
J'ai capté, merci
...