Quick Reply
Search this Thread
Instructor
Original Poster
#1 Old 20th May 2015 at 11:40 PM
Default Last Exception file, what does it mean?
Hello everyone,

I have a slight problem, even though it's really not a problem, because everything is working as it should. But still I would like to know from anyone who mods already a longer time and is experienced what these Last Exception files mean. I am new to all of this and I managed without knowledge to create the Alien Abduction Mod etc. But there is one thing that seems to happen with each version so far and that is it creates a Last Exception file, which seems to not break anything but is rather annoying, especially for people who always check for these things. If it was me I would just delete the file without being disturbed, but it seems there are people out there who need to have a clean game, so I would LOVE to know what does this mean:

(Or what does the game try to tell me?)

Code:
<?xml version="1.0" ?><root>
<report><version>2</version><sessionid>950ff18a7a2bfe99555c1d1f</sessionid><type>desync</type><sku>ea.maxis.sims4.13.pc</sku><createtime>2015-05-20 01:35:38</createtime><buildsignature>Local.Unknown.Unknown.1.7.65.1020-1.200.000.115.Release</buildsignature><categoryid>instance_manager.py:361</categoryid><desyncid>950ff18a7a2bfe99555c1d1f</desyncid><systemconfig/><screenshot/><desyncdata> File "T:\InGame\Gameplay\Scripts\Lib\xml\etree\ElementTree.py", line 1678, in feed
xml.parsers.expat.ExpatError: mismatched tag: line 139, column 10
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\instance_manager.py", line 375, in _create_class_instance
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\serialization.py", line 588, in create_class_instance
File "T:\InGame\Gameplay\Scripts\Core\sims4\tuning\serialization.py", line 793, in feed
File "T:\InGame\Gameplay\Scripts\Lib\xml\etree\ElementTree.py", line 1242, in parse
File "T:\InGame\Gameplay\Scripts\Lib\xml\etree\ElementTree.py", line 665, in parse
File "T:\InGame\Gameplay\Scripts\Lib\xml\etree\ElementTree.py", line 1680, in feed
File "T:\InGame\Gameplay\Scripts\Lib\xml\etree\ElementTree.py", line 1568, in _raiseerror
File "<string>", line None
xml.etree.ElementTree.ParseError: mismatched tag: line 139, column 10
</desyncdata></report>
</root>


Thank you for your time checking this for me. Hugs to anybody who knows how to read these files.

The Truth is out there!
Test Subject
#2 Old 21st May 2015 at 5:18 AM
Quote: Originally posted by Tanja1986
Hello everyone,

I have a slight problem, even though it's really not a problem, because everything is working as it should...


Code:
mismatched tag: line 139, column 10


That's the important bit. Generally that means you forgot to close a tag in one of your XML tuning files. The easiest way to find and correct those errors is to run them through an XML validator, which will tell you exactly where the error occurred. Unfortunately the lastException file doesn't tell you which XML file is at fault, so you'll have to check each file until you find the problematic one.
Deceased
#3 Old 21st May 2015 at 7:08 AM
Several times I've had this problem and it's really a pain when working on a mod with a bunch of files. The firstobject XML editor has helped me track it down really quick. Drag-and-dropped all my XML files into it and hit Alt-F7 to run validation, if it said it checked valid I just closed that file, the next one popped up and hit Alt-F7 again, rinse and repeat until it told me where the error was. Much faster and easier if you have a bunch of files to check. I'm sure there's other programs that are equally efficient at that.
Pettifogging Legalist!
retired moderator
#4 Old 21st May 2015 at 10:44 AM
Notepad++ also has an XML plugin ("XML Tools") that does syntax checking and validation -- off the top of my head I don't know whether you can batch process files with that though. But in case you are using npp already, it won't hurt to install that (since you could verify each file when you are working on it).

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Instructor
Original Poster
#5 Old 21st May 2015 at 10:00 PM
wow thank you guys! The SimGuruModSquad beat you with his answer to my PM.
He told me it was an error or mistake in one of the files at line 139. I finally figured what the error was and guess what... It was really a stupid mistake... one of the abduction trackers was the culprit...

In between the time ranges there is a </U> and the file that had the problem was missing this code piece in between the two lines... I don't know if it was my fault or if it was a fault of the original code. I need to check this with the original extracted files. But thank you all so much for helping me out!

I will make sure to run all my mods through a validation process in order to get rid of these kind of mistakes...

The Truth is out there!
Back to top