Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion pc 2 mac - exception Error in XML document #59

Closed
papillon-rs opened this issue Dec 6, 2013 · 3 comments
Closed

Conversion pc 2 mac - exception Error in XML document #59

papillon-rs opened this issue Dec 6, 2013 · 3 comments

Comments

@papillon-rs
Copy link

Selecting multiple files works fine - thx for adding it

Tested with v2.2.1.0 dd9545a beta

I get on 4 RS2k14 customs XML exceptions - maybe they're already fixed and the customs has to be rebuild. If not here's the link to the customs zip

http://www.sendspace.com/file/ft2h0y (14MB)

and the exception

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: There is an error in XML document (3, 2). ---> System.InvalidOperationException: was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSong2014.Read31_song()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at RocksmithToolkitLib.Xml.Song2014.LoadFromFile(String xmlSongRS2014File) in c:\build\RocksmithToolkitLib\XML\Song2014.cs:line 149
at RocksmithToolkitLib.Sng2014HSL.Sng2014File.ConvertSong(String xml_file) in c:\build\RocksmithToolkitLib\Sng\Sng2014File.cs:line 39
at RocksmithToolkitLib.DLCPackage.Packer.UpdateSng2014(String songDirectory, Platform platform) in c:\build\RocksmithToolkitLib\DLCPackage\Packer.cs:line 524
at RocksmithToolkitLib.DLCPackage.Packer.Pack2014(String sourcePath, String saveFileName, Platform platform, Boolean updateSng) in c:\build\RocksmithToolkitLib\DLCPackage\Packer.cs:line 128
at RocksmithToolkitLib.DLCPackage.Packer.Pack(String sourcePath, String saveFileName, Boolean useCryptography, Boolean updateSng) in c:\build\RocksmithToolkitLib\DLCPackage\Packer.cs:line 37
at RocksmithToolkitGUI.DLCConverter.DLCConverter.ConvertPackageForSimilarPlatform(String unpackedDir, String targetFileName) in c:\build\RocksmithTookitGUI\DLCConverter\DLCConverter.cs:line 252
at RocksmithToolkitGUI.DLCConverter.DLCConverter.convertButton_Click(Object sender, EventArgs e) in c:\build\RocksmithTookitGUI\DLCConverter\DLCConverter.cs:line 203
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1008 (RTMGDR.030319-1000)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

RocksmithToolkitGUI
Assembly Version: 2.2.1.0
Win32 Version: 2.2.1.0

CodeBase: file:///Z:/Downloads/Rocksmith-DLC/custom-tools/master-2.2.1.0-dd9545a479ba.zip%20Ordner/RocksmithToolkitGUI.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1002 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1001 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1001 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

RocksmithToolkitLib
Assembly Version: 2.2.1.0
Win32 Version: 2.2.1.0

CodeBase: file:///Z:/Downloads/Rocksmith-DLC/custom-tools/master-2.2.1.0-dd9545a479ba.zip%20Ordner/RocksmithToolkitLib.DLL

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1015 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1015 (RTMGDR.030319-1000)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

jjl2lhun
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1001 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll

System.Dynamic
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll

Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.1008 (RTMGDR.030319-1000)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

zlib.net
Assembly Version: 1.0.3.0
Win32 Version: 1.0.3.0

CodeBase: file:///Z:/Downloads/Rocksmith-DLC/custom-tools/master-2.2.1.0-dd9545a479ba.zip%20Ordner/zlib.net.DLL

Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 4.5.10.15407

CodeBase: file:///Z:/Downloads/Rocksmith-DLC/custom-tools/master-2.2.1.0-dd9545a479ba.zip%20Ordner/Newtonsoft.Json.DLL

yzo1a2tx
Assembly Version: 2.2.1.0
Win32 Version: 4.0.30319.1001 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

MiscUtil
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.285

CodeBase: file:///Z:/Downloads/Rocksmith-DLC/custom-tools/master-2.2.1.0-dd9545a479ba.zip%20Ordner/MiscUtil.DLL

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

@fabianosan
Copy link
Contributor

Is custom made by old eof tool.
Will not work with this tool.

Request user to update song chart opening in last eof, save again and
regenerate package.

@0x0L
Copy link

0x0L commented Dec 6, 2013

This patch solved it for me (running on osx/mono but i should be ok for windows too:

diff --git a/RocksmithToolkitLib/DLCPackage/Packer.cs b/RocksmithToolkitLib/DLCPackage/Packer.cs
index bb59a3c..f822cd6 100644
--- a/RocksmithToolkitLib/DLCPackage/Packer.cs
+++ b/RocksmithToolkitLib/DLCPackage/Packer.cs
@@ -507,15 +507,15 @@ namespace RocksmithToolkitLib.DLCPackage
         }

         private static void UpdateSng2014(string songDirectory, Platform platform) {
-            var xmlFiles = Directory.EnumerateFiles(Path.Combine(songDirectory, @"songs\arr"));
+           var xmlFiles = Directory.EnumerateFiles(Path.Combine(songDirectory, @"songs/arr"));

             foreach (var xmlFile in xmlFiles)
             {
-                if (File.Exists(xmlFile) && !(xmlFile.ToLower().IndexOf("_showlights.xml") > 0))
+                if (File.Exists(xmlFile) && !(xmlFile.ToLower().IndexOf("showlight") > 0))
                 {
                     var sngFile = Path.Combine(songDirectory, Path.Combine("songs","bin", platform.GetPathName()[1]), Path.GetFileNameWithoutExtension(xmlFile) + ".sng");
                     var arrType = ArrangementType.Guitar;
-                    if (Path.GetFileName(xmlFile).ToLower().IndexOf("_vocals.xml") >= 0)
+                    if (Path.GetFileName(xmlFile).ToLower().IndexOf("vocal") >= 0)
                     {
                         arrTyp

@fabianosan
Copy link
Contributor

Good, I'll test it.

otaznik pushed a commit to otaznik/rocksmith-custom-song-toolkit that referenced this issue Dec 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants