XMCD File Type plugin

XMCD File Type plugin - XMCD File Type plugin - Сообщения

#1 Опубликовано: 12.10.2021 13:48:43
johnnyontheweb

johnnyontheweb

3 сообщений из 26 понравились пользователям.

Группа: Moderator

Hi all,
I have a lot of old .xmcd files to convert to .sm, but I encounter problems when opening almost all of them, unless I save them in XMCD 12 or 13 and I remove images.
I spent some time to debug the plugin, and I found this:

- images are not always represented as string in base64

- only if format XMCD > 13: there's hell with indeces in function MergeManyArrayPostfix in OpenSaveXMCD.cs - often, index for 'value' array is less than 0.

I have some questions about this plugin:
- is advised version of XMCD 12 or 13?
- if there's limitation on format, can not supported format be blocked?

thanks in advance for such info
#2 Опубликовано: 13.10.2021 08:11:08
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Hello johnnyontheweb,

That plugin is open to improvements, the main problem is that you should be familiar with both programs to do something.

In general, if there are multiple data types for the same objects would be better to detect the type, then develop alternative functions to read the data, otherwise read a placeholder, nothing, or throw an error. I wouldn't block the entire format just because the indices, better to have something to start from than nothing.



If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 13.10.2021 10:08:07
johnnyontheweb

johnnyontheweb

3 сообщений из 26 понравились пользователям.

Группа: Moderator

Wrote

I wouldn't block the entire format just because the indices, better to have something to start from than nothing



I completely agree on that, the point is nothing except text regions is read in most cases.
A message warning the user to give XMCD <= 13 as input would definitely save a lot of time in trials.

Consider, as a sample, the 2 files attached (they are the same file, with 2 different XMCD formats):

inertias.xmcd (76 КиБ) скачан 125 раз(а).
inertias13.xmcd (60 КиБ) скачан 98 раз(а).
#4 Опубликовано: 14.10.2021 05:58:38
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

Consider, as a sample, the 2 files attached (they are the same file, with 2 different XMCD formats):

inertias.xmcd (76 КиБ) скачан 125 раз(а).
inertias13.xmcd (60 КиБ) скачан 98 раз(а).



Thank you very much, this might help a lot! I'll try to improve the plugin as soon as I can.

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Опубликовано: 14.10.2021 06:08:49
johnnyontheweb

johnnyontheweb

3 сообщений из 26 понравились пользователям.

Группа: Moderator

Wrote



Thank you very much, this might help a lot! I'll try to improve the plugin as soon as I can.



You're welcome - please keep in mind that inertias is in format XMCD>13, the other in XMCD = 13.
And please do not comment calculations on principal axes because they're not always right :d
#6 Опубликовано: 02.03.2022 14:55:48
johnnyontheweb

johnnyontheweb

3 сообщений из 26 понравились пользователям.

Группа: Moderator

I'm looking forward to see if there's improvements for XMCD plugin, I really need it.

I just want to tell that I noticed another problem in this plugin: if the original .xmcd file has repeted definitions (es. a:=1 more than once), the plugin removes all the occurrences and in the resulting file the variable is lost (no "a" defined at all).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений