[Delphi - Source]BMD2TXT - Gate.BMD < - > Gate.txt converter

Results 1 to 14 of 14
  1. #1
    NN - Nord & Noob mauka is offline
    MemberRank
    Jul 2004 Join Date
    1,735Posts

    cool [Delphi - Source]BMD2TXT - Gate.BMD < - > Gate.txt converter


    BMD2TXT tool, converts Gate.bmd to Gate.txt and Gate.txt to Gate.bmd

    -> Gate.bmd to Gate.txt
    -> Gate.txt to Gate.bmd

    Gate.bmd struct:
    Code:
    unit uBmd;
    
    interface
    
    const
     GATE_BLOCK = $E;
     GATE_BLOCK_LENGHT = $200;
    
     GATE_FORMAT = '%d'+#9+'%d'+#9+'%d'+#9+'%d'+#9+'%d'+#9+'%d'+#9+'%d'+#9+'%d'+#9+'%d'+#9+'%d';
     GATE_HDR   = '//===============================================================';
     GATE_HDR_1 = '//Info: Gate.txt';
     GATE_HDR_2 = '//Generated with BMD2TXT';
     GATE_HDR_3 = '//Gate	Flag	Map	X1	Y1	X2	Y2	Target	Dir	Req. Level';
    
    
    type
      TGateBMD = packed record
       Flag: Byte;
       Map_ID: Byte;
       MinX, MinY: Byte;
       MaxX, MaxY: Byte;
       Target: Word;
       Direction: Byte;
       ReqLevel: Word;
       MaxLevel: Word;
      end;
      PGateBMD = ^TGateBMD;
    
      TGate = array [0 .. GATE_BLOCK -1] of Byte;
      PGate = TGate;
    
      TGateInfo  = packed record
       Info: array [0 .. GATE_BLOCK_LENGHT -1] of TGate;
      end;
      PGateInfo = ^TGateInfo;
    
      TArrayGateBMD = array of TGateBMD;
    
    implementation
    
    end.
    In atachament is latest and finall version of Porject binnary and source files!

    Note.
    This tool was coded and reversed from current GMO client (S6 ep2 r ep3)

    All converted files are in same folder with binnary
    Attached Files Attached Files
    Last edited by mauka; 04-01-12 at 07:21 PM.


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

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    Added:
    Code:
      TGateBMD = packed record
       Flag: Byte;
       Map_ID: Byte;
       MinX, MinY: Byte;
       MaxX, MaxY: Byte;
       Target: Word;     // points to Gate ID ;)
       Direction: Byte;
       ReqLevel: Word;
       MaxLevel: Word;   
      end;
      PGateBMD = ^TGateBMD

    Gate.bmd struc, thanks to Ema Leto for sharing and [RCZ]ShadowKing to make it crystal clear (:




    -----------------------------------------------------------------------------------
    Since im layze update source...
    Some guys love to do "SPACE" char btw values instead of "TAB" and this will crash app here:
    Code:
     Result.Info[p][0]           := StrToInt(Split[1]);
    with reason: Not valid integer bla bla...

    To fix it we goto:
    Code:
     Split.DelimitedText := Sl[i];
    and do comething like antiSPACEnoob:
    Code:
     Split.DelimitedText := StringReplace(Sl[i],' ', #9, [rfReplaceAll]);
    and replace all "SPACE" chars with "TAB" ;)
    Last edited by mauka; 04-01-12 at 06:54 PM.

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

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    Flag, Map, X, Y, X2, Y2, Target, Dir, MinLevel & MaxLevel.

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

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    gate.bmd struct len is 13 bytes ;)
    8 ( the one u posted )of it can be found in gate.txt
    Attached Thumbnails Attached Thumbnails untitled.png  

  5. #5
    Kingdom of Shadows [RCZ]ShadowKing is offline
    MemberRank
    Jul 2007 Join Date
    1,644Posts

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    Flag - BYTE
    Map - BYTE
    X - BYTE
    Y - BYTE
    X2 - BYTE
    Y2 - BYTE
    Target - WORD(2 BYTES)
    Dir - BYTE
    MinLevel - WORD(2 BYTES)
    MaxLevel - WORD(2 BYTES)

    Total of 13 BYTES.(values from Ema Leto's post)
    Last edited by [RCZ]ShadowKing; 04-01-12 at 01:13 PM.

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

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    oh.. true level is word
    Code:
      TGateBMD = packed record
       Flag: Byte;
       Map_ID: Byte;
       MinX, MinY: Byte;
       MaxX, MaxY: Byte;
       Target: Word;     // points to Gate ID ;)
       Direction: Byte;
       ReqLevel: Word;
       MaxLevel: Word;   
      end;
      PGateBMD = ^TGateBMD
    Then why MaxLevel is always 144, 94 or 220 0_o no logic!

    PS. Binary and Source of project updated xD
    Last edited by mauka; 04-01-12 at 10:48 AM.

  7. #7
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    mauka: you can made a soft how: pentium tools, for open, edit, save and convert all mu online client data files?

    ps: I'm specially interesting in: smd to bmd convert with animation's (like: bows or wings).

  8. #8
    Kingdom of Shadows [RCZ]ShadowKing is offline
    MemberRank
    Jul 2007 Join Date
    1,644Posts

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    Quote Originally Posted by mauka View Post
    oh.. true level is word
    Code:
      TGateBMD = packed record
       Flag: Byte;
       Map_ID: Byte;
       MinX, MinY: Byte;
       MaxX, MaxY: Byte;
       Target: Word;     // points to Gate ID ;)
       Direction: Byte;
       ReqLevel: Word;
       MaxLevel: Word;   
      end;
      PGateBMD = ^TGateBMD
    Then why MaxLevel is always 144, 94 or 220 0_o no logic!

    PS. Binary and Source of project updated xD
    They made this in advance so if anytime they will add a gate that require a higher access level they don't need to change structs and convert files.

  9. #9
    Everything is a joke. duracel is offline
    MemberRank
    Sep 2005 Join Date
    442Posts

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    Maybe if you can, could check also mix.bmd, would be nice to be able to edit and add new mixes in that file, i know there is magichandeditor, but doesn't work to add new mixes with it.

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

    Re: [Delphi - Source]BMD2TXT - Gate.BMD to Gate.txt converter

    Will be great to know how contain new bmds like:
    ArcaBattleBootyMix
    AttributeVariation
    HelpData
    ItemLevelTooltip
    ItemTooltip
    ItemTooltipText
    MapCharacters
    MasterSkillTooltip
    MasterSkillTreeData
    PentagramJewelOptionValue
    PentagramMixNeedSource
    PetData

    a lot of bmd .

    Or MoveReq. i think have option to made Battle Zone.

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

    Re: [Delphi - Source]BMD2TXT - Gate.BMD < - > Gate.txt converter

    BMD is easy.. at last for me, but the problem is in me, im to layze and bussy coding my GMO cheat xD

    Ps. this project is finished and wont be updated anymore, enjoy ;)

    Quote Originally Posted by Ema Leto View Post
    MoveReq. i think have option to made Battle Zone.
    I`we checked it a lill and looks like its contains "M" button move commands

  12. #12
    Kingdom of Shadows [RCZ]ShadowKing is offline
    MemberRank
    Jul 2007 Join Date
    1,644Posts

    Re: [Delphi - Source]BMD2TXT - Gate.BMD < - > Gate.txt converter

    Quote Originally Posted by mauka View Post
    BMD is easy.. at last for me, but the problem is in me, im to layze and bussy coding my GMO cheat xD

    Ps. this project is finished and wont be updated anymore, enjoy ;)


    I`we checked it a lill and looks like its contains "M" button move commands
    Do you reverse each value in main or just decode file and guess values?

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

    Re: [Delphi - Source]BMD2TXT - Gate.BMD < - > Gate.txt converter

    well first step is always same: decrypt file and looking on it try guess :))
    if not work start debug values

  14. #14
    Member BadOne is offline
    MemberRank
    May 2011 Join Date
    77Posts

    Re: [Delphi - Source]BMD2TXT - Gate.BMD < - > Gate.txt converter

    nice,thanks,works fine.



Advertisement