Author Topic: [Release] Beregost Crash Fixer 1.9  (Read 47055 times)

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
[Release] Beregost Crash Fixer 1.9
« on: January 12, 2007, 08:11:43 AM »
Beregost Crash Fixer
Copyright (C) 2008-2010 Raphael Wong
------------------------------------
Requirements
Java Runtime Environment 1.6 or higher

Usage
Due to an as yet unidentified problem, leaving or entering Beregost can corrupt Baldur's Gate saved game file, resulting in a crash when you try to load them.
This program does two things to try and fix the saved game (supports BG1, BG:TotSC, BG1TuTu, EasyTutu, and BGT-WeiDU):
- Characteristic Beregost area corruptions are repaired by zero-ing the corrupted data fields.
- The saved game is reconstructed, which can also fix the saved game.

Instructions:
1. Download and install Java Runtime Environment version 6.0 from http://java.sun.com/javase/downloads/index.jsp
If you already use JRE, I recommend uninstalling previous versions first.
2. Unzip BeregostCrashFixer.zip to any directory.
3. Go to the directory you extracted the .zip file to. Double-click on BeregostCrashFixer.jar
4. Click the '...' button, then navigate to find your corrupt BALDUR.SAV file (typically <Baldur's Gate installation directory>\save\<saved game name>\BALDUR.SAV)
5. If there are no errors, you should see 'Loaded file: <your file>' in the text area, and the 'Process' button at the bottom of the program will be enabled
6. Click the 'Process' button and wait. The text area will inform you of scanning the Beregost area file and if any errors are present, else it will output 'No errors found.'
7. When the status bar above the text area shows the word 'Done.', BALDUR.SAV has been patched (or re-packaged if there were no problems found) and you are ready to try the saved game. Even if no errors are found, your saved game may still be fixed, so try it anyway
8. A backup is made in the same directory as the input BALDUR.SAV, called BALDUR.BAK.

----------------------------------------------------------------------------
Version 1.9 - added Polish translation (by Eryks)
Version 1.8 - added Castilian translation (by Ancalagon el Negro - Clan REO)
Version 1.7 - added German translation (by WangXu)
Version 1.6 - added French translation (by Isaya)
Version 1.5 - added Simplified Chinese translation (by Mephisto Satan Devil)
Version 1.4 - internationalised text
            - added mnemonics and accelerators
            - added Russian translation (by Vit MG)
Version 1.3 - corrected output of BALDUR.BAK
            - now reconstructs BALDUR.SAV
            - prompt before overwriting an already existing backup
Version 1.2 - fixed exception with directories containing no-extension files
Version 1.1 - supports SAV files
            - implemented Swing GUI
Version 1.0 - first release
            - supports extracted ARE files only
            - command-line only
----------------------------------------------------------------------------
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

Download
« Last Edit: July 18, 2010, 08:01:43 AM by Ascension64 »

Offline Salk

  • Planewalker
  • *****
  • Posts: 857
Re: [Release] Beregost Crash Fixer 1.1
« Reply #1 on: January 13, 2007, 01:01:27 AM »
You will simply never finish surprising me, Ascension64! Congratulations!

neroman

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #2 on: January 13, 2007, 01:17:39 PM »
Argh..I"m having a problem using this.

i unzipped the .zip file to create the BeregostCrashFIxer into my game folder, and tried runing the .jar file. I get the following error

"Cannot find the main  Program will exit" from the Java Virtual Machine Launcher. I do have the latest Java software.

Renamed the .jar file to "jar -jar BeregostCrashFixer.jar" and tried executing it, and still getting the same error..


Am I doing something wrong?

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #3 on: January 14, 2007, 02:49:08 AM »
Anyone else getting this problem? Please report.

Try opening up the .jar file in an archiver program such as WinRAR (WinZip might be able to handle it as well). Check if asc64/beregost/BeregostCrashFixer.class exists in the jar archive. If it does exist, go into the META-INF directory and open up MANIFEST.MF in a text file. Is the line "Main-Class: asc64.beregost.BeregostCrashFixer" present?

Also, try downloading the file again. Let me know if it works or not.

Sorry, I actually made a mistake when saying use "jar".
Don't rename the .jar file. Go to the command line and type in "java -jar BeregostCrashFixer.jar". You'll need to make sure that java.exe is directly accessible, e.g. type the full path to the jar.exe file, found by default in C:\Program Files\Java\jre1.6.0\bin.
« Last Edit: January 14, 2007, 02:52:41 AM by Ascension64 »

neroman

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #4 on: January 14, 2007, 04:46:59 AM »
i re-downloaded the .zip file

I opened up the .jar file with winzip and checked to make sure the asc64/beregost/BeregostCrashFixer.class exists, and that the Main-Class: asc64.beregost.BeregostCrashFixer is present ( the 3rd line) in the MANIFEST.MF file

so i unzipped the beregostcrashfixer.zip into my game directory, and copied the 3txt files from the src.zip to my game directory as well

double clicking the .jar file gives me the same error as above.

going into the command prompt, i type in the java command, and i get hte following error:

C:\Program Files\BaldursGateTutu>java -jar beregostcrashfixer.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)


