Re: Card Development Questions
by Iran
Tryingo to script River Kelpie, but when i put this card in cardsfolder/r directory and execute the forge i see the following crash reports. What´s wrong with this card?
And after i close the first crash
- River Kelpie | Open
- Name:River Kelpie
ManaCost:3 U U
Types:Creature Beast
Text:no text
PT:3/3
K:Persist
T:Mode$ ChangesZone | ValidCard$ Permanent | Origin$ Graveyard | Destination$ Battlefield | Execute$ DBDraw | TriggerZones$ Battlefield | TriggerDescription$ Whenever River Kelpie or another permanent is put onto the battlefield from a graveyard, draw a card.
T:Mode$ ChangesZone | ValidCard$ Card | Origin$ Graveyard | Destination$ Stack | Execute$ DBDraw | TriggerZones$ Battlefield | TriggerDescription$ Whenever a player casts a spell from a graveyard, draw a card.
SVar:DBDraw:DB$Draw | Cost$ 0 | NumCards$ 1
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/river_kelpie.jpg
End
- This is a Crash Report | Open
- 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.
String index out of range: 0
Version:
Forge version 1.1.4, build ID 10643
OS: Windows XP Version: 5.1 Architecture: x86
Java Version: 1.6.0_25 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at forge.CardReader.loadCard(CardReader.java:324)
at forge.CardReader.loadCard(CardReader.java:434)
at forge.CardReader.loadCardsUntilYouFind(CardReader.java:235)
at forge.CardReader.run(CardReader.java:188)
at forge.card.cardFactory.PreloadingCardFactory.readCards(PreloadingCardFactory.java:80)
at forge.card.cardFactory.PreloadingCardFactory.<init>(PreloadingCardFactory.java:53)
at forge.AllZone.getCardFactory(AllZone.java:228)
at forge.view.swing.ApplicationView.setModel(ApplicationView.java:122)
at forge.view.swing.Main.main(Main.java:43)
at forge.Gui_NewGame.main(Gui_NewGame.java:27)
And after i close the first crash
- This is a Crash Report 2 | Open
- 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.
CardDb has not yet been initialized, run setup() first
Version:
Forge version 1.1.4, build ID 10643
OS: Windows XP Version: 5.1 Architecture: x86
Java Version: 1.6.0_25 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.NullPointerException: CardDb has not yet been initialized, run setup() first
at forge.item.CardDb.instance(CardDb.java:31)
at forge.item.ItemPool.<init>(ItemPool.java:17)
at forge.deck.Deck.setMain(Deck.java:145)
at forge.deck.DeckManager.readDeck(DeckManager.java:308)
at forge.deck.DeckManager.readAllDecks(DeckManager.java:255)
at forge.deck.DeckManager.<init>(DeckManager.java:93)
at forge.AllZone.getDeckManager(AllZone.java:430)
at forge.view.swing.OldGuiNewGame.<init>(OldGuiNewGame.java:61)
at forge.view.swing.ApplicationView$4.run(ApplicationView.java:140)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)