Does anyone know how to get a list of all online characters/account programmatically?

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 44
  1. #16
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by master_unknown View Post
    Good luck if you're using the anti-cheat that was attached with the released client (whom other server uses).
    That can be easily bypassed.
    You have an online server now that we can take a look / play?
    Anti-cheat is not something that was released here in this section. The server is in testing phase currently. Will let you know when it's ready

  2. #17
    Valued Member rogers1973 is offline
    MemberRank
    Apr 2014 Join Date
    105Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    He is the developer of Tantra Soul.

  3. #18
    www.m.me/ExcelsiorSoftLLC master_unknown is offline
    MemberRank
    Oct 2004 Join Date
    HellLocation
    1,242Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    I could care less who develops who or who develops what to be honest.

  4. #19
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by master_unknown View Post
    I could care less who develops who or who develops what to be honest.
    The main discussion got sidetracked now...

  5. #20
    Account Upgraded | Title Enabled! sonrio is offline
    MemberRank
    Sep 2009 Join Date
    Mandara 0Location
    231Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    i think you already found a solution for this... i saw one server that is showing the players lvl and castle lvl

  6. #21
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by sonrio View Post
    i think you already found a solution for this... i saw one server that is showing the players lvl and castle lvl
    I did not get a working solution. Can you give me the link of that server?

  7. #22
    Account Upgraded | Title Enabled! sonrio is offline
    MemberRank
    Sep 2009 Join Date
    Mandara 0Location
    231Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by cyberinferno View Post
    I did not get a working solution. Can you give me the link of that server?
    pm sent

  8. #23
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by sonrio View Post
    pm sent
    The link you sent was just player ranking page not online player name page!

  9. #24
    www.m.me/ExcelsiorSoftLLC master_unknown is offline
    MemberRank
    Oct 2004 Join Date
    HellLocation
    1,242Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica


  10. #25
    Member dTantra is offline
    MemberRank
    Jul 2013 Join Date
    94Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    This is kind of a dead subject it seams, but here is a couple of ways to go about doing this.

    The first way is to create a client hook in htlauncher that will monitor when the user requests to select a character and send the name to a simple php script that records and marks the player online. Do the same when they terminate the client, logout, or switch characters. The problem with this method is if the client terminates by crashing or force closure it will not report the close to the php. Additionally you can use a heartbeat packet that sends an update challenge every few minutes to the web server to verify they are online.

    The second way is to hook the login function server side and report to a php when a user logins. To get the logoff it would be best to get when the character object is destroyed.

    If this is something you are offering to pay for, perhaps we could talk. I do not currently have stand alone code for the server side method created, hence paying for my time. The client side method is not something I would really recommend to attempt if you want it to be accurate.

  11. #26
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by dTantra View Post
    This is kind of a dead subject it seams, but here is a couple of ways to go about doing this.

    The first way is to create a client hook in htlauncher that will monitor when the user requests to select a character and send the name to a simple php script that records and marks the player online. Do the same when they terminate the client, logout, or switch characters. The problem with this method is if the client terminates by crashing or force closure it will not report the close to the php. Additionally you can use a heartbeat packet that sends an update challenge every few minutes to the web server to verify they are online.

    The second way is to hook the login function server side and report to a php when a user logins. To get the logoff it would be best to get when the character object is destroyed.

    If this is something you are offering to pay for, perhaps we could talk. I do not currently have stand alone code for the server side method created, hence paying for my time. The client side method is not something I would really recommend to attempt if you want it to be accurate.
    HTMessage actually has logout URL config just like game login URL but it is never called. If it was made to call then maybe work would be simple!

  12. #27
    Member dTantra is offline
    MemberRank
    Jul 2013 Join Date
    94Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by cyberinferno View Post
    HTMessage actually has logout URL config just like game login URL but it is never called. If it was made to call then maybe work would be simple!
    Unless you have some way to pass an argument to the url this would not work without changes to the client, assuming the client does not already do that. Not to mention anyone could call the URL with the argument for someone elses account and the website would show that player online or offline.

  13. #28
    Programmer cyberinferno is offline
    MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    707Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by dTantra View Post
    Unless you have some way to pass an argument to the url this would not work without changes to the client, assuming the client does not already do that. Not to mention anyone could call the URL with the argument for someone elses account and the website would show that player online or offline.
    Logout link would obviosuly require username and password just like game login link!

  14. #29
    Member dTantra is offline
    MemberRank
    Jul 2013 Join Date
    94Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by cyberinferno View Post
    Logout link would obviosuly require username and password just like game login link!
    Haha in a perfect world that would be the case, but I have no idea. If u want to paste to me the details for that URL entry you were talking about and I can see if I can find some info for you about it.

  15. #30
    Member Reaguee is offline
    MemberRank
    Jan 2011 Join Date
    84Posts

    Re: Does anyone know how to get a list of all online characters/account programmatica

    Quote Originally Posted by cyberinferno View Post
    I want to show the list of all players who are currently playing in my server on my website. Is there some way I get it from server and show?
    @cyberinferno: you can use the game_login.php for registering who is logged, but I do not recommend to use it, because you will not get accurate logins. As you may know that php what it does is check against the database if the password that was sent on the GET request to the web, matches the password stored in the database, and if so, it creates the .txt file that is used by DBSRV to create the socket for the client. But, as you may know too, that does not guarantees that the account will be login into the server. Why I say that? well consider this scenario: your server needs to run /openserver to allow users to get in, while you don't run /openserver players are stuck on the Server selection window, which is AFTER the login window, so the login passed (game_login.php) but you still not login into the server. Another common scenario will be when your server is under maintenance, you are not running any zone neither dbsrv, but your website is on (where you have the game_login.php) clients will pass the login verification and again will be stuck on server selection.

    So if you want to be accurate with the info of the logged characters on the server, then, as dTantra said, hook server functions. Where is wrong dTantra, or at least he didn't said well, is that there is no login function on the server, what server have, is a function with a switch that process all client requirements, one of them is the Login request, another is the character selection, and so on.
    And for the logout, just hook CUser::CloseUser(void) function. Im specific with the class because there are 2 CloseUser functions, one on CUser and the other in Server.cpp.

    I saw in another of your post that you have the old c++ code of the zonesrv.exe, so go to ProcessClientMessage and find the value of the switch that you need for what you want to do, for example one of the switch is CSP_REQ_CHAR_INIT and another one is CSP_REQ_CHAR_SELECT or CSP_REQ_LOGIN, check what each does and which one gives what you want.

    If you need more help let me know. I will not charge you any fees jajajajaj

    Regards



Page 2 of 3 FirstFirst 123 LastLast

Advertisement