• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Annoying bug when building a project.

lordrj15

Manx Modder
Joined
Oct 14, 2014
Messages
831
Location
Lancaster University
Recently, when I want to build a project, I get the following error in modbuddy

Spoiler :
Error 1 The "PackageMod" task failed unexpectedly.
SevenZip.SevenZipException: The execution has failed due to the bug in the SevenZipSharp.
Please report about it to http://sevenzipsharp.codeplex.com/WorkItem/List.aspx, post the release number and attach the archive.
at SevenZip.SevenZipBase.ThrowException(SevenZipBase handler, Exception[] e)
at SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, SevenZipBase handler)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(Stream archiveStream, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(String archiveName, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFiles(String archiveName, String[] fileFullNames)
at Firaxis.ModBuddy.Civ5ModBuildTasks.PackageMod.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() C:\Program Files (x86)\MSBuild\Firaxis\ModBuddy\Civ5Mod.targets 129 10 Orry's Kingdom of Mann and the Isles


I have tried reinstalling modbuddy, but the only possible fix is to restart my computer, which is honestly quite annoying, especially when I need to go in and out to make edits and test new builds.

Any ideas how to fix this? (P.S. It happens on multiple mods)
 
We all get that error sometimes...

One possibility is that you dragged and dropped files in your Solution Explorer. Even though it looks OK in Solution Explorer, if you go into the project folder in Windows Explorer, you may see repeating folder structures, like \Art\Units\test\test\test\test\test... until the filepath gets to 255 characters. If you prune those trees, the issue may resolve. Note that issue doesn't arise when using right-click cut and paste, or Ctrl+X and Ctrl+V.

I have seen some people claim to have better luck with like ModBuddy errors if you close ModBuddy and open it by double-clicking on the .civ5proj instead of opening it through the SDK menu, but I haven't really found that to be the case, myself.
 
We all get that error sometimes...

One possibility is that you dragged and dropped files in your Solution Explorer. Even though it looks OK in Solution Explorer, if you go into the project folder in Windows Explorer, you may see repeating folder structures, like \Art\Units\test\test\test\test\test... until the filepath gets to 255 characters. If you prune those trees, the issue may resolve. Note that issue doesn't arise when using right-click cut and paste, or Ctrl+X and Ctrl+V.

I have seen some people claim to have better luck with like ModBuddy errors if you close ModBuddy and open it by double-clicking on the .civ5proj instead of opening it through the SDK menu, but I haven't really found that to be the case, myself.

I have been doing some shifting of files, accidentally that is, sometimes it clicks on the wrong place and suddenly I've got 3 boxes!

Thanks alot, I'll try to clear these filepaths.
 
I've never gotten the "sevenzipsharp" error but I have gotten massively corrupted mods from dragging files within the modbuddy project. I've just gone to always copying, then deleting the original if I want to restructure the folders (etc) within a mod. Means all the actions have to be redone, but I don't get corrupt mods or other undesirable effects such as error messages while trying to create the mod.
 
I've just gone to always copying, then deleting the original if I want to restructure the folders (etc) within a mod. Means all the actions have to be redone...

Pro-tip: Close ModBuddy and open the .civ5proj file with Notepad (or plain text editor of your choice) and restructure the mod. Then delete the .civ5suo file, and re-open with ModBuddy
 
Back
Top Bottom