- Joined
- Nov 25, 2008
- Messages
- 89
- Reaction score
- 2
So P5yl0 how are the new tools?
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!I have error when i try to login (tied login by username and email):
REMOVED
Creating account is working in laucher, but in web error in 98 line
I'm using xampp 1.8.2 (Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16 and 5.5.32 - MySQL Community Server (GPL))
I have error when i try to login (tied login by username and email):
Creating account is working in laucher, but in web error in 98 line
I'm using xampp 1.8.2 (Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16 and 5.5.32 - MySQL Community Server (GPL))
<?phpinclude "config.php"; // the database configuration file. Update this to connect to your databse
//Gets Input from launcher
$username = $_POST['username']; //username
$password = $_POST['password']; //password
//$email = $_POST['email']; //email
//check if the form was submitted
if((isset($_POST['username']) && $_POST['password'] != ""))
{
//check whether the username and e-mail exist or not
$sql="select Name from accounts where Name='".$_POST['username']."'";
$results=mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($results)>0)
{
$row=mysql_fetch_row($results);
//check the username
if($_POST['username']==$row['0'])
{
echo 'username='.$_POST['username'].'&password='.$_POST['password'];
}
//checks the e-mail
/* elseif($_POST['email']==$row['1'])
{
echo 'username='.$_POST['username'].'&password='.$_POST['password'];
}*/
else
{
//somethings wrong return empty string
echo ("username=&password=");
}
}
}
?>
@oldmagic
Still don't working login when i use username + pass:/
@P5yl0
Easy, i just want run TERA with localhost server, but i have the same error like ealier in laucher when i try login (registering is working(i can see created account in database)).
I mean error in register_web.php.
if you change ip you have to hex edit.. the tera-game.exe search for the line serverlist
edit.. but dont change the max lenght.. 49chars.. -3 .de/.fr./.us
so you have 49-3= 46 chars for writing your new adress to the serverlist on the webserver...
edit the line and the rename the www/ folders like in your edit!!!
you can overwrite the .de/.fr at the end but if you do .. the game will only start in one language and the langauge selector doenst work anymore...
if you do a mistake . and add 1 more char oder have 1 missing..
the game will crash on startup not showing the logo.. this means.. that it dindnt find the serverlist and stops running..!!!
if you edit .. be very serious any mistake and everyhing is corrupted..!!
@famas.. no i have no updates at 1725 revision @ now...
im workin at 2113 managed to save the chars to database..
on game starting it works so far ..but i have to shift offsets for reading..
in sql... female human warrior on game start in loby it shows human male lancer.. with a level of 2586 ^^
i hope i can get behind the new packet structure for reading ...
if you want to work to on it.. ill do a private github.. for devs..
maybe we get together faster to our goals
and again for the launcher people...^^
i work on a version2 but at moment i use the same what is on github 1:1 !!! like everyone else..!!!
copy the www files from launcher source to your web...
unzip the TeraLauncher.exe, tera-game.exe and cData folder to your client and everything works perfectly
Login with username!!! email not fixed at moment ..
and use max. username and pass 15 chars length!!! will be more on version 2!!!
i use the same launcher on 1725 and 2113 ...
so if you have some errors.. its something you do wrong!!!
if you change ip you have to hex edit.. the tera-game.exe search for the line serverlist
edit.. but dont change the max lenght.. 49chars.. -3 .de/.fr./.us
so you have 49-3= 46 chars for writing your new adress to the serverlist on the webserver...
edit the line and the rename the www/ folders like in your edit!!!
you can overwrite the .de/.fr at the end but if you do .. the game will only start in one language and the langauge selector doenst work anymore...
if you do a mistake . and add 1 more char oder have 1 missing..
the game will crash on startup not showing the logo.. this means.. that it dindnt find the serverlist and stops running..!!!
if you edit .. be very serious any mistake and everyhing is corrupted..!!