Page 1 of 1

Error when starting Forge - crashed in Quest Mode

PostPosted: 26 Jul 2013, 20:12
by Feather
Description: I think i only tried to accept a match.

EOFException | Open
Code: Select all
Forge Version:    1.4.3-r22557
Operating System: Windows 8 6.2 x86
Java Version:     1.7.0_25 Oracle Corporation

main > Error loading Quest Data
java.io.EOFException: Unexpected end of ZLIB input stream
   at java.util.zip.InflaterInputStream.fill(Unknown Source)
   at java.util.zip.InflaterInputStream.read(Unknown Source)
   at java.util.zip.GZIPInputStream.read(Unknown Source)
   at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
   at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
   at sun.nio.cs.StreamDecoder.read(Unknown Source)
   at java.io.InputStreamReader.read(Unknown Source)
   at java.io.Reader.read(Unknown Source)
   at forge.quest.io.QuestDataIO.loadData(QuestDataIO.java:128)
   at forge.control.FControl.initialize(FControl.java:181)
   at forge.view.Main.main(Main.java:45)

Re: Error when starting Forge - crashed in Quest Mode

PostPosted: 27 Jul 2013, 00:44
by timmermac
Is this an old quest that you've imported from somewhere or a new quest? If it's an old one, my suspicion is that it's been corrupted somehow.

Re: Error when starting Forge - crashed in Quest Mode

PostPosted: 27 Jul 2013, 09:55
by Feather
It was a new quest. That doesn't mean that it can't be corrupted - but earlier it was working just fine. Where are the saved quests stored? Maybe I can try to delete it and see if at least the program will start again.

Re: Error when starting Forge - crashed in Quest Mode

PostPosted: 27 Jul 2013, 15:41
by Chris H.
Feather wrote:It was a new quest. That doesn't mean that it can't be corrupted - but earlier it was working just fine. Where are the saved quests stored? Maybe I can try to delete it and see if at least the program will start again.
 
<userDir>/quest/saves/

Re: Error when starting Forge - crashed in Quest Mode

PostPosted: 15 Aug 2013, 15:07
by crystalkeeper
Where is that located? I cant find it.

Re: Error when starting Forge - crashed in Quest Mode

PostPosted: 15 Aug 2013, 17:51
by Chris H.
crystalkeeper wrote:Where is that located? I cant find it.
 
Near the top of the "README.txt" file that was included in the forge archive that you downloaded:

Updating to a newer version Instructions: | Open
Updating to a newer version Instructions:
-----------------------------------------

- User data migration -
User data files, like decks, saved gauntlets, and card pictures, are now stored in new directories separate from the program data. When this version of Forge is first run, it will scan the program directory for all user data and automatically migrate the files to their new homes. There are three defined user data directores: userDir, cacheDir, and cardPicsDir, and their locations depend on the standard paths for your operating system:

Windows:
userDir=%APPDATA%/Forge/
cacheDir=%LOCALAPPDATA%/Forge/Cache/ (or %APPDATA%/Forge/Cache/ for windows versions before the local/roaming directory split)
OSX:
userDir=$HOME/Library/Application Support/Forge/
cacheDir=$HOME/Library/Caches/Forge/
Linux:
userDir=$HOME/.forge/
cacheDir=$HOME/.cache/forge/

The appdata directory is hidden by default in Win7. Open a Windows Explorer window (or double-click on My Computer] and in the address field type "%appdata%/forge/" (without the quotes). If that doesn't work, type "%appdata"/roaming/forge".

cardPicsDir is defined as <cacheDir>/pics/cards/ by default. If you wish to use a non-default directory, please see the forge.profile.preferences.example file located in the Forge installation directory root. You can use this file to, for example, share the card pics directory with another program, such as Magic Workstation.

If you are using the Mac OS X version of Forge then you will find the forge.profile.preferences.example file by right clicking or control clicking on the Forge.app icon. Select "Show Package Contents" from the contextual menu. A Finder window will open and will display a folder named Contents. Navigate to the folder:
/Contents/Resources/Java/
and you will find the file named forge.profile.preferences.example.

For reference, here is the full list of moved directories and files:

Old location New location
---------------- ----------------------
res/decks/ <userDir>/decks/
res/gauntlet/ <userDir>/gauntlet/
res/layouts/ <userDir>/preferences/
res/preferences/ <userDir>/preferences/
res/quest/data/ <userDir>/quest/saves/
res/pics/ <cacheDir>/pics/
forge.log <userDir>/forge.log

- New Import Data dialog -
The Import Pictures dialog, accessed via the Content Downloaders submenu, has received an overhaul and has been reincarnated as the Import Data dialog. You may recognize it from the automatic data migration procedure if you had any data to migrate when this version was first started. Instead of just importing pictures from a previous version of Forge, it can now import any kind of Forge data whatsoever. If you have a directory full of deck files, you can use the Import Data dialog to copy or move them to the appropriate directory. If you have just downloaded a torrent of high-quality pics for a particular set, use the Import Data dialog to get them to the proper place. The dialog give you a full listing of all file copy/move operations, so you can see what will happen before you click 'Start Import'.

An importer option was added for including pictures in set-specific card directories that don't map to any currently known card. This handles the case where people have collected complete sets of pics in anticipation of when Forge supports them.