MuAtt Alpha Release 0.1 (test version)

Results 1 to 14 of 14
  1. #1
    Apprentice tevosouza is offline
    MemberRank
    Dec 2010 Join Date
    BrazilLocation
    6Posts

    config MuAtt Alpha Release 0.1 (test version)

    Hi,

    This is my first release on RZ

    Basically, this tool converts ATT to BMP or create an ATT from a BMP file.

    This tool is completely open-source and anyone can do changes.

    [Functions]
    Load / Save Encrypted Att File [ older versions / att with 65k]
    Convert any BMP file to ATT (only bitmaps with 256x256 on less)
    Load / Save Server Att Format (65k not encrypted)

    [Future Improvements]
    Exception Treatment (not have at now)
    Possibility to edit a att file (filters: remove all protected zones, add protected, and full editing of terrains)
    Terrains with 128k (newer clients)

    [Bugs]
    This is not a final version, please use it and report problens

    [Requeriments]
    .Net Framework 4.0 (I coded on Visual Studio 2010 ultimate)


    [Screenshots]




    [Special Thanks]
    mauka - crypto example
    rpgsky team svn site - 128k terrain

    Thanks
    Attached Files Attached Files


  2. #2
    SDK Ema Leto is offline
    MemberRank
    Feb 2009 Join Date
    Villa PueyrredLocation
    309Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    Nice, waiting 128k encrypted

  3. #3
    Account Upgraded | Title Enabled! [GM]Terrorian is offline
    MemberRank
    Jun 2008 Join Date
    D:\MuServer\Location
    277Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    Good Job...Keep going

  4. #4
    Proficient Member siksamees is offline
    MemberRank
    Sep 2011 Join Date
    165Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    its very useful. thanks. now im looking forward to some map editor ( that actualy works ) to create my own maps :]

  5. #5
    NN - Nord & Noob mauka is offline
    MemberRank
    Jul 2004 Join Date
    1,735Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    128k terrain is 100% same encdec crypt algo only loop goes for 65536 ;)

  6. #6
    Apprentice tevosouza is offline
    MemberRank
    Dec 2010 Join Date
    BrazilLocation
    6Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    Quote Originally Posted by mauka View Post
    128k terrain is 100% same encdec crypt algo only loop goes for 65536 ;)
    Hi mauka san!

    i got it, but i have not had time to do =S

    thx a lot =)

  7. #7
    NN - Nord & Noob mauka is offline
    MemberRank
    Jul 2004 Join Date
    1,735Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    i cuted it out of my cheat:
    Code:
    procedure PrintMap(Data: PByteArray; var Img: TImage);
    function GetColor(Get: Byte):TColor;
    begin
     case Get of
      $00:Result := clGreen;
      $01:Result := clYellow;
      $04:Result := clNavy;
     else
      Result := clBlack;
     end;
    end;
    var
     i: Integer;
     x,y: Byte;
    begin
     x := 0;
     y := 0;
    
     for i := 0 to 256*256 -1 do
      begin
       Img.Canvas.Pixels[x,y] := GetColor(Data[i]);
       Inc(Y);
       if(Y = 0)then
        Inc(X);
      end;
    end;
    This Decrypt and prints all kind of maps 65, 128Kb
    Only changes in func

  8. #8
    Apprentice tevosouza is offline
    MemberRank
    Dec 2010 Join Date
    BrazilLocation
    6Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    Quote Originally Posted by mauka View Post
    i cuted it out of my cheat:
    Code:
    procedure PrintMap(Data: PByteArray; var Img: TImage);
    function GetColor(Get: Byte):TColor;
    begin
     case Get of
      $00:Result := clGreen;
      $01:Result := clYellow;
      $04:Result := clNavy;
     else
      Result := clBlack;
     end;
    end;
    var
     i: Integer;
     x,y: Byte;
    begin
     x := 0;
     y := 0;
    
     for i := 0 to 256*256 -1 do
      begin
       Img.Canvas.Pixels[x,y] := GetColor(Data[i]);
       Inc(Y);
       if(Y = 0)then
        Inc(X);
      end;
    end;
    This Decrypt and prints all kind of maps 65, 128Kb
    Only changes in func
    Oh!

    Thx lot for this piece of cake really good, but i dont use loops for rendering, i'm doing bulk copy of memory 'it is a little faster than loop'.

    i'm already decoded and drawed 128k att files, but i not released yet. if 'render' function have any memory access denied, application BooOOom..

    heheheh

    ps: sry, for my bad english (i'm still learning)

  9. #9
    Apprentice toanzzz is offline
    MemberRank
    May 2006 Join Date
    23Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    thanks alot this is very useful :)

  10. #10
    Account Upgraded | Title Enabled! boncha is offline
    MemberRank
    Oct 2008 Join Date
    254Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    can you make shopui.bmd editor
    no editor can edit it
    megic hand = crash !
    platinum tools = 150$

  11. #11
    Apprentice toanzzz is offline
    MemberRank
    May 2006 Join Date
    23Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    Sorry mauka, but your solution seem a bit hard to understand for me,
    so I try to make one myself and the result is here (in C# )
    PHP Code:
    private static Color GetColor(byte b)
    {
        switch (
    b)
        {
            case 
    0: return Color.Green;
            case 
    1: return Color.Yellow;
            case 
    4: return Color.Navy;
            default: return 
    Color.Black;
        }
    }
    private 
    Bitmap RenderX(byte[] buffer)
    {
        
    Bitmap bmp = new Bitmap(TERRAIN_MATRIX_HTERRAIN_MATRIX_V);
        if (
    TType == TerrainType.NewClient)
            for (
    int x 0256x++)
                for (
    int y 0256y++)
                    
    bmp.SetPixel(xyGetColor(buffer[256 2]));
        else
            for (
    int x 0256x++)
                for (
    int y 0256y++)
                    
    bmp.SetPixel(xyGetColor(buffer[256 y]));
            return 
    bmp;

    Last edited by toanzzz; 03-08-12 at 12:51 AM. Reason: fix spelling error

  12. #12
    TriForce Adm1n1strator HexaMaster is offline
    MemberRank
    Jun 2006 Join Date
    SlovakiaLocation
    222Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    Hello There,

    somebody can post updated binary / source for this excellent tool with 64=>128k client att conversion? Thnx ;)

  13. #13
    Enthusiast MagicBlad is offline
    MemberRank
    Oct 2006 Join Date
    PeruLocation
    33Posts

    Re: MuAtt Alpha Release 0.1 (test version)

    anyone have the 128k version?

    please...

  14. #14
    Twilight Mu Owner Shagoon is offline
    MemberRank
    Aug 2005 Join Date
    Bucharest, ROLocation
    1,001Posts

    Re: MuAtt Alpha Release 0.1 (test version)




Advertisement