C2 game on moodle

0 favourites
  • 6 posts
From the Asset Store
A cool way for kids to write and practice English Alphabets
  • Hello

    I have a problem using an exported C2 game into moodle (a learning management system).

    The problem is that the game is not loading. In the chrome console i can see errors loading images.

    Error loading image ''

    For every images of my game.

    If i follow the link, the image exists and is displayed correctly in the browser.

    I tried an other LMS, "scorm cloud" for exemple and it is the same.

    If i run the game directly on a web server, it works fine.

    Does someone is able to run a C2 game in an LMS correctly ?


  • Hello Mimiste,

    I am running into the same problem with a C2 project and SCORM Cloud. I am getting a 401 Authorization Required error when it chooses not to load. I think the problem might be related to a cancelled 'data.js' request that occurs at the same time as the 401 error. Have you found a solution or workaround?

  • Hello,

    yes i found a solution... Not a really good one but at least it's working for now.

    After exporting my project, i opened c2runtime.js (not minimified) and deleted the lines of code setting the crossorigin of a loaded url to anonymous (search for "anonymous" in the code). And after that, the game is loading fine on any LMS i tried (moodle, scorm cloud)

  • Thank you so much Mimiste! I was just looking at those "crossOrigin" snippets in "c2runtime.js" when I happened to log back into this forum site. Scorm Cloud looked into the issue and said that whatever was loading the images, which we know is "c2runtime.js", was not accepting/using their authentication cookie. I guess the "crossOrigin" property that was being set on the loading objects as "anonymous" must, in some way, ignore or overwrite the accepting of the cookie from Scorm Cloud and like sites.

    Thanks again!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello! How are you guys publishing the game to the LMS? Can you please point me to any tutorial on SCORM or whatever method you´re using??


  • I created a construct2 plugin for scorm to be able to connect to the LMS and send scorm statements.

    Unfortunately I can't share it here because i'm using some copyrighted code created by the company i am working for.

    But eventually, i'll make a version without this code if people are interested in this.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)