Jump to content


Photo

Publishing Problems


  • Please log in to reply
5 replies to this topic

#1 squeakydave

squeakydave

    GMC Member

  • GMC Member
  • 20 posts
  • Version:GM:HTML5

Posted 09 March 2012 - 11:23 AM

I have successfully made a HTML5 e-card and I want to publish it on my e-card site.
The site software allows me to enter what it calls 'free text' to add the card so I have changed the HTML index to have an absolute link to the 'html5game' folder:
http://www.website/h5cards/html5game
I have also done a find and replace in the Java script file so that the one reference to 'html5game' is now http://www.website/h5cards/html5game

The card works fine if I go directly to the html index file (so those changes must be correct) but will not appear when the index.html is added as freetext into the webcards site.

Does anyone have any ideas?
  • 0

#2 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9276 posts
  • Version:Unknown

Posted 10 March 2012 - 12:02 AM

You don't need to add the whole index file, you just want the canvas part and the javascript part that calls the card's *.js file.
  • 0

#3 squeakydave

squeakydave

    GMC Member

  • GMC Member
  • 20 posts
  • Version:GM:HTML5

Posted 13 March 2012 - 12:03 PM

You don't need to add the whole index file, you just want the canvas part and the javascript part that calls the card's *.js file.


That doesn't seem to help either :-(

There must be something else I am missing.
  • 0

#4 Dangerous_Dave

Dangerous_Dave

    GMC Member

  • Global Moderators
  • 9276 posts
  • Version:Unknown

Posted 13 March 2012 - 07:14 PM

Is it an open site, that anyone can submit to? It may help to post a link to wgere you submit so I can have a play.

They do support HTML5 right?
  • 0

#5 Mike.Dailly

Mike.Dailly

    Evil YoYo Games Employee

  • Administrators
  • 1483 posts
  • Version:GM:Studio

Posted 14 March 2012 - 04:25 PM

You can't link directly inside as GameMaker looks for the folder "html5game". This means you would have to do something like this....

http://www.website.com/h5cards/card1

where the full path to the .JS file (and game data) is actually

http://www.website.com/h5cards/card1/html5game

So the index file would live inside the card1 folder.
  • 0

#6 squeakydave

squeakydave

    GMC Member

  • GMC Member
  • 20 posts
  • Version:GM:HTML5

Posted 19 March 2012 - 12:55 PM

You can't link directly inside as GameMaker looks for the folder "html5game". This means you would have to do something like this....

http://www.website.com/h5cards/card1

where the full path to the .JS file (and game data) is actually

http://www.website.c...card1/html5game

So the index file would live inside the card1 folder.


Ahhh. Many thanks Mike . I'll give it a try.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users