Автор Тема: Editors for 8bpp and 15bpp Images  (Прочитано 1657 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн eskayelle

  • Пользователь
  • Сообщений: 12
    • Просмотр профиля
Editors for 8bpp and 15bpp Images
« : 22 Апреля 2021, 01:56:36 »
Is there an image editing tool folks here use when editing images that are 8bpp linear or 15bpp BGR, both being mode 2 / 2-dimensional?  I'm using TileMolester, but in 2-dimension mode it has a bug where the last row(s) of the image can't be seen or edited.

Оффлайн lupus

  • Пользователь
  • Сообщений: 3888
  • Пол: Мужской
  • man with no face
    • ВКонтакте
    • Просмотр профиля
Editors for 8bpp and 15bpp Images
« Ответ #1 : 22 Апреля 2021, 22:24:33 »
Is there an image editing tool folks here use when editing images that are 8bpp linear or 15bpp BGR, both being mode 2 / 2-dimensional?  I'm using TileMolester, but in 2-dimension mode it has a bug where the last row(s) of the image can't be seen or edited.
Try to add some bytes with hex editor to the end of file.
Also try to find TileMolester mod with fixed bug.
Maybe this: https://www.smwcentral.net/?p=viewthread&t=102363

Оффлайн eskayelle

  • Пользователь
  • Сообщений: 12
    • Просмотр профиля
Re: Editors for 8bpp and 15bpp Images
« Ответ #2 : 23 Апреля 2021, 01:44:14 »
Thanks!  The bug is still in that version of the software, but padding the file worked.

Оффлайн lupus

  • Пользователь
  • Сообщений: 3888
  • Пол: Мужской
  • man with no face
    • ВКонтакте
    • Просмотр профиля
Editors for 8bpp and 15bpp Images
« Ответ #3 : 24 Апреля 2021, 06:45:56 »

Онлайн Sharpnull

  • Пользователь
  • Сообщений: 5719
    • Просмотр профиля
Editors for 8bpp and 15bpp Images
« Ответ #4 : 24 Апреля 2021, 10:00:20 »
Попробуйте моё исправление. В файле \src\tm\canvases\TMEditorCanvas.java исправил:
limit = bits.length - getRowIncrement();на это:
limit = bits.length - codec.getBytesPerRow() * cols;Вроде бы работало и limit = bits.length - 1;. Не уверен в точности исправления, но для 8bpp linear + Mode 2D работает.
TileMolester 0.19 fix_last_row - версия https://www.romhacking.net/utilities/991/.
TileMolester 0.20 fix_last_row - версия https://github.com/toruzz/TileMolester.
Компилировал с помощью JDK 8u231 по аналогии с https://github.com/toruzz/TileMolester/blob/master/compile.sh.
--------
UPD: Как мне указали, всё ещё плохо работает в режиме 2D, даже может вылететь при открытии.
« Последнее редактирование: 15 Мая 2021, 20:11:56 от Sharpnull »

Оффлайн lupus

  • Пользователь
  • Сообщений: 3888
  • Пол: Мужской
  • man with no face
    • ВКонтакте
    • Просмотр профиля
Re: Editors for 8bpp and 15bpp Images
« Ответ #5 : 24 Апреля 2021, 21:56:49 »
Супер!