|
-
Gothic 2 extractor
Gothic 2 extractor is an alternative for installing G2.
In case you get a "math64.dll" or an "Insufficient Memory" error when you try to install Gothic 2, here's a possible solution: use the batch installer provided here.
So far the scripts work only with:
- G2 on 3CDs in English
- G2 on 3CDs in English (another variant)
- G2 on DVD in English
- G2 Gold on 4CDs in English
- G2 Gold on DVD in English
How it works: it will copy the files from the optical media onto your hard drive, it will create the G2 folder structure, extract the files from archives, move each file where it belongs and delete the leftovers.
It doesn't make shortcuts and it doesn't write in the registry.
Right now it does some error checking, but it's still possible to encounter problems, so if one step of the script doesn't work as it should, it won't always exit gracefully (which will probably result in more errors). But it's safe, it won't screw your system (no guarantees though ).
Here's the file: click me
Installation: unpack the archive, put the G2 disk in the drive, launch the matching *.cmd file and follow the on-screen instructions.
Geändert von Larisa (07.06.2010 um 18:39 Uhr)
Grund: update to version 1.2
-
-
Zitat von Vampirelle
I just wish I knew computers like you do. Great job, every single time.
Thanks. I wish I knew computers better, it took me 2 hours yesterday just to figure out 2 if-else statements.
Does somebody know why NotR's setup launches delsaves.exe when it finishes copying the files? What exactly does it do? Deletes savegames? Why? Is it important to be done at install time?
Also it launches that vdfs tool "please wait while vdfs creates...."
Again, is it important to be run at install time and not when the game firsts starts?
-
My guesses:
- Getting rid of incompatible save files that may cause issues.
- Ensuring that the VDFS system is initialized and the files have been installed correctly.
EDIT/PS: Larisa, this should be in the Downloads Section, excellent work . I'll see if we can't get it officially hosted.
Ach Fry, Ich hab dich mehr als der Monde, die Sterne...das...fail.
-
Zitat von Korianous
EDIT/PS: Larisa, this should be in the Downloads Section, excellent work . I'll see if we can't get it officially hosted.
Thanks, but not so fast, I still want to finish the notr part and then adapt it for the 4 cds version.
Do you know what vssver.scc files are for? A lot of those in _work\Data\Scripts\system\*
Each one different from the other
The installer, being an idiot, overwrites the files when extracted with /x, so I have only one vssver.scc and I need like 9 different copies. No option to autorename if file already exists.
So, important or not? Can be generated?
Geändert von Larisa (19.11.2009 um 22:00 Uhr)
-
Visual Source Safe files? That's a relic from VS 6.0 days, it's Version Control software. Idk if anyone actually uses that in the industry these days (outside of Microsoft). The PBs use Perforce now, as I'm sure many others do.
To cap off that minor tangent, I don't know why your installer would be looking for those files , especially in the script path.
Ach Fry, Ich hab dich mehr als der Monde, die Sterne...das...fail.
-
Zitat von Korianous
I don't know why your installer would be looking for those files , especially in the script path.
I don't know either, the thing is that the NotR setup has them in it's belly and puts them there.
Are they used by the game? Or for something else? Can I safely ignore and not copy them?
-
Zitat von mistress_larisa
I don't know either, the thing is that the NotR setup has them in it's belly and puts them there.
Are they used by the game? Or for something else? Can I safely ignore and not copy them?
They shouldn't be used in the game, no. My guess is that it would be safe to ignore them.
Ach Fry, Ich hab dich mehr als der Monde, die Sterne...das...fail.
-
New and improved version! Big feature: new color for text. And it also supports NotR now.
Link.
Ranting/musings: now everything appears to be in order, launched the game without the scc files, works fine.
I've decided the script shouldn't create the vdfs.dmp file, it's done anyway when launching the game if it doesn't exist, and if the user moves the folder somewhere else it will be recreated again, so no need for it.
Also, no need for delsaves.exe, since at the time when the script is run, there are no G2 vanilla savegames yet.
I wanted to add some features, like auto detect free space and act accordingly. However, the console doesn't do arithmetic with anything above 32bit numbers, and since the free space in bytes can be well above 4billions... I've had to just display the free space and the required space, let the user do the thinking.
I'll try some error management in case the disk isn't inserted or wrong disk.
Now I'll have to adapt it for the CD version, which should be fairly easy if there are no file differences inside the archives.
I remember something about the Universe edition not being able to install just g2, without notr... If we're lucky and it's just something from wise installer's compiled script and the archives contain g2 and notr files separately, I could make it install just G2. Remains to be seen.
-
Larisa, I could try and code an installer with your batch file, should you wish to get past some of that stuff. Need some little practical application work anyway. Given my latest Ubuntu discovery and out of desire to keep it simple, it'll still be a console app.
Ach Fry, Ich hab dich mehr als der Monde, die Sterne...das...fail.
-
Well, except that free space auto selection, the script does so far everything I wanted.
I though too about a compiled tool, but, excepting the fact that I know nothing about programming languages, I had to give up the idea because:
-simplicity: just 1 file, no external stuff (I've found some tools for extracting the wise packages, but if /x is enough to skip the errors (remains to be seen), why should I complicate myself?)
and there is a solution with vbscript files and windows scripting host or something, but again, so far I've managed without it.
-I wanted to avoid registry and links (because of special folders like documents&settings), game runs fine without them (without registry entries probably other programs won't auto-find G2's folder, but that's why there's a browse button)
-making sure the program is compatible with vista and 7, maybe the user has to have the necessary libraries (.net or c++ stuff, I don't really know much about this), I hope dir, md and move are still present in win 7
But that's no reason not to try if you need the practice.
And now, version 0.7. New: the script checks if the necessary files exist on the dvd and have the right size. Basically, a way to fine tune it to the g2 variant that I've tested and to avoid possible errors if used with other g2 flavors.
EDIT: new version 0.8. Now it supports a 4 cds variant.
Link.
-
Zitat von Larisa
-making sure the program is compatible with vista and 7, maybe the user has to have the necessary libraries (.net or c++ stuff, I don't really know much about this), I hope dir, md and move are still present in win 7
Fear not. All it would be is a console-based installer, it would run much as a batch script would, as far as laymen are concerned. It only allows for a bit more interactivity .
Ach Fry, Ich hab dich mehr als der Monde, die Sterne...das...fail.
-
New update.
0.9 brings support for a G2 vanilla on DVD and some error management in case of unsuccessfully copied files.
Zitat von Korianous
Fear not. All it would be is a console-based installer, it would run much as a batch script would, as far as laymen are concerned. It only allows for a bit more interactivity .
Then get busy.
Someone with a non EN Windows reading this? I'm curious if the commands are translated or still in English. For example, on a German Windows, does dir shows "freien Bytes" or "free bytes"?
-
To make it work with other versions (the ones on CDs, universe edition, other languages, etc.) I need your help: to test the scrip with Vista and Win 7 (preferably with UAC on (if it work with ON, it will work with OFF also, I guess)) and to copy paste here a list with the contents of your G2¬r disks (DVD or CDs), with a command like this: dir /s /og > c:\list.txt
There are contents of russian versions of Gothic II (localized by Akella).
Gothic II (vanilla, built on base of english version 1.31, 3 CDs set).
CD #1:
CD #2:
CD #3:
Gothic II (NotR, built on base of german version 2.6, 2 CDs set).
CD #1:
CD #2:
N.B.:
- List of files contains some cyrillic characters (because I have a russian version of Windows).
- I know nothing about files from a folder "rus" - they may be included into .cab or should be copied directly into "Gothic 2" folder after end of unpacking from cabs?
- Contents of folders "Demki" and "catalog cd" from NotR CD #1 not required to install addon.
- Filled by junk code file "data.dat" from NotR CD #2 must be ignored.
- I know about presence of russian version Gothic II in one DVD and Gothic II Gold (russian versions of Gothic II and NotR in one DVD), but I don't have these discs.
Geändert von Dimus (09.11.2009 um 08:13 Uhr)
-
Version 0.91 supports G2 vanilla on 3 CDs, the one avaratz has.
Zitat von Dimus
- I know nothing about files from a folder "rus" - they may be included into .cab or should be copied directly into "Gothic 2" folder after end of unpacking from cabs?
I guess in the packs are the original En version files and in the rus folder the translation to Russian (looks like the binaries, the scripts and the videos). Does the Ru version has full speech in Russian or just the text?
-
Zitat von Larisa
Version 0.91 supports G2 vanilla on 3 CDs, the one avaratz has.
I guess in the packs are the original En version files and in the rus folder the translation to Russian (looks like the binaries, the scripts and the videos). Does the Ru version has full speech in Russian or just the text?
Yes, the Russian versions of G2 & NotR have full Russian speeches (Speech1.vdf, Speech2.vdf and Speech_Addon.vdf) which included into cabs. The file speech3.vdf contains a part of error fixes in various dialogues (for example, fixed one phrase of Boltan about Bennet, phrases of Dar when Hero gives him mushroom tobacco, some phrases of Hero from dialogues with Lee and so on).
I'll try your latest extractor to look into cabs of Russian version of G2 and compare unpacked contents with files from "rus" folder.
-
-
Zitat von WernerTWC
Do you mean this?
Yep. It's what I was afraid about.
Guess I have to change the detection method from dir to wmic.
-
Attempt to unpack Russian version of G2 via script "G2 on 3 CDs.cmd" failed because required for installation file sets in English and Russian versions too different. After adaptation script to Russian file set all required files copied into current folder:
But after execution of command setup.exe /S /X .\ unpacking process not started and appears file setup.log with following content:
Further testing of script stopped because I don't know what means this result code.
Geändert von Dimus (12.11.2009 um 13:11 Uhr)
-
Zitat von Dimus
installation file sets in English and Russian versions too different.
Indeed, the scripts made so far by me are tailored to work only with the versions I've tested, to make sure other problems, like the one below, don't appear to normal users.
Zitat von Dimus
But after execution of command setup.exe /S /X .\ unpacking process not started and appears file setup.log with following content:
[InstallShield Silent]
That means the russian installer is made with installshield software, not with wise installer software, like the English versions. So, most probably, it needs different parameters. (you could try with setup.exe /extract_all:c:\g2extra or setup.exe /a )
But, do you know if there are such problems like the ones this script tries to solve... with the russian version? No need to develop a fix for a problem that doesn't exist.
So far my guess was that it was related to the installer technology used.
Other things: switched the free space detection method, works fine both in xp and in vista.
However, now I saw that I must add some lines advising the user what to do in case a UAC windows pops up, and also trying to find a workaround for another window (vista is so great ) with compatibility assistant blah blah blah.
Geändert von Larisa (12.11.2009 um 13:47 Uhr)
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
|
|