maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Gcompris-12.01 (educational games) on extras-devel (https://talk.maemo.org/showthread.php?t=84380)

AapoRantalainen 2012-05-20 19:07

Gcompris-12.01 (educational games) on extras-devel
 
1 Attachment(s)
Newest (January 2012) Gcompris is now on extras-devel.
Quote:

GCompris is a high quality educational software suite comprising of numerous activities for children aged 2 to 10. Some of the activities are game orientated, but nonetheless still educational.
-- http://gcompris.net/

At least fresh installing works, let me know if there are problems with upgrading existing one.

Game play video: http://youtu.be/jxCzgEGO4f8

This version contains 124 activities (nothing dropped yet), some of them are not working on N900:

*Throwing ball: keyboard doesn't have two shifts

*Watering can and sweeping game: On touchscreen, moving mouse pointer is always dragging (i.e. mouse button is also down)
-> Game should accept dragging as moving

*Double clicking (at least in two games) is hard, and generally not used on touchscreen devices.

Let me know if there are more non-functional games (and what to do for them to keep them playable and fun)

If you get game crashing, start from terminal and try to reproduce it, then post logs:
Code:

/opt/gcompris/games/gcompris

pterozaurus 2012-05-22 09:04

Re: Gcompris-12.01 (educational games) on extras-devel
 
Hi
I have updated gcompris on my n900 without succses so i have it reinstalled. Now gcopmpris starts and give me the message:
couldn't find or load the file boardicons/puzzles.svg
gcompris starts without icons. The folder boardicons ditn't exists, puzzles.svg exist in opt/gcompris/share/gcompris/boards/
Creating a symbolic link ditn't solve the problem.

AapoRantalainen 2012-05-22 10:11

Re: Gcompris-12.01 (educational games) on extras-devel
 
Quote:

Originally Posted by pterozaurus (Post 1210636)
Hi
I have updated gcompris on my n900 without succses so i have it reinstalled. Now gcopmpris starts and give me the message:
couldn't find or load the file boardicons/puzzles.svg
gcompris starts without icons. The folder boardicons ditn't exists, puzzles.svg exist in opt/gcompris/share/gcompris/boards/
Creating a symbolic link ditn't solve the problem.

I think old gcompris uses directory 'boardicons' and new 'boards'.

Check you have new version for gcompris and data installed
Code:

apt-cache policy gcompris gcompris-data
Both should be: Installed: 12.01-maemo4

pterozaurus 2012-05-22 12:10

Re: Gcompris-12.01 (educational games) on extras-devel
 
Hello AapoRantalainen,
gcompris and gcompris-data both are the version 12.01-maemo4

pichlo 2013-06-03 13:14

Re: Gcompris-12.01 (educational games) on extras-devel
 
Sorry to revive a year old thread... ;)

I installed Gcomprid for my kids the other day and found that it conflicts with both osso-chess and libre-chess. The reason is the conflict between gnuchess and gnuchess-opt required by the respective packages. Aapo, you've released both Gcompris and libre-chess to the wild, is there a way to make them live together in harmony?

Tiran 2013-06-04 17:37

Re: Gcompris-12.01 (educational games) on extras-devel
 
Quote:

Originally Posted by pichlo (Post 1349207)
Sorry to revive a year old thread... ;)

I installed Gcomprid for my kids the other day and found that it conflicts with both osso-chess and libre-chess. The reason is the conflict between gnuchess and gnuchess-opt required by the respective packages. Aapo, you've released both Gcompris and libre-chess to the wild, is there a way to make them live together in harmony?

@pichlo, try the new version: http://maemo.org/packages/package_in.../12.11-maemo1/

pichlo 2013-06-04 19:33

Re: Gcompris-12.01 (educational games) on extras-devel
 
Just upgraded to 12.11, still conflicts with both chess programs.
Gcompris depends on gnuchess-opt.
Both chess programs depend on gnuchess.
Perhaps Gcompris could depend on either gnuchess or gnuchess-opt?

Estel 2013-06-05 02:00

Re: Gcompris-12.01 (educational games) on extras-devel
 
After last upgrade, gcompris crashes here, just after initial screen (with information about loading all sub-games):

Code:

exec_prefix              = NONE
package_data_dir        = /opt/gcompris/share/gcompris/boards
package_skin_dir        = /opt/gcompris/share/gcompris/boards/skins
package_menu_dir        = /opt/gcompris/share/gcompris/boards
package_locale_dir      = /opt/gcompris/share/locale
package_plugin_dir      = /opt/gcompris/lib/gcompris
package_python_plugin_dir= /opt/gcompris/share/gcompris/python
user_dir                = /home/user/My GCompris
Infos:
  Config dir '/home/user/.config/gcompris'
  Users dir '/home/user/gcompris'
  Database '/home/user/.config/gcompris/gcompris_sqlite.db'
