Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to sync. (Again) #83

Open
lucia9096 opened this issue Apr 16, 2016 · 82 comments
Open

Unable to sync. (Again) #83

lucia9096 opened this issue Apr 16, 2016 · 82 comments

Comments

@lucia9096
Copy link

So is it just me or we can't sync the swproxy with the game again prior to the latest application?

@daddyrubin
Copy link

@knifesk said > If you double tap the home screen as soon as the "Connecting to game server" message appears and then switch to settings and set the proxy up, everything works as expected

This lets the proxy run for me but it does not create the files.

@lucia9096
Copy link
Author

So it does connects but the files are not created. Anyone else has the same issue?

@ghost
Copy link

ghost commented Apr 16, 2016

yes seems ios is broken

@lucia9096
Copy link
Author

How about android?

@Xzandro
Copy link
Contributor

Xzandro commented Apr 16, 2016

Android works fine.

@daddyrubin
Copy link

i guess i'll have to charge my Tab3 to get the files until it is updated :(

@knifesk
Copy link

knifesk commented Apr 16, 2016

@daddyrubin then try a moment early.. It works for me... I have to do it several times to get it to work.. the problem is that you're setting the proxy a little late, as the monsters and rune request is already finished

@daddyrubin
Copy link

daddyrubin commented Apr 16, 2016

@knifesk Thanks. I was able to get it to work. There is a split second between when it says "Downloading necessary information...." and when it says "Connecting to game server..." that it goes blank. I was able to turn the proxy on at that time and it worked. Hope this helps anyone else.

@davidwang2000
Copy link

This used to work for me but it is broken since the last update.

@goku-ssj
Copy link

Does not work for me either since the new game patch. any news?

@CnoteLA
Copy link

CnoteLA commented Apr 22, 2016

Yeah, Im not able to get the files generated. It starts up normally and then just hangs endlessly.

@Bithnar
Copy link

Bithnar commented Apr 23, 2016

Same here. It gets to the Touch To Start then just hangs

@kupoback
Copy link

Same here does not work. Any other methods to try and get this to upload, besides manually? I really need some help on my account, and don't want to upload everything manually.

@fperegrinvs
Copy link
Collaborator

everybody using ios or any android user having this issue ?

@kupoback
Copy link

iOS 9.3.2

@rolares
Copy link

rolares commented Apr 25, 2016

iOS 8.1.2; same issue of having the proxy work just fine, logs activity as normal - all except for generating optimizer.json and other files.

@skroll
Copy link

skroll commented Apr 25, 2016

I was able to get it using daddyrubin's advice. If it doesn't generate the rune information, you gotta be a little bit quicker. It sucks, but it's the only way at the moment for it to work.

Looks like they're detecting a proxy somehow.

@fperegrinvs
Copy link
Collaborator

fperegrinvs commented Apr 25, 2016 via email

@skroll
Copy link

skroll commented Apr 25, 2016

I have a feeling that SW is using the CFProxySupport API to check if a proxy is set.

https://developer.apple.com/library/ios/documentation/CoreFoundation/Reference/CFProxySupport/index.html

Since iOS provides a way to check, they're probably actively trying to prevent it.

@kupoback
Copy link

No combination of turning proxy on when "Getting Friends List" or "Connecting to Game Server" as it gets to "Touch to Start" and hangs up trying to connect to the game. I've even tried 0.97 to see if that'll do anything either as that was the last working version for me.

@fperegrinvs
Copy link
Collaborator

@skroll given that com2us recently changed the crypto key a new update with proxy detection is likely. Could you test this configuring/using a regular proxy and checking if game is ok ?

@c2uwillbanme
Copy link

c2uwillbanme commented Apr 25, 2016

@lstern I can confirm that with a fresh Squid install on a Centos 6.5 server that acts as my home gateway its working... Maybe the proxy modifies the HTTP headers and they are able to detect this specific proxy?

image

edit1: Just checking the Log... I think this is the source of the problems...

1461616849.885 32123 10.0.0.149 TCP_MISS/200 5857 CONNECT 169452.engine.mobileapptracking.com:443 - DIRECT/54.164.196.101 -

an http verb that this proxy is probably not interpreting

In my squid log I can see this CONNECT and then some GET/POST calls...
In my swproxy log I can see this CONNECT and then the log ends...

So, I think the problem may be that this proxy doesnt support CONNECT

edit2:
but if the CONNECT verb is the problem then why is android working ok?

edit3: tried changing proxys port from 8080 to squid default port and it still doesn't work

