maierfelix / POGOserver

Pokemon GO server emulator
GNU General Public License v3.0
459 stars 197 forks source link

Invalid provider! Kicking.. #218

Open dgofman opened 7 years ago

dgofman commented 7 years ago

Cannot login tried with different versions:

com.nianticlabs.pokemongo_0.33.0-2016080700_minAPI19(armeabi-v7a)(nodpi)_APKdot.com.apk com.nianticlabs.pokemongo_0.35.0-2016082200_minAPI19(armeabi-v7a)(nodpi)_apkmirror.com.apk

Certificates: de.robv.android.xposed.installer_v33_36570c.apk de.rastapasta.android.xposed.pokemongo_v6_c5e8bb.apk

image

nliakm commented 7 years ago

are you using ptc? I had the same problems. try a dummy google account (change the provider in the cfg.js first!)

dgofman commented 7 years ago

Thanks nliakam. I tried too. By using version 33 I can login but POGO asking to upgrade to newest version. in 35 after login asking to accept policy but its failing. Any other version 37, 39 41 are not connecting to the server. What version are you using of com.nianticlabs.pokemongo and de.rastapasta.android.xposed? Thanks, David

image

dayanfernandez commented 7 years ago

Do the tutorial manually by connecting to niantic on same email and pass. Than cmafter capturing ur first pokemon connect to ur server

dgofman commented 7 years ago

I did, but when switching server is asking to accept a certificate

nliakm commented 7 years ago

so v 0.33 is working? open your cfg.js with notepad++ and search for that line: MINIMUM_CLIENT_VERSION: "0.35.0", change the value to 0.33.0. save and start the server. now you should login with v0.33

dgofman commented 7 years ago

Still, the same issue here is all my steps: 1) Uninstall Nox from local machine 2) Installed nox_setup_v3.7.2.0_full_En.exe 3) Changed in settings "Interface" -> "Virtual buttons at the bottom" -> "on" and "General" -> "Root" -> on (restarted) 4) Installed de.robv.android.xposed.installer_v33_36570c.apk 5) Updated Framework (version 2.7) and Rebooted 6) Downloaded Pokemon Go Trust Certificate (version 2.2) 7) Enabled Module Pokemon Xposed 2.2 (checkbox) 8) Enabled custom endpoint and set ip address with server port 3000 9) Change cfg.js min version 0.33.0 10) Started PoGo server v0.5.9 11) Installed com.nianticlabs.pokemongo_0.33.0-2016080700_minAPI19(armeabi-v7a)(nodpi)_APKdot.com.apk 12) Started Pokemon Go and changed date to 1910 / Submit 13) Login with Google Account

and now got the same issue with Accept Terms of Service certificate Unknown request: MARK_TUTORIAL_COMPLETE

What did I miss in my steps? and by the way, do you know how to hide navigation controls (A,W,D,Q,S,E)?

dgofman commented 7 years ago

image

dgofman commented 7 years ago

image

dgofman commented 7 years ago

image

nliakm commented 7 years ago

Ah I didn't saw your last issue. You have to add yourself to your database before you join the first time on your server: Check my last answer here #213

dgofman commented 7 years ago

Thanks, I dropped all tables:

$mysql mysql> use pogosql;

mysql> show tables;

mysql> drop table gym; Query OK, 0 rows affected (0.02 sec)

mysql> drop table owned_pkmn; Query OK, 0 rows affected (0.02 sec)

mysql> drop table pokestop; Query OK, 0 rows affected (0.01 sec)

mysql> drop table spawn_points; Query OK, 0 rows affected (0.01 sec)

mysql> drop table users; Query OK, 0 rows affected (0.01 sec)

mysql> show tables; Empty set (0.00 sec)

mysql> exit

And when started can see new tables was created

[Console] https://github.com/maierfelix/POGOServer [Console] Booting Server v0.5.9 [Console] Downloaded assets are valid! Proceeding.. [Console] Creating table gym [Console] Creating table users [Console] Creating table spawn_points [Console] Creating table pokestop [Console] Creating table owned_pkmn [Console] MySQL connection established [Console] Server listening at 172.17.0.2:3000

but still cannot continue on click Accept button

dgofman commented 7 years ago

And by the way I added my account

$mysql

mysql> use pogosql; Database changed

