Aller au contenu

Photo

Problems with importing builder 2 builder


  • Veuillez vous connecter pour répondre
10 réponses à ce sujet

#1
Zola_Weston

Zola_Weston
  • Members
  • 46 messages

Hi all,

 

I've just bought myself a new computer and I am trying to import a  builder to builder file into a new installation of the toolset. Unfortunately I keep meeting errors whenever I try to import the file - seems to be mostly referencing issues see below:-

 

Could not find referenced resource bw-db://.\BWDATOOLSET/bw_dragonage_content?resrefid=23197 for 1_mycutscene.cut

 

 

So confused - I am already importing the item ref 23197 as part of the import? Does this mean I have to stagger the import process to make sure that all the dependencies are there before I can import what I need? If so this is going to be one heck of a job as I have a lot of dependencies on many of the files. Argh!

 

I've had a look around at the old forums for answers and came across someone saying something about an issue with renaming files and having to duplicate them - but I am not entirely sure what they mean...?

 

Argh! Please help me before this new, shiny computer takes a beating!!  :angry:  :(  :wacko:  :blink:

 

 

 



#2
luna1124

luna1124
  • Members
  • 7 649 messages

Do you have windows 8? And did the toolset install correctly? I know some people had trouble with it. Did you create a new module for the import? Or are you using the single player? not sure if that makes a difference or not. I know which ever module is open at the time of import is where the data will be referenced. ??????


  • Zola_Weston aime ceci

#3
Sunjammer

Sunjammer
  • Members
  • 925 messages

I suspect that you have (unintentionally) omitted one or more resources from the B2B. This may be because you didn't select them as it was a hidden dependency or perhaps they are owned by another module in the hierarchy, for example, you cloned a single player resource and didn't correct the module/owner module.

 

Fortunately if you still have your old computer you can avoid this mucking about with B2B files ...

 

Although it may appear daunting at first the easiest thing is to use the database's backup and restore feature to backup the database on your old, copy it across and then restore it on your new computer. I was going to link to the wiki but looking at that page it is massively more complicated that it needs to be so I'll try to do a quick guide here:

 

WARNING: if your new computer is Windows 8 it can be a pain to get the restore to work the first time. There are two issues (relating to privileges) which I have solved but I can't remember exactly what I did so we'd have to work through if they affect you. After the first time you can backup and restore to your heart's content.

 

WARNING: Restoring a database completely replaces the current database with that name on that computer!

  • On your (new computer's) C: drive create a Backups folder
  • On your (old computer's) C: drive also create a Backups folder
  • Open the toolset and check in every checked out resource in every module:
    • Open the Toolset and select File > Manage Modules
    • Open the first module in the list of modules
      • In the Palette Window click on Filter button (down arrow beneath the resource buttons)
      • Check both options (Only show resources checked out to me and Hide Folders)
      • Click on the All resource button
      • Check In all of the resources
    • Repeat the above for every modules in the list of modules (including the BioWare modules)
    • Close the Toolset
  • Navigate to Dragon Age Toolset's tools directory (i.e. where you find the DragonAgeToolset.exe)
  • Navigate to the DatabaseUtilities\Backup_Restore subdirectory
  • Open the config.ini file in your preferred text editor (i.e. Notepad)
  • Replace the contents with the following:
Backup/Restore Config file

[SQL Server Name]
.\BWDATOOLSET

[Database Name]
bw_dragonage_content

[Path to Directory to Save new Backup files to]
C:\Backups\

[Name of New Backup File]
bw_dragonage_content_001.bak

[Path to Directory Containing Existing Backup Files]
C:\Backups\

[Name of Existing Backup File to Restore]
dummy.bak
  • Save and close the file.
  • Double click on the Backup.bat file (a console window will open) and type BACKUP when it asks you to
  • If the backup was successful navigate to your C:\Backups folder
  • Transfer the bw_dragonage_content_001.bak from your old computer to your new computer's C:\Backups folder
  • On your new computer navigate to the DatabaseUtilities\Backup_Restore subdirectory
  • Open the config.ini file in your preferred text editor
  • Replace the contents with the following:
Backup/Restore Config file

[SQL Server Name]
.\BWDATOOLSET

[Database Name]
bw_dragonage_content

[Path to Directory to Save new Backup files to]
C:\Backups\

[Name of New Backup File]
dummy.bak

[Path to Directory Containing Existing Backup Files]
C:\Backups\

[Name of Existing Backup File to Restore]
bw_dragonage_content_001.bak
  • Save and close the file.
  • Double click on the Restore.bat file (a console window will open) and type RESTORE when it asks you to

  • luna1124 et Zola_Weston aiment ceci

#4
AmstradHero

AmstradHero
  • Members
  • 1 239 messages

If you're running either backup.bat or restore.bat, you need to make sure that you're doing so with admin privileges or they will not work. While I'm not running Win8, at least in Win7 you can right click on the batch file and select "Run As Administrator" or words to that effect. Alternatively, fire up a command prompt with admin privileges and run the batch files from there.

 

Not sure if there are any additional gotchas with Win8 regarding the backup/restore process, but that's how to do it on Win7, so hopefully that should help.


  • luna1124 et Zola_Weston aiment ceci

#5
Zola_Weston

Zola_Weston
  • Members
  • 46 messages

Do you have windows 8? And did the toolset install correctly? I know some people had trouble with it. Did you create a new module for the import? Or are you using the single player? not sure if that makes a difference or not. I know which ever module is open at the time of import is where the data will be referenced. ??????

 

Yes I am on Windows 8 - for my sins! ;) I've mainly used my own custom resources assigned to my own module so not too dependent upon single player resources.

 

Sunjammer - luckily I do still have my old machine so I will give your method a try - though I remember I had privilege issues with my old machine in trying to backup my database which was why I relied on backing my work up on B2B...(and now regretting it)... may have to jump through a few hoops to get it working on both machines (oh the joy!) but try I shall.

 

I will give it a try at the weekend when I have the time to look at it properly  and will let you know if I run into any difficulties - which is likely given my luck so far! :) Thank you both for responding...I'll keep you updated. :)


  • luna1124 aime ceci

#6
Zola_Weston

Zola_Weston
  • Members
  • 46 messages

If you're running either backup.bat or restore.bat, you need to make sure that you're doing so with admin privileges or they will not work. While I'm not running Win8, at least in Win7 you can right click on the batch file and select "Run As Administrator" or words to that effect. Alternatively, fire up a command prompt with admin privileges and run the batch files from there.

 

Not sure if there are any additional gotchas with Win8 regarding the backup/restore process, but that's how to do it on Win7, so hopefully that should help.

 

Thanks AmstradHero - I vaguely remember trying to backup my databases on my old system and having trouble with windows 7 and admin privileges even when I was running batch files as administrator...but I'll have to cross that bridge when I come to it....  this should be...interesting? :(


  • luna1124 aime ceci

#7
Sunjammer

Sunjammer
  • Members
  • 925 messages

Yes I am on Windows 8 - for my sins!

Okay then I need to remember what I had to change in order to get the restore to work ...*thinks really hard* ... I have a feeling I had to create a new user account on the BWDATOOLSET to run the backup and I had to grant the Network Service account rights on the C:\Backups folder. If you let me know any errors you encounter hopefully I'll be able to confirm the solution.


  • luna1124 aime ceci

#8
Zola_Weston

Zola_Weston
  • Members
  • 46 messages

Okay then I need to remember what I had to change in order to get the restore to work ...*thinks really hard* ... I have a feeling I had to create a new user account on the BWDATOOLSET to run the backup and I had to grant the Network Service account rights on the C:\Backups folder. If you let me know any errors you encounter hopefully I'll be able to confirm the solution.

 

Thank you Sunjammer I really appreciate the help/advice I dont want to have to redo all my work. I'll get cracking on this tomorrow (Saturday) and I'll give you a yell when I hit a wall. :)


  • luna1124 aime ceci

