intfiction.org

The Interactive Fiction Community Forum
It is currently Sun Oct 21, 2018 8:40 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next
Author Message
 Post subject: Re: Found: Qt Glk
PostPosted: Mon Sep 25, 2017 9:14 pm 
Offline
User avatar

Joined: Wed Oct 14, 2009 4:02 am
Posts: 2537
Text mode affects things like line endings. It is crucial for most save files that they have the exact bytes that are written out, so you can't use text mode. But it depends what the VM writes out. There could be one that saved to a text format.

You could still do what you want, just with another file. Or if it's saving to Quetzal then you could add custom chunks.


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Tue Sep 26, 2017 8:45 am 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
I see.
Then it looks like it's quite better to go, as you say, with an extra file with some kind of «metadata». Thank you!


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Tue Sep 26, 2017 7:18 pm 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
Some teasing

Image

Image


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Fri Sep 29, 2017 6:03 am 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
Going back to pictures and drawlines: Let's see if I understand correctly.
Suppossedly, after init the remglk with support graphics, it should return an update for the graphics in the json, right?
Or do I have to do something else?

I checked that images are in the same folder, with correct name, etc. But supposedly, some games (Spectrum sna) should have the lineart in the code but if I do glk graphics, remglk says that there are no graphics available.


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Mon Jan 15, 2018 6:18 pm 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
allensocket wrote:
Great to hear. I think pure qml wrapping around the QProcess is how most people would want to work on the code. My lack of skill and experience was holding me back from that. Keep it up.


It took me a looooot more than I thought but it's out there now:
https://gitlab.com/cibersheep/gelek

I took your idea to use remglk as a QProcess and it works perfectly fine but I read the json in javascript (in the same qml) and render output into a Text element.
It's a lot easier to read the json in javascript than in c++ (at least for me).

Even the code is dirty, all the magic is basically here
I have not been able to get remglk to show lineart (even in documentation of level9glk says is implemented)

[Edit: I have updated linik to gitlab page]


Last edited by cibersheep on Wed Sep 05, 2018 9:01 pm, edited 1 time in total.

Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Sun Feb 18, 2018 4:50 pm 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
I'm thinking of going a bit farther with Gelek and maybe do a vanilla version with other terps.
Now I see the Level9 interpreter is waaaaay simpler than others and my javascript implementation is very, very simple (effective, but simple) and incomplete.
Let's see.


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Sun Feb 18, 2018 6:14 pm 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
cibersheep wrote:
Going back to pictures and drawlines: [...]

I checked that images are in the same folder, with correct name, etc. But supposedly, some games (Spectrum sna) should have the lineart in the code but if I do glk graphics, remglk says that there are no graphics available.


Answering myself, the glk implementation of level9 renders the line art as bitmap and then «treats» that bitmap as normal. And remglk is using local resources if I'm correct. So, that's why it's not working.

One approach could be sending the line art x, y, color info as part of the JSON... mmm.


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Mon Feb 19, 2018 9:11 am 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
Oh. It looks like I had to activate timer support :P


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Wed Feb 21, 2018 7:38 pm 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
GOT IT!
Send
Code:
{ "type":"timer", "gen":x }

to remglk until you get "timer":null


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Found: Qt Glk
PostPosted: Fri Mar 02, 2018 2:00 pm 
Offline

Joined: Tue Nov 29, 2016 8:56 am
Posts: 90
Ha! Is not so straight forward. As the image is sent in several jsons and sometimes it seems too long to the buffer...


Attachments:
438813290_291393.jpeg
438813290_291393.jpeg [ 112.73 KiB | Viewed 1430 times ]
Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 71 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group