PortaTorch - A Torchlight 1 Portablizer - DonationCoder.com
Welcome Guest.   Make a donation to an author on the site August 02, 2015, 09:35:55 PM  *

Please login or register.
Or did you miss your validation email?

Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.

You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: PortaTorch - A Torchlight 1 Portablizer  (Read 1713 times)
Supporting Member
Posts: 138

see users location on a map View Profile Give some DonationCredits to this forum member
« on: October 05, 2012, 04:44:45 PM »

The short: AHK neophyte/non-programmers wonders if this project is doable in AutoHotKey without too much trouble.

Like many, I jump on any remotely interesting Humble Bundle and ended up with a copy of Torchlight for next to nothing. It's a decent game and I might play around with it a bit, but I'd like it even better if I could take it on a flash drive everywhere.

Torchlight doesn't run portably, and there is no option to do so. Instead, it uses the registry and profile folders. There are two approaches for me, as someone with no programming experience:

Approach 1: use and learn the PortableApps.com launcher to redirect the registry entries and profile folders to the portable drive. Technically cleaner, because it should only write to the portable drive, but a lot of work to learn a wonky format that may not result in a transferrable skill.

Approach 2: Approach 2: use and learn AHK methods to copy registry entries and profile folders between the PC and the portable drive. Not as clean, but perhaps a bit easier to do and with more community support. Also transferrable knowledge, as AHK is a more versatile tool.

My skill level: I can do hotkeys in AHK. I have no programming experience.

Approach 2 may proceed like this:
   - One script to unpack the stored profile to the current profile folder (incl. mods)
   - Same script unpacks the registry entries to the reg
   - Both of above overwrite anything that's already there
   - Run the game
   - Exit the game
   - Optional: Detect game exit
   - Repack the stored profile folder in portable drive
   - Delete stored profile folder
   - Repack registry entries
   - Delete registry entries

Based on what I know of AHK, this should be possible with the basic toolset. Even a basic GUI should be doable. But I don't really know what commands to rely on yet, or whether to farm this out to two or three scripts, or

Requirement: I'd like this to be portable, that is, it will run reliably on any Windows machine I use it with, regardless of drive letter assignment, and it will leave no trace behind when I'm done.
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.042s | Server load: 0.08 ]

Share on Facebook
submit to reddit