Results 1 to 9 of 9

Thread: Unmatched functions between CoD

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Jun 2015
    Posts
    15
    Thanks
    5
    Thanked 3 Times in 3 Posts
    How about equivalent offset? Is there an efficient way to recover them?

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Quote Originally Posted by ebusiangamers View Post
    How about equivalent offset? Is there an efficient way to recover them?

    What do you mean? Will give an example of what you need
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

  3. #3
    Private
    Join Date
    Jun 2015
    Posts
    15
    Thanks
    5
    Thanked 3 Times in 3 Posts

  4. The Following User Says Thank You to ebusiangamers For This Useful Post:

    kung foo man (8th September 2020)

  5. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by ebusiangamers View Post
    How about equivalent offset? Is there an efficient way to recover them?
    In CoD2, I look for a text close to a function that uses the player client address and then find the same text in other versions.
    This might work depending on much difference between 2 and UO.

    Edit: you might be able to find some of the addresses if you find and decode one of the player GSC functions like GetStance() or getEntityNumber and the kick function too.
    Last edited by Mitch; 6th September 2020 at 15:28.

  6. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (8th September 2020)

  7. #5
    Private
    Join Date
    Jun 2015
    Posts
    15
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Mitch View Post
    In CoD2, I look for a text close to a function that uses the player client address and then find the same text in other versions.
    This might work depending on much difference between 2 and UO.

    Edit: you might be able to find some of the addresses if you find and decode one of the player GSC functions like GetStance() or getEntityNumber and the kick function too.
    Using string work fine to find functions and offset. I search each crossref to find the bit of string that might exist in the other version. It's the huge pain in the arse when the string bit is hidden in several "parent" function away.

  8. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by ebusiangamers View Post
    Using string work fine to find functions and offset. I search each crossref to find the bit of string that might exist in the other version. It's the huge pain in the arse when the string bit is hidden in several "parent" function away.
    Which functions, addresses and offsets are you currently still looking for?

    Edit: maybe comparing CoD1 with UO is easier.

    https://github.com/riicchhaarrd/CoDExtended

    Edit 2:

    Quote Originally Posted by ebusiangamers View Post
    I come across many function with the same structure as the on on the right. The functions in the screenshot below are supposed to be "equivalent". I find a lot more like this (right). Is something wrong happening?
    Click image for larger version. 

Name:	Capture.PNG 
Views:	15 
Size:	421.4 KB 
ID:	1640
    CoD1 and UO are split into two: a binary (coduo_lnxded) and a library (game.mp.uo.i386.so).
    The game library contains GSC script functions and methods.

    I think the UO code in your screenshot loads the game library like in CoDExtended.

    Loading the library
    https://github.com/riicchhaarrd/CoDE...xtended.c#L257
    https://github.com/riicchhaarrd/CoDE...ymodule.c#L231

    Loading the stock functions:
    https://github.com/riicchhaarrd/CoDE...script.c#L1862
    Return the stock or custom function:
    https://github.com/riicchhaarrd/CoDE.../script.c#L450
    Last edited by Mitch; 19th September 2020 at 17:03.

  9. #7
    Private
    Join Date
    Jun 2015
    Posts
    15
    Thanks
    5
    Thanked 3 Times in 3 Posts
    I come across many function with the same structure as the on on the right. The functions in the screenshot below are supposed to be "equivalent". I find a lot more like this (right). Is something wrong happening?
    Click image for larger version. 

Name:	Capture.PNG 
Views:	15 
Size:	421.4 KB 
ID:	1640

Posting Permissions

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