marceldev89 / BattleNET

BattlEye Protocol Library and Client
GNU Lesser General Public License v3.0
76 stars 44 forks source link

Question #30

Closed Cookiezzz closed 11 years ago

Cookiezzz commented 11 years ago

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

marceldev89 commented 11 years ago

Never tried, but it'll probably kinda work.

Cookiezzz commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

Yeah sure, why not. ^^

DomiStyle commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

DomiStyle commented 11 years ago

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:

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 commented 11 years ago

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 commented 11 years ago

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

DomiStyle commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

there is some branch to wp?

Cookiezzz commented 11 years ago

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

DomiStyle commented 11 years ago

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

DomiStyle commented 11 years ago

@Cookiezzz That helps. ;)

Cookiezzz commented 11 years ago

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

DomiStyle commented 11 years ago

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 commented 11 years ago

@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. :smile:

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

DomiStyle commented 11 years ago

@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 commented 11 years ago

@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.