@skroll
Copy link

skroll commented Apr 25, 2016

@lstern Just used another proxy, and it worked just fine. I was able to sniff out the requests/responses, which I fed through the decryption routine and was able to get the raw JSON just fine. Didn't have to jump through hoops to get it to work.

@kupoback
Copy link

@skroll What do you mean by used another proxy? As opposed to 8080?

@skroll
Copy link

skroll commented Apr 26, 2016

@lstern No, I mean I used an entirely different proxy tool besides SWProxy.

@goku-ssj
Copy link

and this tool is...?

@skroll
Copy link

skroll commented Apr 26, 2016

Ah sorry, it was Charles Proxy: https://www.charlesproxy.com/

@fperegrinvs
Copy link
Collaborator

@skroll seems like a bug in the SW Proxy code, the code kakaroto got from https://github.com/abhinavsingh/proxy.py maybe you could isolate and send me the faulty request so I can replay it here and try to fix the bug

@skroll
Copy link

skroll commented Apr 26, 2016

@lstern Sure, where should I send it?

@Phinalize
Copy link

I have an iOS device and Windows 10 laptop that I use as the proxy server, if you need help debugging let me know and I'll try and help, I have no coding background do you'll have to walk me through steps of its needed.

@skroll
Copy link

skroll commented May 8, 2016

Well I implemented the capturing of the data and decryption in Go using the proxy. Won't post it here since I know how @kakaroto feels about the decryption keys being in the wild. I'll see if I can use a different lib in the SWProxy code.

@fperegrinvs
Copy link
Collaborator

@skroll current proxy seems to support 'connect' .Everything points to a bug in the proxy code probably related to 'connect' but without being able to use debug the code, I can't really fix it even using external help.

@TannerJack
Copy link

