It is currently 26 Aug 2025, 17:50
   
Text Size

The SVN, nightly builds and biweekly betas

Post MTG Forge Related Programming Questions Here

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

Re: The SVN, nightly builds and biweekly betas

Postby friarsol » 02 Nov 2011, 16:50

jendave wrote:If you read the commit logs, you'll know that I have been doing a lot of code cleanup lately. I am done with it but there are some caveats.

The GuiNewGame class, which was already deprecated, has been deleted. You will need to update your Eclipse config to run the forge.view.swing.Main class to start the app from the IDE. I have already made the changes in the pom.xml for the builds.

Many classes have had their name changed (typically removing the underscore).

The next time you update you will run into some namespace changes that I made so the project would be more standards compliant. Forge.card.abilityfactory forge.card.staticability and forge.card.cardfactory had slight changes in their naming conventions.

The number of Checkstyle violations has gone from 20,000 to about 200. :-)
Hopefully this doesn't screw up Doublestrike's new UI work too much.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: The SVN, nightly builds and biweekly betas

Postby jeffwadsworth » 02 Nov 2011, 19:45

jendave wrote:If you read the commit logs, you'll know that I have been doing a lot of code cleanup lately. I am done with it but there are some caveats.

The GuiNewGame class, which was already deprecated, has been deleted. You will need to update your Eclipse config to run the forge.view.swing.Main class to start the app from the IDE. I have already made the changes in the pom.xml for the builds.

Many classes have had their name changed (typically removing the underscore).

The next time you update you will run into some namespace changes that I made so the project would be more standards compliant. Forge.card.abilityfactory forge.card.staticability and forge.card.cardfactory had slight changes in their naming conventions.

The number of Checkstyle violations has gone from 20,000 to about 200. :-)
Am I the only one getting this error message running that new main class?

| Open
java.lang.NullPointerException: CardDb has not yet been initialized, run setup() first
at forge.item.CardDb.instance(CardDb.java:40)
at forge.item.ItemPool.<init>(ItemPool.java:42)
at forge.deck.Deck.setMain(Deck.java:214)
at forge.deck.DeckManager.readDeck(DeckManager.java:388)
at forge.deck.DeckManager.readAllDecks(DeckManager.java:330)
at forge.deck.DeckManager.<init>(DeckManager.java:127)
at forge.AllZone.getDeckManager(AllZone.java:556)
at forge.view.swing.GuiHomeScreen.<init>(GuiHomeScreen.java:196)
at forge.view.swing.GuiHomeScreen$1.run(GuiHomeScreen.java:216)
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)


Eh, grabbing everything from scratch. Hopefully that works.
Nope, same error.
Trying to build it the old-fashioned way...
Last edited by jeffwadsworth on 02 Nov 2011, 22:07, edited 3 times in total.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: The SVN, nightly builds and biweekly betas

Postby moomarc » 02 Nov 2011, 19:59

No problems on my side.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: The SVN, nightly builds and biweekly betas

Postby Chris H. » 02 Nov 2011, 21:02

jeffwadsworth wrote:Am I the only one getting this error message running that new main class?
Eh, grabbing everything from scratch. Hopefully that works.
Nope, same error.
`
Once I edited my "Run Configurations..." I found that I was able to run the java app without the error that I was seeing this morning. I have not experienced the same error as the one that you are having.
User avatar
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: The SVN, nightly builds and biweekly betas

Postby Doublestrike » 04 Nov 2011, 08:09

friarsol wrote:Hopefully this doesn't screw up Doublestrike's new UI work too much.
I don't think it will, but if it does that's the price of progress. I have about 4-6 big things to complete before release but the end is approaching...
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: The SVN, nightly builds and biweekly betas

Postby Chris H. » 08 Nov 2011, 12:42

While running the daily build script I noticed that the process stopped prematurely. The snapshots should be OK and ready to download. The html reports on the other hand are incomplete.

Code: Select all
completed = /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/class-use/Base64Coder.html
processing = /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/class-use/ButtonUtil.html as ButtonUtil.html
Command sent: PASV

Reply received: 227 Entering Passive Mode (74,55,207,114,247,34)

ftp.cardforge.org/site/ - Session: Disconnecting 
ftp.cardforge.org/site/ - Session: Disconnected
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:45.784s
[INFO] Finished at: Tue Nov 08 07:14:21 EST 2011
[INFO] Final Memory: 43M/177M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project forge: Error uploading site: IOException caught while attempting to upload /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/class-use/ButtonUtil.html: Operation timed out -> [Help 1]
`
Attachments
log.zip
(44.04 KiB) Downloaded 383 times
User avatar
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: The SVN, nightly builds and biweekly betas