#9
Zola_Weston

Zola_Weston
  • Members
  • 46 messages

Right so I have tried the process of backing up the database on my old PC - when I run the batch files it says it is successful but no backup file is saved in C: Backups... when I look at the log I have the following information (as I suspected it looks like I need to faff around with the Security rights to the DA toolset database):

 

Backup Batch File initated on 08/03/2014 at 10:10:11.31
using the following config.ini settings: 
         ------------------------------------------- 
         Backup/Restore Config file 
         [SQL Server Name] 
         .\BWDATOOLSET 
         [Database Name] 
         bw_dragonage_content 
         [Path to Directory to Save new Backup files to] 
         c:\Backups\ 
         [Name of New Backup File] 
         bw_dragonage_content_001.bak 
         [Path to Directory Containing Existing Backup Files] 
         c:\Backups\ 
         [Name of Existing Backup File to Restore] 
         dummy.bak 
         ------------------------------------------- 
 
Following command line being executed: 
sqlcmd -S .\BWDATOOLSET -E -Q "BACKUP DATABASE bw_dragonage_content TO DISK = 'c:\Backups\bw_dragonage_content_001.bak'" 
 
Msg 916, Level 14, State 1, Server AMY-PC\BWDATOOLSET, Line 1
The server principal "Amy-PC\Amy" is not able to access the database "bw_dragonage_content" under the current security context.
Msg 3013, Level 16, State 1, Server AMY-PC\BWDATOOLSET, Line 1
BACKUP DATABASE is terminating abnormally.
 
Backup file will be found at: c:\Backups\bw_dragonage_content_001.bak 
 
Batch File completed at 10:10:17.12 
+=================================================================+ 
+=================================================================+ 
 
Any ideas on how I can sort out these security settings?


#10
Zola_Weston

Zola_Weston
  • Members
  • 46 messages

