Azelphur / PokemonGo-CalcyIV-Renamer

Uses adb to send fake tap events to your phone, alongside Calcy IV to automatically rename all your pokemon.
GNU General Public License v3.0
77 stars 32 forks source link

[Windows Only] For some users, non breaking spaces for --copy-calcy string turn into normal spaces #46

Open esauvisky opened 5 years ago

esauvisky commented 5 years ago

There were some reports of the nbsps not being pasted alongside the rest of the CALCY_STRING when configuring the device with --copy-calcy.

Further investigation with help from one of the affected users and a small testing script allowed us to narrow the issue a little bit:

So far we only know for sure the problem relies between OS <-> adb which includes Python and all the libraries we use. The clipper service was working properly as it worked when running from a linux box.

My idea with the script was to find a nbsp that would work, but it seems like the problem is they are being converted to normal spaces regardless of which one we use.

[1]: When making the script, I forgot to add some other nbsps available (to be honest I didn't even know how many there were) The script now includes all I could found.

emilic14 commented 5 years ago

Hi!, i am having this issue... I am using Windows. And for the time being no access to a linux machine or other... Is it possible for you to put the configuration here, so that I can just copy paste? (not sure that will work, but I am willing to try)

emilic14 commented 5 years ago

Quick dirty solution from Azelphur works for those using Windows. Download the following app in your phone : https://play.google.com/store/apps/details?id=jp.ddo.hotmist.unicodepad

Find the non breaking character u00A0, copy it 12 times ^^ and add it after the naming you want in calcy, and before the following : $CatchDate$|$Lucky$|$ATT$|$DEF$|$HP$|$Gender$|$Trade$|$IV%Min$|$IV%Max$|$AttIV$|$DefIV$|$HpIV$|$FaMove$|$SpMove$|$Appraised$|$Legacy$

Should give something like this (without the ""): "WhateveruWanttoNAMEit""12Nonbreakingspaces" $CatchDate$|$Lucky$|$ATT$|$DEF$|$HP$|$Gender$|$Trade$|$IV%Min$|$IV%Max$|$AttIV$|$DefIV$|$HpIV$|$FaMove$|$SpMove$|$Appraised$|$Legacy$

esauvisky commented 5 years ago

I'm almost sure I sent a PR or Aze switched the nbsp for \xa0 instead of what was being used before. We ran multiple tests with several users until finding that was the most universally accepted nbsp.

If it wasn't sent, my bad, just cherry pick the commit or change the nbsp for that one

Azelphur commented 5 years ago

That commit was merged, we are using \xa0 https://github.com/Azelphur/PokemonGo-CalcyIV-Renamer/blob/master/ivcheck.py#L53 The above info is useful though for anyone having problems.