Postby jendave » 08 Nov 2011, 15:20

Looks like the ftp site was simply timing out and not responding. not a big deal. Hopefully it doesn't happen with the next daily build though. If it does we can turn off the maven website generation in order to avoid this.
jendave
 
Posts: 307
Joined: 01 Jun 2008, 07:19
Has thanked: 8 times
Been thanked: 21 times

Re: The SVN, nightly builds and biweekly betas

Postby Chris H. » 09 Nov 2011, 12:11

Today's build and release completed without any problems so I guess that yesterday's time out was only temporary.
User avatar
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: The SVN, nightly builds and biweekly betas

Postby DeadSpeak » 12 Nov 2011, 21:59

Hey guys...

Great work with the 1.18 snapshots... and speaking of "Snap" Snapcaster Mage is in Forge... OMFG!!!

Just downloaded the forge-1.1.8-20111112.115712-8 snapshot and after every game, either Forge crashes with the following error message:

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-SNAPSHOT-r11950

OS: Windows 7 Version: 6.1 Architecture: amd64

Java Version: 1.6.0_29 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NullPointerException
at forge.view.swing.WinLoseFrame.<init>(WinLoseFrame.java:91)
at forge.view.swing.WinLoseFrame.<init>(WinLoseFrame.java:68)
at forge.GameAction.checkStateEffects(GameAction.java:803)
at forge.GameAction.checkStateEffects(GameAction.java:759)
at forge.Phase.handleBeginPhase(Phase.java:363)
at forge.gui.input.InputControl.updateInput(InputControl.java:183)
at forge.GuiInput.update(GuiInput.java:34)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at forge.MyObservable.updateObservers(MyObservable.java:21)
at forge.Phase.nextPhase(Phase.java:509)
at forge.Phase.nextPhase(Phase.java:512)
at forge.GuiDisplay$33.actionPerformed(GuiDisplay.java:1144)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.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)

I then have to force Forge to close. And when I restart Forge it has forgotten all of the settings, reg. window placement and such.

Is there a way to fix this?
DeadSpeak
 
Posts: 104
Joined: 25 Dec 2009, 00:14
Location: Denmark
Has thanked: 4 times
Been thanked: 3 times

Re: The SVN, nightly builds and biweekly betas

Postby slapshot5 » 12 Nov 2011, 22:24

DeadSpeak wrote:Hey guys...

Great work with the 1.18 snapshots... and speaking of "Snap" Snapcaster Mage is in Forge... OMFG!!!

Just downloaded the forge-1.1.8-20111112.115712-8 snapshot and after every game, either Forge crashes with the following error message:

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-SNAPSHOT-r11950

OS: Windows 7 Version: 6.1 Architecture: amd64

Java Version: 1.6.0_29 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NullPointerException
at forge.view.swing.WinLoseFrame.<init>(WinLoseFrame.java:91)
at forge.view.swing.WinLoseFrame.<init>(WinLoseFrame.java:68)
at forge.GameAction.checkStateEffects(GameAction.java:803)
at forge.GameAction.checkStateEffects(GameAction.java:759)
at forge.Phase.handleBeginPhase(Phase.java:363)
at forge.gui.input.InputControl.updateInput(InputControl.java:183)
at forge.GuiInput.update(GuiInput.java:34)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at forge.MyObservable.updateObservers(MyObservable.java:21)
at forge.Phase.nextPhase(Phase.java:509)
at forge.Phase.nextPhase(Phase.java:512)
at forge.GuiDisplay$33.actionPerformed(GuiDisplay.java:1144)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.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)

I then have to force Forge to close. And when I restart Forge it has forgotten all of the settings, reg. window placement and such.

Is there a way to fix this?
Just wait for the next snapshot. This should be fixed in that build.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: The SVN, nightly builds and biweekly betas

