Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 26

Thread: KeeperFX work

  
  1. #11
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX work

    Damn! Having the DK exe with compiler optimizations enabled gives the reverse-engineer a little more work :-( I will never understand how people like you (reverse engineers) can do that work, is hard to directly read assembler code and veeeery large... I always thought those kind of people have some kind of "Albert Einstein" brain type or people more inteligent than normal persons...

    Have you definitely come back to KeeperFX? I see lot of source code changes
    Have you got some news about P_Hanson? (we want to play KeeperFX in LANs!)
    Last edited by jomalin; July 13th, 2012 at 19:39.

  2. #12
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: KeeperFX work

    P_Hanson is always here, like me. And we both have limited time .

    I don't know how long I'll be able work; but I doubt it will be long.

  3. #13
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX work

    Quote Originally Posted by mefistotelis View Post
    Well, I could make a mistake - hard to tell.

    Counting functions which are rewritten, but still remain in form of comments:
    Code:
    grep -Rxe "^[[:space:]]*\(//return[[:space:]]*\|//\)\_DK\_[[:alnum:]\_]*[(].*[)].*;.*$" *.c | wc -l > _rewritten_count.txt
    gives me 384.
    mefistotelis, I have an idea, and is very fast to implement to you.

    Can you write the resulting count in the KeeperFX webpage? So each time users like me visit the website, we got an updated count of that (server could update this number once a day, like Nightly builds, not necessary need to be updated at the moment the user load the page). This will keep us of installing the programs you told and give us an approach of the KeeperFX work needed to be done... Something like having this literal: "Functions needed to be rewritten: 302" in some part of the website.

    THANKS

  4. #14
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX work

    grep -Rxe "^[[:space:]]*\(return[[:space:]]*\|\)\_DK\_[[:alnum:]\_]*[(].*[)].*;.*$" *.c | wc -l > _not_rewritten_count.txt
    grep -Rxe "^[[:space:]]*\(//return[[:space:]]*\|//\)\_DK\_[[:alnum:]\_]*[(].*[)].*;.*$" *.c | wc -l > _rewritten_count.txt

    I have executed these two lines separately, from the src folder where all the files are, and it gives me 0 results on each generated txt file, WHY?? I'm in a UNIX system (AIX) that has grep on it...

  5. #15
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: KeeperFX work

    Maybe you were not in src folder?

    I just checked these on ubuntu:
    Code:
    sudo apt-get install subversion
    (...)
    $ svn checkout http://keeperfx.googlecode.com/svn/trunk/keeperfx/ keeperfx-read-only
    (...)
    $ cd keeperfx-read-only/src
    $ grep -Rxe "^[[:space:]]*\(return[[:space:]]*\|\)\_DK\_[[:alnum:]\_]*[(].*[)].*;.*$" *.c | wc -l
    563
    $ grep -Rxe "^[[:space:]]*\(//return[[:space:]]*\|//\)\_DK\_[[:alnum:]\_]*[(].*[)].*;.*$" *.c | wc -l
    415
    $
    Also, it's possible that the escaping used in the query is specific to BASH.
    Last edited by mefistotelis; August 16th, 2012 at 12:39.

  6. #16
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX work

    Quote Originally Posted by mefistotelis View Post
    Also, it's possible that the escaping used in the query is specific to BASH.
    $ echo $SHELL
    /usr/bin/ksh


    So this is a KORN Shell, not BASH... Do you know how the grep expression should be for this shell then?

  7. #17
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: KeeperFX work

    On Ubuntu, the query works with ksh.

  8. #18
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX work

    Quote Originally Posted by mefistotelis View Post
    On Ubuntu, the query works with ksh.
    Maybe AIX (the UNIX from IBM) has a slightly different implementation of grep command, I don't know. Does I need something additional to run that grep command or something?

  9. #19
    Ghost
    Join Date
    Dec 2010
    Location
    Madrid, Spain
    Posts
    368

    Default Re: KeeperFX work

    Hi mefisto,

    can you do a little daily script or a dynamic PHP code with your regexp, to write in some place in the KeeperFX web, how many functions need to be rewritten looking at the SVN source code files?
    So accesing to the page, will give us an approach on how many KeeperFX work left. Something similar to:

    Functions to be rewritten: 385

  10. #20
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: KeeperFX work

    I don't think it's really worth the effort.
    I prefer to focus on the actual code.

    Maybe later, we'll see.

Similar Threads

  1. How to get the official editor to work with KeeperFX
    By DragonsLover in forum KeeperFX
    Replies: 82
    Last Post: December 17th, 2023, 23:40
  2. Replies: 1
    Last Post: September 13th, 2011, 05:44
  3. How to get the official editor to work with KeeperFX
    By DragonsLover in forum DK1 Mapmaking
    Replies: 0
    Last Post: February 15th, 2011, 01:15
  4. Replies: 2
    Last Post: January 8th, 2011, 20:34

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •