Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: __builtin on November 21, 2016, 09:34:56 PM

Title: Port of Simon Tatham's Portable Puzzle Collection
Post by: __builtin on November 21, 2016, 09:34:56 PM
Finally got around to it...

Source is up on Gerrit, all 120,000 lines of it: http://gerrit.rockbox.org/r/1421/ ;)

Testers welcome, builds available on request.
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: chrisjj on December 16, 2016, 08:26:16 AM
Testers welcome, builds available on request.

Build for Creative ZEN, please.
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: chrisjj on December 16, 2016, 08:20:21 PM
Build for Creative ZEN, please.

FTR, got it, and discussion is here:

https://www.rockbox.org/irc/log-20161216
https://www.rockbox.org/irc/log-20161217
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: __builtin on January 08, 2017, 04:09:07 PM
Just an update here, the majority of the puzzles have made it into the mainline repository.

I have some concerns, however, about some of the more memory-intensive puzzles running out of memory at runtime on some of the targets with smaller plugin buffers. These targets are the Sansa c200v2 and c100. If you have one of these targets, I'd appreciate it if you could test the following puzzles on them, at various settings (listed by order of increasing size):

Code: [Select]
92 sgt-bridges.rock
92 sgt-galaxies.rock
92 sgt-tracks.rock
96 sgt-singles.rock
100 sgt-net.rock
132 sgt-pearl.rock
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: tdb on January 10, 2017, 05:06:53 PM
Hi - gave it a try on my c200v2


Code: [Select]
92 sgt-bridges.rock
92 sgt-galaxies.rock
92 sgt-tracks.rock
96 sgt-singles.rock
100 sgt-net.rock
132 sgt-pearl.rock

They all give me a fatal error due to low memory - but not only these. After a while most games i tried gave a fatal error.
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: __builtin on January 10, 2017, 07:11:55 PM
Ok, thanks tdb. I'll put together a patch in the coming days that will hopefully "solve" the issue to an extent, though it will break playback in the games in some cases.
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: saratoga on January 10, 2017, 10:50:16 PM
c200v2 and clipv1 have only 2 MB of RAM, and the c200v2 must use a color framebuffer, so memory is very tight.

If you want to test low memory, you could configure a device build with less RAM, or use the SIM and further decrease memory a little (to be safe since the SIM isn't quite the same with allocations).
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: __builtin on January 13, 2017, 07:06:55 PM
Just pushed the fix. Could you please test the newest autobuild and tell me if it works now?

Commit: https://git.rockbox.org/?p=rockbox.git;a=commit;h=637c7414a91c33e2627f99fee7b4c9cbf04abdb4 (https://git.rockbox.org/?p=rockbox.git;a=commit;h=637c7414a91c33e2627f99fee7b4c9cbf04abdb4)
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: tdb on February 08, 2017, 01:27:05 PM
No errors on my c200 :) Every game starts and seems to work.   
Using version d787191-170204

A couple of fun and intuitive games but some of them require reading a manual (most games I just started and pressed a few buttons to see if they worked). Screen of the c200 is pretty small and the playing field usually takes up even less than half of the screen so not all games can be played comfortably.
The cursor/pointer is nearly invisible so that doesn't help either ;)

 

 
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: __builtin on July 17, 2017, 10:11:32 PM
Added a new feature for dynamic font sizing in commit e7a35ba. You'll need to extract this zip file to /.rockbox/fonts/: http://download.rockbox.org/useful/sgt-fonts.zip (http://download.rockbox.org/useful/sgt-fonts.zip). It lets the puzzle choose among differently-sized fonts at runtime. Without it, the puzzles will fall back to the old method of just hoping whatever UI font was set is of a reasonable size.
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: codyteam on August 21, 2017, 06:42:03 PM
Can i use this on my sansa clip+?
Title: Re: Port of Simon Tatham's Portable Puzzle Collection
Post by: __builtin on August 21, 2017, 08:43:50 PM
Can i use this on my sansa clip+?

No, it only supports color displays. You might be able to make it work with greylib, though.