Results 1 to 19 of 19

Thread: Return of XIDX: with bug fixes and updates for M2TW.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Return of XIDX: with bug fixes and updates for M2TW.

    Update with the following bug fixes:

    Bugs
    • Fully zero out the buffers before using them, instead of just assigning '\0' to the first byte. This makes valgrind a bit happier (quieter), which is a good thing.
    • Fix a bug in sound packing code. A 1 had crept in where a 4 should have been. Ouch.
    • Some code cleanup to have less code in a few macro's.


    Misc
    • Generate statically linked binaries for Windows. This has the benefit of actually working if the user doesn't have the MinGW version of a couple of DLLs installed on his system (which is likely). The system I used for testing of the previous release masked the problem because these DLLs were present...
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  2. #2

    Default Re: Return of XIDX: with bug fixes and updates for M2TW.

    Minor update, containing a few miscellaneous fixes and decided to call it 1.0:
    • Fix bug in generated file names when extracting event packs caused by not dividing the log(position in the pack) by log(10). This ensures that when you list the files (dir, ls, find) they will appear in the same order as they should be placed in the pack because of how lexicographic sorting works. (Simplifies repacking.)
    • Fix version reporting.
    • Some minor improvements to the readme.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  3. #3

    Default Re: Return of XIDX: with bug fixes and updates for M2TW.

    Version 1.1 brings:

    Bugfixes
    Fix memory leak resulting from exit() in the usage info function.

    Misc
    Change naming conventions for binary blobs extracted from event (EVT) packs. Numbering now starts at zero for every "frame", rather than just at the beginning of the pack. This change would allow other tools to guess the event (bank) that corresponds to a given file name based on the number before the bin suffix.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  4. #4

    Default Re: Return of XIDX: with bug fixes and updates for M2TW.

    New version available.

    Bugfix
    Version 1.2 fixes a memory/file descriptor leak when opening archives with the wrong archive type flag. (For example specifying the -a flag for animations packs when trying to list the contents of a sound IDX/DAT pair.)
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  5. #5

    Default Re: Return of XIDX: with bug fixes and updates for M2TW.

    New version available:

    Bugfixes
    • Fix non-virtual destructors
    • Skip packing of EVT blobs which do not conform to the filename conventions used by XIDX.
    • Fix error messages when packing an EVT blob fails
    • Improve file name parsing of EVT blobs (no longer limited to files from the current directory).


    Feature
    • Add makefile flag to skip cross compilation (MinGW targets).


    Reminder: beware of the data folder
    XIDX rewrites paths so they are relative to the root of the mod (or installation if you do not use a mod folder), and it assumes that the "root" data directory is the last "data/" in the path. This is pretty much necessary to make packing work by default on Windows (unless you wish to try you hand at this sort of thing, but it does mean that your last "data/" must be the right "data/". Otherwise the path will be written to an invalid value. Example: "mods\EBII\data\sounds\data\SFX\effect.wav" would be rewritten to "data\SFX\effect.wav" instead of "data\sounds\data\SFX\effect.wav". So if the game tries to load "data\sounds\data\SFX\effect.wav" because that is what you put in your code, it would fail. Easy workaround: do not have data folders inside your data folder, at least not in the parts that you want to pack with XIDX.

    This message does not apply to packing events, since the tool does not store filenames for those in generate IDX/DAT packs anyway. Note that for events you will want to sort filenames alphabetically so the filename convention for EVT blobs will guarantee that they appear in the right order. Example command for packing EVT blobs:
    Code:
    dir /S /A:-D /B /O:N "path/to/EVT/blobs/directory" "*.bin" | xidx -cbef "path/to/mods/my_mod/data/sounds/events"
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  6. #6

    Default Re: Return of XIDX: with bug fixes and updates for M2TW.

    Version 1.4 of XIDX is now available and it contains the following updates:

    Features
    • Add support for creating RTW event packs (add support for the RTW file version stamp)
    • Extended the Readme with a lot more information on how to correctly generate packs, in particular event packs.


    Fixes
    • Fix file version stamps for event packs (though the game seems to ignore them anyway)
    • Don't forget the Windows users: extend previous bug fix for sniffing out type numbers to paths with backslashes in them as well.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  7. #7

    Default Re: Return of XIDX: with bug fixes and updates for M2TW.

    Version 1.5 of XIDX is now available.

    Features
    • Add -B option for arbitrary suffix manipulation. The -b switch is now equivalent to using `-B bin'


    Fixes
    • Fix entry size in generated animation packs when using suffix manipulation
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO