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
by 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!
-
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
by 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
Re: Branching for another card game
by 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.
cacheDir=
cardPicsDir=
Then you can have several installations of Forge existing concurrently, each looking for the user data and cache data in separate locations.
-
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
by schnautzr » 28 Aug 2014, 23:17
Thanks, rikimbo! No wonder I couldn't find it in the code!
-
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
by 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!
-
schnautzr - Posts: 106
- Joined: 23 Aug 2012, 01:13
- Location: UTC -6/-5
- Has thanked: 27 times
- Been thanked: 7 times
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 103 guests