Using your method LaunchOfficial you start your client. But you forgot to set startup-arguments for Process.Start .
It should look something like
Code:Process.Start("Client.exe", param)
Printable View
cieto12345 thanks for your help but that doesn't work :(
NextIdea I guess I will look into it next week unless someone gives me more information or some extra tips, hints to help.
But I think it should be done once I get the launcher to use the token.
RESPONSE = WEBCLIENT.DOWNLOADSTRING("LOGIN.PHP?USER=21342&PASS=@#$EDAAFSD")
IF RESPONSE FUCKING EQUALS "FAIL" THEN
MESSAGEBOX.SHOW('WRONG INFO STUPID FUCK')
RETURN
END FUCKING IF
PROCESS.START("CLIENT", "-osk_blahblah 2498wqdfs -osk_token " + RESPONSE + " _osk_blahblah")
HOLY FUCK.
Haha Stu I was wondering when you would post. Thanks for the help. It should work now unless I mess up.
EDIT: Ah I think I messed up. I don't think it was that bad though.
This is what I did with the code iStu gave me.
The login response is the randomly generated token.Code:Dim instance As WebClient
' ---------------- BEGIN LOGIN UTILITY ----------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
LoginResponse = ESLoginUtil.Login(TextBox1.Text, TextBox2.Text, 1)
If ES_ErrorHandle.Fail Then MsgBox(ES_ErrorHandle.WhyFail)
If LoginResponse <> "OK" Then
' MsgBox(LoginResponse)
Else
LoginResponse = instance.DownloadString("LOGIN.PHP?USER=mssqluser&PASS=mssqlpass")
If LoginResponse = "OK" Then
MsgBox("Incorrect Username or Password")
Return
End If
Process.Start("Client.exe", "-osk_server 127.0.0.1 -osk_token " + LoginResponse + " _osk_store http://store.outspark.com/fiesta")
End If
End Sub
And just when I thought things couldn't get worse than this:
http://esxfer.com/static/rj2.png
No but I thought I did it correctly? Oh and I'd consider that to be more worse than this since I know nothing about php, mssql, vb and fiesta private servers in general. Yet I was able to come this far within a few weeks. Any how back to the main topic I would really appreciate it if you tell me where I went wrong. Thanks. :)
EDIT: Oh damn i'm stupid lol. I just had a proper look. Yeah you're right that is one epic fail.
It's not about knowing php, mssql, vb. It's about thinking.
Code:' ---------------- BEGIN LOGIN UTILITY ----------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
LoginResponse = ESLoginUtil.Login(TextBox1.Text, TextBox2.Text, 1)
If ES_ErrorHandle.Fail Then MsgBox(ES_ErrorHandle.WhyFail)
If LoginResponse <> "OK" Then
' MsgBox(LoginResponse)
Else
Process.Start("Client.exe", "-osk_server 127.0.0.1 -osk_token " + LoginResponse + " _osk_store http://store.outspark.com/fiesta")
End If
Yh I just realised I made a very silly mistake. :/ I edited my post above before you had posted lol. I think it's because it's a messy code i've done so I didn't see it.
Is it just me? Now everything should be right. I've double checked it...
This seems to be right as well:Code:
Imports ExtrinsicStudioLauncherUtility
Public Class Form1
Dim ES_ErrorHandle As New ESLUErrorHandler
Dim WithEvents ESWebUtil As New ES_WebUtility
Dim ESLoginUtil As New ES_LoginUtility("http://127.0.0.1:9090/Login.php") ' url for the login.php which is on your web server
Dim WithEvents ESRARUtil As New ES_RARUtility
Dim LoginResponse As String
Dim iTotalFiles As Integer = 0
' ---------------- BEGIN LOGIN UTILITY ----------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
LoginResponse = ESLoginUtil.Login(TextBox1.Text, TextBox2.Text, 1)
If ES_ErrorHandle.Fail Then MsgBox(ES_ErrorHandle.WhyFail)
If LoginResponse <> "OK" Then
' MsgBox(LoginResponse)
Else
Process.Start("Client.exe", "-osk_server 127.0.0.1 -osk_token " + LoginResponse + " _osk_store http://store.outspark.com/fiesta")
Application.Exit()
End If
End Sub
' ---------------- END LOGIN UTILITY ----------------
End Class
The Login.php should connect to the mssql database with the user and pass. You log in with the launcher. The login.php verifies that all the info is correct and generates a random 15 character token which is then sent back to the launcher and used to login. But it doesn't do that...Code:
<?php
$conf['db_host'] = "FARBOD-PC\SQLEXPRESS";
$conf['db_user'] = "user";
$conf['db_pass'] = "pass123";
$conf['db_name'] = "OdinAccounts";
$user = sql_clean($_GET['Username']);
$passhash = sql_clean($_GET['Password']);
$con = mssql_connect($conf['db_host'],$conf['db_user'],$conf['db_pass']) or die('Database connect Fail.');
$db = mssql_select_db($conf['db_name'], $con) or die('Database Init Fail.');
$exec = mssql_query("SELECT nEMID, sUserPass FROM tAccounts where sUsername = '$user'");
if($exec)
{
if(mssql_num_rows($exec) != 1)
{
die('Account Not Found.');
}
$AccountData = mssql_fetch_assoc($exec);
$PlaintxtPass = $AccountData['sUserPass'];
$PlaintxtnEMID = $AccountData['nEMID'];
if (MD5($PlaintxtPass) == $passhash)
{
$Token = RandomToken(15);
$setToken = null;
if (mssql_num_rows(mssql_query("SELECT * FROM tTokens WHERE nEMID = '".$PlaintxtnEMID."'")) >= 1)
{
mssql_query("DELETE FROM tTokens WHERE nEMID = '".$PlaintxtnEMID."'");
$setToken = mssql_query("INSERT INTO tTokens (nEMID, sToken) VALUES('".$PlaintxtnEMID."', '".$Token."')");
}
else
$setToken = mssql_query("INSERT INTO tTokens (nEMID, sToken) VALUES('".$PlaintxtnEMID."', '".$Token."')");
if ($setToken)
die('ERROR: '.$Token);
else
die('SetToken Error');
}
else
{
die('Wrong Password.');
}
}
else
{
die('Query Failed');
}
mssql_close();
function sql_clean($str)
{
$search = array("\\", "\0", "\n", "\r", "\x1a", "'", '"');
$replace = array("", "", "", "", "", "", "");
return str_replace($search, $replace, $str);
}
function RandomToken( $length )
{
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$str = "";
$size = strlen( $chars );
for( $i = 0; $i < $length; $i++ ) {
$str .= $chars[ rand( 0, $size - 1 ) ];
}
return $str;
}
?>
Stu just give up.
I guess this is your attitude towards people who want to learn Bakey? This is why no one actually learns then you guys all complain about no one contributing and everyone not knowing anything. Half the people who actually want to create a server have no knowledge to begin with.
I'm trying my best to find out what I did wrong, but I can't seem to see that. Still I am I am going to try my best to get this working; I am not planning on giving up anytime soon. :) Though pointing me in the correct direction does help having that type of attitude doesn't. :(
EDIT: I've looked over this many, many times now. I don't think it's a problem like before where I had just mixed things up when iStu gave me the code.
EDIT2: Unless, I am a dumb ass and blind so I can't see it...
Why no one learns is 'cause people just give you the answers. Use your common sense and debug your script until you find the part where it breaks off.
http://1.bp.blogspot.com/_1oNoHsmtVm...-head-here.jpg
thats all i got to say
I'll look into it next week but I couldn't find anything last time I looked. Any how I'll see what happens next week. Thanks. I'll get there soon and when I do, it will feel good to have accomplished this. :D Although some of you could make this in a few hours it's taken me weeks. Lol.