my adm <-> dat converter

Forum for discussing the Torchlight mod toolset.

Re: my adm <-> dat converter

Postby dengus » Mon Nov 02, 2009 9:13 am

theduke wrote:
mysteriono wrote:it just flashes for a sec and closes when i try to use it, any help?


having the same issue, windows 7 ultimate


That's because it's a console application, nothing is supposed to happen when you start it with no parameters. Instead, right click an .adm file, go Open With -> Choose Default Program -> Browse and browse to tldat.exe. Then double click the .adm file and it'll create a .dat next to it.
dengus
 
Posts: 22
Joined: Fri Oct 30, 2009 11:10 am

Re: my adm <-> dat converter

Postby theduke » Mon Nov 02, 2009 10:17 am

my issue was i was dragging it to the .exe from the zip file. when i take it from the zip, to desktop, then to the .exe, it works fine.
theduke
 
Posts: 113
Joined: Sun Jun 14, 2009 7:01 pm

Re: my adm <-> dat converter

Postby Aridale » Mon Nov 02, 2009 1:36 pm

mysteriono wrote:it just flashes for a sec and closes when i try to use it, any help?


The easiest way to use it is to put the exe file in your torchlight folder with the main game exe. Then make a short cut to it in the same folder and move that shortcut into your media folder where ever the files you need to convert are. Then just drag those files to the shortcut and itll convert em
Aridale Noblebrook Belmont
User avatar
Aridale
 
Posts: 41
Joined: Sat Oct 31, 2009 10:47 pm

Re: my adm <-> dat converter

Postby BilbyCoder » Mon Nov 02, 2009 1:39 pm

mysteriono wrote:it just flashes for a sec and closes when i try to use it, any help?


Just making sure that people who encounter this problem realise that this is a command line program, there isn't a gui. If you just double clikc on the .exe file it will flash up the console then close as it doesn't know what file it's supposed to work on.
User avatar
BilbyCoder
 
Posts: 153
Joined: Mon Jun 29, 2009 1:16 am

Re: my adm <-> dat converter

Postby mysteriono » Mon Nov 02, 2009 1:47 pm

dengus wrote:
theduke wrote:
mysteriono wrote:it just flashes for a sec and closes when i try to use it, any help?


having the same issue, windows 7 ultimate


That's because it's a console application, nothing is supposed to happen when you start it with no parameters. Instead, right click an .adm file, go Open With -> Choose Default Program -> Browse and browse to tldat.exe. Then double click the .adm file and it'll create a .dat next to it.


did this and it still flashes for a sec and doesnt convert the file
mysteriono
 
Posts: 6
Joined: Sun Nov 01, 2009 8:49 pm

Re: my adm <-> dat converter

Postby LinkD » Wed Nov 04, 2009 9:04 pm

could you be more clear in your main post, i had no idea what you were talking about when i read it and just accidently found out how to do it

if you guys are still confused, just drag the .adm file onto the .exe file you downloaded, and a new .dat file should be auto created in that same folder
LinkD
 
Posts: 18
Joined: Tue Oct 27, 2009 3:21 pm

Re: my adm <-> dat converter

Postby Lenor » Fri Nov 06, 2009 4:28 am

Thanks for this handy tool :?
User avatar
Lenor
 
Posts: 120
Joined: Tue Oct 27, 2009 7:20 am
Location: Romania

Re: my adm <-> dat converter

Postby Avenue » Sun Nov 08, 2009 1:05 pm

This is amazing dengus, I'll be sure to credit you whenever I use this nifty tool.
User avatar
Avenue
 
Posts: 141
Joined: Fri Oct 30, 2009 3:36 pm
Location: Tamaulipas, Mexico

Re: my adm <-> dat converter

Postby LonZealot » Mon Nov 09, 2009 12:22 pm

dengus wrote:
theduke wrote:
mysteriono wrote:"it just flashes for a sec and closes when i try to use it, any help?


having the same issue, windows 7 ultimate


That's because it's a console application, nothing is supposed to happen when you start it with no parameters. Instead, right click an .adm file, go Open With -> Choose Default Program -> Browse and browse to tldat.exe. Then double click the .adm file and it'll create a .dat next to it.


did this and it still flashes for a sec and doesnt convert the file"

I have got the same problem, Windows Vista 64-bit here.
LonZealot
 
Posts: 4
Joined: Sat Oct 24, 2009 4:14 pm

Re: my adm <-> dat converter

Postby Aku » Wed Mar 31, 2010 1:59 pm

Alright, for those who are getting problems with the console window appearing and disappearing, it's not the app's fault. Works just fine.

As for those who (like me) have a LOT of .adm files to open and who don't want to open them one by one, I decided to tackle the problem myself.

I tried to make heads or tails of the C++ code, but short variable names confused me, so I decided to take the easy way out instead: The good old batch file.

Create a new text file and rename it <whatever>.bat. Copy-paste this code into it:

@ECHO off
for %%n in (dir *.adm) DO "%appdata%\runic games\Torchlight\converter\tldat.exe" %%n

Put it in the same directory as the .adm files you want to convert. The .dat files will be in the same directory (tested).

I've only tried this out on Windows 7. Vista should work, dunno about xp (I don't think %appdata% works in xp), in which case just replace the pathname to wherever you've put the converter.

Oh yeah, this assumes you put the converter in %appdata%\runic games\Torchlight\converter\, for those who can't figure it out. Just edit it if you don't feel like moving that incredibly heavy 132 kb exe file..... ;)
Aku
 
Posts: 1
Joined: Wed Mar 31, 2010 1:50 pm

Re: my adm <-> dat converter

Postby jamesL » Wed Mar 31, 2010 2:18 pm

there's no reason for the converter
just download the editor, TorchEd, and all the .data files are already there
this converter was released before the editor was, but now that we have the editor we don't need it anymore
I don't have a sig
jamesL
 
Posts: 3356
Joined: Fri Jun 05, 2009 7:01 pm

Re: my adm <-> dat converter

Postby Ouroboros » Fri Apr 02, 2010 9:24 pm

Aku wrote:Alright, for those who are getting problems with the console window appearing and disappearing, it's not the app's fault. Works just fine.

As for those who (like me) have a LOT of .adm files to open and who don't want to open them one by one, I decided to tackle the problem myself.

I tried to make heads or tails of the C++ code, but short variable names confused me, so I decided to take the easy way out instead: The good old batch file.

Create a new text file and rename it <whatever>.bat. Copy-paste this code into it:

@ECHO off
for %%n in (dir *.adm) DO "%appdata%\runic games\Torchlight\converter\tldat.exe" %%n

Put it in the same directory as the .adm files you want to convert. The .dat files will be in the same directory (tested).

I've only tried this out on Windows 7. Vista should work, dunno about xp (I don't think %appdata% works in xp), in which case just replace the pathname to wherever you've put the converter.

Oh yeah, this assumes you put the converter in %appdata%\runic games\Torchlight\converter\, for those who can't figure it out. Just edit it if you don't feel like moving that incredibly heavy 132 kb exe file..... ;)


for /f "delims=" %%a IN ('dir /s /b *.adm') do tldat "%%a"

that's the batch file I use on XP (though it only gets run once per TL update), just put the batch file, tldat.exe and main.cpp into the folder you want to convert and it converts that folder and all subfolders (putting all the .dats with the relevant .dat.adms) - convenient for me because I have my own media folder in a torchlight folder in my documents, of course if you want tldat.exe to be in a certain place you can just replace 'tldat' with the file path in " " s.
Also, %appdata% does work in XP, it's generally the easiest/fastest way to get to the TL appdata folder and mods/saves subfolders before you make a shortcut to them.
Ouroboros
 
Posts: 194
Joined: Tue Dec 15, 2009 10:28 am

Re: my adm <-> dat converter

Postby Kazaam » Fri Sep 21, 2012 4:01 am

Hello! I tried to use tldat to convert DAT files of Torchlight 2 but it seems to be broken. Any ideas?
User avatar
Kazaam
 
Posts: 40
Joined: Wed Oct 28, 2009 5:04 am

Previous

Return to Torchlight Mod Discussion

Who is online

Users browsing this forum: No registered users and 3 guests