Re: Launcher UPDATES Section
Code:
Public Class Form3
Public Shared Function GetMD5Hash(ByVal TextToHash As String) As String
If TextToHash = "" Or TextToHash.Length = 0 Then
Return String.Empty
End If
Dim md5 As MD5 = New MD5CryptoServiceProvider()
Dim toHash As Byte() = Encoding.Default.GetBytes(TextToHash)
Dim result As Byte() = md5.ComputeHash(toHash)
Return System.BitConverter.ToString(result)
End Function
Code:
Label3.Text = ""
Dim tempPassToken As String() = GetMD5Hash(TextBox2.Text).Split("-")
Dim passMD5 As String = ""
For i = 0 To tempPassToken.Length - 1
passMD5 = passMD5 & tempPassToken(i)
Next
Dim wc As WebClient = New WebClient()
Dim Login As String() = wc.DownloadString("http://ip:port/test/Login.php?Username=" & TextBox1.Text & "&Password=" & passMD5.ToLower()).Split("#")
wc.Dispose()
If Login(0) = "OK" Then
Process.Start(".exe", "-osk_server ip -osk_token " & Login(1) & " -osk_store www.google.de")
Application.Exit()
ElseIf Login(0) = "Wrong Password." Then
Label3.Text = Login(0)
ElseIf Login(0) = "Account Not Found." Then
Label3.Text = Login(0)
Else
Label3.Text = "Unknow Error"
End If
Re: Launcher UPDATES Section
Quote:
label3.text = "unknow error"
Soz. :?:
Re: Launcher UPDATES Section
Thanks Black. I'll look into it more once I get time.
Re: Launcher UPDATES Section
After trying to debug it, I found out that everything works if I remove the token generator part from the PHP. But Ideally it should also work with it if I just remove the '.$Token' and leave it as 'OK' but it still doesn't work. If it did work without the token part then I think I would just have to separate them and make new variable telling it to just take the token from the web server response and tell the login response variable to just take the OK part.
Re: Launcher UPDATES Section
I've managed to finish creating my launcher. woohoo. It creates a token, uses the token to login and verifies that the pass and user is correct. I'd like to thank stu for his utility and nextidea for helping me a lot, as well as everyone else who helped me a long the way. All of your help was very much appreciated.
But now that I have created my launcher I face another problem. I run all the appropriate services:
http://puu.sh/1ZAFE
but whenever I log in and select to join the channel I get one of these two errors:
http://puu.sh/1ZAAS
http://puu.sh/1ZABb
I'm not running OdinRestServer because my webserver acts as a replacement for that but I am missing something and I don't know what. Help would be appreciate. Almost finished it. :)
Re: Launcher UPDATES Section
Your "webserver" isn't doing a very good job.
Re: Launcher UPDATES Section
Re: Launcher UPDATES Section
Quote:
Originally Posted by
Dragonluck4
I've managed to finish creating my launcher. woohoo. It creates a token, uses the token to login and verifies that the pass and user is correct. I'd like to thank stu for his utility and nextidea for helping me a lot, as well as everyone else who helped me a long the way. All of your help was very much appreciated.
But now that I have created my launcher I face another problem. I run all the appropriate services:
*snip*
but whenever I log in and select to join the channel I get one of these two errors:
*snip*
*snip*
I'm not running OdinRestServer because my webserver acts as a replacement for that but I am missing something and I don't know what. Help would be appreciate. Almost finished it. :)
You could just use the script dusk (?) used, and fix the item mall part. But i recommend to use Stu's server. Got no problem with it and it run pretty stable.
And uhm since u use .Net you could manage the token stuff with a simple wcf service D:
This should be like ur php create token?
Heres the class for it:
Re: Launcher UPDATES Section
Quote:
Originally Posted by
iStu
Your "webserver" isn't doing a very good job.
I can see that. :(
Apparently the 'easy' fix you were talking about took me 6 hours to fix with help from NexIdea and without any breaks in between so I don't know what you were talking about Stu...
Quote:
Originally Posted by
Versaaa
Shitted on em.
I shat on your face Versaaa gtfo.
Quote:
Originally Posted by
Iocere
You could just use the script dusk (?) used, and fix the item mall part. But i recommend to use Stu's server. Got no problem with it and it run pretty stable.
And uhm since u use .Net you could manage the token stuff with a simple wcf service D:
This should be like ur php create token?
Heres the class for it:
Iocere I really appreciate you helping. Thank you very much. But what's Stu's server? I haven't seen anything on the forums, unless you mean the one he sells, in which case I am not planning on buying anything.
Also Which script dusk are you talking about?
It's disappointing that I still haven't been able to fix to a point where all the basic features work and this is after 40 days.
Re: Launcher UPDATES Section
He means my Rest. The Odin one.
Maybe you can't fix it, because you're tying to change everything.
PHP REST Won't work properly, Dusk or not, unless you know how to fix them. As far as I can tell, nobody knows how/nobody cares, because a 100% working/free/easy REST server is released.
Re: Launcher UPDATES Section
Oh... Then that means what I have created up until now is all nonsense and not needed? If that's the case then I am a long way from fixing it still.
So how do I make it work without having to replace the Rest server because they keep conflicting with each other...
Re: Launcher UPDATES Section
Isn't that be a little easier to ask then try to rebuild everything already made?
IIS: Google
Apache: Google
Re: Launcher UPDATES Section
Quote:
Originally Posted by
iStu
He means my Rest. The Odin one.
Maybe you can't fix it, because you're tying to change everything.
PHP REST Won't work properly, Dusk or not, unless you know how to fix them. As far as I can tell, nobody knows how/nobody cares, because a 100% working/free/easy REST server is released.
Uhh, PHP REST works fine, not my old one, but I could have fixed my old one with 4 lines :/, Store and all, my new API is much better though.
Re: Launcher UPDATES Section
Is that why Victus paid someone else to make a whole new rest system?
Re: Launcher UPDATES Section
Quote:
Originally Posted by
iStu
Is that why Victus paid someone else to make a whole new rest system?
Ouch!! Burn!!