not sure what else to do....any idea whats' going on? I wasn't too sure what you meant by making sure java.exe is directly accessible

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #5 on: January 14, 2007, 05:07:49 AM »
Are you certain you are using Java Runtime Environment 1.6.0? Do you have another version of JRE you have installed but didn't uninstall it before you installed JRE 1.6.0?

In terms of 'directly accessible', go to the command line, and type the full path to your java.exe to run the jar file. For example, since my java.exe is found in C:\Program Files\Java\jre1.6.0\bin, and if my jar file is in C:\Games\Baldur's Gate II, I would type in the command line:

C:\Program Files\Java\jre1.6.0\bin\java -jar C:\Games\Baldur's Gate II\BeregostCrashFixer.jar

neroman

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #6 on: January 14, 2007, 03:00:28 PM »
Cant get it to work. I have JRE 1.5.0_10 (this i sthe latest one for windows off the java website. JRE1.6.0 is solely for linux i believe)

So, my java.exe is located in the "C:\program files\java\jre1.5.0_10\bin" folder

My beregostcrashfixer.jar is located in the "c:\program files\baldursgatetutu" filder

I've tried the folllowing:

C:\>c:\program files\java\jre1.5.0_10\bin\java -jar c:\program files\baldursgate
tutu\BeregostCrashFixer.jar
'c:\program' is not recognized as an internal or external command,
operable program or batch file.

So essentially it's not recognizing that command line. Running the same ocmmand from either the java directory, or the game directory, yields the same problem. So i went to my game directory, and typed the following:

C:\Program Files\BaldursGateTutu>java -jar BeregostCrashFixer.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Basically the above error resulted.

Is it possible for me to zip up my saved file, and send it to you somehow? It might be because my operating system is different (assuming you are using linux), there are different commands that might work on yours and not on mine?



Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #7 on: January 14, 2007, 07:38:36 PM »
Ah, you have to use JRE 1.6.0. Find it at http://java.sun.com/javase/downloads/index.jsp.

neroman

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #8 on: January 14, 2007, 10:07:25 PM »
hey nice, it works now

Thanks for all your help!

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #9 on: January 14, 2007, 10:57:06 PM »
No problem. Good to hear your save game is fine.  ;)

Grand_dracolich

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #10 on: January 31, 2007, 12:08:38 PM »
Strange, with in 4 sperate installs with different mods each time on 2 different computers, I have never had a problem with this...

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #11 on: January 31, 2007, 05:25:24 PM »
As in you never had a problem with save games being corrupted from Beregost crashing?

Grand_dracolich

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #12 on: February 02, 2007, 02:53:14 PM »
No until today, I think... I quick saved before pilfering the Algernon's cloak, he turned hostile, reloaded and it crashed midway through... I'll try a different save, I don't have JRE.

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #13 on: February 02, 2007, 05:48:13 PM »
Well, JRE isn't all that difficult to get, and works much better than the Windows Java VM I reckon.

just another guy

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #14 on: February 07, 2007, 01:05:42 PM »
Thanks alot for this fix! You saved my day  :)


Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #15 on: February 07, 2007, 05:01:07 PM »
Pleasure. Glad it worked.  ;)

Offline Coquito

  • Planewalker
  • *****
  • Posts: 1
Re: [Release] Beregost Crash Fixer 1.1
« Reply #16 on: March 09, 2007, 10:17:28 AM »
Not sure if it's been mentioned before, but traveling directly from the bandit camp to Beregost as expected, crashed me. I tried traveling from the temple & it worked. Maybe it's just long distances, where ambushes are expected. Maybe it's just traveling between certain areas.

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #17 on: March 10, 2007, 04:30:36 PM »
Well, that isn't to do with your save game. There is an error in the world map file or an encounter area as you said. What installation are you using?

Seconis

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #18 on: March 31, 2007, 11:49:22 AM »
I downloaded this application and got it to run with no problems at all.  I told it to fix my autosave and it said it did.  Then I loaded up the game and it failed miserably.  I tried fixing the autosave with the program again, and it said it did. Then, I tried fixing the same file right after it just said it fixed it...to no avail.  Any ideas?

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #19 on: March 31, 2007, 06:46:03 PM »
You might have to register, but can you zip up your save game and post it here?

bran

  • Guest
Re: [Release] Beregost Crash Fixer 1.1
« Reply #20 on: April 14, 2007, 10:01:45 AM »
Hey guys, I ran the fixer and it opens fine, processes my save but i STILL get a crash as I try going to Beregost. Anyone know why?

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1030
  • Gender: Male
Re: [Release] Beregost Crash Fixer 1.1
« Reply #21 on: April 16, 2007, 02:33:17 AM »
You might have to register, but can you zip up your save game and post it here?
Or if you can't post it, PM it to Ascension64 (and copy me if you want, but he knows more about this sort of thing).

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.1
« Reply #22 on: April 16, 2007, 04:34:18 AM »
Yes, for those that have the utility reporting a fix but the save game not actually being fixed, the only way you can really help me out is to post/upload your savegame somewhere.

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Release] Beregost Crash Fixer 1.2
« Reply #23 on: June 22, 2007, 08:46:32 PM »
Small update.

Tomat

  • Guest
Re: [Release] Beregost Crash Fixer 1.2
« Reply #24 on: October 07, 2007, 11:20:13 PM »
Wonderful work you have saved me 70 hours play time and let me continue to enjoy this wonderful conversion -thank you.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: