It is currently 16 May 2025, 21:04
   
Text Size

Portable Forge Support...

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Portable Forge Support...

Postby noian » 09 Sep 2013, 03:36

So I know that some recent versions of Forge switched to saving image pictures on the local machine, which is good for upgrading versions, but not that great if I just want to keep everything on an external Hard Drive. It's also VERY annoying when I have dual boot system of XP (64 bit)/Win7 (Yes, some games actually run better on WinXP than Win7, don't ask me why). Will it be possible to add in an option to support the old method of file management in a future version?
noian
 
Posts: 38
Joined: 22 Dec 2010, 07:14
Has thanked: 1 time
Been thanked: 1 time

Re: Portable Forge Support...

Postby moomarc » 09 Sep 2013, 06:41

There's no need to support the old method. Just check your Forge installation folder for forge.profile.properties.example and remove the .example from the name. Open it in any text editing program and you can specify a folder for userDir, cacheDir and cardPicsDir. You can also specify set folder names. All lines in the file beginning with a hash (#) can be deleted or ignored as they are just there to explain each function.

Using this file you could migrate all your user data and pics to a folder named ForgeCommonData and either keep it in a commonly accessible location or in the Forge directory itself. In future releases you just need to copy this file to the new release.

My profile uses the following as an example:
userDir=F:/Personal/CardForge/ForgeCommon/User
cacheDir=F:/Personal/CardForge/ForgeCommon/Cache
cardPicsDir=
(I left the cardPicsDir unspecified so it uses the default <the cacheDir defined above>/pics/cards/)

Hope that helps!
Using this method you could also store the data in your
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Portable Forge Support...

Postby neurodrjoshua » 11 Sep 2013, 00:28

I made the forge.profile.properties file with the following:

userDir=C:/Documents/forge-1.4.7/Magic/user
cacheDir=C:/Documents/forge-1.4.7/Magic/cache
cardPicsDir=

These are the only lines on the file and it still sends the files to default app data, etc folders. Is there something I am missing in the file?

As a side note I am able to run Forge using jportable from a usb drive. The forge.profile.properties doesn't work for that either.
neurodrjoshua
 
Posts: 8
Joined: 11 Sep 2013, 00:23
Has thanked: 0 time
Been thanked: 0 time

Re: Portable Forge Support...

Postby neurodrjoshua » 11 Sep 2013, 15:32

I figured out the problem. When saving the forge.profile.properties using windows notepad it saved it with the properties extension effectively making the file name: forge.profile.properties.properties. I changed the name just to forge.profile while still maintaining the properties extension and it worked fine. Now I have 1.4.7 running from a usb drive that can run on any pc and saves all of my data.
neurodrjoshua
 
Posts: 8
Joined: 11 Sep 2013, 00:23
Has thanked: 0 time
Been thanked: 0 time

Re: Portable Forge Support...

Postby moomarc » 12 Sep 2013, 07:47

I have my file extensions visible so never encountered that problem, so I'm glad you managed to sort it out.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 44 guests


Who is online

In total there are 44 users online :: 0 registered, 0 hidden and 44 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 44 guests

Login Form