• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Fixed [0.21] Battle Error

Status
Not open for further replies.

Shou Liengod

Active Member
Trusted Support
While i was battling Falkner,
I kept on switching pokemon to test if the Switching has been fixed.
It is fixed to a certain extent..

I switched the 4th time and it was Hoothoot, and it gave me this messenge in the 'Log' Notepad

"ErrorMessage: Object reference not set to an instance of an object."

If theres a way to fix it, let me know D:
 

AlessaGarnish

Dragon Tamer
Contributor
It happened to me too, and I got the same message.

Edit: I found out it happens when I switch pokemon to gastly when I battle the Rival.
 

nilllzz

Original Developer
Administrator
P3D Developer
Did you hit the Spacebar/Enter key/Left mouse button rapidly while the Pokémon got switched in?
 

AlessaGarnish

Dragon Tamer
Contributor
Did you hit the Spacebar/Enter key/Left mouse button rapidly while the Pokémon got switched in?
I do that all the time in a battle, only happened with Gastly since its sprite just dissapeared and after the trainers pokemon is up and the menus is about to pop up it crashes.
 

nilllzz

Original Developer
Administrator
P3D Developer
Ok I got this problem (finally): If you hit enter/space/mouse too fast (too long) the textbox saying "Go, Pokémonname" will be completely shown and then disappear. After that, the opponent attack begins. For calculations, it needs your current Pokémon's data. But in the phase between your Pokémon is coming out of the ball and landing on the ground, this data is not present. If the calculation start without data, a reference to this data is not given and the "Object reference not set to an instance of an object." error appears.
So I fixed it by not allowing the player to proceed the textbox until the Pokémon landed.
 
Status
Not open for further replies.
Top