Shandalar Clone
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Shandalar Clone
by Bog Wraith » 07 Sep 2010, 18:39
Thats why I'm probably at Level 6 after one duel!Rob Cashwalker wrote:It seems like this package contains Dennis' personal quest. His current monoblack deck, his 2200 card cardpool, bazaar upgrades, etc. (makes sense, since he just zipped it all up for demonstration)

I thought that Dennis was a bit generous with our starting card library!

'Twas in the bogs of Cannelbrae
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
-
Bog Wraith - Global Mod 1 (Ret)
- Posts: 1108
- Joined: 28 May 2008, 22:40
- Location: Shandalar
- Has thanked: 425 times
- Been thanked: 153 times
Re: Shandalar Clone
by DennisBergkamp » 07 Sep 2010, 18:43
Ahh, I think this error happens because of an incorrectly named deck. Does it by any chance contain spaces?After walking around a bit after restarting game. I came on the Moor. Just as I was entering I got jumped by a mean 'ole dragon! As we were about to duel the game crashed:
For input string: "Test"
...
If so, rebuild the deck and save it without any spaces in the name, "questTest2" for instance. You will have to close and reopen the Menu after saving the deck for the first time, because the deck will not appear in the dropdown list at first.
Actually, yes! Browse to /res/quest and get rid of the adventure_questData file. You'll start with 0 XP, 275 random cards, and 250 gold. By the way, in the future I'll add some main menu that will allow for a "New Game" option, and then I'll also offer a choice of color, then a majority of starting cards will be of that chosen color.It seems like this package contains Dennis' personal quest. His current monoblack deck, his 2200 card cardpool, bazaar upgrades, etc. (makes sense, since he just zipped it all up for demonstration) Is it possible to start a fresh quest? (just delete the questdata or something?)
/res/quest should also contain a bunch of txt files, you can actually add towns, random opponents and quests there... (although the quest rewards still need some coding).
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by timmermac » 07 Sep 2010, 18:51
Is there currently a way to get more basic land than what you start with? I'd like to be able to build more than a 60 card deck if I just do 1 color.
"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: Shandalar Clone
by DennisBergkamp » 07 Sep 2010, 18:57
Uhm... no I don't think so. I haven't added card shops yet, but once I do, it will be very easy to buy more starting basic lands.
I'll release a new version soon with some bugfixes, if it still doesn't have the card shops, I'll add more basic land to the starting pool... how many of each would you need?
I'll release a new version soon with some bugfixes, if it still doesn't have the card shops, I'll add more basic land to the starting pool... how many of each would you need?
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by DennisBergkamp » 07 Sep 2010, 19:07
Ah, I forgot to include them. I'll upload a link to mediafire (it seems to be down though, at the moment).One question, I didn't have any images for the 2 creatures that I started the duels with. Is there any jpg images for them and what should their file names be?
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by Bog Wraith » 07 Sep 2010, 19:13
Yep, I had a space in the name of my deck. I'll correct this and continue on.
Thanks!
Thanks!
'Twas in the bogs of Cannelbrae
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
-
Bog Wraith - Global Mod 1 (Ret)
- Posts: 1108
- Joined: 28 May 2008, 22:40
- Location: Shandalar
- Has thanked: 425 times
- Been thanked: 153 times
Re: Shandalar Clone
by Chris H. » 07 Sep 2010, 19:16
`Rob Cashwalker wrote:It seems like this package contains Dennis' personal quest. His current monoblack deck, his 2200 card cardpool, bazaar upgrades, etc. (makes sense, since he just zipped it all up for demonstration) Is it possible to start a fresh quest? (just delete the questdata or something?)
Try starting a new quest using the normal forge beta and this will give you the starting pool of cards. You may be able to then copy over the questData file. This newer quest version may save additional info into this file or not.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Shandalar Clone
by DennisBergkamp » 07 Sep 2010, 19:34
No, that won't work... the questData and adventure_questData files have different data in them, and are saved by different classes.
But I think deleting the adventure_questData file and restarting the map should trigger a new one to be created.
But I think deleting the adventure_questData file and restarting the map should trigger a new one to be created.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by timmermac » 07 Sep 2010, 19:40
I think the most basic land I've had is 80 for any one type, so 80 of each non-snow would work until the card shop is ready... Or will the card shops be ready soon enough that I can just wipe out the existing adventureQuestData file and build 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: Shandalar Clone
by Chris H. » 07 Sep 2010, 21:28
`DennisBergkamp wrote:No, that won't work... the questData and adventure_questData files have different data in them, and are saved by different classes.
But I think deleting the adventure_questData file and restarting the map should trigger a new one to be created.
I removed the included "adventure_questData" file and restarted the game and I received a new starting pool of 275 cards. Granted, this is a very early alpha release and we may find it difficult to get very far along in our quest. It may be worth a try if anyone is interested.

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Shandalar Clone
by timmermac » 07 Sep 2010, 21:34
Same here... I got a couple of errors the first random encounter that I had after that, though. I think I may have forgotten to select my deck, even though it said it was selected in the menu screen.... dunno.Chris H. wrote:`DennisBergkamp wrote:No, that won't work... the questData and adventure_questData files have different data in them, and are saved by different classes.
But I think deleting the adventure_questData file and restarting the map should trigger a new one to be created.
I removed the included "adventure_questData" file and restarted the game and I received a new starting pool of 275 cards. Granted, this is a very early alpha release and we may find it difficult to get very far along in our quest. It may be worth a try if anyone is interested.
"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: Shandalar Clone
by Bog Wraith » 07 Sep 2010, 22:19
I too started a new quest and built a deck.
When I come across a creature to duel, I get an error report that says it can't find the named deck:
QuestData : getDeckFromMap(String deckName) error, deck name not found - null
Version:
Forge -- official beta: $Date: 2010-05-01 02:21:42 -0500 (Sat, 01 May 2010) $, SVN revision: $Revision: 916 $
OS: Mac OS X Version: 10.6.4 Architecture: x86_64
Java Version: 1.6.0_20 Vendor: Apple Inc.
Detailed error trace:
java.lang.Exception
at forge.Adventure_QuestData.getDeckFromMap(Adventure_QuestData.java:309)
at forge.Adventure_QuestData.getDeck(Adventure_QuestData.java:279)
at forge.StartBattle.main(StartBattle.java:132)
Tried re-naming it a few times, but the same thing happens.
No spaces in deck name this time!
When I come across a creature to duel, I get an error report that says it can't find the named deck:
QuestData : getDeckFromMap(String deckName) error, deck name not found - null
Version:
Forge -- official beta: $Date: 2010-05-01 02:21:42 -0500 (Sat, 01 May 2010) $, SVN revision: $Revision: 916 $
OS: Mac OS X Version: 10.6.4 Architecture: x86_64
Java Version: 1.6.0_20 Vendor: Apple Inc.
Detailed error trace:
java.lang.Exception
at forge.Adventure_QuestData.getDeckFromMap(Adventure_QuestData.java:309)
at forge.Adventure_QuestData.getDeck(Adventure_QuestData.java:279)
at forge.StartBattle.main(StartBattle.java:132)
Tried re-naming it a few times, but the same thing happens.
No spaces in deck name this time!

'Twas in the bogs of Cannelbrae
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
-
Bog Wraith - Global Mod 1 (Ret)
- Posts: 1108
- Joined: 28 May 2008, 22:40
- Location: Shandalar
- Has thanked: 425 times
- Been thanked: 153 times
Re: Shandalar Clone
by Chris H. » 07 Sep 2010, 23:19
I had the same problem. My first random encounter resulted in a deck name not found error exception. 

-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Shandalar Clone
by DennisBergkamp » 08 Sep 2010, 02:35
Ah, fix this by clicking on menu, then the selected deck dropdown will show a deck... but it's not actually selected yet. So just click on it (the command line window should also show "User selected <deckname>". Battles should work ok now.
I'll fix this in the next version, if no deck is selected it will just use the first deck from the list, or something to that effect
I'll fix this in the next version, if no deck is selected it will just use the first deck from the list, or something to that effect

-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Shandalar Clone
by timmermac » 08 Sep 2010, 03:37
Holy Hannah! Lots of life for a Dragon.
"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
Who is online
Users browsing this forum: No registered users and 24 guests