The Pokémon Academy Life Community

The official discussion forum for Pokémon Academy Life
It is currently Wed Oct 23, 2019 12:50 am

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Pikachu Nickname Bug
PostPosted: Fri Feb 23, 2018 9:11 pm 
Offline
Youngster

Joined: July 13, 2017
Posts: 3
I didn't choose Pikachu's nickname in the beginning, and as a result, the game shows this error message(In the attached screenshot) every time a scene with Pikachu comes on. I'm using a Macbook Pro, and my current OS is Sierra.


Attachments:
Screen Shot 2018-02-23 at 22.07.01.png
Screen Shot 2018-02-23 at 22.07.01.png [ 218.27 KiB | Viewed 1743 times ]
Top
   
 Post subject: Re: Pikachu Nickname Bug
PostPosted: Sat Feb 24, 2018 12:43 am 
Offline
Delinquent

Joined: February 26, 2017
Posts: 44
HailLordRed wrote:
I didn't choose Pikachu's nickname in the beginning, and as a result, the game shows this error message(In the attached screenshot) every time a scene with Pikachu comes on. I'm using a Macbook Pro, and my current OS is Sierra.


Can u screenshot the moment before this happens and post that here as well? Makes it easier to find and fix.


Top
   
 Post subject: Re: Pikachu Nickname Bug
PostPosted: Sat Feb 24, 2018 12:45 am 
Offline
Staff Writer
User avatar

Joined: June 25, 2016
Posts: 203
Location: Canberra, Australia
Um, how did you leave Pikachu's name blank? It's set so that if you enter nothing or enter nothing but spaces, it sets to 'Pikachu' automatically. I'm having trouble recreating this.


Top
   
 Post subject: Re: Pikachu Nickname Bug
PostPosted: Sat Feb 24, 2018 8:31 pm 
Offline
Poké Fan
User avatar

Joined: December 6, 2016
Posts: 65
I don't know if this helps, but I am able to get a similar error if I name my pikachu: [][][][][]

It accepted the name, and the next time pikachu showed up, I got the following error:

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/prologue.rpy", line 134, in script
Exception: String u'[][][][][]' ends with an open format operation.


However, if I name Red "[][][][][]", it accepts the name, and no crashes occur. If I name them both that name, it crashes when pikachu comes on screen.

Maybe HailLordRed got the name to be blank by getting a tab character in there or something. Or maybe the input isn't sanitary, and there's a way from the input field to accidentally delete the pika_nick key from the dictionary.

Incidentally, nice touch changing "$" to be the pokeyen symbol in your name checker.


Top
   
 Post subject: Re: Pikachu Nickname Bug
PostPosted: Tue Mar 06, 2018 12:50 am 
Offline
Staff Writer
User avatar

Joined: June 25, 2016
Posts: 203
Location: Canberra, Australia
Okay yes, I can confirm the game crashes if you name them both [][][][][][].

My suggested fix would be to not do that.


Top
   
 Post subject: Re: Pikachu Nickname Bug
PostPosted: Sat Mar 10, 2018 11:04 pm 
Offline
Poké Fan
User avatar

Joined: December 6, 2016
Posts: 65
Soundwave wrote:
Okay yes, I can confirm the game crashes if you name them both [][][][][][].

My suggested fix would be to not do that.


Well, it could be a symptom of a larger problem. It sounds like the compiler is taking our string input, and isn't treating it as such. Like the good ol' SQL injection technique, it looks like the code at that point isn't just taking it as a string. This would account for the error message that I got with my nonsensical name, and could potentially allow the user to not have a name, or delete the pika_nick key from the dictionary. It's weird, because it looks like you have already accounted for this already, as most of the characters that could cause this are already not allowed.

Since the error only appears to happen for pikachu's name, and not Red's, it implies that part of the code is being treated differently, and the difference between the two might lead to the answer.

In the meantime, I shall refrain from naming anyone [][][][][]. Which is a shame, as that's my grandmother's name, and it truly is a beautiful name.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
Theme Created by HOLLYSMOKE
Theme updated to phpBB 3.1.6 by KamijouTouma
Theme Version is 3.1.6-ss2