Results 1 to 8 of 8

Thread: M2TW refuses to load any file from data/text

  1. #1

    Default M2TW refuses to load any file from data/text

    I've added some new units, and they work fine except the game wont load my export_units.txt from data/text and therefore I am getting the "unlocalised placement text" msg whenever I mouse-over the unit.

    I'm sure it's not loading the file because aswell as not giving me the text for new units, it isnt loading my text changes for existing units.

    Any ideas?

    Cheers

  2. #2
    Member Member KnightErrant's Avatar
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    458

    Default Re: M2TW refuses to load any file from data/text

    Do you have export_units.txt.strings.bin in the same directory?
    If so, delete the .strings.bin file to force the executable to
    recompile your export_units.txt file.

  3. #3

    Default Re: M2TW refuses to load any file from data/text

    No, the only files in data/text are my modified exports_units.txt and also a file called FactionIntroSubTitles.txt.strings.bin which is being generated and put into data/text every time I run M2TW.

    By the way, if I change my exportunits.txt to be called export_units.txt.strings.bin, and run the game, it seems to load the file incorrectly, and removes all the unit text in the game. So it seems like it will load the file: export_units.txt.strings.bin but not load the file export_units.txt.

    Is there a tool to compile export_units.txt to be a bin ?

    Cheers

  4. #4

    Default Re: M2TW refuses to load any file from data/text

    Finally got it working, here's how:

    1) Made a new mod folder called alphadelta.

    2) Made the alphadelta.cfg and set:

    [features]
    mod = ad

    3) Made the folder data/text and inside that placed my modified export_units.txt.

    4) Loaded the game using a batch file to initiate the mod.

    5) Closed the game and copied both the export_units.txt.strings.bin and export_units.txt to my original M2TW/data/text folder.

    6) Started the game, and hey-presto! it works.

    For some reason the game requires both the matching txt and bin file for it work properlly.

    M2TW modding makes me

    Cheers and thanks for your help KnightErrant

  5. #5
    Member Member KnightErrant's Avatar
    Join Date
    Jan 2007
    Location
    Huntsville, Alabama USA
    Posts
    458

    Default Re: M2TW refuses to load any file from data/text

    Your new post caught me just as I was replying to your
    previous. Glad you got it working.

  6. #6

    Default Re: M2TW refuses to load any file from data/text

    Sorry, number 2 should say:

    [features]
    mod = alphadelta

    Number 5 should say:

    Closed the game and copied both the newly created export_units.txt.strings.bin and export_units.txt to my original M2TW/data/text folder.

    Cheers

  7. #7
    Member Member Drákon's Avatar
    Join Date
    Aug 2004
    Location
    Finland
    Posts
    29

    Default Re: M2TW refuses to load any file from data/text

    I think I have another solution to solve the problem. Maybe slightly easier.

    Just create an empty .string.bin file (with notepad for example) and put it in your /data/text folder with the modified .txt file.

    For example, if you have edited and modified
    export_ancillaries.txt
    and export_units.txt
    Add empty export_ancillaries.txt.strings.bin
    and export_units.txt.strings.bin in the same folder.

    Start the game: M2TW will somehow rebuild the .txt.strings.bin files according to your modified .txt files and your changes will apply properly.

    :)

  8. #8
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: M2TW refuses to load any file from data/text

    This thread is eight months old, please don't go around digging out old long-dead threads

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