[Tools] Getting v88 localhost to work.

Newbie Spellweaver
Joined
Apr 3, 2010
Messages
75
Reaction score
33
First of all:
I take no credits for this but also I didn't take these from anywhere other than my head.
This is not going to tell you how to get rid of simon's account thingy and if you can't get rid of that you should now grab a java, c++, c# c, or whatever high level language book and read it thoroughly, then you'll get away from being a frigging noob. Flames are welcomed because I don't really care.

Firstly you download the v88 localhost : - released by Raptor Jesus

And download Microsoft Visual C# :

Secondly you must get rid of the IP check, otherwise you'll get "OutOfMemory" exception.
Here I am not converting the Hex for you so just replace the checkIP() with:
PHP:
        public static bool checkIP(string input)
        {
            return true;
        }

Then you can change the IP to your IP
PHP:
        public static string toIP = "your.ip.here.and.domains.probably.don't.work";
Compile and get your own MapleHost.exe from the Project folder/bin/release/MapleHost.exe

Lastly the checkAccount part, it will always say your server's down, so you must put this php page to your wamp server: Taken from Kerelmans
PHP:
<?php
## Database Information
$database = array(
		"host" => "localhost",
		"user" => "root",
		"pass" => "yourpassword",
		"dbse" => "yourdatabasename"
		);
		
## Connect To Database
mysql_connect($database['host'], $database['user'], $database['pass']) or die("0-Database server is offline.");
mysql_select_db($database['dbse']) or die("0-Database isn't available.");

## All the other stuff...
if (!empty($_GET['username']) && !empty($_GET['password'])) {
	$username = htmlspecialchars(mysql_real_escape_string($_GET['username']));
	$password = mysql_real_escape_string($_GET['password']);

	$AQuery = sprintf("
	SELECT COUNT('id') 
	FROM accounts 
	WHERE name = '%s' AND password = '%s'",
	$username, $password);
	$aresult = mysql_query($AQuery);
	$atotal = mysql_result($aresult, 0);
	$reply = ($atotal > 0) ? true : false;

	// return $reply;
	if ($reply) {
		echo '1';
	} else {
		echo '0-Wrong username or password.';
	}
}
?>

Name that file "accountCheck.php" and load it up to a web server(for instance your wamppy).

Now you should be able to build flawlessly and get connected, if still not, set up loopback adapters to your IP(not localhost, the IP starts with "169.")

Edit#1: Don't forget to execute the structure.sql.

Edit#2: If you disconnect after selecting channels, do the following:
Go to your CharlistRequestHandler.java and replace the whole thing with:
PHP:
package net.login.handler;

import client.MapleClient;
import net.AbstractMaplePacketHandler;
import tools.data.input.SeekableLittleEndianAccessor;
import tools.Pair;
import constants.ServerConstants;

public final class CharlistRequestHandler extends AbstractMaplePacketHandler {
        @Override
    public final boolean validateState(MapleClient c)
    {
        return true;
    }
    public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
        System.out.println("CharlistRequestHandler-");
        slea.readByte();
       // Pair<String, String> UPP = getUserPassPair(slea.readMapleAsciiString());
       // c.setAccountName(UPP.getLeft());
     //   performLogin(UPP);
        //slea.skip(21);
        int server = slea.readByte();
        c.setWorld(server);
        if (!c.isLoggedIn() && ServerConstants.DEBUG)
        {
            c.setAccountName("Simon");
            c.setAccID(418);
        }else{
            c.disconnect();//This isn't a noob check, this is to prevent hackers.
        }
        System.out.println("Server choice: " + server);
        int channel = slea.readByte() + 1;
        System.out.println("Channel choice: " + channel);
        c.setChannel(channel);
        c.sendCharList(server);
    }

  /*  private Pair<String, String> getUserPassPair(String authStr)
    {
        String dataSection = authStr.split(":")[4];
        String[] UserAndPass = dataSection.split("\\\\");
        return new Pair<String, String>(UserAndPass[0], UserAndPass[1]);
    }

    private void performLogin(Pair UPP)
    {
        //todo: real logic here but for now
        System.out.println("User: " + UPP.getLeft());
        System.out.println("Pass: " + UPP.getRight());
    }*/
}

Edit#4: Then edit your client's source - Program.cs: Change the
PHP:
public static string accountCheck = "http://localms.net/accountcheck.php"; //http://localms.net/accountcheck.php?username=Gay&password=Person
to
PHP:
public static string accountCheck = "http://[Your domain/IP here]/accountcheck.php";

Note: Again, this won't get you away from loging in with simon's accout.
About simon's account: Go to your Database, accounts and make an account with id 418, name simon and others don't matter.

Edit#3: You shouldn't run the server and the client on the same machine otherwise the client's redirect server won't work, unless you know an alternative to fix that e.g loopback adaptors.


Edit#4: No further help will be provided on the server side.