Postby Chris H. » 13 Nov 2011, 02:29

DeadSpeak wrote:Hey guys...

Great work with the 1.18 snapshots... and speaking of "Snap" Snapcaster Mage is in Forge... OMFG!!!

Just downloaded the forge-1.1.8-20111112.115712-8 snapshot and after every game, either Forge crashes with the following error message:
DeadSpeak wrote:I then have to force Forge to close. And when I restart Forge it has forgotten all of the settings, reg. window placement and such.

Is there a way to fix this?
`
The next daily snapshot build should take care of this. :)
User avatar
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: The SVN, nightly builds and biweekly betas

Postby Chris H. » 24 Nov 2011, 12:09

Todays snapshot build ended early with a Operation timed out error.

Code: Select all
Command sent: STOR CostMill.html

Reply received: 150 Accepted data connection

Reply received: 226-File successfully transferred
226 0.166 seconds (measured here), 30.16 Kbytes per second

completed = /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/card/cost/class-use/CostMill.html
processing = /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/card/cost/class-use/CostPart.html as CostPart.html
Command sent: PASV

Reply received: 227 Entering Passive Mode (74,55,207,114,141,102)

Command sent: STOR CostPart.html

Reply received: 150 Accepted data connection

Reply received: 226-File successfully transferred
226 0.284 seconds (measured here), 56.25 Kbytes per second

completed = /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/card/cost/class-use/CostPart.html
processing = /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/card/cost/class-use/CostPartWithList.html as CostPartWithList.html
Command sent: PASV

Reply received: 227 Entering Passive Mode (74,55,207,114,59,169)

ftp.cardforge.org/site/ - Session: Disconnecting 
ftp.cardforge.org/site/ - Session: Disconnected
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:56.093s
[INFO] Finished at: Thu Nov 24 06:57:03 EST 2011
[INFO] Final Memory: 43M/204M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on project forge: Error uploading site: IOException caught while attempting to upload /Users/chrish/Workspace_SVN/ForgeSVN/target/site/apidocs/forge/card/cost/class-use/CostPartWithList.html: Operation timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
logout

[Process completed]
`
The two forge archives should be OK. Todays reports may be unreliable though.
User avatar
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: The SVN, nightly builds and biweekly betas

Postby Chris H. » 28 Nov 2011, 13:24

There was a period of time this last weekend where a number of merges into the SVN were made. I think that all of the material is still in the SVN. We are missing the commit logs though for these merges:

- Updated two quest decks.
- add a PreventDamageAll AbilityFactory. (Also, alphabetized the API if-else if block in AbilityFactory class).
- clean up some java warnings in deck generators
- The AI will now realize the interaction of Melira, Sylvok Outcast and Persist cards.
- more java warning cleanup
- java warning and TODO cleanup in CostPart
- suppress a warning in QuestUtilCards
- more java warnings cleanup
- more java warning and TODO cleanup in GameAction, Player, GameSummary, CustomLimited, and CardPanelHeavy
- comment out ConstantStringHashMap class. It's not being used, and maybe we just don't need it anymore.
- Fixed Rending Vines


Tourach's Gate
Greater Werewolf
Serra Bestiary
Kitsune Palliator
Samite Censer-Bearer
Balm of Restoration


BTW:

I was able to get out a snapshot release with the early stages of the new UI this last weekend.
User avatar
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: The SVN, nightly builds and biweekly betas

Postby Chris H. » 28 Nov 2011, 13:35

Chris H. wrote:There was a period of time this last weekend where a number of merges into the SVN were made. I think that all of the material is still in the SVN. We are missing the commit logs though for these merges:
`
I see that the lost commit logs are now re-appearing. :D
User avatar
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: The SVN, nightly builds and biweekly betas

Postby Chris H. » 03 Dec 2011, 12:41

The new UI is coming along nicely. We might be ready for the next beta release in a few weeks. With the new UI changes we may want to consider releasing the next beta not as v1.1.9 but as either v1.2.0 or v2.0.0.

I could use some input from other people on which of the two version numbers above that we should use for the next beta.

BTW: Eclipse will open the pom.xml file in a nice editor window which should make changing the version number easier.
User avatar
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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 23 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form