ssjkakaroto Posted June 26, 2006 Report Posted June 26, 2006 hello, last week i posted a issue i was having when using relative paths with utorrent (link), which was fixed by simply changing .\ and ..\ to ./ and ../ but some minor issues remain.i have a partition dedicated to bittorrent with the following directory structure:-drive's root -complete\ -incomplete\ -torrents\ -complete\ -incomplete\ -utorrent\if the partition letter changes (eg. from F: to G:) all the torrents in the list give me a error saying µTorrent cannot find the torrent at F:\utorrent\../torrents/incomplete/file.torrentif the letter changes back from G: to F: everything works fine again.this happened to me when i reformatted my HD and the drive letters changed.also double clicking a file/torrent no longer works, it gives me file not found/opens up C:\so the way it is now µTorrent is not completely portable cause if i put everything on a usb drive and the drive letter changes between computers the torrents will not resume.it would be great if µTorrent was completely independent of drive letters.thx
McoreD Posted September 11, 2006 Report Posted September 11, 2006 You were right Ultima. It was indeed requested earlier. Really it would be nice if resume.dat doesn't save torrent info with absolute paths. I have µTorrent in G:\Standalone\µTorrent. When I rebooted to Vista, where G:\ is now C:\ drive, µTorrent errored out saying it cannot open G:\Standalone\µTorrent\<Torrent_file_name_here>.I then had to open resume.dat in Notepad, replace all G:\ to C:\ and force recheck every torrent file via µTorrent to get things working back as usual. This is not real portability is it?
ssjkakaroto Posted September 11, 2006 Author Report Posted September 11, 2006 McoreD: I didn't know that this could be fixed by modifying resume.dat, thx for the tip.
McoreD Posted September 11, 2006 Report Posted September 11, 2006 Pleasure ssjkakaroto. It would have been okay if it's done by simply changing resume.dat. You have to then actually force-recheck each file.
ssjkakaroto Posted September 11, 2006 Author Report Posted September 11, 2006 Maybe if you change resume.dat before opening µTorrent on another system (before getting the error that the file doesn't exist) you won't need to recheck all files. Have you tried that?
McoreD Posted September 12, 2006 Report Posted September 12, 2006 Think that does the trick. I moved the whole µTorrent to H:\ because H:\ is the same letter for Vista and XP. For the torrents that I did recheck hash, I didn't have to redo in Vista. Another note: since resume.dat is a Binary file rather than a XML Serializer file, we have another limitation. The number of charactors you replace should be same as before, for example, G:\Standalone\µTorrent to H:\Standalone\µTorrent. You cannot do G:\Standalone to H:\Users\McoreD\My Documents\Applications\µTorrent. It is the same limiatation with Azureus. The only plaintext friendly settings file I have seen is the xml from BitComet.
ssjkakaroto Posted September 12, 2006 Author Report Posted September 12, 2006 ic, in my case that's not a problem because I only change drive letters, but thx for the heads up.since resume.dat is a Binary file rather than a XML Serializer fileMaybe we should have another Feature request here?
kulmegil Posted September 14, 2006 Report Posted September 14, 2006 utorrent is quite portable but not perfect.- start with moving settings to utorrent.exe dir- just DON'T use "store .torrent files in:" option, and let the ut store .torrent where the main executable is (this makes quite a mess) :/- you can put relative paths in "put new downloads in:" and "move completed downloads to:"so far works great.(and of course if you chose manually download location it won't be relative path)EDIT: THIS WON'T WORK... ut has become unportable after few days putting absolute paths in resume.dat, and lost few relative download locations
ssjkakaroto Posted September 15, 2006 Author Report Posted September 15, 2006 - start with moving settings to utorrent.exe dirthat's quite obvious and it's already in the FAQ- just DON'T use "store .torrent files in:" option, and let the ut store .torrent where the main executable is (this makes quite a mess)it's a BIG mess, not worth IMO- you can put relative paths in "put new downloads in:" and "move completed downloads to:"take a look at the thread on my first post
kulmegil Posted September 15, 2006 Report Posted September 15, 2006 It's worth if you want to have ut portable. It works if you change drive letters.No you probably won't archive the dir. structure like you showed in the first post. Al least not for stored .torrent files, but complete/incomplete files should go where you want them. I tried to put relative paths for "store .torrent files in:" and it worked for some time. But then it started to f*** up after win reinstall.ok, I only tried with putting files inside ut folder (.\incoming and .\download) and not outside, but I think it should work.
ssjkakaroto Posted September 15, 2006 Author Report Posted September 15, 2006 It's as McoreD said, resume.dat saves the drive's letter, for that reason alone you can't change the drive's letter without problems.ok, I only tried with putting files inside ut folder (.\incoming and .\download) and not outside, but I think it should work.Did you try to change the drive's letter with this configuration?
kulmegil Posted September 17, 2006 Report Posted September 17, 2006 Yeah, it was working fine and ut was saving absolute paths to resume.datI'm 100% sure because i moved it between drives a few times (for testing) and it worked!...until today. I see ut has suddenly put absolute paths in resume.dat (fot .torrent files at least) and I stuck up at with ut at my current location. Really strange... looks like it's not portable at the end.So this topic IS just a Feature Request after all PS... I think I will try 1 more time later, but will put ".\" fot store .torrent location. Still torrent files will be where main executable is unfortunately.
kulmegil Posted September 18, 2006 Report Posted September 18, 2006 [update]It doesn't work.Relative paths looks OK for incoming and downloaded files.For .torrent files path... ut will add absolute path to resume.dat, usually after second or third run (it should work if he wouldn't and if you chose ut dir for storring .torrent files)Ut currently is not portable, but i think with a bit of fixing it can done (I'll be looking for it). As for those who really want ut portable... maybe some workaround, like using win subst command for example (I don't know if subst req. admin login?)
ssjkakaroto Posted September 18, 2006 Author Report Posted September 18, 2006 Also a fix for the .\ -> ./ and double-click issues would be very welcomed.
yuripave Posted September 29, 2006 Report Posted September 29, 2006 For the vista and xp which vista partition original is G: in xp and change to C: when you boot to vista,i have a workaroundLets start:Vista has a new command call mklink, try run "mklink /?" without quote in cmd.exe for more explaination. mklink will help u to create a symbol link, which looks like a shortcut, but it acts as a virutal folder, instead of a redirect shortcut in xpIn my case, "C:\Documents and Settings\<yourusername>\Application Data\uTorrent" store all the settings including resume.dat and torrents in this folder. In vista, the path will be "C:\Users\<yourusername>\AppData\Roaming\uTorrent"Then i create a symbol link in vista:mklink /d "C:\Users\<yourusername>\AppData\Roaming\uTorrent" "C:\Documents and Settings\<yourusername>\Application Data\uTorrent"notice:first /d tells mklink to create symbol link folder instead of file which is default action, second is ...Roaming\uTorrent folder must not exist before creating a symbol folderand don't worry about the torrents location because microsoft has made hidden symbol link between "Users\" and "Document and Settings", also "AppData\Roaming\uTorrent" and "Application Data\", not sure about it because when I install build 5728 my vista partition did not change to C: instead of staying as G: , so I set my torrent location to "C:\Documents and Settings\<yourusername>\Application Data\uTorrent", so that i can resume the downloads Done! If you want to set the relative download location, easy by using symbol linkIn my case - mklink /d "G:\downloads" "C:\downloads"If you understand the mklink you can make use of it and apply to other software, such as my firefox profiles, foobar playlistHope can help you guys which running vista and xpp.s: is it appropriate to reply in this post?
Ultima Posted September 29, 2006 Report Posted September 29, 2006 It's fine, I guess, but it doesn't really help enough people, considering how most users are still running XP, and not Vista. In any case, the reason entire path changes don't work is because the number directly before the path indicates the length of the pathname. Meaning if you change the length, you have to change the number as well.
McoreD Posted November 1, 2006 Report Posted November 1, 2006 yuripave, great post, thanks. However: It still doesn't quite help µTorrent being completely portable until resume.dat uses relative paths, just like Ultima pointed out. A plain simple C file can be written with support for relative paths: FILE *fp; fp = fopen("test.txt", "r"); So I am not sure the necessary of µTorrent having to use absolute paths. I really hope ludde will take this into consideration and modify µTorrent accordingly.
brads77 Posted February 15, 2007 Report Posted February 15, 2007 I think this is a GREAT request!I hope that ALL the preferences (including the torrent locations) are set up for relative paths. I set up my USB with following structure: -drive's root -utorrent\ -complete\ -ongoing\ -torrents\ -complete\ -ongoing\ -resume\ -pending\If the paths are relative, I can swap my usb to any computer, launch uTorrent with a shortcut in the root, and all the files would resume automatically.The test for me is if I can give the drive to a friend who doesn't know a lot about this stuff, and just have them click the short-cut icon to launch the program on their home system...
McoreD Posted April 8, 2007 Report Posted April 8, 2007 Would like to bump this for Bram's attention.
Ultima Posted April 8, 2007 Report Posted April 8, 2007 Yah, I already brought it up with the new developers last week. alus said he'd look into it.
akaidiot Posted May 23, 2007 Report Posted May 23, 2007 I second this request!Primarily I'd like to be able to store the torrent files in a "torrents" sub-folder in the settings folder. Right now if I just enter torrents & nothing else in the Store .torrent files field it creates a "torrents" sub-folder in whichever place the settings files are(either in %appdata%/etc or same folder as utorrent.exe) and it works at first but randomly(it seams) it starts storing the torrent files in a "torrents" sub-folder in that torrents download location and you get "error: Can't open torrent file" because it can't find the .torrent file after a restart
tjobo Posted May 24, 2007 Report Posted May 24, 2007 Or maybe you could just have feature that, when the torrent gets "red", tries to find matching paths on other available drives.X:\path\to\mypath\my files\my data (Torrent gets red)µtorrents searches in on Y:\path\to\mypath\my files\my data --> No matchZ:\path\to\mypath\my files\my data --> Match (Torrent gets green happy face)Also if the torrent get moved within the same drive utorrent could do a search in the neighbour dirs (..\.. etc).Utorrent would be smart never search whole drives, just look through the most obvious locations.Of course this would be optional.
Lord Alderaan Posted June 21, 2007 Report Posted June 21, 2007 As far as I can see it is working now.I've been testing a bit and it seems to work here (relative to utorrent.exe) can anyone confirm because I've been telling people it works. And maybe we could expand the 'USB Key' bit to the FAQ if it does work now.If you don't set a "Store .torrents in:" folder (or any other folder for that matter) and just set the "Put new downloads in:" folder as ".\downloads" it seems to work. Off course all %appdata%\utorrent files should be moved next to the utorrent.exeAll torrents should of course be reloaded and should NOT be saved to a custom location (move the data of current torrents to the downloads subfolder in the utorrent.exe folder first so that it is automatically found when the torrent is readded). Preferably disable the "Always show dialog on manual add".In fact I'd start with a clean slate (place utorrent.exe on the usb key / portable HD and create a empty settings.dat next to it) to be sure current settings and torrents aren't the problem.The torrent path is indeed saved absolute but it seems utorrent has no problem locating the .torrent file if it is in the same folder as utorrent.exe and it updates the resume.dat with the new path (after closing µtorrent).The download path is saved relative (if added relative).My resume.dat after adding a torrent using a relative path (entering newline's after each : to make the info readable):d10:.fileguard40:6DF1D4D012EA67518D212686A91EB913CE9AF8D369:C:\Program Files\uTorrent\OOo_2.1.0_Win32Intel_install_ga.exe.torrentd8:added_oni1182431961e6:blocksl6:¶ e9:blocksizei16384e6:cachedi0e7:caption35:OOo_2.1.0_Win32Intel_install_ga.exe12:completed_oni0e3:dhti0e10:downloadedi16384e9:downspeedi0e9:hashfailsi0e4:have53:hÐ'è8ÿÿÿÿÿÿÿïÿPä†SÀŸ 'B Ð!Ú7cÛ-,ÌDSyQÀ„eÒè4:info20:ðzé[Â\%…è÷½Z\‹.¯ô5:movedi0e5:orderi1e21:override_seedsettingsi0e4:path47:.\downloads\OOo_2.1.0_Win32Intel_install_ga.exe5:peers72:Œ;®H"'ÁûGÖÎ"‹ÎÁá*Õ_RÔB…¥í‚ê"ŒÎÁáÇ Zp9¶0pFá%‹ÎÁá£Y‚6ïÜ£Y‚4:prio1:5:prio2i1e7:runtimei18e8:seedtimei0e7:startedi2e9:superseedi0e4:timei1182432296e11:trackermodei1e8:trackersll45:http://borft.student.utwente.nl:6969/announce53:http://core-tracker.enlist-a-distro.net:9800/announce49:http://core-tracker.depthstrike.com:9800/announce35:http://www.ooodev.org:6969/announceee7:ulslotsi0e8:uploadedi0e7:upspeedi0e5:validi1e7:visiblei1e12:wanted_ratioi1500e15:wanted_seedtimei0e5:wastei0eee
ehwavrell Posted June 25, 2007 Report Posted June 25, 2007 awesome. i was gonna request something similar this, but now i wont. thanks. 15 1 1 1 1 1 0 0 00 0 0 0 0 0 0 0 0 0 0 1 1 2 3 3 3 3 4 4 5 6 6 6 7 7 8 8 9 0 1 1 2 3 01 +4+3+4+9+8+2+3+1+8+2+4+9+1+5+6+2+6+4+8+9+ 001 4*3=3+9 2*3=6 0001
Recommended Posts
Archived
This topic is now archived and is closed to further replies.