Edit#5: To flamers: can you guys please read properly ? Simon said it was not a noob check, the simon account isn't a check, it's just the only way to login from the host computer because it does not send auth packet. If you don't touch it and login from other computers it isn't a problem so wtf are you thinking ? Are you the noob who can't get in game here ?

Edit#6: For those who D/C on clicking channels, it's because your login from host machine and actually you aren't logged in. I changed the ServerlistRequestHandler a bit and you should log yourself in in the ClientStartHandler.java (You should know how to do that, and you should verify yourself otherwise other people would be logging in from the specified account.).

Edit#7: If you haven't installed .NET Framework 3.5 or later, or if you are having tones of error/problems working along,
download .NET Framework:
 
Last edited by a moderator:
Re: [Little Tut] Getting v88 localhost to work.

I did everything you said to do but when I try to login, it constantly tells me 'Wrong username or password'. How do I fix it? Everything else works fine.

Edit: Fixed
 
Last edited:
Re: [Little Tut] Getting v88 localhost to work.

I'm getting compiling errors like System.XML and System.something
and much more is missing. I never used C# before, I'm new to this
software.
Why do I get those errors? o.o
 
Re: [Little Tut] Getting v88 localhost to work.

I'm getting compiling errors like System.XML and System.something
and much more is missing. I never used C# before, I'm new to this
software.
Why do I get those errors? o.o

Do post the whole error, what you gave can't help much. Make sure the file you downloaded was complete and you opened the .sln file.
 
Re: [Little Tut] Getting v88 localhost to work.

Looks pretty good and why are so many threads getting a 'warning' notice?

Lmao. Mods need to calm down right? A little tag problem. Before we were called the worst, who cares? Now we're called the mods too strict section. He made a little tag problem, tell him to change it. He doesnt listen give him a warning. Man some of the new mods used to be cool as users, now your just power hungry.

Anyways thanks for this joy13975, will help alot of users!
 
Re: [Little Tut] Getting v88 localhost to work.

cannot creat character help me please~
 
Re: [Little Tut] Getting v88 localhost to work.

Anyways thanks for this joy13975, will help alot of users!
Does this mean something else ? ...
cannot creat character help me please~
That is the maplestorage error right ? Read the error and fix it, it's simple and if you can't do that, stop.
 
Re: [Little Tut] Getting v88 localhost to work.

Lmao. Mods need to calm down right? A little tag problem. Before we were called the worst, who cares? Now we're called the mods too strict section. He made a little tag problem, tell him to change it. He doesnt listen give him a warning. Man some of the new mods used to be cool as users, now your just power hungry.

Anyways thanks for this joy13975, will help alot of users!

Well, at least he got away with a warning, right? (:
They are also just humans that do their job, yes I know it's only a tag name but if everyone is going to ignore it, mmyea.

But maybe "the mods" could inform him before giving him a warning. Or maybe those warnings shouldn't be seen by any others.
 
Re: [Little Tut] Getting v88 localhost to work.

Well, at least he got away with a warning, right? (:
They are also just humans that do their job, yes I know it's only a tag name but if everyone is going to ignore it, mmyea.
Thanks, like, a lot. Ever since I became a mod people are acting like I'm a completely different person. Talk to me on MSN sometime. :P:

But maybe "the mods" could inform him before giving him a warning. Or maybe those warnings shouldn't be seen by any others.
&& it was at the discretion of OP that the warning became public. Usually we don't publicize that kind of stuff.
 
Re: [Little Tut] Getting v88 localhost to work.

Sha1 hash required for password

N...ot really.

Go to AccountCheck.cs, and replace the function CheckAccount with this:

Code:
       public static bool CheckAccount(string URL, string username, string password, out string message)
       {
           message = "";
           string request = String.Format("{0}?username={1}&password={2}",URL, username, password);
           try
           {
               string lol = GetString(request);
               bool success = (lol.Substring(0, 1) == "1") ? true : false;
               if(!success) message = lol.Substring(2, lol.Length - 2);
               return success;
           }
           catch (WebException ex)
           {
               throw ex;
           }
       }

for a unhashed password.
 
Re: [Little Tut] Getting v88 localhost to work.

To get the domain to work, enter your domain in the IP and set ResolveDNS to True...
 
Re: [Little Tut] Getting v88 localhost to work.

I'm getting compiling errors like System.XML and System.something
and much more is missing. I never used C# before, I'm new to this
software.
Why do I get those errors? o.o

download 2008 c# not 2010
 
Last edited by a moderator:
Re: [Little Tut] Getting v88 localhost to work.

Finally got the game running now time to get in-game, brb fixing ****.
its porbably something i did wrong.
 
Last edited:
Re: [Little Tut] Getting v88 localhost to work.

WOW, It worked, I made my own localhost with my servername and
my own vote pictrue.
My localhost files was corrupt, Few of them were missing.
Your guide to solve the DC problem did'nt really helped me...
 
Back