Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Borderlands 2 [Status]
#1
As requested, I have taken a look at Borderlands 2. The package opens in the present public version but the functions are not decompiled at all.

I have made some progress(~2 hours) on the decompiling the BL2 functions, so far this is how it looks:
Code:
static final simulated function float FindDeltaAngle(float A1, float A2)
{
    @OBJECT[1] = A2 - A1;
    // End:0x45 Loop:False
    if(@OBJECT[1] > 3.14)
    {
        @OBJECT[1] = @OBJECT[1] - 3.14 * 2.00;
        // This is an implied JumpToken;
        goto J0x6f;
        // End:0x6f Loop:False
        if(@OBJECT[1] < -3.14)
        {
            @OBJECT[1] = @OBJECT[1] + 3.14 * 2.00;
        }
        return @OBJECT[1];
        return ReturnValue;        
    }
}

Many functions are decompiled perfectly except for those using Let tokens(Assigments =) and Local variables as you see there are none but in the UDK build there is at least one local variable named Delta, e.g:

Code:
static final simulated function float FindDeltaAngle(float A1, float A2)
{
    local float Delta;

    Delta = A2 - A1;
    // End:0x55 Loop:False
    if(Delta > 3.14)
    {
        Delta = Delta - 3.14 * 2.00;
    }
    // End:0x8b
    else
    {
        // End:0x8b Loop:False
        if(Delta < -3.14)
        {
            Delta = Delta + 3.14 * 2.00;
        }
    }
    return Delta;
}

For as far as I know the local variables seem to have just dissapeared, although they've added a new array at the beginning of the functions with values I haven't figured out yet, perhaps they are the replacement for local variables.


I suppose I'll have to test more functions to get an idea of those changes Cool
Reply


Messages In This Thread
Borderlands 2 [Status] - by eliot - 09-25-2012, 04:15 PM
RE: Borderlands 2 [Status] - by eliot - 09-25-2012, 04:32 PM
RE: Borderlands 2 [Status] - by AR1911 - 09-26-2012, 06:47 AM
RE: Borderlands 2 [Status] - by eliot - 09-26-2012, 12:16 PM
RE: Borderlands 2 [Status] - by zv_odd - 09-27-2012, 10:07 AM
RE: Borderlands 2 [Status] - by eliot - 10-02-2012, 02:49 PM
RE: Borderlands 2 [Status] - by ratrace135 - 10-03-2012, 08:40 AM
RE: Borderlands 2 [Status] - by eliot - 10-03-2012, 11:09 AM
RE: Borderlands 2 [Status] - by ratrace135 - 10-03-2012, 11:24 AM
RE: Borderlands 2 [Status] - by eliot - 10-03-2012, 02:50 PM
RE: Borderlands 2 [Status] - by ratrace135 - 10-04-2012, 08:02 AM
RE: Borderlands 2 [Status] - by eliot - 10-04-2012, 05:52 PM
RE: Borderlands 2 [Status] - by eliot - 10-04-2012, 11:53 PM
RE: Borderlands 2 [Status] - by eliot - 10-19-2012, 06:49 AM
RE: Borderlands 2 [Status] - by AR1911 - 10-21-2012, 11:04 PM
RE: Borderlands 2 [Status] - by eliot - 11-06-2012, 02:41 PM
RE: Borderlands 2 [Status] - by andy - 11-23-2012, 04:43 PM
RE: Borderlands 2 [Status] - by eliot - 11-26-2012, 07:09 AM
RE: Borderlands 2 [Status] - by andy - 12-07-2012, 12:00 AM
RE: Borderlands 2 [Status] - by eliot - 12-07-2012, 05:25 AM
RE: Borderlands 2 [Status] - by MonsOlympus - 04-18-2013, 12:14 PM
RE: Borderlands 2 [Status] - by eliot - 04-19-2013, 04:37 AM
RE: Borderlands 2 [Status] - by Echelo - 05-01-2016, 04:41 AM
RE: Borderlands 2 [Status] - by eliot - 05-03-2016, 12:54 AM
RE: Borderlands 2 [Status] - by Echelo - 05-08-2016, 04:34 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)