POGOserver
POGOserver copied to clipboard
Cannot catch a pokemon
Hi,
I have this issue when i try to catch a pokemon, and i do not know what it is. The ball does not move while catching.
It gets stucked with the pokemon loading and does not insert nothing in the database.
Could anyone help me?
Thanks
Show a screen of your "poke_stops" tabel.
Hello, this is my pokestop table at the mysql databse
What is wrong with the pokestop table?
Try to delete all of your tables.
I'm having a similar problem.. except with mine I don't have any Pokeballs... I'm not sure how to spawn them, or how to get them as a reward from a Pokestop.. any ideas?
Edit the player file, it has a poke_ball = 0 field, find with a grep -lir at the POGOServer folder and the at the src folder, the player file, edit it and you will have pokeballs
Could anyone help me?
You need to edit tabe "owned_pkmn" and set default values. needed default values are for:
owned_pkmn
.deployed_fort_id
,
owned_pkmn
.is_egg
,
owned_pkmn
.egg_km_walked_target
,
owned_pkmn
.egg_km_walked_start
,
owned_pkmn
.origin
,
owned_pkmn
.height_m
,
owned_pkmn
.weight_kg
,
owned_pkmn
.individual_attack
,
owned_pkmn
.individual_defense
,
owned_pkmn
.individual_stamina
,
owned_pkmn
.cp_multiplier
,
owned_pkmn
.captured_cell_id
,
owned_pkmn
.battles_attacked
,
owned_pkmn
.battles_defended
,
owned_pkmn
.egg_incubator_id
,
owned_pkmn
.creation_time_ms
,
owned_pkmn
.num_upgrades
,
owned_pkmn
.additional_cp_multiplier
,
owned_pkmn
.favorite
,
When you set dafault value for these elements, you are able to catch pokemon.
@devilkkw Could you please give me an example for this?
just edit your sqldatabase (i use mysql workbench) and execute this query( FIX FRIST LINE WITH CORRECT DBNAME):
ALTER TABLE
INSERT HERE YOUR DB NAME.
owned_pkmn CHANGE COLUMN
deployed_fort_id
deployed_fort_idVARCHAR(32) NULL DEFAULT NULL , CHANGE COLUMN
is_egg
is_eggTINYINT(1) NULL DEFAULT NULL , CHANGE COLUMN
egg_km_walked_target
egg_km_walked_targetDOUBLE NULL DEFAULT NULL , CHANGE COLUMN
egg_km_walked_start
egg_km_walked_startDOUBLE NULL DEFAULT NULL , CHANGE COLUMN
origin
originINT(11) NULL DEFAULT NULL , CHANGE COLUMN
height_m
height_mDOUBLE NULL DEFAULT NULL , CHANGE COLUMN
weight_kg
weight_kgDOUBLE NULL DEFAULT NULL , CHANGE COLUMN
individual_attack
individual_attackINT(11) NULL DEFAULT NULL , CHANGE COLUMN
individual_defense
individual_defenseINT(11) NULL DEFAULT NULL , CHANGE COLUMN
individual_stamina
individual_staminaINT(11) NULL DEFAULT NULL , CHANGE COLUMN
cp_multiplier
cp_multiplierDOUBLE NULL DEFAULT NULL , CHANGE COLUMN
captured_cell_id
captured_cell_idVARCHAR(32) NULL DEFAULT NULL , CHANGE COLUMN
battles_attacked
battles_attackedINT(11) NULL DEFAULT NULL , CHANGE COLUMN
battles_defended
battles_defendedINT(11) NULL DEFAULT NULL , CHANGE COLUMN
creation_time_ms
creation_time_msBIGINT(20) NULL DEFAULT NULL , CHANGE COLUMN
num_upgrades
num_upgradesINT(11) NULL DEFAULT NULL , CHANGE COLUMN
additional_cp_multiplier
additional_cp_multiplierDOUBLE NULL DEFAULT NULL , CHANGE COLUMN
favorite
favoriteTINYINT(1) NULL DEFAULT NULL , CHANGE COLUMN
from_fort
from_fort INT(11) NULL DEFAULT NULL ;
@devilkkw That was! I had a little idea about that but i prefer to ask. Thank you.
Now i have another error, but for now is not that relevant, is about a returning promise with a value, i can catch a pokemon normally.
Here deployed_fort_id error catch a pokemon
From devilkkw Fix is dont work
Change deployed_fort_id from varchar to longtext.
yes that is exactly the same error
Check the "Allow Null" checkbox, with all the other fields in that table.
innomeus, thank you is Work`s :D
happy to fix your problem.
So can your pokedex work?
@devilkkw sorry Pokedex dont working :(
i seen the code,and have a base for pokedex, need more inspection to get it work.