Skip to main content
April 12, 2016
Answered

Publish Failed when embedding zipped game file

  • April 12, 2016
  • 4 replies
  • 761 views

I have a game that is developed using HTML5. I am trying to embed it into a captivate project. Whenever I try to publish, I get a error "Publish Failed".

I am using Insert HTML5 animation option and selecting the zip file of my game. I have tried it out using Captivate 8 and 9 trial version but no luck.

Can someone suggest what's wrong here or else if there are any guidelines/videos please point out.

    This topic has been closed for replies.
    Correct answer

    Finally got it working! Turned out that the way the files were being zipped was wrong. Was zipping the root folder instead of zipping the contents of the file. Thanks everyone!

    4 replies

    Correct answer
    April 21, 2016

    Finally got it working! Turned out that the way the files were being zipped was wrong. Was zipping the root folder instead of zipping the contents of the file. Thanks everyone!

    TLCMediaDesign
    Inspiring
    April 14, 2016

    I zip html files and insert them all the time. I've done hundreds of them and have never had a problem.

    Is it just one html file?

    Are there external links that are not getting packaged?

    April 15, 2016

    Not just one html file. Technically yes, just one html files loading multiple images and js files. Everything is in the zip file for sure.

    Can you tell me step by step how you do it, if you don't mind? Really want to make sure am doing the right thing.

    TLCMediaDesign
    Inspiring
    April 15, 2016

    I just zip all of the files needed.

    Then insert as HTML5 Animation.

    There is no trick.

    If there are http includes, say for jQuery, you may want to pull those into the folder as the Animation get put into an iFrame, which can cause issues, especially in Chrome.

    I would open the developer tools to see if there are errors being thrown.

    BDuckWorks
    Inspiring
    April 13, 2016

    The other post was here: I have a game that has been created as a scorm file, can I upload this into my captivate project?

    If the HTML is already hosted on a server, you can also use a webobject interaction to display the game on a slide within your course.

    How are planning to capture and use data from the game? Is there a final score? Pass / Fail?

    Or, are you just expecting them to complete the experience before moving on?

    April 14, 2016

    Thanks for the link to the post.

    If I embed it as a link with the game hosted on a webserver, it works fine. However, my client wants it embedded it as a local file. Hence, I have no option but go this route.

    I am building on previous code and hence don't really need to worry about the SCORM compliance as I have only worked on the game play.

    Need to figure this embedding bit though!

    BDuckWorks
    Inspiring
    April 14, 2016

    You may have better luck investigating authoring for CD-Rom distribution than for SCORM.

    Embedding other content for 'local access' really sounds to me like you're preparing a CD-Rom rather than hosting the course in an LMS, as the CD would present all files as if they are on a local drive.

    I'm also wondering why the content needs to be embedded into a Cp file, as opossed to copied to the published directory of the Cp project and linked via an OpenURL button?

    Lilybiri
    Legend
    April 13, 2016

    Is this a double post? Maybe it is someone else who posted similar question.

    The animation will have to be unzipped, you cannot instruct Captivate to unzip a file at all.

    April 13, 2016

    Hi Lilybiri,

    Thanks for writing in. Sorry but not sure which post you are referring to. Can you please provide me with a link for the same?

    Also, I found that this was the only way of embedding external HTML5 files (oam or zip). My application is not made in Edge. So I only have zip as an option. Any other way of doing this?

    Regards