[VG5000] picture editor like cgedit (mz700)

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

Modérateurs : Papy.G, fneck, Carl

Avatar de l’utilisateur
Papy.G
Modérateur
Messages : 3047
Inscription : 10 juin 2014 13:40
Localisation : Haute-Garonne/Gers

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

Message 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).
Soyez exigeants, ne vous contentez pas de ce que l'on vous vend.
Demandez-en plus, ou faites-le vous-même.
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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)
Pièces jointes
example01h3f_samplefordcvg5kmrxdump.zip
(75.31 Kio) Téléchargé 137 fois
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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
Pièces jointes
example01h3g_latortuepictureformat.zip
(62.42 Kio) Téléchargé 134 fois
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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 )
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano »

almost fixed
Image
(some tiles appears inverted)
https://pastebin.com/raw/numNiQex
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano »

Avatar de l’utilisateur
Carl
Modérateur
Messages : 13253
Inscription : 08 avr. 2007 13:21
Localisation : http://www.doledujura.fr
Contact :

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

Message 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
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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
Dernière modification par nitrofurano le 04 avr. 2017 00:24, modifié 6 fois.
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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
Dernière modification par nitrofurano le 04 avr. 2017 00:14, modifié 2 fois.
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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...)
Pièces jointes
LaTortue_tortueformat.scr.zip
(2.56 Kio) Téléchargé 137 fois
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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)
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message par nitrofurano »

more features and more bugs... :S
https://pastebin.com/raw/wZ2Acm1a
Avatar de l’utilisateur
nitrofurano
Messages : 95
Inscription : 26 juil. 2013 15:30
Localisation : Porto
Contact :

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

Message 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)
Pièces jointes
fromsvg4c2b2.scr.scr.zip
(1.02 Kio) Téléchargé 124 fois
Répondre