[VG5000] picture editor like cgedit (mz700)

Couvre tous les domaines de l'émulation ou de la virtualisation ainsi que les discussions sur les divers outils associés.

Modérateurs : Carl, Papy.G, fneck

Avatar du membre
Papy.G
Modérateur
Messages : 1742
Enregistré le : 10 juin 2014 13:40
Localisation : Nantes/La Roche sur Yon

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

Message par Papy.G » 31 mars 2017 23:10

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).
Soyez exigeants, ne vous contentez pas de ce que l'on vous vend.
Demandez-en plus, ou faites-le vous-même.

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 01 avr. 2017 19:37

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)
Fichiers joints
example01h3f_samplefordcvg5kmrxdump.zip
(75.31 Kio) Téléchargé 29 fois

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 01 avr. 2017 23:54

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

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 02 avr. 2017 20:34

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
Fichiers joints
example01h3g_latortuepictureformat.zip
(62.42 Kio) Téléchargé 32 fois

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 02 avr. 2017 23:17

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 )

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 03 avr. 2017 16:28

almost fixed
Image
(some tiles appears inverted)
https://pastebin.com/raw/numNiQex

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 03 avr. 2017 16:58


Avatar du membre
Carl
Modérateur
Messages : 10151
Enregistré le : 08 avr. 2007 13:21
Localisation : http://www.doledujura.fr
Contact :

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

Message par Carl » 03 avr. 2017 22:38

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

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 03 avr. 2017 23:46

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
Modifié en dernier par nitrofurano le 04 avr. 2017 00:24, modifié 6 fois.

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 03 avr. 2017 23:48

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
Modifié en dernier par nitrofurano le 04 avr. 2017 00:14, modifié 2 fois.

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 04 avr. 2017 00:11

(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...)
Fichiers joints
LaTortue_tortueformat.scr.zip
(2.56 Kio) Téléchargé 34 fois

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 04 avr. 2017 15:37

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)

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 05 avr. 2017 23:34

more features and more bugs... :S
https://pastebin.com/raw/wZ2Acm1a

Avatar du membre
nitrofurano
Messages : 95
Enregistré le : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano » 07 avr. 2017 20:49

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)
Fichiers joints
fromsvg4c2b2.scr.scr.zip
(1.02 Kio) Téléchargé 29 fois

Répondre