2DF FreePlay

A P2P Arcade Game Matchmaking Server
Welcome to 2DF FreePlay Sign in | Join | Help
in Search
PayPal - The safer, easier way to pay online!
Latest post 12-25-2008 9:43 AM by warrguthix. 164 replies.
Page 1 of 11 (165 items) 1 2 3 4 5 Next > ... Last »
Sort Posts: Previous Next
  • 11-06-2008 12:10 AM

    Help Add Ranked Games

    Seeing as how I'm slow to implement rankings for games, I've decided to let you guys help me out.

    In order to do so, you will need to play an online game as usual, and use a memory scanner such as tsearch to find the following 1 byte values:

    • p1 character id
    • p2 character id
    • round
    • p1 rounds won
    • p2 rounds won

    Currently only 1v1 games that have these values can be ranked. For team games such as marvel vs. capcom, you can ignore the p1 and p2 character id values. The game can stil be ranked, but there will be no character usage or matchup charts. CPS3 games cannot currently be ranked because the memory locations change every time the game is run.

    When you think you have found the correct memory locations, it is important to confirm them a few times, as they may not be correct on subsequent fights. You need to find the memory locations that are correct every time. When you have them, email or pm them to me.

    I appreciate your help. Let's get ranking, bumbaclot!

    HOW TO DO IT

    First, it helps to find the character ids so you have a specific value to search for. Most character ids can be found in MAME cheats on google, for example here is where I found the SSF2T character ids: http://www.mameworld.net/maws/set/ssf2t (scroll down to cheats section).

    The values are in hexidecimal form, so you will need to convert them decimal form when searching. This can be done using windows calculator in scientific mode.

    Once you have the character ids, pick one to start with, preferrably something other than 0 or 1 as those are the most common values.

    Start up a game, then launch tsearch and attach it to the freeplay_emu.exe process. Choose the character that has the id you are searching for. When the round starts, search for the id in tsearch by clicking the "Init new search" button (the first magnifying glass on the left underneath the "Open Process" button). You are searching for an "Exact Value" of type "1 Byte". Once that search is done, reset the game and choose a different character. When the round starts, search for the new character id by clicking the "Search next" button (the magnifying glass next to the first one). Repeat this process until you have narrowed the results down as much as possible, usually under 10. Double click the first memory address and it will be saved in the right panel. You can label it so you don't forget what it is. Repeat the process for player 2.

    To find the round number, start a game and search for a "Range" of "1 Byte" values from 0 to 1. The reason for this is some games start the round at 0 (CAPCOM), and others at 1 (SNK). When the next round starts, search for a value that has "Increased by" 1. Repeat this process until you have narrowed the results like you did with the character ids.

    To find the p1 and p2 rounds won, you pretty much do the same thing as finding the round number.

     

    GAMES RANKED SO FAR

    • X-Men - children of the atom
    • Street Fighter II' - hyper fighting
    • Ring of Destruction: Slammasters 2
    • Samurai Shodown V Special
    • Street Fighter II - the world warrior
    • Hyper Street Fighter 2: The Anniversary Edition
    • The King of Fighters '97
    • The King of Fighters '99
    • Super Puzzle Fighter II Turbo
    • The King of Fighters 2000
    • The King of Fighters '96
    • Windjammers - flying disc game
    • Karnov's Revenge
  • 11-06-2008 1:21 AM In reply to

    • smashh
    • Top 25 Contributor
    • Joined on 05-25-2008
    • México DF
    • Posts 162

    Re: Help Add Ranked Games

    I don't know what tsearch is, or how does it work, but im downloading it right now to help things out. I'm starting of course with Puzzle Fighter (my favorite game and a few charachters to scan) tomorrow after work.

    Damdai, i'll figure out how to do all that stuff, but if you could PM or post here some other tips to find that memory information that would be awesome.

    2DF Unofficial Youtube Channel: http://youtube.com/2DFighterUnofficial

  • 11-06-2008 2:42 AM In reply to

    • smashh
    • Top 25 Contributor
    • Joined on 05-25-2008
    • México DF
    • Posts 162

    Re: Help Add Ranked Games

    Ok just got 30 free minutes to check this out.

    Im guessing i need to scan the game during any player vs player match.

    Then reset the game, chosse the same character on side 1 but a different character for side 2 (different from the match 1), and scan for values that changed. But there are still too many remaining values.

    Somehow playing with scanning changed an non changed values  got to only 6 values, but they all disappeared on the next search lol.

    I think im getting the logic on how on the fastest way to get to the exact value for the characters, but its all the free time i got for today.

    So, Damdai, any tips on how to do this? Like: "get a match with the same characters on both sides, then reset and get a match with the same characters on both sides but different from the first match and search for the value that changed"

    How do you do it?

    Edit: ok i did this: first scanned the game on the select character screen, that gave me over 130,000,000 values. Then i selected a character and searched for changed values, that got me 6,000 values. But any other variants i make the search returns me almost no difference. 5,067 values, then 5, 040 and so on.

    Whats the fastes way to do this? Im pretty sure im doing this wrong, but for now i don't have the time to figure this out. Any tips?

    2DF Unofficial Youtube Channel: http://youtube.com/2DFighterUnofficial

  • 11-06-2008 5:23 AM In reply to

    Re: Help Add Ranked Games

    I guess its similar to how ArtMoney works.

    Games can be scanned in Play Alone mode too, as well as on simple nFBA w/o 2DF, right ?

    Also what is behaviour we can expect from player win variable ?

    After one of players wins, variable switches and remains in that state to next match ? Or is it used to count consecutive wins of player and is being reset if other player wins next ? Like, I ask typical behaviour of it in ranked games.

    THE LEGEND OF LEGENDARY LEGENDS

  • 11-06-2008 8:16 AM In reply to

    Re: Help Add Ranked Games

    You must scan when playing online with 2DF. The memory locations are different for offline or any other emulator.

    I will write a tutorial today on how I do it. If done correctly, it should take about 15 minutes to find all the values for 1 game.

  • 11-06-2008 9:39 AM In reply to

    • asiantom
    • Top 25 Contributor
    • Joined on 07-01-2008
    • Boston, Massachusetts
    • Posts 157

    Re: Help Add Ranked Games

    Cool stuff letting the community give back, ha! I'll need to check it out when I get home.

    A good soldier is not violent.
    A good fighter is not angry.
    A good winner is not vengeful.
    A good employer is humble.

  • 11-06-2008 10:43 AM In reply to

    • Kaede
    • Top 10 Contributor
    • Joined on 05-11-2008
    • France
    • Posts 251

    Re: Help Add Ranked Games

    Sorry I didn't recontact you, damdai, I was still having some compiling problems with nFBA and had been lazy to set up my compiling environment correctly.

    Thanks for posting this method, I'm sure many people will be glad to help ! :)

    However I've 2 questions :
    -will this work with the play alone function, damdai ?
    -The value you call round, is the end of a round, I guess ?

    edit after damdai's answer : the first was already answered above ......... sorry.

    2DF 万歳!

  • 11-06-2008 10:54 AM In reply to

    Re: Help Add Ranked Games

    First post updated with tutorial.

    Kaede:

    However I've 2 questions :

    -will this work with the play alone function, damdai ?
    -The value you call round, is the end of a round, I guess ?

    No, you must play an online game.

    The value I call round is the actual round number, for example in SSF2T, round 1 is 0, round 2 is 1, etc.

  • 11-06-2008 11:03 AM In reply to

    • Kaede
    • Top 10 Contributor
    • Joined on 05-11-2008
    • France
    • Posts 251

    Re: Help Add Ranked Games

    I understand the round number can't be deduced from the number of P1 and P2 wins when there can be draw games.

    Ok thanks for the clarification ;)

    2DF 万歳!

  • 11-06-2008 12:15 PM In reply to

    • Kaede
    • Top 10 Contributor
    • Joined on 05-11-2008
    • France
    • Posts 251

    Re: Help Add Ranked Games

    Are 17 results too many ? After about 100 searches, I couldn't lower the number more ... (for Twinkle Star Sprites, P1 rounds won, and P2 rounds won)

    2DF 万歳!

  • 11-06-2008 12:41 PM In reply to

    Re: Help Add Ranked Games

    Might be ok. Just keep an eye on em, because sometimes when I thought I found the right value, it turned out to not be right all the time. Some of the values will be right sometimes, where some will be right all the time. You need the value that's right all the time.

  • 11-06-2008 3:26 PM In reply to

    Re: Help Add Ranked Games

    Could you add an option for direct IPs so I could enter LAN IPs and simulate online play?  Or is there another method besides convincing a remote friend to help?

  • 11-06-2008 3:39 PM In reply to

    Re: Help Add Ranked Games

    You can already play on 2 computers in the same LAN, as long as one of them can host.

  • 11-06-2008 3:51 PM In reply to

    Re: Help Add Ranked Games

    Hmmm, whenever I try I just get "white screens" and a pending connection, but one of us has "can host" as yes and the other does not.  The ports are only forwarded to one computer and it's a really simple router setup so I'm not sure what other hang up there might be, but if it's worked for you before then I'll keep trying.

    If you know anything else I might be screwing up royally then shout it out so I can flex a move to correct.

  • 11-06-2008 4:00 PM In reply to

    Re: Help Add Ranked Games

    Check if you are able to connect to other people using both computers.

Page 1 of 11 (165 items) 1 2 3 4 5 Next > ... Last »
Powered by Community Server (Non-Commercial Edition), by Telligent Systems