Aller au contenu

Photo

Unable to save module/duplicate resource


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

#1
ahlewis32

ahlewis32
  • Members
  • 52 messages
I'm getting the "Unable to save module" message when I try to make a new one. I also can't duplicate an item like armor or swords to work on either. I get a similar message. After checking the forums, the only advice available is a 2 year old thread on the issue that recommends I reinstall the toolset.  I would prefer not to do that as it took me weeks to get it running on my system to begin with. The thread was abandoned so I have no idea if the issue has been solved or not.  I'm a rookie with all this and have a limited understanding of programming which doesn't help either.  Here are my stats:

Windows 7 completely updated
Language is English
Retail version of DA:O Ultimate Edition
This is the log message I get when I try to save a new module:

 Sun Jan 29 05:44:09 2012, ERROR, "d:\\DASecuROMBuild\\main\\dev\\tools\\sdk\\include\\toolsoledb.h", 226, "String or binary data would be truncated."
Sun Jan 29 05:44:09 2012, ERROR, ".\\dbmodule.cpp", 338, "CDBModule::Add caught an exception: Bad HRESULT: 80040e57"

Log message when I try to duplicate an item:
Sun Jan 29 05:45:32 2012, ERROR, "d:\\DASecuROMBuild\\main\\dev\\tools\\sdk\\include\\toolsoledb.h", 226, "String or binary data would be truncated."
Sun Jan 29 05:45:32 2012, ERROR, ".\\dbresref.cpp", 189, "CDBResRef::Add caught an exception: Bad HRESULT: 80040e57"
Sun Jan 29 05:45:32 2012, ERROR, ".\\toolsoledb.cpp", 971, "Tools::DBTransaction::~Tools::DBTransaction: Abort failed."
Sun Jan 29 05:45:32 2012, ERROR, ".\\dbbase.cpp", 636, "CDBBase::Create caught an exception: Failed to create the resref record"
Sun Jan 29 05:45:32 2012, ERROR, ".\\ResourceIOBase.cpp", 507, "ResourceIOBase::CreateResourceInternal caught an exception: Unable to create a new resource with the name of ""my_armor"" in campaign 1."
Sun Jan 29 05:45:32 2012, ERROR, ".\\toolsoledb.cpp", 971, "Tools::DBTransaction::~Tools::DBTransaction: Abort failed."
Sun Jan 29 05:45:32 2012, ERROR, ".\\ResourceIOBase.cpp", 953, "ResourceIOBase::CopyResourceInternal caught an exception: Unable to create the new resref for the resource ""gen_im_arm_cht_med_elv"" in campaign 1."
Sun Jan 29 05:45:32 2012, ERROR, ".\\toolsoledb.cpp", 971, "Tools::DBTransaction::~Tools::DBTransaction: Abort failed."

Hope someone can give me some insight here. Thanks for reading

#2
ahlewis32

ahlewis32
  • Members
  • 52 messages
I tried the complete reinstall suggestion from the abandoned thread I found and still can't create my own module. So I'm back to the previous post and can only make head morphs as that's the only thing that my toolset will let me do. Everything is accessible, I just can't make anything save. HELP!

#3
DahliaLynn

DahliaLynn
  • Members
  • 1 387 messages
Not that I know much about this, but unless someone more knowledgeable jumps in the thread, I can try. Can you list the steps you are taking one by one when you attempt to create your new module?

Modifié par DahliaLynn, 29 janvier 2012 - 06:38 .


#4
ahlewis32

ahlewis32
  • Members
  • 52 messages
Sure. I'm following the creating new module tuturial from the BW wiki along with help from Mikemike's videos on YouTube. Here's the steps I followed for both module creation and duplication of a resource:

1. Open File>Manage Modules and switch to single player if not already there (sometimes it comes up on its own)
2. Open File>Manage Modules and press New.
3. I name it "my_module" for ease and use the same name on the UID per the tuturials. I press OK then always get the "Unable to save module" message window.
When trying to duplicate an item such as a sword I do this:
1. I open the palette, click the sword icon and go to _Global>weapons, melee>Longswords then pick one; I'll choose Dar'Missan for this
2. I right click the sword name and Duplicate Resource window comes up. I name it heather_sword. (my name)
3. I get a window that says: "The duplication of the resource "gen_im_wep_mel_lsw_dar" failed. Reason: Unable duplicate the resource as specified.

The odd thing about all this is I can successfully create head morphs with no trouble. I've even gotten them to work in game much to this grandma's surprise. (This is a new hobby that I seem to obsessing over but having a great time doing)  It seems that I am entering something wrong somewhere or I need to enter something that I don't know I should. I'm not sure what. I did the total reinstall: it's a nightmare to do for me as it requires Registry editing to do. I still get the same messages. Here's the address of the abandoned thread I found that addresses this problem:  http://social.biowar.../8/index/184494.  It seems there was no solution found or if there was, it's not publicized here. I changed my computer's name to something with less characters and my language is English so that's not it.

On a totally separate note: Thank you so much for being the one to reply.  Please allow this MO grandma to gush over you. Your Alistair's Visible Kiss mod was the first one I ever used and it worked so well. Your work has taught me a lot about how this all works and that's no small feat for me! I have all your mods installed now and they are the best as are you. You are my hero! Please keep it up!!!

#5
Sunjammer

Sunjammer
  • Members
  • 926 messages
In the broadest terms there are two types of resources which you can create using the toolset: resources that are stored as external files and resources that are stored in the database. This is why one type of resource is behaving while another is completely misbehaving!

It appears that you aren't experiencing any issues with the file-based resources, since you can already create new head morphs, so you shouldn't have any issues with things like materials, visual effects or levels.

