Page 36 of 100 FirstFirst ... 2634353637384686 ... LastLast
Results 876 to 900 of 2479

Thread: [SRL-6] Draynor Chop N' Bank | By Coh3n

  1. #876
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    That's where I got all my basic form knowledge. But his method uses a TListBox, and I wanted tabs. I just went overboard and made custom EVERYTHING to suit the RS theme.
    I think a TListBox is better than tabs personally.

  2. #877
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    I found a problem I think it was at a random at least 4 hours while I was sleeping and never logged out lol.. it just looks for trees
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  3. #878
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by twobac View Post
    thats poss.

    ok i'm trying to use the declarer players proceedure with my 13 players.
    Which includes should i have??
    //{.Include srl\srl\Misc\Smart.scar} from version 26 & 27
    //{.Include srl\srl.scar} from v 26
    //{.Include srl\srl\Misc\Debug.scar} from v26
    //{.Include DCnB_Form.scar} from v27 - cannot use at players +6

    when i complie error
    Line 164: [Error] (164:1): Unknown identifier 'HowManyPlayers' in script

    ok answered own question.

    if using +6 players and using DeclarePlayers proceedure. do not comment out
    {.Include DCnB_Form.scar}

    just set USE_FORM = False

    All you have to do is set USE_FORM to false and fill out the DeclarePlayers. don't comment ANYTHING out.

    Quote Originally Posted by mormonman View Post
    I think a TListBox is better than tabs personally.
    I agree, but I was going for an awesome look, and tabs look awesomer.

    Quote Originally Posted by gratz View Post
    I found a problem I think it was at a random at least 4 hours while I was sleeping and never logged out lol.. it just looks for trees
    What`d the debug say?

  4. #879
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    I agree, but I was going for an awesome look, and tabs look awesomer.
    People and their E-Peen's these days

  5. #880
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    People and their E-Peen's these days
    Lol yes sir.

  6. #881
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    All you have to do is set USE_FORM to false and fill out the DeclarePlayers. don't comment ANYTHING out.


    I agree, but I was going for an awesome look, and tabs look awesomer.


    What`d the debug say?
    It said "looking for uptext" about ten thousand times :rofl:
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  7. #882
    Join Date
    Feb 2008
    Location
    Pennsylvania
    Posts
    129
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ive only been able to get small proggies about 2 hours each because it keeps looking to uptext and cannot find it. Most likely because there are no trees left. Maybe it could look for trees longer?
    A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

    http://www.stats.srl-forums.com/sigs/4360.png

  8. #883
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    PHP Code:
    [=================================================================]
    [                 
    Coh3n's Draynor Chop N' Bank!                   ]
    [============================ 
    Rev.27 =============================]
    [                                                                 ]
    [     
    Ran For: 8 Hours2 Minutes and 25 Seconds                  ]
    [                                                                 ]
    [     
    Nick    T/F    Loads     Logs     Lvls     Exp.     Brks    ]
    [     
    ¯¯¯¯    Â¯Â¯Â¯    Â¯Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯    ]
    [     
    wc01     T      20       560       2      37800      4      ]
    [     
    wc02     T      20       559       1      37732      4      ]
    [     
    wc03     T      20       560       2      37800      4      ]
    [     
    wc04     T      20       560       2      37800      4      ]
    [     
    wc05     T      5        140       2      9450       1      ]
    [     
    wc06     T      20       560       18     37800      4      ]
    [     
    wc07     T      16       448       1      30240      3      ]
    [                                                                 ]
    [=================================================================]
    [=================================================================] 
    player 6 only leveled twice. I like the slower banking proceedure
    Last edited by twobac; 02-26-2010 at 02:22 PM. Reason: Question

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  9. #884
    Join Date
    Oct 2009
    Location
    Connersille, Indiana
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The banking keeps messing up for me, it relocates about 5 or 6 times on average until it opens the bank.

  10. #885
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I seem to have messed up...

    Line 14: [Error] (22423:1): Duplicate identifier 'SRLVersionNumber' in script C:\Users\twobac\Desktop\scarprerelease\includes\SR L\SRL\Core\Globals.scar

    I have run the SVN update on ScarPreRelease and it is at revision 80
    I have also downloaded the includes via scar?

    What do i need to do next?

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  11. #886
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    I used your scripts to check the form support in Simba.. This is what I got after some editing

    Verrekte Koekwous

  12. #887
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by gratz View Post
    It said "looking for uptext" about ten thousand times :rofl:
    I should probably add the logout failsafe back in then. Lol.

    Quote Originally Posted by nikos View Post
    Ive only been able to get small proggies about 2 hours each because it keeps looking to uptext and cannot find it. Most likely because there are no trees left. Maybe it could look for trees longer?
    It doesn't stop looking for trees, if you're cutting Oaks and both the trees are gone, you'll get a lot of uptext errors, and it won't always find the Oak as soon as it grows back.

    Quote Originally Posted by twobac View Post
    PHP Code:
    [=================================================================]
    [                 
    Coh3n's Draynor Chop N' Bank!                   ]
    [============================ 
    Rev.27 =============================]
    [                                                                 ]
    [     
    Ran For: 8 Hours2 Minutes and 25 Seconds                  ]
    [                                                                 ]
    [     
    Nick    T/F    Loads     Logs     Lvls     Exp.     Brks    ]
    [     
    ¯¯¯¯    Â¯Â¯Â¯    Â¯Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯     Â¯Â¯Â¯Â¯    ]
    [     
    wc01     T      20       560       2      37800      4      ]
    [     
    wc02     T      20       559       1      37732      4      ]
    [     
    wc03     T      20       560       2      37800      4      ]
    [     
    wc04     T      20       560       2      37800      4      ]
    [     
    wc05     T      5        140       2      9450       1      ]
    [     
    wc06     T      20       560       18     37800      4      ]
    [     
    wc07     T      16       448       1      30240      3      ]
    [                                                                 ]
    [=================================================================]
    [=================================================================] 
    player 6 only leveled twice. I like the slower banking proceedure
    Nice! And yeah, I added a small wait in there.

    Quote Originally Posted by Alek000 View Post
    The banking keeps messing up for me, it relocates about 5 or 6 times on average until it opens the bank.
    Every time? I may have to repick my bank colors...

    Quote Originally Posted by twobac View Post
    I seem to have messed up...

    Line 14: [Error] (22423:1): Duplicate identifier 'SRLVersionNumber' in script C:\Users\twobac\Desktop\scarprerelease\includes\SR L\SRL\Core\Globals.scar

    I have run the SVN update on ScarPreRelease and it is at revision 80
    I have also downloaded the includes via scar?

    What do i need to do next?
    You can't download the includes via SCAR as they're way outdated. You need the latest version of the Dev SVN.

    Quote Originally Posted by mastaraymond View Post
    I used your scripts to check the form support in Simba.. This is what I got after some editing

    Wow dude I'm so pumped that it works. I was worried that I'd have done all that work for nothing when I transfer over to Simba.

  13. #888
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    I should probably add the logout failsafe back in then. Lol.


    It doesn't stop looking for trees, if you're cutting Oaks and both the trees are gone, you'll get a lot of uptext errors, and it won't always find the Oak as soon as it grows back.


    Nice! And yeah, I added a small wait in there.


    Every time? I may have to repick my bank colors...


    You can't download the includes via SCAR as they're way outdated. You need the latest version of the Dev SVN.


    Wow dude I'm so pumped that it works. I was worried that I'd have done all that work for nothing when I transfer over to Simba.
    I'm actually surprised my self that it all works .

    Here is a patch file to make it work with Simba:
    Code:
    Index: DCnB_Form.scar
    ===================================================================
    --- DCnB_Form.scar	(revision 27)
    +++ DCnB_Form.scar	(working copy)
    @@ -251,7 +251,11 @@
               bmp := frmBitmaps[TAB_ACTIVE];
               GetBitmapSize(bmp, w, h);
               SetBounds({L} 50 + (i * 74), {T} 161, {W} w, {H} h);
    +          {$ifdef Simba}
    +          DrawBitmap(Bmp,canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +          {$endif}
               isActiveTab[i] := True;
     
               if (isActiveImage[IMG_TAB_SCPT_NORM]) then
    @@ -325,8 +329,12 @@
           if (not isActiveImage[intArr[0]]) then
             Exit;
           GetBitmapSize(intArr[1], w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(intarr[1],tImages[intArr[0]].Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(intArr[1]), tImages[intArr[0]].Canvas,
                          0, 0, w, h, 0, 0, w, h);
    +      {$endif}
           isActiveImage[intArr[0]] := False;
         end;
       end;
    @@ -368,8 +376,12 @@
       begin
         bmp := intArr[INACTIVE];
         GetBitmapSize(bmp, w, h);
    +    {$ifdef Simba}
    +    DrawBitmap(bmp,tTabs[currTab].Canvas,0,0);
    +    {$else}
         SafeCopyCanvas(GetBitmapCanvas(bmp), tTabs[currTab].Canvas,
                        0, 0, w, h, 0, 0, w, h);
    +    {$endif}
         tTabLabels[currTab].Font.Color := 1068418;
         isActiveTab[currTab] := False;
         frm_PlayerInfo(currTab, True);
    @@ -382,7 +394,11 @@
       }
       bmp := intArr[ACTIVE];
       GetBitmapSize(bmp, w, h);
    +  {$ifdef Simba}
    +  DrawBitmap(bmp,tTabs[theSender].Canvas,0,0);
    +  {$else}
       SafeCopyCanvas(GetBitmapCanvas(bmp), tTabs[theSender].Canvas, 0, 0, w, h, 0, 0, w, h);
    +  {$endif}
       tTabLabels[theSender].Font.Color := 2070783;
       isActiveTab[theSender] := True;
       frm_PlayerInfo(theSender, True);
    @@ -476,8 +492,12 @@
     
             bmp := frmBitmaps[TAB_INACTIVE];
             GetBitmapSize(bmp, w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(bmp,canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas,
                            0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             isActiveTab[i] := False;
             //frm_Debug('tab_Add', 'Tab ' + IntToStr(i + 1) + ' is now inactive.');
           end;
    @@ -520,7 +540,11 @@
             frm_PlayerInfo(hi - 1, False);
             bmp := frmBitmaps[TAB_ACTIVE];
             GetBitmapSize(bmp, w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(bmp,canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             tTabLabels[hi - 1].Font.Color := 2070783;
             isActiveTab[hi - 1] := True;
             //frm_Debug('tab_Delete', 'Tab ' + IntToStr(hi - 1) + ' is now active.');
    @@ -875,8 +899,12 @@
             for i := 0 to hi do
             begin
               GetBitmapSize(bmpArr[i], w, h);
    +          {$ifdef Simba}
    +          DrawBitmap(bmpArr[i],tImages[imgArr[i]].Canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmpArr[i]), tImages[imgArr[i]].Canvas,
                          0, 0, w, h, 0, 0, w, h);
    +          {$endif}
             end;
     
             hi := High(tTabs);
    @@ -1008,8 +1036,12 @@
     
               bmp := frmBitmaps[bmpArr[i]];
               GetBitmapSize(bmp, w, h);
    +          {$ifdef Simba}
    +          DrawBitmap(bmp,tImages[imgArr[i]].Canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmp), tImages[imgArr[i]].Canvas,
                              0, 0, w, h, 0, 0, w, h);
    +          {$endif}
               isActiveImage[imgArr[i]] := False;
             end;
     
    @@ -1051,8 +1083,12 @@
             if (not isActiveImage[intArr[0]]) then
               Exit;
             GetBitmapSize(intArr[1], w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(intArr[1],tImages[intArr[0]].Canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(intArr[1]), tImages[intArr[0]].Canvas,
                            0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             isActiveImage[intArr[0]] := False;
           end;
     
    @@ -1099,8 +1135,12 @@
             if (isActiveImage[intArr[0]]) then
               Exit;
             GetBitmapSize(intArr[1], w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(intArr[1],tImages[intArr[0]].Canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(intArr[1]), tImages[intArr[0]].Canvas,
                            0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             isActiveImage[intArr[0]] := True;
           end;
     
    @@ -1133,11 +1173,16 @@
     
               bmp := frmBitmaps[bmpArr[i]];
               GetBitmapSize(bmp, w, h);
    +          {$ifdef Simba}
    +          DrawBitmap(bmp,tImages[imgArr[i]].Canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmp), tImages[imgArr[i]].Canvas,
                              0, 0, w, h, 0, 0, w, h);
    -
    +          {$endif}
               if (Sender = tImages[IMG_TAB_LABELS]) then
    +          begin
                 isActiveImage[imgArr[i]] := False;
    +          end;
             end;
     
             isActiveImage[imgArr[2]] := True;
    @@ -1196,7 +1241,7 @@
       with frmMain do
       begin
         SetBounds({L} 100, {T} 100, {W} 555, {H} 433);
    -    BorderStyle := nsNone;
    +    BorderStyle := bsNone;
       end;
     
       useSmart := TCheckBox.Create(frmMain);
    @@ -1398,7 +1443,11 @@
           end;
     
           GetBitmapSize(bmp, w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(bmp,Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +      {$endif}
         end;
       end;
     
    @@ -1551,7 +1600,11 @@
           isActiveImage[helpImage] := False;
           OnMouseMove := @frm_OnMouseMove;
           GetBitmapSize(bmp, w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(bmp,Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +      {$endif}
         end;
       end;
       {
    @@ -1599,7 +1652,11 @@
           isActiveImage[introImage] := False;
           OnMouseMove := @frm_OnMouseMove;
           GetBitmapSize(bmp, w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(bmp,Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +      {$endif}
         end;
       end;
     
    @@ -1621,7 +1678,11 @@
         isActiveImage[IMG_FRM_CREDITS] := False;
         OnMouseMove := @frm_OnMouseMove;
         GetBitmapSize(bmp, w, h);
    +    {$ifdef Simba}
    +    DrawBitmap(bmp,Canvas,0,0);
    +    {$else}
         SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +    {$endif}
       end;
       {
         Everything to do with the intro form (frmIntro) ends here, and everything
    @@ -1772,4 +1833,4 @@
     begin
       frm_SafeInitForm;
       frm_SafeShowFormModal;
    -end;
    \ No newline at end of file
    +end;
    E: You might want to put the "// <-- Remove the '{' to use multiple players!" text outside the { } brackets, since somehow I cannot disable Simba from using nested comments .
    Last edited by mastaraymond; 02-26-2010 at 04:56 PM.
    Verrekte Koekwous

  14. #889
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by mastaraymond View Post
    I'm actually surprised my self that it all works .

    Here is a patch file to make it work with Simba:
    Code:
    Index: DCnB_Form.scar
    ===================================================================
    --- DCnB_Form.scar	(revision 27)
    +++ DCnB_Form.scar	(working copy)
    @@ -251,7 +251,11 @@
               bmp := frmBitmaps[TAB_ACTIVE];
               GetBitmapSize(bmp, w, h);
               SetBounds({L} 50 + (i * 74), {T} 161, {W} w, {H} h);
    +          {$ifdef Simba}
    +          DrawBitmap(Bmp,canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +          {$endif}
               isActiveTab[i] := True;
     
               if (isActiveImage[IMG_TAB_SCPT_NORM]) then
    @@ -325,8 +329,12 @@
           if (not isActiveImage[intArr[0]]) then
             Exit;
           GetBitmapSize(intArr[1], w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(intarr[1],tImages[intArr[0]].Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(intArr[1]), tImages[intArr[0]].Canvas,
                          0, 0, w, h, 0, 0, w, h);
    +      {$endif}
           isActiveImage[intArr[0]] := False;
         end;
       end;
    @@ -368,8 +376,12 @@
       begin
         bmp := intArr[INACTIVE];
         GetBitmapSize(bmp, w, h);
    +    {$ifdef Simba}
    +    DrawBitmap(bmp,tTabs[currTab].Canvas,0,0);
    +    {$else}
         SafeCopyCanvas(GetBitmapCanvas(bmp), tTabs[currTab].Canvas,
                        0, 0, w, h, 0, 0, w, h);
    +    {$endif}
         tTabLabels[currTab].Font.Color := 1068418;
         isActiveTab[currTab] := False;
         frm_PlayerInfo(currTab, True);
    @@ -382,7 +394,11 @@
       }
       bmp := intArr[ACTIVE];
       GetBitmapSize(bmp, w, h);
    +  {$ifdef Simba}
    +  DrawBitmap(bmp,tTabs[theSender].Canvas,0,0);
    +  {$else}
       SafeCopyCanvas(GetBitmapCanvas(bmp), tTabs[theSender].Canvas, 0, 0, w, h, 0, 0, w, h);
    +  {$endif}
       tTabLabels[theSender].Font.Color := 2070783;
       isActiveTab[theSender] := True;
       frm_PlayerInfo(theSender, True);
    @@ -476,8 +492,12 @@
     
             bmp := frmBitmaps[TAB_INACTIVE];
             GetBitmapSize(bmp, w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(bmp,canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas,
                            0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             isActiveTab[i] := False;
             //frm_Debug('tab_Add', 'Tab ' + IntToStr(i + 1) + ' is now inactive.');
           end;
    @@ -520,7 +540,11 @@
             frm_PlayerInfo(hi - 1, False);
             bmp := frmBitmaps[TAB_ACTIVE];
             GetBitmapSize(bmp, w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(bmp,canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             tTabLabels[hi - 1].Font.Color := 2070783;
             isActiveTab[hi - 1] := True;
             //frm_Debug('tab_Delete', 'Tab ' + IntToStr(hi - 1) + ' is now active.');
    @@ -875,8 +899,12 @@
             for i := 0 to hi do
             begin
               GetBitmapSize(bmpArr[i], w, h);
    +          {$ifdef Simba}
    +          DrawBitmap(bmpArr[i],tImages[imgArr[i]].Canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmpArr[i]), tImages[imgArr[i]].Canvas,
                          0, 0, w, h, 0, 0, w, h);
    +          {$endif}
             end;
     
             hi := High(tTabs);
    @@ -1008,8 +1036,12 @@
     
               bmp := frmBitmaps[bmpArr[i]];
               GetBitmapSize(bmp, w, h);
    +          {$ifdef Simba}
    +          DrawBitmap(bmp,tImages[imgArr[i]].Canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmp), tImages[imgArr[i]].Canvas,
                              0, 0, w, h, 0, 0, w, h);
    +          {$endif}
               isActiveImage[imgArr[i]] := False;
             end;
     
    @@ -1051,8 +1083,12 @@
             if (not isActiveImage[intArr[0]]) then
               Exit;
             GetBitmapSize(intArr[1], w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(intArr[1],tImages[intArr[0]].Canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(intArr[1]), tImages[intArr[0]].Canvas,
                            0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             isActiveImage[intArr[0]] := False;
           end;
     
    @@ -1099,8 +1135,12 @@
             if (isActiveImage[intArr[0]]) then
               Exit;
             GetBitmapSize(intArr[1], w, h);
    +        {$ifdef Simba}
    +        DrawBitmap(intArr[1],tImages[intArr[0]].Canvas,0,0);
    +        {$else}
             SafeCopyCanvas(GetBitmapCanvas(intArr[1]), tImages[intArr[0]].Canvas,
                            0, 0, w, h, 0, 0, w, h);
    +        {$endif}
             isActiveImage[intArr[0]] := True;
           end;
     
    @@ -1133,11 +1173,16 @@
     
               bmp := frmBitmaps[bmpArr[i]];
               GetBitmapSize(bmp, w, h);
    +          {$ifdef Simba}
    +          DrawBitmap(bmp,tImages[imgArr[i]].Canvas,0,0);
    +          {$else}
               SafeCopyCanvas(GetBitmapCanvas(bmp), tImages[imgArr[i]].Canvas,
                              0, 0, w, h, 0, 0, w, h);
    -
    +          {$endif}
               if (Sender = tImages[IMG_TAB_LABELS]) then
    +          begin
                 isActiveImage[imgArr[i]] := False;
    +          end;
             end;
     
             isActiveImage[imgArr[2]] := True;
    @@ -1196,7 +1241,7 @@
       with frmMain do
       begin
         SetBounds({L} 100, {T} 100, {W} 555, {H} 433);
    -    BorderStyle := nsNone;
    +    BorderStyle := bsNone;
       end;
     
       useSmart := TCheckBox.Create(frmMain);
    @@ -1398,7 +1443,11 @@
           end;
     
           GetBitmapSize(bmp, w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(bmp,Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +      {$endif}
         end;
       end;
     
    @@ -1551,7 +1600,11 @@
           isActiveImage[helpImage] := False;
           OnMouseMove := @frm_OnMouseMove;
           GetBitmapSize(bmp, w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(bmp,Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +      {$endif}
         end;
       end;
       {
    @@ -1599,7 +1652,11 @@
           isActiveImage[introImage] := False;
           OnMouseMove := @frm_OnMouseMove;
           GetBitmapSize(bmp, w, h);
    +      {$ifdef Simba}
    +      DrawBitmap(bmp,Canvas,0,0);
    +      {$else}
           SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +      {$endif}
         end;
       end;
     
    @@ -1621,7 +1678,11 @@
         isActiveImage[IMG_FRM_CREDITS] := False;
         OnMouseMove := @frm_OnMouseMove;
         GetBitmapSize(bmp, w, h);
    +    {$ifdef Simba}
    +    DrawBitmap(bmp,Canvas,0,0);
    +    {$else}
         SafeCopyCanvas(GetBitmapCanvas(bmp), Canvas, 0, 0, w, h, 0, 0, w, h);
    +    {$endif}
       end;
       {
         Everything to do with the intro form (frmIntro) ends here, and everything
    @@ -1772,4 +1833,4 @@
     begin
       frm_SafeInitForm;
       frm_SafeShowFormModal;
    -end;
    \ No newline at end of file
    +end;
    E: You might want to put the "// <-- Remove the '{' to use multiple players!" text outside the { } brackets, since somehow I cannot disable Simba from using nested comments .
    Thanks! I've never used a patch file like that, is there a way to like automatically import it so it changes everything, rather than having to go through and change each part?

  15. #890
    Join Date
    Dec 2009
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MMK remember what i was saying about the GUI? still happening D:

    Load a playerlist and click on the first player in the list, notice its been replaced with the last one? D-=< but if you dont click it it wont replace it... wth?

  16. #891
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Thanks! I've never used a patch file like that, is there a way to like automatically import it so it changes everything, rather than having to go through and change each part?
    Yes there is :-). Create a file "SimbaPatch.patch" in the same dir as the form file, dump the contents of my post in there. Right click the patch file -> tortoiseSVN -> apply patch -> Select the form file in that lil popup -> press save
    Verrekte Koekwous

  17. #892
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by mastaraymond View Post
    Yes there is :-). Create a file "SimbaPatch.patch" in the same dir as the form file, dump the contents of my post in there. Right click the patch file -> tortoiseSVN -> apply patch -> Select the form file in that lil popup -> press save
    Is there an easy way to create such patch file?
    There used to be something meaningful here.

  18. #893
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Is there an easy way to create such patch file?
    Yes. Edit a file that is in your SVN repos, then right click the file -> TortoiseSVN -> Create Patch
    Verrekte Koekwous

  19. #894
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Mrbanana View Post
    MMK remember what i was saying about the GUI? still happening D:

    Load a playerlist and click on the first player in the list, notice its been replaced with the last one? D-=< but if you dont click it it wont replace it... wth?
    Hmm okay, I'll look into that right now.

    Quote Originally Posted by mastaraymond View Post
    Yes there is :-). Create a file "SimbaPatch.patch" in the same dir as the form file, dump the contents of my post in there. Right click the patch file -> tortoiseSVN -> apply patch -> Select the form file in that lil popup -> press save
    Alrighty then, thanks!

    Quote Originally Posted by mastaraymond View Post
    Yes. Edit a file that is in your SVN repos, then right click the file -> TortoiseSVN -> Create Patch
    You can also open Notepad, and save the file as a .patch.

    EDIT: Please update to revision 28!
    Last edited by Coh3n; 02-26-2010 at 07:29 PM.

  20. #895
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hi Coh3n,

    Sorry, can you point the right way here?

    You need the latest version of the Dev SVN
    Thanks

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  21. #896
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by twobac View Post
    Hi Coh3n,

    Sorry, can you point the right way here?



    Thanks
    http://villavu.com/forum/showthread.php?t=47714

    Coh3n's tutorial is good. I installed everything with it.
    There used to be something meaningful here.

  22. #897
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by twobac View Post
    I seem to have messed up...

    Line 14: [Error] (22423:1): Duplicate identifier 'SRLVersionNumber' in script C:\Users\twobac\Desktop\scarprerelease\includes\SR L\SRL\Core\Globals.scar

    I have run the SVN update on ScarPreRelease and it is at revision 80
    I have also downloaded the includes via scar?

    What do i need to do next?
    I have updated Dev SVN, as per the installation tutorial, and I am at revision 394. I have copied the files to the plugin directory, but I am still getting the Duplicate indenifier

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  23. #898
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by twobac View Post
    I have updated Dev SVN, as per the installation tutorial, and I am at revision 394. I have copied the files to the plugin directory, but I am still getting the Duplicate indenifier
    When the script comes up with the SRL Version or whatever. Delete it and try again.

  24. #899
    Join Date
    Mar 2008
    Location
    USA
    Posts
    152
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I searched this thread but found nothing about the problem I seem to be having.. I try to start the script and I get this:

    Line 270: [Error] (15594:1): Invalid number of parameters in script C:\Users\*\Desktop\scarprerelease\includes\SRL\SRL \Core\AntiRandoms\Sandwich.scar
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly!- Put this in your sig!

  25. #900
    Join Date
    Dec 2009
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by spart300 View Post
    I searched this thread but found nothing about the problem I seem to be having.. I try to start the script and I get this:

    Line 270: [Error] (15594:1): Invalid number of parameters in script C:\Users\*\Desktop\scarprerelease\includes\SRL\SRL \Core\AntiRandoms\Sandwich.scar


    I am pritty sure this has nothing to do with the script, try updating SRL, or everything...

Page 36 of 100 FirstFirst ... 2634353637384686 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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