It is currently 27 Aug 2025, 22:41
   
Text Size

Adding Cards

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

Adding Cards

Postby wilsonbiggs » 15 Jan 2012, 23:14

Yesterday I downloaded Forge. It's neat and has almost every card, but was missing Windbrisk Heights (i needed it for my deck)! I went into its files and saw that it was in every file EXCEPT cardsfolder.zip. I then extracted the files, added Heights, then re-archived them. Now Forge crashes on startup with:
Code: Select all
This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
   http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.

null


Version:
Forge version 1.1.8-r12235

OS: Mac OS X Version: 10.6.8 Architecture: x86_64

Java Version: 1.6.0_26 Vendor: Apple Inc.

Detailed error trace:
java.lang.NullPointerException
   at forge.card.CardRulesReader.parseLine(CardRulesReader.java:65)
   at forge.CardReader.loadCard(CardReader.java:388)
   at forge.CardReader.loadCard(CardReader.java:565)
   at forge.CardReader.loadCardsUntilYouFind(CardReader.java:307)
   at forge.CardReader.run(CardReader.java:235)
   at forge.card.cardfactory.PreloadingCardFactory.readCards(PreloadingCardFactory.java:90)
   at forge.card.cardfactory.PreloadingCardFactory.<init>(PreloadingCardFactory.java:60)
   at forge.AllZone.getCardFactory(AllZone.java:286)
   at forge.view.swing.ApplicationView.setModel(ApplicationView.java:142)
   at forge.view.swing.Main.main(Main.java:50)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
   at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
   at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
The Windbrisk Heights file (windbrisk_heights.txt) looks like:
Code: Select all
Name:Windbrisk Heights
ManaCost:no cost
Types:Land
Text:no text
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigDig | TriggerDescription$ Hideaway (This land enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library.)
A:AB$ Mana | Cost$ T | Produced$ W | SpellDescription$ Add W to your mana pool.
A:AB$ ChangesZone | Cost$ W T | Produced$ W | SpellDescription$ Add W to your mana pool.
SVar:TrigDig:AB$ Dig | Cost$ 0 | DigNum$ 4 | ChangeNum$ 1 | DestinationZone$ Exile | ExileFaceDown$ True | DestinationZone2$ Graveyard | LibraryPosition2$ 0
SVar:Rarity:Land
SVar:Picture:[url]http://www.wizards.com/global/images/magic/general/windbrisk_heights.jpg[/url]
SetInfo:LRW|Land|[url]http://magiccards.info/scans/en/shm/281.jpg[/url]
Oracle:Hideaway (This land enters the battlefield tapped. When it does, look at the top four cards of your library, exile one face down, then put the rest on the bottom of your library.)/n{T}: Add {W} to your mana pool./n{W}, {T}: You may play the exiled card without paying its mana cost if you attacked with three or more creatures this turn.
End
What should I do?
wilsonbiggs
 
Posts: 4
Joined: 15 Jan 2012, 23:11
Has thanked: 1 time
Been thanked: 0 time

Re: Adding Cards

Postby friarsol » 15 Jan 2012, 23:33

Please place questions about scripting cards in Card Development Questions thread in the Developer's Forum. But right now, Hideaway is not scriptable because we don't have Play as an AbilityFactory. To stop it from crashing I'd recommend deleting the txt file you added, it's clearly causing the crash.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Adding Cards

Postby wilsonbiggs » 15 Jan 2012, 23:38

Thanks, that's a shame. :(
wilsonbiggs
 
Posts: 4
Joined: 15 Jan 2012, 23:11
Has thanked: 1 time
Been thanked: 0 time

Re: Adding Cards

Postby friarsol » 15 Jan 2012, 23:41

wilsonbiggs wrote:Thanks, that's a shame. :(
Don't worry there's only 10000 other cards that we do have. And more get added all the time.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 56 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 56 users online :: 0 registered, 0 hidden and 56 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 56 guests

Login Form