I have tried many times and spent alot of time trying to get the file of my monsters and runes(10+ hrs, probably should've just given up...). I have had no success so I was wondering if one of the mods who has an android phone could get the file for me. I would give hive information to my account.

@kakaroto
Copy link
Owner

kakaroto commented May 9, 2016

@Knifetanner2 don't give your information to anyone, it's simply not worth it.

@thatrandomguyo1 I agree with you that saying "shut your mouth" is not an acceptable way to talk to others, and no one is telling you not to ask questions or to post here, however your comment was viewed (clearly by more than one person) as arrogant and self-entitled and helped no one. Saying "I see that is bug is still open, is there anything I can do to help you in fixing it?" or even "is there a reason why this bug hasn't been fixed yet?" is still better than trying to use sarcasm to let us know that your urgent need for the fix is more important than global warming.

@skroll @lstern yeah, CONNECT method is supported, and I know it used to work, maybe it stopped working recently? I have no idea. Using a proper proxy might be a good idea, I actually just googled "python proxy server" and copied the first implementation I found, it was a single file that did the job for the proof of concept I was looking to do. I'm sure there are better alternatives out there. If you want to port it to a different or more standard/complete proxy library, feel free to do it.
Honestly, it was FRR day yesterday and I didn't even use the proxy/optimizer, I think the last time I used SWProxy was a couple of months ago, and I'm swamped with work so I spend most of my free time away from the PC, so you understand my motivation is a little low on this right now. But feel free to fix it any way you see fits.
I'd vote for : try to fix the current proxy.py, if it seems overly complicated or takes more than ~30 minutes for a simple fix, then move for a port to a different library (or do both, if better library is available, use it instead, otherwise, default back to the local/broken proxy.py)

@KooGitKoo
Copy link

I have mac/ios and have had the same problems, but i just tried the work around from @knifesk and it worked like a charm. Thank you for you all amazing people here!

@daddyrubin > @knifesk said > If you double tap the home screen as soon as the "Connecting to game server" message appears and then switch to settings and set the proxy up, everything works as expected

I doubled tap home screen as soon as I saw "Downloading necessary information...." and went to set the proxy then got back in.

@aureus1
Copy link

aureus1 commented May 14, 2016

I've done some poking around - It looks like the issue is that the device/registered request never actually gets marked as complete.

I added some logic to mark it as complete (well, right now -any- post with a 0 content-length) and the parser is able to successfully grab my runes/monsters on ios, but it's screwing up the actual game. Not familiar enough with the HTTP protocol to know -why- it's not being marked as complete, going to have to screw around in wireshark and do some googling to dig further into it.

@fperegrinvs
Copy link
Collaborator

Could you share the code ? Maybe we could do a dirt fix to mark only this
request then we can find the actual bug

On Sat, May 14, 2016 at 10:33 AM, Aureus notifications@github.com wrote:

I've done some poking around - It looks like the issue is that the
device/registered request never actually gets marked as complete.

I added some logic to mark it as complete (well, right now -any- post with
a 0 content-length) and the parser is able to successfully grab my
runes/monsters on ios, but it's screwing up the actual game. Not familiar
enough with the HTTP protocol to know -why- it's not being marked as
complete, going to have to screw around in wireshark and do some googling
to dig further into it.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#83 (comment)

@aureus1
Copy link

aureus1 commented May 14, 2016

Hack fix pull requested; I'll take a look at something less...horrible...after HoH is over. gotta get back to farming :)

Edit:
Also, can't find build instructions, or I'd push out a package for people to try...any chance of getting those documented?

@fperegrinvs
Copy link
Collaborator

Thanks @aureus1 ! I Did some tests with android and this hack isn't breaking anything (did you experience any problem with this hack ?). As for the package build, are you using mac, linux or windows ?

@aureus1
Copy link

aureus1 commented May 15, 2016

No issues that I've seen; game seems fine once it's loaded.

Usually I'm on mac or windows, depending on which machine I happen to grab.

fperegrinvs added a commit that referenced this issue May 15, 2016
@fperegrinvs
Copy link
Collaborator

accepted the pull request. Created a custom build here (windows-only). I'll create an official relase once someone confirm that this is working and someone creates a MacOS build.

@fperegrinvs
Copy link
Collaborator

@aureus1 I'm building this using pyinstaller (pyinstaller SWProxy.spec)

@aureus1
Copy link

aureus1 commented May 15, 2016

@fperegrinvs
Copy link
Collaborator

404

@aureus1
Copy link

aureus1 commented May 15, 2016

Try this one, looks like i forgot to publish it: https://github.com/aureus1/SWProxy/releases/download/ios_Fix/SWProxy

@fperegrinvs
Copy link
Collaborator

hum, file is very small.seems like its not including Qt. Previous release
had 14 MB

On Sat, May 14, 2016 at 11:09 PM, Aureus notifications@github.com wrote:

Try this one, looks like i forgot to publish it:
https://github.com/aureus1/SWProxy/releases/download/ios_Fix/SWProxy


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#83 (comment)

@aureus1
Copy link

aureus1 commented May 15, 2016

Downloading + installing pyqt4 now; going to take a while over my cell phone connection (like it might be overnight - not available as a pip package, several 100MB worth of binary downloads). I'll post the binary when it finishes unless someone else gets to it first

@Nacheen81
Copy link

I manually added the lines of code for the fix created by @aureus1 to the .99.1 release running in a Linux environment and it works with no errors for iOS and Android devices. Hope that is helpful in any way.

Thanks for the work on the fix!

@aureus1
Copy link

aureus1 commented May 15, 2016

Got PyQt4 set up; new binary here: https://github.com/aureus1/SWProxy/releases/download/ios_Fix/SWProxy

15MB, looks like it has QT pulled in.

@dotneB
Copy link
Contributor

dotneB commented May 15, 2016

Confirmed! Tested master 7f0d02f (Merge pull request #89 from aureus1/fix_ios_issue) with my iOS device and was able to launch the game 5 times out of 5

@kupoback
Copy link

I downloaded this PyQt4 and the file that @aureus1 posted in his last comment, but don't know what I'm doing... Any suggestions? iOS, and Windows 10 here

@fperegrinvs
Copy link
Collaborator

Released a new version. @kupoback aureus1 file is a MacOS file.

@kupoback
Copy link

Ah okay. I have a mac as well. However, still unsure what to do. I'll just wait as things wrap up for a .exe or .dmg

@Xzandro
Copy link
Contributor

Xzandro commented May 15, 2016

There already is a .exe: https://github.com/kakaroto/SWProxy/releases/tag/0.99.2

@kupoback
Copy link

Ah, that I didn't see the link to. I just saw 0.99.1 Thank you. Once the game comes back online (can't seem to connect by default), I'll give this a try. Thank you

@kupoback
Copy link

kupoback commented May 15, 2016

Cannot connect on either Mac or PC. Fails instantly.

Edit I got it to work. Had to re launch the app. A minor set back, but it works!

Thank you!

@Phinalize
Copy link

A big thank you to everyone who has worked on this, it is now working for me!

Windows 10 marked it as an unknown program and didn't before, but clicked the "More info" and it allowed me to run it, then had to make sure the Firewall exceptions were in place.

Thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests