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

Question #30

Closed
Cookiezzz opened this issue Apr 4, 2013 · 22 comments
Closed

Question #30

Cookiezzz opened this issue Apr 4, 2013 · 22 comments

Comments

@Cookiezzz
Copy link

Any clue if this is compataible with Windows Phone 7.1/8.0 in C# ?
Greetz

@marceldev89
Copy link
Owner

Never tried, but it'll probably kinda work.

@Cookiezzz
Copy link
Author

Afraid it doesn't look compatible with Windows Phone out of the box.
Will see if I can fix something & will send to u if u want.

@marceldev89
Copy link
Owner

I don't have a WP device anymore so it's not much of use to me. But you're free to make a pull request.

@Cookiezzz
Copy link
Author

Well, i have a WP and want to make some apps for me and other people to use, and by that learn coding WP apps :)

If i'm running into problems, mind if I contact you? Noticed your dutch so it'd be easy :)

@marceldev89
Copy link
Owner

Yeah sure, why not. ^^

@DomiStyle
Copy link
Contributor

I tried it a while ago and it didn't work back then.
I will try it again when I have time though and it should work now since Async sockets are in place now.
Not sure if WP runs into any other problems.
I can try it with WP 7.5.

@Cookiezzz
Copy link
Author

Didn't work out for me.
If you manage to get it working, let me know:)

-----Oorspronkelijk bericht-----
Van: DomiStyle
Verzonden: 7/04/2013 2:16
Aan: ziellos2k/BattleNET
CC: Cookiezzz
Onderwerp: Re: [BattleNET] Question (#30)

I tried it a while ago and it didn't work back then.
I will try it again when I have time though and it should work now since Async sockets are in place now.
Not sure if WP runs into any other problems.
I can try it with WP 7.5.


Reply to this email directly or view it on GitHub.

@marceldev89
Copy link
Owner

I'm closing this, you're free to continue the discussion if you wish though. 😄

@DomiStyle
Copy link
Contributor

Good reminder.
I tested it out now.

There are some problems that prevent BattleNET to run on WP.
Here are all the things that needs to be changed in order to get it running under Windows Phone 7:

  • SortedDictionary does not exist
  • Encoding.GetEncoding accepts no Integer, only String
  • Enum.GetNames does not exists, only GetName
  • Enum.Parse requires an additional parameter named ignoreCase
  • socket.Send() does not work with WP, only SendAsync()!
  • socket.ReceiveTimeout doesn't exist
  • socket.Receive() doesn't exist, only ReceiveAsync()
  • socket.BeginReceive doesn't exist, only ReceiveAsync()
  • client.EndReceive() doesn't exist
  • socket.Connect() doesn't exists, only ConnectAsync()
  • socket.Available doesn't exist

It's not something that can't be done though.
If I get time I will try to fix all of it but maybe someone else wants to take a look at it meanwhile.

@DomiStyle
Copy link
Contributor

I was able to fix most of the exceptions and converted all the sockets to be asynchronous.
You can now connect but there are still some exceptions that prevent BattleNET to receive anything from the server.
Will check if I can fix that too later.

@Cookiezzz
Copy link
Author

Very Nice.
What kind of exceptions left?
Compatibility or real codin errors?
My Windows phone account is still being activated, hooray for Microsoft..

@DomiStyle
Copy link
Contributor

File or assembly name 'System.Net.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.
Seems to be a problem with Windows Phone.
Can't find a way to get rid of it though.

@Cookiezzz
Copy link
Author

http://sartorialsolutions.wordpress.com/2011/09/07/file-or-assembly-name-system-windows-debug-resources-version2-0-5-0-cultureen-us-publickeytoken7cec85d7bea7798e-or-one-of-its-dependencies-was-not-found/

Try it, it worked for me when i got that nasty error :)
Hope it works for u aswell.

Working on some NAS systems atm, so can't boot my win8

@nanomo
Copy link

nanomo commented Apr 24, 2013

there is some branch to wp?

@Cookiezzz
Copy link
Author

@nanomo No(t) for now no.
DomiStyle is trying to convert the BattleNET code tho.

@DomiStyle
Copy link
Contributor

Not yet, trying to resolve the remaining 2 exceptions first.

@DomiStyle
Copy link
Contributor

@Cookiezzz That helps. ;)

@Cookiezzz
Copy link
Author

Good to hear :)
It worked out for me aswell one time.
Cheers!

@DomiStyle
Copy link
Contributor

Implementing the async sockets in a mostly synchronous application is giving me some trouble though.
Will take a closer look later.
Atleast everything else appears to be working now except the socket.
Sending the first login message appears to be working too.

@marceldev89
Copy link
Owner

@DomiStyle: Feel free to make a pull request or a patch. I'll setup a separate branch for it so others can take a look and perhaps contribute a bit using pull requests. Don't have a WP device anymore though so I'm probably not much help at the WP specific stuff. Well, I can use the emulator but meh. 😄

(or make your own repository or branch in your fork, whatever floats your boat)

@DomiStyle
Copy link
Contributor

@ziellos2k Will do one soon without the async sockets.
I don't really have the time to implement the sockets properly at the moment but maybe someone else does.

@Cookiezzz
Copy link
Author

@DomiStyle
Got some time to maybe send me what you got?
Finally received my full WP developer account.
I'll try look into your async sockets etc.

Cheers.

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

4 participants