mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-23 21:27:46 +00:00
Revert "Remove unused files/docs that belong on wiki"
This reverts commit 64155dc752
.
This commit is contained in:
parent
64155dc752
commit
aa4fc09a32
5 changed files with 203 additions and 0 deletions
63
research/encodedCharaInfo.txt
Normal file
63
research/encodedCharaInfo.txt
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
===Encoded Chara Info=== By Ioncannon
|
||||||
|
-Based on chara info array in Seventh Umbral
|
||||||
|
|
||||||
|
0x000: Int32;
|
||||||
|
0x004: Int32;
|
||||||
|
0x008:Name Size Int32;
|
||||||
|
0x00C:Name String; Variable size, but in file the name "Wrenix Wrong" is 0xD in size
|
||||||
|
0x019:Size? Offset? Int32; Must be 0x1c or is crashes....
|
||||||
|
0x01D:Unknown Int32;
|
||||||
|
0x021:Tribe Model Int32;
|
||||||
|
0x025:Size Int32;
|
||||||
|
0x029:Colors Info Int32;
|
||||||
|
0x02D:Face Info Int32;
|
||||||
|
0x031:Hair Style + Highlight Color Int32;
|
||||||
|
0x035:Voice Int32;
|
||||||
|
0x039:MainHand Int32;
|
||||||
|
0x03D:OffHand Int32;
|
||||||
|
0x041: Int32;
|
||||||
|
0x045: Int32;
|
||||||
|
0x049: Int32;
|
||||||
|
0x04D: Int32;
|
||||||
|
0x051: Int32;
|
||||||
|
0x055:Head Int32;
|
||||||
|
0x059:Body Int32;
|
||||||
|
0x06D:Legs Int32;
|
||||||
|
0x061:Hands Int32;
|
||||||
|
0x065:Feet Int32;
|
||||||
|
0x069:Waist Int32;
|
||||||
|
0x06D: Int32;
|
||||||
|
0x071:Right Ear Int32;
|
||||||
|
0x075:Left Ear Int32;
|
||||||
|
0x079: Int32;
|
||||||
|
0x07D: Int32;
|
||||||
|
0x081:Right Ring Int32;
|
||||||
|
0x085:Left Ring Int32;
|
||||||
|
|
||||||
|
====Zeros/Unknown====
|
||||||
|
|
||||||
|
0x091:ID????? Int32;
|
||||||
|
0x095:Unknown (Must be > 0x00) Int32;
|
||||||
|
0x099:Class Byte;
|
||||||
|
0x09A:Level Short;
|
||||||
|
0x09C:Job Byte;
|
||||||
|
0x09D:Unknown Short;
|
||||||
|
0x09F:Tribe Byte;
|
||||||
|
|
||||||
|
0x0A0: Int32;
|
||||||
|
0x0A4:Location Str Size Int32;
|
||||||
|
0x0A8:Location String String; Variable size, but in file it is prv0Inn01\0, 0x0A in size.
|
||||||
|
|
||||||
|
0x0B2:Territory Str Size Int32;
|
||||||
|
0x0B6:Territory Str? String; Variable size, but in file it is defaultTerritory\0, 0x11 in size.
|
||||||
|
|
||||||
|
0x0C7:Guardian Byte;
|
||||||
|
0x0C8:Birth Month Byte;
|
||||||
|
0x0C9:Birth Day Byte;
|
||||||
|
|
||||||
|
0x0CA: Short;
|
||||||
|
0x0CC: Int32;
|
||||||
|
0x0D0: Int32;
|
||||||
|
|
||||||
|
0x0E4: Byte;
|
||||||
|
0x0E8:Allegiance Byte;
|
38
research/encodedCharaMakeInfo.txt
Normal file
38
research/encodedCharaMakeInfo.txt
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
===Encoded CharaMake Info=== By Ioncannon
|
||||||
|
-Based on chara info array in Seventh Umbral
|
||||||
|
|
||||||
|
0x00: Unknown... Version? Int32;
|
||||||
|
0x04: Unknown - Weird #1 Int32;
|
||||||
|
0x08: Tribe
|
||||||
|
0x09: Size
|
||||||
|
0x0A: Hair Style Short
|
||||||
|
0x0C: Highlight Hair Color Short;
|
||||||
|
0x0E: Face
|
||||||
|
0x0F: Characteristics
|
||||||
|
0x10: Characteristics Color Short;
|
||||||
|
0x12: Unknown - Weird #2 Int32;
|
||||||
|
0x15: Eyebrows
|
||||||
|
0x16: Eye Size
|
||||||
|
0x17: Eye Shape
|
||||||
|
0x18: Nose
|
||||||
|
0x19: Feature
|
||||||
|
0x1A: Mouth
|
||||||
|
0x1B: Ears
|
||||||
|
0x1C: Hair Color Short;
|
||||||
|
0x1E: Unknown - Weird #3 Int32;
|
||||||
|
0x22: Skin Color Short
|
||||||
|
0x24: Eye Color Short;
|
||||||
|
0x26: Voice
|
||||||
|
0x27: Guardian
|
||||||
|
0x28: Month
|
||||||
|
0x29: Day
|
||||||
|
0x2A: Start Class Short;
|
||||||
|
0x2C: Unknown Int32;
|
||||||
|
0x30: Unknown Int32;
|
||||||
|
0x34: Unknown Int32;
|
||||||
|
|
||||||
|
0x38: 0x10 bytes of 0s
|
||||||
|
|
||||||
|
0x48: Start Nation
|
||||||
|
|
||||||
|
0x49: 0xC bytes of 0s
|
6
research/serverInfo.txt
Normal file
6
research/serverInfo.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Server Sheet
|
||||||
|
|
||||||
|
0x00:Server ID Short;
|
||||||
|
0x02:Server Position Short;
|
||||||
|
0x04:Server Pop Short;
|
||||||
|
0x10:Server Name
|
89
www/login.php
Normal file
89
www/login.php
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
error_reporting(E_ALL | E_STRICT);
|
||||||
|
|
||||||
|
include("config.php");
|
||||||
|
include("database.php");
|
||||||
|
|
||||||
|
function LoginPage_Login($dataConnection)
|
||||||
|
{
|
||||||
|
$username = trim($_POST["username"]);
|
||||||
|
$password = trim($_POST["password"]);
|
||||||
|
|
||||||
|
if(empty($username))
|
||||||
|
{
|
||||||
|
throw new Exception("You must enter an username.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(empty($password))
|
||||||
|
{
|
||||||
|
throw new Exception("You must enter a password.");
|
||||||
|
}
|
||||||
|
|
||||||
|
$userId = VerifyUser($dataConnection, $username, $password);
|
||||||
|
return RefreshOrCreateSession($dataConnection, $userId);
|
||||||
|
}
|
||||||
|
|
||||||
|
$loginError = "";
|
||||||
|
$sessionId = "";
|
||||||
|
|
||||||
|
if(isset($_POST["login"]))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$sessionId = LoginPage_Login($g_databaseConnection);
|
||||||
|
}
|
||||||
|
catch(Exception $e)
|
||||||
|
{
|
||||||
|
$loginError = $e->getMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>FFXIV 1.0 Login</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/reset.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/global.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
|
if(!empty($sessionId))
|
||||||
|
{
|
||||||
|
echo "<script>window.location=\"ffxiv://login_success?sessionId=" . $sessionId . "\";</script>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div style="width: 80%; height: 300px; margin-left: auto; margin-right: auto; margin-top: 20%">
|
||||||
|
<div class="contentContainer" >
|
||||||
|
<img style="width: 100%;" src="./img/logo.png" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="contentContainer">
|
||||||
|
<div class="info">
|
||||||
|
<br />
|
||||||
|
<form method="post" autocomplete="off">
|
||||||
|
<table class="infoForm">
|
||||||
|
<tr>
|
||||||
|
<td>Username:</td>
|
||||||
|
<td><input type="text" name="username" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Password:</td>
|
||||||
|
<td><input type="password" name="password" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<input type="submit" name="login" value="Login" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<p class="errorMessage"><?php echo($loginError); ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
7
www/testmysql.php
Normal file
7
www/testmysql.php
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?php
|
||||||
|
$link = mysql_connect('hostname','dbuser','dbpassword');
|
||||||
|
if (!$link) {
|
||||||
|
die('Could not connect to MySQL: ' . mysql_error());
|
||||||
|
}
|
||||||
|
echo 'Connection OK'; mysql_close($link);
|
||||||
|
?>
|
Loading…
Add table
Reference in a new issue