Adding Check to wz files before starting Maple.

Results 1 to 9 of 9
  1. #1
    Valued Member PerfectEnding is offline
    MemberRank
    Jul 2013 Join Date
    104Posts

    Adding Check to wz files before starting Maple.

    I have a few wz modifications, mainly just sound and skill, where I want to add in a check for the client to read or the server to read before loading it. Say I add a specific node with a specific id, and make it server look into the wz and see if that node exist, if yes = start, if no = dont start. How would i do that? Im unexpierenced in clients.

    (if my way is too hard, how do i have my client check for my wz files if they are the right ones or not. I dont want people to use other ones.)


  2. #2
    Apprentice Lyquidator is offline
    MemberRank
    Jun 2015 Join Date
    21Posts

    Re: Adding Check to wz files before starting Maple.

    For what I know, you can't edit the client to do that. It's impossible, unless there's a localhost source which you could then use and modify it to do that.
    However, you could just make a C# or Visual Basic program that checks the MD5 Hash of the clients files, and if they don't match yours, simply show them an error or link them to download the new WZ files.

  3. #3
    Moderator Eric is offline
    ModeratorRank
    Jan 2010 Join Date
    DEV CityLocation
    3,188Posts

    Re: Adding Check to wz files before starting Maple.

    Quote Originally Posted by Lyquidator View Post
    For what I know, you can't edit the client to do that. It's impossible, unless there's a localhost source which you could then use and modify it to do that.
    However, you could just make a C# or Visual Basic program that checks the MD5 Hash of the clients files, and if they don't match yours, simply show them an error or link them to download the new WZ files.
    you can if ur extalia!!111

    but yeah, I agree. What I did in Development v117.2 was build a launcher for patches, then checked the remote server to make sure your patch was up-to-date. Anytime we updated, you always had to click the launcher to play, so your game would update to the most updated patch and allow you to connect.

  4. #4
    Valued Member SSFM is offline
    MemberRank
    Apr 2008 Join Date
    138Posts

    Re: Adding Check to wz files before starting Maple.

    Quote Originally Posted by Lyquidator View Post
    For what I know, you can't edit the client to do that. It's impossible, unless there's a localhost source which you could then use and modify it to do that.
    However, you could just make a C# or Visual Basic program that checks the MD5 Hash of the clients files, and if they don't match yours, simply show them an error or link them to download the new WZ files.
    This. It's what I'm doing right now. Basically you need to write a launcher and only allow the client to connect if it's started by the launcher. (One way to do this is to make the launcher connect to the server and send a unique packet which identifies itself. If the server does not receive this packet, it disconnects the client.) Store the valid md5 for your most recent of each wz file in your database. Then when you hit launch, check the md5 of all the wz files and compare it to the value in your database. (Write a simple php script that connects to your database and takes the md5 and wz filename as parameters, than returns true if it matches.) Finally, if all is good, launch the game and send that special launcher packet I mentioned.

  5. #5
    Valued Member PerfectEnding is offline
    MemberRank
    Jul 2013 Join Date
    104Posts

    Re: Adding Check to wz files before starting Maple.

    Quote Originally Posted by SSFM View Post
    This. It's what I'm doing right now. Basically you need to write a launcher and only allow the client to connect if it's started by the launcher. (One way to do this is to make the launcher connect to the server and send a unique packet which identifies itself. If the server does not receive this packet, it disconnects the client.) Store the valid md5 for your most recent of each wz file in your database. Then when you hit launch, check the md5 of all the wz files and compare it to the value in your database. (Write a simple php script that connects to your database and takes the md5 and wz filename as parameters, than returns true if it matches.) Finally, if all is good, launch the game and send that special launcher packet I mentioned.
    I was thinking of doing this myself as its a waste of money to pay someone to do it and its valuable experience to learn how to do it myself, but I have but the slightest clue on how to code in c++/c or even using vs.

  6. #6
    Valued Member SSFM is offline
    MemberRank
    Apr 2008 Join Date
    138Posts

    Re: Adding Check to wz files before starting Maple.

    It's a perfect opportunity to learn. I would personally recommend C# as it's a lot easier to work with than C or C++. If you know the basics of object-oriented programming, it shouldn't be hard to pick up.

  7. #7
    Apprentice Lyquidator is offline
    MemberRank
    Jun 2015 Join Date
    21Posts

    Re: Adding Check to wz files before starting Maple.

    Quote Originally Posted by PerfectEnding View Post
    I was thinking of doing this myself as its a waste of money to pay someone to do it and its valuable experience to learn how to do it myself, but I have but the slightest clue on how to code in c++/c or even using vs.
    YouTube or TheNewBoston for free videos
    And Lynda if you want to pay for professional tutorials (Literally professionals teaching people how to do even the most basic stuff in anything)
    TheNewBoston is just as good as Lynda though (personal opinion)

  8. #8
    I'm overrated. Fraysa is offline
    MemberRank
    Apr 2008 Join Date
    4,891Posts

    Re: Adding Check to wz files before starting Maple.

    @PerfectEnding I created a little application for you! Check it out here.

  9. #9
    Valued Member PerfectEnding is offline
    MemberRank
    Jul 2013 Join Date
    104Posts

    Re: Adding Check to wz files before starting Maple.

    Quote Originally Posted by Fraysa View Post
    @PerfectEnding I created a little application for you! Check it out here.
    @Fraysa I was just looking at your previous guide on making a client! I managed to get ingame, then you release this?!!? D: LOL im just joking, this is perfect! Thanks so much!



Advertisement