Results 1 to 9 of 9
  1. #1
    loggfreak's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic

    Exclamation extract player names and/or map name from crossfire replay files

    i am trying to write a program which can read/show player names from the replay files

    i know i can see the names by opening the CFR file in Notepad++ but i'd like to automate
    the extracting of the player names from the replay files

    i'm currently programming in vb.net for the people who'd like to know

    does annyone know a way for a program to recognize the player names?

    map names would also be cool

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Try to search all text strings in the file

    Last edited by Biesi; 01-27-2013 at 12:49 PM.

  3. The Following User Says Thank You to Biesi For This Useful Post:

    loggfreak (01-28-2013)

  4. #3
    bandi12's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    562
    Reputation
    30
    Thanks
    318
    My Mood
    Yeehaw
    Load the whole flie into a char array.
    make another char array where you store the character's (A to Z) number (0-9) and other simbol's what can be found in a name like -,* ......

    Then loop trough the first char array and mach every array from the .cfr whit your array then if you found a match save it in a string or char array and check the next one if the next one is a mach to then save that to check next uptil there is no more mach = the name is over , so you have one name . delete the string/char array where you saved the name and start from begin again uptil you find again a mach ....
     




    MY Latest Aimbot on : Orbital Space (Video Comming Soon)'





     

    - @UltraPGNoob
    - @dicky88smd
    - @giniyat101

  5. The Following User Says Thank You to bandi12 For This Useful Post:

    loggfreak (01-28-2013)

  6. #4
    loggfreak's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    thanks for your quick reply biesi and bandi

    does annyone know what characters are supported as In Game Name?

    does annyone know the minimal and maximal length for a character's name???

    ---------- Post added at 07:49 PM ---------- Previous post was at 07:47 PM ----------

    oh yeah btw (off topic but yeah) does annyone know why the site was down 5-10 minutes ago??
    Last edited by loggfreak; 01-28-2013 at 12:22 PM.

  7. #5
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    max length is 12 chars and allowed are .][*-_ a-z 0-9 and sometimes ?

  8. The Following User Says Thank You to Biesi For This Useful Post:

    loggfreak (01-28-2013)

  9. #6
    loggfreak's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    lol just found out the minimum name length is 1
    i found someone named A
    thanks biesi

    ---------- Post added at 10:05 PM ---------- Previous post was at 08:36 PM ----------

    damn it's still hard to do
    names are never on the same location in file
    some other random letters show up as names after filtering
    and i can't find a pattern in the files
    Last edited by loggfreak; 01-28-2013 at 12:37 PM.

  10. #7
    loggfreak's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Angelic
    Someone got a more effective way to extract names/data from cfr files??
    does annyone know how to get the map name??

  11. #8
    needhash's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    Guaranteed but at the same time hardest way to accomplish what you want is to partially reverse engineer the exe. Unfortunately I don't sure that I can do that because of low skills. Btw using approach suggested by bandi12 it's possible to grab unnecessary chars and even words. Also it's not good to load the whole file in memory (use functions from WinApi or C lib). Why do you want to have such program?

  12. #9
    bandi12's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    562
    Reputation
    30
    Thanks
    318
    My Mood
    Yeehaw
    Quote Originally Posted by needhash View Post
    Guaranteed but at the same time hardest way to accomplish what you want is to partially reverse engineer the exe. Unfortunately I don't sure that I can do that because of low skills. Btw using approach suggested by bandi12 it's possible to grab unnecessary chars and even words. Also it's not good to load the whole file in memory (use functions from WinApi or C lib). Why do you want to have such program?
    I don't have time for a program like this bk it's ussles for me , but that replay file could be filtered 90-95% then just manualy filter the missed non name char's.
     




    MY Latest Aimbot on : Orbital Space (Video Comming Soon)'





     

    - @UltraPGNoob
    - @dicky88smd
    - @giniyat101

Similar Threads

  1. new map name stolen from combat arms? xD Fail.
    By lordmike55 in forum CrossFire Discussions
    Replies: 11
    Last Post: 08-16-2012, 08:27 PM
  2. Name and Title User Name Change
    By The XXX Devil in forum Profile Edit Requests
    Replies: 3
    Last Post: 05-22-2012, 04:59 PM
  3. [Tutorial] All Console Map Names And How To Use Them
    By mlgoverlord in forum Call of Duty Modern Warfare 2 Tutorials
    Replies: 2
    Last Post: 04-10-2011, 05:59 PM
  4. Replies: 7
    Last Post: 10-10-2010, 08:09 AM

Tags for this Thread