GameMap doesn't load due to missing AdvancedText dependancy

Hi everyone,

We're seeing an issue similar to https://h5p.org/node/1546194 (I tried to reply to that thread but my reply didn't seem to go through). 

What we're finding though is even trying to create a GameMap externally on https://h5p.org/node/1547744 seems to fail so this doesn't look like a Moodle integration issue as I initially thought as I planned to create a GameMap on the the org site to then reuse onto Moodle. I've also try creating fresh new moodle installations but they also see the same "Unable to find constructor for: H5P.AdvancedText 1.1" error. If you use f12/browser debugging you should see the errors in your console. 

I've tried replicated this on Linux, a Windows VM on multiple different browsers and on an android phone, so I don't think this is a caching/browser problem. 

If I reuse https://h5p.org/content-types/game-map that does actually work on Moodle interestingly. 

Let me know if you have any ideas on working around this or need any more information on resolving the issue. I've attached a screenshot from the Moodle database showing the AdvancedText library entry. 

Kind regards,

Sam

Content types: 
otacke's picture

Your answer to the other post needs to be manually cleared first, that's an anti-spam mechanism.

As for the issue: That's a bug that can appear if (and only if) you add a stage without any content and then save the content. I fixed this in version 1.6.0.

Since I have no means to update my own content types on the H5P Hub, you'll have to get the fix by downloading the demo content from https://www.olivertacke.de/labs/2025/02/10/gamemap-1-4-is-out/ and then uploading it to your site with admin rights.

Best,
Oliver

Hi Oliver,

Thanks that seems to have fixed it, I needed to upload the latest file from the GameMap on https://www.olivertacke.de/labs/2025/02/10/gamemap-1-4-is-out/ to Moodle's "Upload content types" area and then save the individual instance with the issue. I also seemed to need "save" the activity within the content bank as well to force Moodle to use the latest library for that particular instance. 

Kind regards,

Sam

otacke's picture

You'll have to ask MoodleHQ why that is necessary. That's not how other H5P integrations behave.