Treasure Hunt

Activities ::: mod_treasurehunt
Maintained by Juan Pablo de Castro
Outdoor, indoor and virtual-map treasure-chases with geolocation and QR codes. This module for Moodle allows to organize outdoor-serious-games with your students. TreasureHunt supports Moodle Mobile App and also implements a browser-based play application (no need to install any native app) and a geographical editor for encoding the stages of the game. The game can be configured with a range of options that make the module to be very flexible and useful in many situations: individual/team, moving/desktop-marking, scoring from time, position, completion, etc. Languages: Chinese, English, German, Greek, Portuguese, Russian, Spanish, more to come...

Treasure Hunt v1.4.2

Moodle 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9
Released: Tuesday, June 23, 2020, 8:06 PM


Activity module for Moodle that allows to run outdoor, indoor (QRCodes), virtual maps (canvas) treasure-chases with geolocation. Tutorial and manuals in English and Spanish



  1. unzip, and copy into Moodle's /mod folder
  2. visit administration page to install module
  3. configure default settings for your site
  4. use in any course as wished


  1. create an instance of the activity
  2. create one or more roads to be followed by your "hunters"
  3. create a set of stages in each road.
  4. write smart and educational clues that point to the next stage. Optinally, write a multiple-chice question to double-check the discovery of the stage
  5. draw the location of the stages with th buil-in GIS editor
  6. select the modality of the treasure hunt: individual or grouped (you will need to create the groups and groupings of students).
  7. adjust the grading method and penalizations.
  8. let your students play the game.

See also

Change log

  • v1.4.2 Fix a bug with Moodle 3.9 name of Bootstrap libraries.
  • v1.4.1 Fix a bug that showed a text below the instance name.
  • v1.4.0 Choice between 3 different playpage styles. New bootstrap-based play page more compatible and light-weight. Street view link from play page.
  • v1.3.2 Fix upgrade code.
  • v1.3.1c-hotfix fix to an important regression that prevented the creation of new instances.
  • v1.3.1-hotfix Important updgrade! Moodle3.8 introduced a JS compiler that conflicts with geocode.js lib and breaks all javascript of the site. Now it is reimplemented.
  • v1.3.1 Fix in dyndates.js. Fix radio buttons in answers for Moodle up to 3.7.
  • v1.3.0 Dates and times update in real-time. Interface pulishment. Workaround to Babel compiler conflict in player page.
  • v1.2.22c Solve javascript conflict with Babel compiler in Moodle 3.8. Simplify editor buttonset. Dynamic icon.
  • v1.2.22b Update player jacvascript to be compatible with Moodle 3.8
  • v1.2.22 UI for QR Scanner in edit form improved. QR scanner fixed for Xiaomi Redmi S2. Player UI improved in question section.
  • v1.2.21 Fixed a minor bug in event reporting in play mode. Icons resized.
  • v1.2.20 Fixed compatibility with PostgreSQL.
  • v1.2.19 Fixed validation error when filemanager is conditionally disabled.
  • v1.2.18 Fixed compatibility of GIS editor with Edge browser when using jqueryui > 1.11.
  • v1.2.17 Auto update timer in GPX tracker.
  • v1.2.16 Bug fixed: exception when completing an activity set to COMPLETION_MARKING_MANUAL.
  • v1.2.15 Full compatibility of QRScanner with IOS 11 (iPhone && iPad).
  • v1.2.14 Fix camera preview sizes. Implement switching cameras.
  • v1.2.13 Change QR scanning library to fix the firefox regression.
  • v1.2.12 Fix for compatibility with Moodle 2.9.x.
  • v1.2.11 Link to online tutorial added to edit page.
  • v1.2.10 Fix support to long texts in clues. Left panel shows a truncated text.
  • v1.2.9 Incompatibility with IOS 11 fixed.
  • v1.2.8 Clues with long text were not readable in lateral panel in the player. Text moved to History Page.
  • v1.2.7 Compatibility with MSSQL
  • v1.2.6 Custom image maps. Validation form fixed.
  • v1.2.5 Non-geographic images as base of the game.
  • v1.2.4 Fixed conflict with Essential theme.
  • v1.2.3 Custom image maps. Support for WMS and uploaded images.
  • v1.2.1 SVG images render with vector quality.
  • v1.2.0 Custom uploaded images.

(c) 2016 onwards. EDUVALab. University of Valladolid.

Version information

Version build number
Version release name
Stable version
MD5 Sum
Supported software
Moodle 3.0, Moodle 3.1, Moodle 3.2, Moodle 3.3, Moodle 3.4, Moodle 3.5, Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9

Version control information

Version control system (VCS)
VCS repository URL
VCS tag

Default installation instructions for plugins of the type Activities

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "assignment") in the "mod" subdirectory.
  4. Visit to finish the installation