Page 2 sur 2

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 31 mars 2017 23:10
par Papy.G
I always wondered if some of the oblic lines are not slashes from the fixed character set stretched, when necessary, thanks to special attributes (double height, double width, or both).
For the 6k MRX files, maybe some more information is saved, maybe the page is in 24 bits fixed mode, thus needing 3k just for it, then, registers values, and eventually, error correction characters (inherited from the cassette media).

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 01 avr. 2017 19:37
par nitrofurano
the information from .mrx file seems a bit confusing - i tried to use this example for that, and analyzing the resulting .mrx file in a hex editor - seems to have a lot of “data noise” around, and i struggled to find the setet/seteg information (like 960 bytes area filled with 0x11 and another with 0x55)

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 01 avr. 2017 23:54
par nitrofurano
btw, the picture data arrangement from Tortues.k7 seems interesting ( about 4kb starting from offset 153) - starts with setet (960 bytes), then seteg (960), then 2000 bytes (text and attribute alternated) - i might be wrong, but it looks like that

for now, opening that, converted to the format i were using in my editor, it looks like this up to now:
Image
it seems that ink/paper data seems swapped on my editor - i need to try it better soon, and take a look about what might seem wrong there

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 02 avr. 2017 20:34
par nitrofurano
i guess i’m going to focus on “La Tortue” format instead
(anyway, i still need to know how “Salut l’Artiste” format works, and why does it waste 2kb...)
soon i’m going to “fix” the editor

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 02 avr. 2017 23:17
par nitrofurano
opening it from the “new version” of my editor:
https://pastebin.com/raw/HJRqXW8B
Image
(as seen, still have some very visible bugs to be fixed.... :S )

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 03 avr. 2017 16:28
par nitrofurano
almost fixed
Image
(some tiles appears inverted)
https://pastebin.com/raw/numNiQex

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 03 avr. 2017 16:58
par nitrofurano

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 03 avr. 2017 22:38
par Carl
Hi,

How to run your program ?
I installed sdlBasic Version 20051016
is it Ok for run your code ?

kind regards
Carl

sdlBasic Version 20051016
Dec 13 2012 11:16:08

based upon SciTE Version 1.64
by Neil Hodgson.
December 1998-June 2005.
http://www.scintilla.org

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 03 avr. 2017 23:46
par nitrofurano
i guess, sdlBasic didn’t change that much since then, mostly bugfixes, or perhaps more few commands added

(please let me know if something goes wrong, since i helped sdlBasic development quite closely)

(btw, "open" and "save" buttons might not work for opening/saving files because they call Zenity via command line - Zenity ( https://github.com/GNOME/zenity ) is a command-line tool that opens the user interface from your operating system as argument values, i don’t know if it is available, or some tool alike, on other operating systems than GNU/Linux...)

(and please be aware that it still has lots of bugs and misses lots of features!!!! :D )

(btw, talking about Zenity, if you are using ms-windows or ReactOS, please let me kknow if this works: https://github.com/kvaps/zenity-windows - perhaps some parts of the code might need to be changed, but i have no means at all for testing it, i mostly use GNU/Linux, and OSX quite rarely )

and about how to run the program, you can run it in a lot of ways - i run it from the context menu from the file manager (Caja ( https://github.com/mate-desktop/caja - https://mate-desktop.org/ ) - i don’t know if you can do the same there on "file explorer" (i can’t remember how is it named) ) - when i used ms-windows i think i had .sdlbas files associated to sdlbrt.exe (or something like that) - you can run it from command line as well (dos-prompt, i guess) - and as you can see from what you posted, it also comes with an editor based on SciTE, and you can open the editor code and run from there

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 03 avr. 2017 23:48
par nitrofurano
another update:
- now it recognizes inverse bit from attributes (but it is still unable to use it when editing)
- i cleaned the code a little bit
- refresh button works! (it’s for when you edit setet/seteg, for example, since the whole display isn’t updated simultaneously when editing)
Image
https://pastebin.com/raw/CZv1y3Yk
@Papy.G soon i hope being able to use double height and double width attribute bits as well, as you commented above! i just need to figure out how to improve the code for that! :D

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 04 avr. 2017 00:11
par nitrofurano
(just in case if someone can’t extract La Tortue loading screen from the .k7 file, for using/testing on the editor as example - i hope there is no problem posting it here...)

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 04 avr. 2017 15:37
par nitrofurano
a small update, editing is still not accurate, needs lots of bug fixes i guess! :D
https://pastebin.com/raw/gQWYupr8
Image
(the picture were only opened there, it was edited on the old version and converted)

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 05 avr. 2017 23:34
par nitrofurano
more features and more bugs... :S
https://pastebin.com/raw/wZ2Acm1a

Re: [VG5000] picture editor like cgedit (mz700)

Publié : 07 avr. 2017 20:49
par nitrofurano
a screenshot while i can’t fix these bugs...
Image
(it was made firstly as a photo handtrace on Inkscape, and then exported as .png, and opened on Gimp, using a 8x10 grid as reference)