Batch file to change all adm to text.

nanenjnanenj Posts: 150
edited November 2009 in Mod Showcase
This requires TLDAT from this thread: viewtopic.php?f=6&t=2903

Decompress Pak.zip in your torchlight folder, this will create a media folder and inside that will be all the torchlight data.

Copy TLDAT to your media folder, and the copy/paste the following code as decode.bat in the media folder.
for /f "delims=" %%a IN ('dir /s /b *.adm') do tldat "%%a"

Double click the bat file and after a short while all the .adm files should have plain text versions without the .adm extension. You can use any of these files as the basis for a mod :)

Wasn't sure if this went better here or in mod discussion.

Comments

  • HEY!!!!!!!!!!


    ...I think you just became my hero!


    Just want to let people know all these files will be released with the editor in plain text form as well. BUT THIS IS JUST FREAKIN' AWESOME!!
  • jamesLjamesL Posts: 3,568
    cool, very useful

    one little addition to the bat file
    for /f "delims=" %%a IN ('dir /s /b *.adm') do tldat "%%a"
    
    rem this makes a file called torchlight_dats.txt 
    rem in the user's folder
    rem and writes the location of all the dat files
    
    dir /s *.dat > %USERPROFILE%\torchlight_dats.txt 
    
    I don't have a sig
  • a...awesome :shock:

    I was just looking for something to do this.

    I think I love you.
    ~Benjamin Tomfoolery
    Website|Steam|XBL|PSN
    Truth, Justice, Freedom, Reasonably Priced Love, and a Hard Boiled Egg
  • Epitaph64Epitaph64 Posts: 128
    Wow, this should really up the pre-editor modding quite a bit! Thanks
  • MonTyMonTy Posts: 46
    Holy cow dude. Thank you!
  • Epic, thanks :D
    Be Just or Be Dead.
  • ConeyConey Posts: 105
    Some give this guy an internet! He clearly won it :D :D This is great :shock: :shock:
    I want more mods... And less whining... Get a grip people...
  • MiniverMiniver Posts: 161
    Holy F.

    Thanks.
  • AvenueAvenue Posts: 160
    nanenj wrote:
    This requires TLDAT from this thread: viewtopic.php?f=6&t=2903

    Decompress Pak.zip in your torchlight folder, this will create a media folder and inside that will be all the torchlight data.

    Copy TLDAT to your media folder, and the copy/paste the following code as decode.bat in the media folder.
    for /f "delims=" %%a IN ('dir /s /b *.adm') do tldat "%%a"
    

    Double click the bat file and after a short while all the .adm files should have plain text versions without the .adm extension. You can use any of these files as the basis for a mod :)

    Wasn't sure if this went better here or in mod discussion.
    Thanks, this is pretty useful.

    I downloaded the v2 mod of the cat so it would be bigger, but there's no change in size. I also tried to edit my Dog.DAT.adm and change the scale to 1.6 but there was also no change in size.
  • i cant get this to work i get up to the copy and paste the tldat.exe into my media folder and then after that idk what to do...
  • jamesLjamesL Posts: 3,568
    1: copy the pak.zip to your documents folder
    2: unzip that copy of the pak.zip, this will create a folder named pak
    3: copy tldat.exe into the pak folder
    4: open notepad
    5: paste this into notepad
    for /f "delims=" %%a IN ('dir /s /b *.adm') do tldat "%%a"
    dir /s *.dat > torchlight_dats.txt 
    
    6: save the file as make_dats.bat
    7: save it in the pak folder
    8: double click on make_dats.bat
    9: wait 3 minutes (more or less)
    10: open and read torchlight_dats.txt
    I don't have a sig
Sign In or Register to comment.