HotukManager.exe

Results 1 to 5 of 5
  1. #1
    Omega bobsobol is offline
    MemberRank
    May 2007 Join Date
    UKLocation
    5,702Posts

    HotukManager.exe

    Non-bumpy response to an old old post by DarkKnightH20.

    Not to bump an old thread, but I thought I'd answer this question since I was hexing hotukmgr a bit ago--

    It runs the server labeled server4096.exe (and the like). As far as I'm aware, it's a server restarter, one that seems buggy (or only compatible with jPT). It's suppose to restart the server if a crash or anything like that occurs and is a somewhat less laggy interface to view the "amount of users" screen. If it has some other secret purposes, then I am unaware of it.
    Yes, it does have various other functions. It is supposed to call the log file cleaners and automated backup maintainence programs on a schedule.

    These files should be called server1024.exe (log cleaner) and server2048.exe & server5120.exe.

    I'm not entirely sure what 2048 & 5120 should do, as I've not seen them released, but they are set to be called once a month or so... of course you could make any old backup and log archiving routines with a suitable exe name and it would run them. It would be nice to know what the originals did though. I suspect the GiftServer.exe was going to be in there somewhere.

    The reason HotukManager.exe struggles with servers other than the original jPT server, is that it is keeping an eye on the window who's title is "Hotuk GameServer [ PT_JAPANESE ]", so if your server window isn't called that, it will just keep trying to launch the server4096.exe file.

    Now you know what to hex to fix it for your server.

    It posts that connection count via http to an ASP page to update your webserver too.

    Oh yea... "what is the point of GiftServer.exe" or words to that effect was in another thread some time ago, and I looked into that too. It's supposed to work with the Migration tool, so that postal items for a character who migrates get shifted to their new server along with them, rather than sitting there indefinitely waiting for a character that no longer exists in that realm to collect it.
    Last edited by bobsobol; 07-10-09 at 03:23 PM.


  2. #2
    Account Upgraded | Title Enabled! rxaicy is offline
    MemberRank
    Jan 2009 Join Date
    ChinaLocation
    216Posts

    Re: HotukManager.exe

    Thank you all the same。。。I have known it for a long time!

  3. #3
    Omega bobsobol is offline
    MemberRank
    May 2007 Join Date
    UKLocation
    5,702Posts

    Re: HotukManager.exe

    Yes yes... but knowing and documenting are two different things, I often say to people "Use the search facility."

    If we know it but it isn't written here, that doesn't help.

  4. #4
    Enthusiast mischief2013 is offline
    MemberRank
    Sep 2009 Join Date
    27Posts

    Re: HotukManager.exe

    Quote Originally Posted by bobsobol View Post
    Yes yes... but knowing and documenting are two different things, I often say to people "Use the search facility."

    If we know it but it isn't written here, that doesn't help.
    bobsobol being so helpful once again like always. your a huge help to the PT community.

  5. #5
    Omega bobsobol is offline
    MemberRank
    May 2007 Join Date
    UKLocation
    5,702Posts

    Re: HotukManager.exe

    Following up on this... I've tried to make an ASP page that will record the user count HotukManager sends to the website.
    This was the code I came up with:-
    Code:
    <html>
    <body>
    <%
    Dim Svr
    Dim Count
    
    Set FS=Server.CreateObject("Scripting.FileSystemObject")
    
    Svr=Request.QueryString("servername")
    Count=Request.QueryString("Conncount")
    If Svr<>"" and Count<>"" Then
    	Response.Write("Server " & Svr & " has " & Count & " users on-line<br/>")
    	Set RS=FS.OpenTextFile(Server.MapPath(Svr & ".txt"), 2, False)
    	RS.Write Count
    	RS.Close
    ElseIf Svr<>"" Then
    	If (fs.FileExists(Server.MapPath(Svr & ".txt")))=true Then
    		Set RS=FS.OpenTextFile(Server.MapPath(Svr & ".txt"), 1, False)
    		count=RS.ReadLine
    		RS.Close
    		Response.Write("Server " & Svr & " has " & Count & " users on-line<br/>")
    	Else
    		Response.Write("Invalid server specified.")
    	End If
    Else
    	Response.Write("<form action=connect.asp method=get>")
    	Response.Write("Server Name: <input type=text name=servername size=32 />")
    	Response.Write("<input type=submit value=Submit />")
    	Response.Write("</form>")
    End If
    Set RS=Nothing
    Set FS=Nothing
    %>
    </body>
    </html>
    Executed manually it seems to work fine... but you do have to create a text file named after your server first.

    When HotukManager calls the page however, my server responds error 400.

    Anybody got any idea why this should be?

    Exact list of changes to HotukManager:-
    o I replaced the window title with the title used in my server.
    o I replaced the URI string "http://pristontale.com/db_connect/connect.asp?servername=%s&Conncount=%d" with "http://localhost/db_connect/connect.asp?servername=%s&Conncount=%d"

    The result is that my web server sees the connection, but strangely, it logs it as /connect.asp not /db_connect/connect.asp. Regardless of where I place connect.asp (web root or db_connect) it still responds "error 400" to HotukManager, and works fine from any web browser providing suitable GET parameters.

    ---EDIT---
    I know why it's going to webroot for connect.asp, because that is set as *DB_CONNECT_URL in the server hotuk.ini.
    Last edited by bobsobol; 09-10-09 at 05:48 PM.



Advertisement