Hello Vasilis,
Thank you for your help.
I have downloaded the latest files from
CVS this morning but hit the following when I used CVS update.
P backuplib.php
cvs update: checksum failure after patch to ./backuplib.php; will refetch
P locallib.php
cvs update: checksum failure after patch to ./locallib.php; will refetch
cvs client: refetching unpatchable files
cvs update: warning: 'backuplib.php' was lost
U backuplib.php
cvs update: warning: 'locallib.php' was lost
U locallib.php
Success, CVS operation completed
I checked the date stamp of the files named and they had today's date so I am guessing they are OK.
I have now run tests against every type of game. Below are details of any issues I have found.
HangmanGlossary worked OK, but with either Question or Quiz the following error message was displayed when I tried to play the game.
Error: Turn off debugging to hide this error.
SELECT mdl_question.id, mdl_question.questiontext as questiontext, mdl_question_answers.answer as answertext, mdl_question.id as questionid, 0 as glossaryentryid, '' as attachment FROM mdl_question,mdl_question_answers WHERE mdl_question.id=4 AND mdl_question_answers.question=4 AND mdl_question.hidden=0(with limits 0, 100)
Found more than one record in get_record_sql !
Array
(
[4] => Array
(
[questiontext] => What musical instrument comes in types such as free bass, stradella, piano and button
[answertext] => Violin
[questionid] => 4
[glossaryentryid] => 0
[attachment] =>
)
)
And after the continue button
Notice: Trying to get property of non-object in C:\Apache2\htdocs\moodle\mod\game\hangman\play.php on line 36
Notice: Trying to get property of non-object in C:\Apache2\htdocs\moodle\mod\game\hangman\play.php on line 80
Notice: Trying to get property of non-object in C:\Apache2\htdocs\moodle\mod\game\hangman\play.php on line 81
Notice: Trying to get property of non-object in C:\Apache2\htdocs\moodle\mod\game\hangman\play.php on line 82
Notice: Trying to get property of non-object in C:\Apache2\htdocs\moodle\mod\game\hangman\play.php on line 83
Notice: Undefined property: stdClass::$try in C:\Apache2\htdocs\moodle\mod\game\hangman\play.php on line 365
Warning: Division by zero in C:\Apache2\htdocs\moodle\mod\game\hangman\play.php on line 380
CrosswordGlossary was OK. Quiz and Question fail in that they only find one short answer question and construct a crossword which asks that question, but only displays numbers for each letter of the answer horizontally and the number 1 down the left column. No squares are displayed and there is no clickable section of the crossword matrix.
CryptexGlossary is OK
Quiz and Question fail in that it only finds one of the short answer questions and creates a single line cryptex that contains the answer and no other random letters.
MillionaireThis works for both Quiz and Question. One point worth noting.
When you change the default game setting from hangman to Millionaire, the source changes to offer Question or Quiz, with Questions selected, but the menu below this is still select Glossary. If you want to use Questions, you have to change to Quiz and back again to Questions to obtain a listing of the Question categories.
SudokuAll version of Sudoku worked OK.
Snakes and Ladders
All version worked OK.
Hidden Picture
When configuring the Hidden Picture game clicking on the "Set the text at the bottom" link resulted in
Notice: Undefined property: stdClass::$course in C:\Apache2\htdocs\moodle\mod\game\bottomtext.php on line 35
This message resulted whether text had been entered for text at the bottom, or not.
All versions failed to play.
I have four entries in the Glossary, each in the category "Testing" and each with a picture attached to them.
Attempting to play a game resulted in the following error
There are no glossary entries on glossary 'jkTestForGame' with an attached picture
Stack trace:
- line 1651 of lib\deprecatedlib.php: call to debugging()
- line 110 of mod\game\hiddenpicture\play.php: call to error()
- line 33 of mod\game\hiddenpicture\play.php: call to game_hiddenpicture_selectglossaryentry()
- line 132 of mod\game\attempt.php: call to game_hiddenpicture_continue()
line 81 of mod\game\attempt.php: call to game_create()I hope this helps in getting things working even better.
Kind regards
Johnathan