-
Notifications
You must be signed in to change notification settings - Fork 75
Description
I am using the latest
A problem with Mass Importer: If I import an (rather old, but correct) either with MassImporter or as a single file, the coordinates are not normalized, UOFiddler uses the raw coordinates in the export. Immediately after the import the house looks fine, and the component list IS normalized. But saving the Multi file, exiting UOFiddler, restarting it with the new Multi files shows the problem.
This means, coordinates are calculated fine, but somehow during saving revert to original and not relative coordinates.
As a result, UOFiddler crashes with an Exception, while calculating the image, which has no 'center' and is much too big.
As I cannot upload a small ZIP (size 8-9 kB), I will send it to you in Discord.
How to repeat the problem:
Use this XML file for MassImporter:
<MassImport>
<multi index="163" file="<Path>\0018.wsc" remove="False" />
<multi index="164" file="<Path>\0019.wsc" remove="False" />
<multi index="165" file="<Path>\001a.wsc" remove="False" />
<multi index="166" file="<Path>\001b.wsc" remove="False" />
<multi index="167" file="<Path>\001c.wsc" remove="False" />
</MassImport>
Adjust the index properties as needed, in my version they are free/unused.
Do the MassImport, the save the multi file. Exit UoFiddler, restart it, and you will see, that the Multi-Tab loads a long time. You will find the imported multis, but showing a picture will crash:
System.ArgumentException: Parameter is not valid.
at Ultima.MultiComponentList.GetImage(Int32 maximumHeight)
at UoFiddler.Controls.UserControls.MultisControl.OnPaint_MultiPic(Object sender, PaintEventArgs e)
at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
It is possible to continue, and look at the Component List:
0x0001 0 0 0 0 0
0x0066 5507 1097 0 1 0
0x0202 5507 1097 7 1 0
0x0064 5507 1098 0 1 0
....
The problem can be seen best, if using a single import, at a free place. It is not connected only to MassImporter, Just import any WSC-File, look at the result, it has a picture and a list with relative coordinates, but after saving the multi, and restarting UOFiddler with the new Multi.mul file just created has the problem.
Result immediately after import
Picture:
But - a previously imported house has no picture (see Exception above) and this list:
I hope this helps - I will give you five samples (all variants of Small Houses) in Discord in a ZIP.
Regards - and thanks for this great tool!