It is currently 25 Apr 2024, 13:15
   
Text Size

Branching for another card game

Post MTG Forge Related Programming Questions Here

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

Branching for another card game

Postby schnautzr » 26 Aug 2014, 22:09

I'd like to make a branch to handle the trading card game ''Redemption'', and also possibly for ''Digimon Hyper Colosseum''. However, I'm having troubles figuring out where the code is that tells the program where to look for my %APPDATA%, so I've had to develop on a different Windows profile-- very inconvenient. Can someone tell me where that code is? Thanks!
User avatar
schnautzr
 
Posts: 106
Joined: 23 Aug 2012, 01:13
Location: UTC -6/-5
Has thanked: 27 times
Been thanked: 7 times

Re: Branching for another card game

Postby timmermac » 28 Aug 2014, 05:17

Forge is set up for Magic only. You would probably have to code for a different game from scratch.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Branching for another card game

Postby rikimbo » 28 Aug 2014, 13:36

If I understand what you're asking correctly, you can actually change where forge looks for the things it normally finds in %APPDATA%/Forge without changing anything in the code. You can rename the "forge.profile.properties.example" file to "forge.profile.properties", edit it in a text editor and set values for these fields:

cacheDir=
cardPicsDir=

Then you can have several installations of Forge existing concurrently, each looking for the user data and cache data in separate locations.
User avatar
rikimbo
 
Posts: 52
Joined: 25 Mar 2014, 14:15
Location: Winnipeg
Has thanked: 10 times
Been thanked: 7 times

Re: Branching for another card game

Postby schnautzr » 28 Aug 2014, 23:17

Thanks, rikimbo! No wonder I couldn't find it in the code!
User avatar
schnautzr
 
Posts: 106
Joined: 23 Aug 2012, 01:13
Location: UTC -6/-5
Has thanked: 27 times
Been thanked: 7 times

Re: Branching for another card game

Postby schnautzr » 29 Aug 2014, 15:33

So far, so good! It is working wonderfully. Last year I started on a branch to handle both Forge and Redemption (which was coming along great) but gave up when I accidentally screwed up my existing Forge installation a few weeks ago. This should keep that from happening again!
User avatar
schnautzr
 
Posts: 106
Joined: 23 Aug 2012, 01:13
Location: UTC -6/-5
Has thanked: 27 times
Been thanked: 7 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 70 guests


Who is online

In total there are 70 users online :: 0 registered, 0 hidden and 70 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 70 guests

Login Form