Where things appear to be going wrong is with the resources that are stored in the database which means you will be unable to create things like modules, items, creatures, cutscenes, etc. until it is resolved.

My first instinct would be to check your rights on your compter/the database. I assume you are running the toolset as an adminstrator? That said I'm not convinced this is the problem since the database roles are created automaticly and are the same for all of use. Moreover it appears that are only being prevented from writing to the database and can still read from it (to populate the module list, the palette, etc.)

That brings us on to the the thread you linked to and the corresponding bug report I found in the wiki. It appears that the work-around relates specifically to your user name. So when you say you changed your "computer's name" do you actually mean your name assigned to your computer or the user name you log into your computer with?

On a totally separate note: gushing is not only acceptable but actively encouraged (at least by me) when talking about Dahlia's work!

Modifié par Sunjammer, 30 janvier 2012 - 06:32 .


#6
ahlewis32

ahlewis32
  • Members
  • 52 messages
I changed both, but System Info still shows the old name which is 35 character\\spaces long. The new one is only 5. I found how to change that but it requires a registry edit. I found where the name is in the registry but am not sure which key is the one to take out so I didn't touch it. Previous experience tells me to leave it alone as it's not fun to fix when you mess up. Any ideas would be appreciated.
I always run as administrator as no one else ever uses my computer and I almost never change anything.
I found that report too and it lead me to the forum entry. Can't find out if it was ever solved or if they just quit looking at it.
Thanks for your time Sunjammer, I appreciate it. DahliaLynn rocks!

#7
Sunjammer

Sunjammer
  • Members
  • 926 messages
Mmm ... I tried changing my user name via the control panel and it really doesn't change much (my "user" folder and my connection to the database both still used my original user name) so I'm not sure how that fixed anything for anyone!

Perhaps the easiest solution would be to switch to SQL authentication on the database (obviously with a nice short database-friendly user name) and use the Toolset's alternative connection with this username, etc. At the very least this would avoid having to hack the registry and you could go back to using your original user name on Windows.

This "solution" shouldn't be difficult to do and "should" resolve the issues!

However it probably won't lend itself to the forums so I can either try to put together a guide and you can work through it or if you have a suitable chat application (I'm on Skype, Windows Live, Google Talk, etc.) I can try to walk you through it in real time.

Either way you are going to need Microsoft SQL Server Management Studio Express.

Modifié par Sunjammer, 30 janvier 2012 - 09:36 .


#8
ahlewis32

ahlewis32
  • Members
  • 52 messages
I'm better at reading comprehension (I used to teach English) so if you have time, a numerical step by step is greatly appreciated. I can reread it if I have to. It's a grandma thing! Don't hurry as I can still play with head morphs and learn much that way. I'll download the Exprss Version and try that asap. Thanks!

#9
Sunjammer

Sunjammer
  • Members
  • 926 messages
Okay I'll try to put together a quick guide over the next couple of evenings (between SWTOR sessions) which failing definitely at the weekend.

MSSMSE is just GUI interface for SQL Server Express but it's a lot more user friendly than using the command line interface. Hopefully your long user name won't cause problems with it and so we can create a new user account ...

#10
ahlewis32

ahlewis32
  • Members
  • 52 messages
I think I figured out how to change SQL authentication thanks to its really good help program but it didn't fix my problems. I may be doing it wrong which would be typical for me. I'll keep looking at how to change my user name on the computer in the meantime. That may fix it for me too, Thanks so much for your help Sunjammer, you are the best!

#11
Sunjammer

Sunjammer
  • Members
  • 926 messages
I just had a quick look in the database and the CreateBy and LastModifiedBy columns in the t_Module table were looking decidedly sheepish about this sorry state of affairs. They are limited to just 32 characters and their value is in the format <server-name>\\<user-name>. For most people the <server-name> will be the name of their computer. For me this combination comes to 25 characters.

In any event at least this probably means the issue is specifically a Toolset database issue rather than a general database issue (that's good news I believe). It could also mean another option may be to simply change the size of these fields, any any similar fields, to something more generous like 64 characters. If there are several of these fields (and I just found one in the t_ResourceTables table so that's likely) it could get messy!

Lewsbabe2011 wrote...

I think I figured out how to change SQL authentication ...

Changing the authentication is only the first step: we also have to 2) set up a new user name with the correct rights and privileges, and 3) set up an alternative connection for the Toolset (using the ConfigureToolset.exe provided).

Modifié par Sunjammer, 30 janvier 2012 - 11:03 .


#12
DahliaLynn

DahliaLynn
  • Members
  • 1 387 messages
 Thanks much for the kudos :blush:. Now that you have Sunjammer assisting you, I believe that's all you will ever need for your Toolset woes ;) He remarkably managed to get me out many, many tough and almost impossible situations.

Modifié par DahliaLynn, 30 janvier 2012 - 11:28 .


#13
ahlewis32

ahlewis32
  • Members
  • 52 messages
I can't believe it! I got it to work!
Here's what I did. I went to the Microsoft support center and found how to change my user account name. I did that but the System Info still has the old name. I deleted the old Admin account and transferred all my stuff to the new, shorter named account. Once I got everything on the menus and desktop like it was before, I started up the toolset, went to manage modules, clicked new, named it and Voila! it saved. Duplication of an item works too, It all moves a lot slower but that's probably due to me having to redo all the settings for the new user account.
Thanks so much for all your help Sunjammer and for all your work and for listening DahliaLynn! SunJammer, I plan on trying out your mods asap as they sound fun. You are all so great and I can't wait to get started!