Database migration

From Dragon Age Toolset Wiki
Revision as of 10:23, 17 October 2016 by Apaajadah (Talk | contribs) (Undo revision 13154 by Elvenundead (talk))

Jump to: navigation, search
Ambox warning yellow.png
Caution: When installing a new version of the toolset over the old version, make sure to tell the installer not to overwrite the existing database unless you want to wipe the resources there and start fresh. If you want to preserve your existing work, you'll need to leave the existing database intact.

See Backing up your database for instructions on how to back up your database before proceeding.

Migration von Version 1.00 auf Version 1.01

Leider gibt es Veränderungen in der Baumeister-to-Builder-Format der Toolset in der neuesten Version wurden (zu beheben die Ursache der Plot GUID Bug), so wird es nicht möglich sein, alte Inhalte direkt auf die Migration Toolset neue Version mit einem Baumeister zu Baumeister Export / Import. Stattdessen gibt es eine bestimmte Abfolge von Schritten müssen Sie folgen, um nach vorne zu bringen Inhalte, die Sie wollen, zu erhalten und gleichzeitig auch die korrigierten Kern Ressourcen gewinnen in der neuen Datenbank, die mit dem Installationsprogramm ist.

Schritt 1 - Installieren Sie Version 1.01 des Toolset aber halten Sie Ihre alte Datenbank

[[File: Installer - nicht wiederhergestellt werden kann die Standard-database.png | center | frame | Wie Sie Ihre bestehende Datenbank während der Neuinstallation] zu erhalten]

Dies wird Ihnen das neue Toolset aber halten Sie Ihre alte Datenbank mit allen Inhalte, die Sie erhalten möchten noch in ihm gespeichert.

Schritt 2 - Builder-to-builder speichern Sie Ihre Arbeit

Nachdem Sie nun Ihre Ressourcen zugänglich in einer neuen Version des Toolsets, dass die neuen Builder verwendet-to-Builder-Dateiformat können Sie Ihre Arbeit in einer DADBDATA Datei zu speichern hat, dass die neue Version des Toolset werden in der Lage zu verstehen. Siehe Baumeister zu builder Seite für Informationen darüber, wie die Auswahl und speichern Sie die Ressourcen, die Sie behalten möchten. Speichern Sie nicht den alten Kern Ressourcen, und vor allem nicht im alten Ortskern Grundstücke, da diese Mittel in der neuen Datenbank der Installation werden Sie in Schritt 3 aktualisiert werden.

Schritt 3 - Ersetzen Sie die alte Datenbank mit der neuen

Das Toolset Installer wird eine Backup-Kopie der neuen Datenbank in den folgenden Ort platziert werden soll:

 C: \ Program Files \ Dragon Age \ tools \ dbbak \ bw_dragonage_content.bak

oder wo immer Ihr Dragon Age Spiel installiert wurde, wenn nicht Program Files. Diese Datenbank ist Kern des Grundstückes GUIDs in Berichtigung, und installieren Sie diese Sicherung wird der Plot GUID Bug zu lösen. Für Informationen darüber, wie dieser Datenbank Backup und Restore, siehe Sichern Sie Ihre Datenbank, unten.

Schritt 4 - Builder-to-Builder laden Sie Ihre Arbeit

Jetzt haben Sie die korrigierte Kern-Ressourcen in Ihrer Datenbank erstellen Sie die Module, die Sie gespeichert Ihre Arbeit und die Verwendung von Baumeister zu Baumeister, um Ihre Ressourcen wieder in sie zu laden.

Will we need to do this rigamarole each time the toolset is updated?

The process above is due to an unfortunate combination of needing to provide you with a brand new set of core resources (to correct the plot GUID bug) and also changing the format used to store information in DADBDATA files (to correct the root cause of the plot GUID bug, which was that the builder-to-builder process didn't preserve GUIDs for plot resources when loading them). In the future, assuming we don't find any more fundamental bugs like this one that require the builder to builder format to change again, DADBDATA files should be compatible across toolset versions. Furthermore, unless once again we find more fundamental bugs in the core resources as distributed, it should not be necessary to replace your database in future updates.

So barring unforseen circumstances future updates should be a lot less complicated than this one.

Backing up your database

See Database backup and restore for more technical details.

Using the Backup and Restore batch files

A pair of batch files have been included with the toolset install to ease the process of making backups. They can be found at:

C:\Program Files\Dragon Age\tools\DatabaseUtilities\Backup_Restore

Both the "Backup" and "Restore" scripts are controlled by settings stored in the config.ini file. If you're using the default database location the only settings you'll need to change are the filenames that backups will be stored to or read from.

Use caution when restoring your database, as this will overwrite everything in your existing database.

Also note that SQL Server is very picky about directory access permissions, and may not be able to write to the directory of your choosing. Check to make sure that your backup file was actually created after doing a backup. A common way of ensuring that SQL Server will be able to write to the backup directory is to create the backup directory directly off of the root of your drive, such as C:\Backups\.

Using SQLCMD manually

Should you want to back up your database, you'll need to enter a few commands to the database server.

Starting from a DOS prompt, type:

sqlcmd –S.\bwdatoolset

When the prompt comes up 1>, enter

backup database bw_dragonage_content to disk="<Directory & File Name>"
GO

Also, bear in mind that some resources (such as art resources) are not included in your database; they are stored as files on your hard drive. Keep track of where you've put these and, if they're in a directory that might be affected by reinstallation of the toolset, make backups of these too.

The exported version exists as a file in the override directory. This directory gets emptied by default when a new version is installed. If you haven't backed up the directory's contents you will need to reexport the resources into game format.