Eliot's Forum
Killing floor (native_2004) strange issue - Printable Version

+- Eliot's Forum (https://eliotvu.com/forum)
+-- Forum: UE Explorer (https://eliotvu.com/forum/forumdisplay.php?fid=1)
+--- Forum: General (https://eliotvu.com/forum/forumdisplay.php?fid=3)
+---- Forum: Issues (https://eliotvu.com/forum/forumdisplay.php?fid=4)
+---- Thread: Killing floor (native_2004) strange issue (/showthread.php?tid=32)



Killing floor (native_2004) strange issue - GreenFox - 08-06-2012

At UE Explorer
Code:
function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
    local int i;

    super(GUIPanel).InitComponent(MyController, MyOwner);
    bClean = true;
    lb_Text.SetContent(DefaultText);
    lb_Text.__OnDraw__Delegate = OnLabelDraw;
    i = NewsLine.Length - 1;
    J0x4f:

    if(i >= 0)
    {
        lb_Text.AddText(NewsLine[i]);
        i -- );
    }
    lb_Text.AddText(" ");
    lb_Text.MyScrollBar.GripPos = 0.00;
    lb_Text.MyScrollBar.CurPos = 0;
    lb_Text.MyScrollBar.MyList.SetTopItem(0);
    lb_Text.MyScrollBar.AlignThumb();
    __OnShow__Delegate = Shown;
}
And the original source
Code:
function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
    local int i;

    Super.InitComponent(MyController, MyOwner);

       bClean = true;
       lb_Text.SetContent(DefaultText);
    lb_Text.OnDraw = OnLabelDraw;
       for(i=NewsLine.Length-1; i>=0; i--)
       {
         lb_Text.AddText(NewsLine[i]);
       }
       lb_Text.AddText(" ");
       lb_Text.MyScrollBar.GripPos = 0;
       lb_Text.MyScrollBar.CurPos = 0;
       lb_Text.MyScrollBar.MyList.SetTopItem(0);
       lb_Text.MyScrollBar.AlignThumb();
       OnShow = Shown;
}
Why it shows J0x4f: ,also why i doesn't show with "for"?


RE: Killing floor (native_2004) strange issue - eliot - 08-06-2012

Update to version 1.1 and use the UT2004 nativestablelist when decompiling Killing Floor packages.

The J0x4f: is a label named to its byte position, if you do the above then it should also output a goto ' J0x4f' code statement.