parser error : EntityRef: expecting ';'
parser error : EntityRef: expecting ';'
/opt/gcompris/share/gcompris/python/explore.py:545: Warning: 'with' will become a reserved keyword in Python 2.6
sys:1: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
/opt/gcompris/share/gcompris/python/explore.py:545: Warning: 'with' will become a reserved keyword in Python 2.6
/opt/gcompris/share/gcompris/python/explore.py:545: Warning: 'with' will become a reserved keyword in Python 2.6
Exception exceptions.SyntaxError: ('invalid syntax', ('/opt/gcompris/share/gcompris/python/explore.py', 545, 21, "            with open(gcompris.DATA_DIR + '/' + self.gcomprisBoard.name + '/content.desktop.in', 'wb') as configfile:\n")) in 'garbage collection' ignored
Fatal Python error: unexpected exception during garbage collection
Aborted

Any ideas?

pichlo 2013-06-05 05:33

Re: Gcompris-12.01 (educational games) on extras-devel
 
NAK, works fine here.

AapoRantalainen 2013-06-05 14:40

Re: Gcompris-12.01 (educational games) on extras-devel
 
New version from upstream (12.11) with 136 activities. I tried to fix gnuchess dependency, but made mistake.

-maemo2 is already built but waiting to the repository. It contains also fix for explore.py:545. And fix for three other games: braille_alphabets braille_lotto color_mix.

There are still some games which are not working, and some which are not tested on N900.

List of known issues:
*Falling words: can't write words with double letters (e.g. "less")

*Watering can and sweeping game: Currently game can't be played (expects mouse movement without dragging)

*Miner: can't be played, needs mouse wheel

Report more. I will then check what I can fix or if upstream is interested to fix or should they be dropped entirely from maemo-version.

Estel 2013-06-07 02:24

Re: Gcompris-12.01 (educational games) on extras-devel
 
Thanks Aapo, latest version starts without dreaded explore.py:545 error. My son already likes you for that :)

Quote:

Originally Posted by AapoRantalainen (Post 1209805)
*Watering can and sweeping game: On touchscreen, moving mouse pointer is always dragging (i.e. mouse button is also down)
-> Game should accept dragging as moving

Quote:

Originally Posted by AapoRantalainen (Post 1349748)
*Watering can and sweeping game: Currently game can't be played (expects mouse movement without dragging)

Upstream changed something, or it was maemo-specific fix, that need re-applying again? As it's affecting all touch-screen devices, maybe it's worth to send our fix to mainstream after re-applying? They may be interested in upstreaming.

Quote:

Originally Posted by AapoRantalainen (Post 1209805)
*Throwing ball: keyboard doesn't have two shifts

Apart from hardware keyboard remap made specifically for gCompris to map right shift somewhere (that could be even loaded at gcompris startup, and unloaded when it exits/crashes/whatever - would require wrapper script, I can prepare one if no better solutions is found), maybe it's possible to slightly modify this game for Maemo only? I.E changing expecting shift_r to right arrow, or something like that?
---

Under science->electricity, we have one of most interesting activities - drawing circuits with live-reaction, calculated transparently via gnucap. Hoever, vanilla installation of gCompris doesn't depend on gnucap, so gcompris throws info, that this activity won't work as intended (will allow to just draw circuits, without them coming to life).

After installing gnucap manually, from Maemo repos (also uploaded by you Aapo - thanks, again!), it works as it should. Maybe it's good idea to add gnucap as dependency? BTW, could you update gnucap to latest mainstream versions (if it's not up-to-date - I had problems fetching this particular package's uploading date).

Also, there is minor problem - some functions (like "breaking" bulb, to see how it affect circuit) are accessed by right-clicking on component. Interestingly enough, despite fact, that I have system-wide bind for right-click as bluearrow+tap (via xbindkeys and xdotool), it doesn't work - gCompris ignores X thingies? No matter what, I wonder, is it fixable?

Quote:

Originally Posted by AapoRantalainen (Post 1349748)
*Falling words: can't write words with double letters (e.g. "less")

This one is strange - it shouldn't be Maemo-specific, yet, it seems to be. Do we know, what causes it?

/Estel

AapoRantalainen 2013-06-07 05:20

Re: Gcompris-12.01 (educational games) on extras-devel
 