INSERT INTO users VALUES (1, 'Administrator', '{MY_GOOGLE_ACCOUNT}@gmail.com', 20000000, 40, 10000, 1000, 1, 50, 143, 0, 0, 0, '{}', '{}', '{}', '{}', '{"0":1,"1":1,"3":1,"4":1,"7":1}'); Query OK, 1 row affected (0.00 sec)

mysql> exit Bye

dgofman commented 7 years ago

$mysql

mysql> use pogosql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A

Database changed mysql> select * from users; +----+---------------+-----------------------+----------+-------+----------+---- -------+------+----------+-----------+----------+-----------------------+------- ------------------+---------+-------+--------+---------+------------------------ ---------+ id username email exp level stardust pok ecoins team latitude longitude altitude send_marketing_emails send_p ush_notifications candies items avatar pokedex tutorial

+----+---------------+-----------------------+----------+-------+----------+---- -------+------+----------+-----------+----------+-----------------------+------- ------------------+---------+-------+--------+---------+------------------------ ---------+ | 1 | Administrator | xxxxxxxxxxx@gmail.com | 20000000 | 40 | 10000 | 1000 | 1 | 50 | 143 | 0 | 0 | 0 | {} | {} | {} | {} | {"0":1,"1":1,"3":1,"4": 1,"7":1} | +----+---------------+-----------------------+----------+-------+----------+---- -------+------+----------+-----------+----------+-----------------------+------- ------------------+---------+-------+--------+---------+------------------------ ---------+ 1 row in set (0.00 sec)

dgofman commented 7 years ago

Sorry, it's working I didn't realize Nox updated automatically to latest Pokemon Go version! Thanks for your help. Do you know how can I hide Nav icons?

KitsuneDev commented 7 years ago

Same problem with Nox!! How do I hide this controls??? 😄 0.37.1 doesn't work, does it??

dgofman commented 7 years ago

By the way looks like we need to execute command "/dump" after cleaning all tables :) but still getting null pointer exception

[Console] Unhandled exception occurred: [Console] TypeError: this.spawnPkmnAtPlayer is not a function [Console] TypeError: this.spawnPkmnAtPlayer is not a function at GameServer.processCommand (/POGOserver/src/process.js:44:12) at GameServer.stdinInput (/POGOserver/src/process.js:62:8) at Interface. (/POGOserver/src/index.js:220:12) at emitOne (events.js:96:13) at Interface.emit (events.js:188:7) at Interface._onLine (readline.js:239:10) at Interface. (readline.js:376:12) at Array.forEach (native) at Interface._normalWrite (readline.js:375:11) at ReadStream.ondata (readline.js:107:10) at emitOne (events.js:96:13) at ReadStream.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at ReadStream.Readable.push (_stream_readable.js:134:10) at TTY.onread (net.js:543:20) [Console] The server has crashed!

nliakm commented 7 years ago

the spawn command in this version is not working.

KitsuneDev commented 7 years ago

What version?? 0.37.1 or 0.35?? (Sorry, this may be a dumb question)

dgofman commented 7 years ago

so, I cannot add pokemon stops and pokemons? What the point of this game?

KitsuneDev commented 7 years ago

@dgofman I think they must be added through the api.

dgofman commented 7 years ago

I will try 0.35, but actually issue in the server code

https://github.com/maierfelix/POGOserver/blob/5caf7c0752c10c1f365977cd62611c0efd45793b/src/process.js#L44

looks like someone forget to add code :)

However API are available:

https://github.com/maierfelix/POGOserver/blob/79d0e284ffd7da3715e61499a1478356ea70ab79/src/models/World/forts.js

nliakm commented 7 years ago

@dgofman true. you can do it through the api.

dgofman commented 7 years ago

@nliakm Do you have an example?

Cronick commented 7 years ago

You can add spawnpoints thought the web-api or manual in the spawn_points table.

The /spawn command got removed a few updates ago, because POGOserver got a new database structure, so this has not been recoded to the new structure.

dgofman commented 7 years ago

I looked into code and don't see how can I pass json via web-api

https://github.com/maierfelix/POGOserver/blob/0eb318debc3131698bdb26489a4a01a2fbf62d50/src/api.js#L138

nliakm commented 7 years ago

through api, you can easily add pokestops, pokespawns and gyms with a few clicks. like cronick said, you can manually add them into your mysql db. but i recommend using the api. check the wiki for the tutorial

Cronick commented 7 years ago

@dgofman As I said. The /spawn command got removed a few update ago. This statement also include the spawn at specific player in the web-api. Only way to spawn pokemons at the moment, is to setup spawn points.