With some help from Sunjammer we managed to fix this and other issues - oddly windows 8 seemed quite happy with the restore method much to our surprise. Not complaining - its helpful to know that this method exists since using the builder to builder method doesn't appear to be very useful. I'll be doing backups in the future for sure!

 

And I have my project that I thought I would have to recreate has fully returned to me - I am so happy about that! :D:D:D



#11
Sunjammer

Sunjammer
  • Members
  • 925 messages

Yes for some reason we encountered all the problems when creating the backup on Windows 7 that I was excepting to meet applying the restore on Windows 8. I suppose that may still arise when you eventually decide to back up the database on Windows 8.

 

To that end, and for anyone who stumbles on this thread while looking for an answer a quick overview of what happened.

 

1. Install Microsoft SQL Server Management Studio Express 2005

 

In order to easily address the "server principal X is not able to access the database" error we need Microsoft SQL Server Management Studio Express 2005 (also know as SSMSE). If you don't already have SSMSE you can download it from this page. It comes in both 32-bit and 64-bit flavours so ensure you download the right one. If you don't know which version you can refer to this page.

 

2. Fix the "installer has encountered an unexpected" error

 

The SSMSE installer (.msi package) has to be run with administrator privileges. If your aren't logged in as an administrator the installation will fail with the following 29506 error: "The installer has encountered an unexpected error installing this package.This may indicate a problem with this package.The error code is 29506". To resolve this you can use an administrator command prompt to run the installer.

 

Open an administrator command prompt and enter the the full file path to and name of the installer package. If you don't know now to open an administrator command prompt see this page. If the path has any spaces in it you must wrap the whole path in double quotes. You must remember to include the .msi extension (which may not be visible if Windows is hiding common extensions). For example:

C:\Windows\system32>"C:\Users\My Username\Downloads\SQLServer2005_SSMSEE_x64.msi"

3. Fix the "server principal X is not able to access the database" error

 

The backup and restore functions have to be run using the sysadmin fixed server role and the db_owner and db_backupoperator fixed database roles. If your windows account isn't a member of one of these roles the operation will fail with the following error: "The server principal "ComputerName\UserName" is not able to access the database "bw_dragonage_content" under the current security context". To resolve this you can make assign yourself the db_owner role for the Toolset's database.

 

Start SMSSE and when the "Connect to Server" window appears ensure it is configured as follows and then click connect:

Server name:    .\BWDATOOLSET
Authentication: Windows Authentication

Once you are connected locate the Security folder in the Object Explorer. Expand it and right-click on the Logins folder and select the New Login ... menu option. When the Login - New window opens (at the General page) enter the Login name as it appeared in the error message, i.e. ComputerName\UserName.

 

Alternatively click the Search... button. When the Select User or Group window opens enter your user name in the Enter the object name to select (examples) text box and click the Check Names button. This should complete your user name. If it does not you can click on the Advanced ... button for more options. Click the Okay button.

 

Leave all the other settings on that page at their default settings and select the User Mapping page. In the Users mapped to this login list check the check box beside the bw_dragonage_content entry. Your user name will be added to the entry in the User column and the Database role membership for: bw_dragonage_content list. In that list check the checkbox next to db_owner.

 

Click Okay.

 

Truth be told this step took a couple of attempts. The first time we tried it, we couldn't access the User Mapping page without getting a 916 error. However after closing SMSSE down, reopening it, expanding the Security and Logins folders and reopening the new login we were able to set the mappings correctly.

 

4. Fix the "Cannot open backup device" error

 

Creating or restoring a backup takes a minute or two (the official resources alone are 687MB). If you double click on the batch file and it completes instantly then it probably failed. You can confirm this by opening the opening the log.txt file created in the Backup_Restore folder. If the operation terminated with something like following error (there are a few variations) then you need to give the SQL Server service access to the backups folder:

Msg 3201, Level 16, State 1, Line 1 
Cannot open backup device 'C:\Backups\bw_dragon_content_001.bak'. Operating system error 5(error not found).

Open the Services MMC (Microsoft Management Console) snap-in. If you don't know how to do this refer to this page. Scroll down to the SQL Server (BWDATOOLSET) entry and double-click on it (or right-click and select the Properties menu option). When the Properties window opens select the Log On page and make a note of the name in the This account text box (it should be Network Service). Close the Properties window and Services snap-in.

 

Navigate to your C: drive, right-click on the Backups folder and select the Properties menu option. When the Properties window opens select the Security page and click the Edit button. When the Permissions window opens click the Add ... button. When the Select User or Group window opens enter the account you noted above (for example Network Service) in the Enter the object name to select (examples) text box and click the Check Names button. This should complete your user name. If it does not you can click on the Advanced ... button for more options. Click the Okay button to return to the Permissions window. In the Group or user names list select the new entry you created, then in the Permissions for [user name] list check the checkbox in the Allow column for the Modify and Write entries. Click the Okay button to return the Properties window and click the Okay button to update the folder.


  • phaonica, MerAnne, luna1124 et 1 autre aiment ceci