These games are broken.
Find the correct coloured duck
Find the correct coloured butterfly
Find the correct instrument
-> Text is "find the {text}"
(they are using string.format() from python2.6 and these rows, with {}, are coming from translation files.


Quote:

Originally Posted by Estel (Post 1350137)
*Watering can and sweeping game: Currently game can't be played (expects mouse movement without dragging)

Upstream changed something, or it was maemo-specific fix, that need re-applying again?

I don't know have this worked ever with touch devices. I have mentioned this to the upstream, and they are waiting me to fix it.

Quote:

Originally Posted by Estel (Post 1350137)
Throwing ball: keyboard doesn't have two shifts

maybe it's possible to slightly modify this game for Maemo only? I.E changing expecting shift_r to right arrow, or something like that?

I think this is the easiest approach.

Quote:

Originally Posted by Estel (Post 1350137)
Maybe it's good idea to add gnucap as dependency? BTW, could you update gnucap to latest mainstream versions (if it's not up-to-date - I had problems fetching this particular package's uploading date).

Gcompris uses three external application: tuxpaint, gnuchess and gnucap. For some reason gnuchess is mandatory and others are suggestions.

Gnucap on Maemo is same version what Debian (wheezy, jessie, sid) is using. Seems there are some development version of gnucap in upstream, but I think we stick same than debian.

Quote:

Originally Posted by Estel (Post 1350137)
Also, there is minor problem - some functions (like "breaking" bulb, to see how it affect circuit) are accessed by right-clicking on component. Interestingly enough, despite fact, that I have system-wide bind for right-click as bluearrow+tap (via xbindkeys and xdotool), it doesn't work - gCompris ignores X thingies? No matter what, I wonder, is it fixable?

There should be some general solution for touch devices. I'm afraid that fixing mapping respecting is too tough.


Quote:

Originally Posted by Estel (Post 1350137)
Falling words: can't write words with double letters (e.g. "less")

This one is strange - it shouldn't be Maemo-specific, yet, it seems to be. Do we know, what causes it?

I don't have ideas yet.

pichlo 2013-06-07 05:55

Re: Gcompris-12.01 (educational games) on extras-devel
 
That double letter thingy - could it have something to do with how Maemo translates long key presses to the keys' blue shift equivalents? I sometimes get that same translation on double presses in applications like FAM while it is busy sorting.

Estel 2013-06-07 20:00

Re: Gcompris-12.01 (educational games) on extras-devel
 
Noticed strange thing - my "blue_arrow+ tap = right click, shift + tap = middle click" is actually working in gcompris "footbal" (where you have to double click right to shot ball into right corner, double left to left corner, etc), but in a strange way. I need to repeatedly "bash" both blue_arrow and tapping for getting right click.

Also, in falling letters, it's not only problem with words containing double letters - if we play variant where single letters are failing from sky, everything works OK, *unless* there are failing 2 same letters in row. For example, for two failing "O"s, only first get registered.

But, If if purposely hit wrong letter between two "O"s, I can clear them both. Of course, it doesn't work with words, as hitting wrong one reset word progress.

Summing it up, it seems to me, that keys become "sticky" upon pressing - when we hit "O", for example, it seems to me, that gCompris thinks "O"s got pressed and is *still pressed down*, without being released,

I think that it applies to all keys, which aqlso explains my problems with <any_key>+ tap for right and middle click. In most games, it don't matter, but in failing letters/words, it spoils results.
---

Keep in mind that it is just my asumption, as I have no idea how to confirm my suspicions. Also, while writing text in gCompris's simple text editor, no such "sticky keys" (or any other problem with letters) is present. But, it may use different method for processing text input (like with using tuxpaint for drawing, in few games).

/Estel

sunil 2013-06-21 00:05

Re: Gcompris-12.01 (educational games) on extras-devel
 
My kids love playing with this gcompris. Thanks for the great work Aapo, keep it up. Will ask the kids if they find any more bugs.

@estel
Could you please direct me to where you installed the gnucap from. I can not find it on FAM. Thanks.

AapoRantalainen 2013-06-21 09:50

Re: Gcompris-12.01 (educational games) on extras-devel
 
Quote:

Originally Posted by sunil (Post 1353580)
where you installed the gnucap from. I can not find it on FAM.

It's section was not user/ . (You need to enable something "show all packages"). It is now fixed and will be someday on repository too.

Meanwhile I have tinkered broken games and some of them are fixable.

sunil 2013-06-21 15:00

Re: Gcompris-12.01 (educational games) on extras-devel
 
Thanks Aapo, installed gnucap and works well, but I have a problem of no sound. Its activated in config menu, and all the sound files are in /home/opt/gcompris/share/gcompris/boards/sounds. The sounds used to work but stopped a while ago when I upgraded. Let me know if you have an idea what could be wrong else I'll wait for next upgrade and do a complete removal and a clean install.

Keep up the good work mate.

AapoRantalainen 2013-06-21 18:48

Re: Gcompris-12.01 (educational games) on extras-devel
 
Quote:

Originally Posted by sunil (Post 1353710)
I have a problem of no sound.

It might relate package named libsdl-mixer1.2. Use terminal to check installed version of it:
Code:

apt-cache policy libsdl-mixer1.2
It should be Installed: 1:1.2.6-5+0m5+ogg+mp3-2.

sunil 2013-06-28 10:53

Re: Gcompris-12.01 (educational games) on extras-devel
 
Yes Aapo, I have the correct version of libsdl-mixer1.2 installed.


All times are GMT. The time now is 15:58.

vBulletin® Version 3.8.8