Changeset 443 for tools


Ignore:
Timestamp:
Apr 11, 2010, 11:48:39 AM (14 years ago)
Author:
george
Message:
  • Upraveno: Přepracována a vylepšena třídy DBC. Nově je formát sloupců určen pomocí pole párů indexů a typů. Doplněny optimalizace předvytvoření prázdných polí se známou velikostí.
  • Upraveno: Přepracován systém určování textových sloupců DBC souborů dle verzí klienta. Vytvořena samostatná tabulka GroupItemDBC obsahující sloupce id verze klienta, id položky GroupItem a index v DBC souboru. Odstraněny podobné údaje z ClientVersion. Upraven DBC import a export.
  • Přidáno: Další překladové skupiny z DBC souborů.
  • Upraveno: Export přepracován pro jednoduchost zpět na PHP pomalou variantu. Bude později přepracován a zoptimalizován.
  • Přidáno: Zobrazení času úpravy překladu.
Location:
tools/dbc_export
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/dbc_export/DBCExport.pas

    r414 r443  
    1111
    1212type
     13
    1314  { TDBCExport }
    1415  TDBCExport = class(TCustomApplication)
     
    121122  WriteLn('  -f --file        Source DBC file name');
    122123  WriteLn('  -n --newfile     New created DBC file name');
    123   WriteLn('  -c --coltypedef  DBC column type definition string (u - uint32, s - string)');
     124  WriteLn('  -c --coltypedef  DBC column type definition string (usage index1:type1, index2:type2,...)');
     125  WriteLn('                   where 0 - uint32, 1 - sint32, 2 - float, 3 - string, 4 - byte)');
    124126  WriteLn('  -d --display     Display DBC data');
    125127  WriteLn('  -q --sql_query   SQL select when entry is ID first column in dbc file and text1,text2... is texts columns');
  • tools/dbc_export/UDBC.pas

    r415 r443  
    1313
    1414type
    15   TDBCColumnType = (ctInt32, ctString, ctFloat);
     15  TDBCColumnType = (ctUInt32, ctSInt32, ctSingle, ctString, ctByte);
    1616
    1717  { TDBC }
     
    2626  public
    2727    Cells: array of array of Variant;
     28    ColumnFormat: array of TColumnType;
    2829    function DetectColumnType(Column: Integer): TDBCColumnType;
    2930    procedure LoadFromFile(FileName: string);
Note: See TracChangeset for help on using the changeset viewer.