How do I add an index.html file so I can compress it as a zip. and upload it to a site

ETGgamesETGgames Member, PRO Posts: 190
edited November 2014 in Working with GS (Mac)

The game jam 'indies vs pewdiepie' is coming up and I'm testing to see if i can upload a game salad game to the game jolt website - BUT I NEED AN index.html TO BE IN THE ZIP FILE. IS IT ALREADY INCLUDED, BECAUSE WHEN I LOOK AT THE PACKAGE CONTENTS OF A .GAMEPROJ FILE I CANT FIND IT.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Are you submitting the GS file? They only supported way to do HTML a of your game is through the arcade which you can embed in a website similar to how you embed YouTube videos. A straight GS file is not webbased so there will be no index file.

  • ETGgamesETGgames Member, PRO Posts: 190

    I want to submit a Gsproj File with the index. There is no support for embedded games in the website I'm trying to upload it to, game jolt

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    @EthaneusTheGreat said:
    I want to submit a Gsproj File with the index. There is no support for embedded games in the website I'm trying to upload it to, game jolt

    That's not possible with GS. They want an html5 game and currently GS does not allow you to export to html5.

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited November 2014

    @EthaneusTheGreat in future, please don't type in caps - it's seen as shouting and so not very good Forums etiquette. I'll amend your title to upper and lower case at least.

    (There's no need to add "Help me" either - we're here to help you and anyone else anyway.)

  • crazycam99crazycam99 Paris, FranceMember Posts: 519

    @EthaneusTheGreat have you found a solution? I am thinking in participating

  • ETGgamesETGgames Member, PRO Posts: 190

    I contacted game salad and they said this: EthaneusTheGreat,

    So we currently don't have HTML5 export, but one options might be to make an index.html file that has the embed code in there.

    The file would look like this:




  • ETGgamesETGgames Member, PRO Posts: 190




  • ETGgamesETGgames Member, PRO Posts: 190

  • ETGgamesETGgames Member, PRO Posts: 190

    I have no idea what that means as I can't code, but I someone can help me make an index.html file with this info, great!

  • crazycam99crazycam99 Paris, FranceMember Posts: 519

    Thanks tell me if you get any additional information :)

  • BigDaveBigDave Member Posts: 2,239

    the HTML version trick does work!

  • PH03NIXPH03NIX Member Posts: 72
    edited November 2014

    Any update from gamesalad on whether this works or not @EthaneusTheGreat‌ ?

  • ETGgamesETGgames Member, PRO Posts: 190

    Wait, Big Dave, how did you did that? How do you get that into a file and how did you know what to type in to get it???!?

  • ETGgamesETGgames Member, PRO Posts: 190

    I did all of that, and got the index file, but the game doesn't show up when i try to play it, it just shows the index.html file. I tried submitting it with the gameproj file and without it

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    edited November 2014

    @EthaneusTheGreat‌

    the gameproj file is your project file and has nothing to do with the html file.

    you need to publish your game to the arcade so you can play it like this:

    http://arcade.gamesalad.com/games/125886

    then you take the embed code in the bottom right. it looks like this:

    <iframe src='http://e.gsrca.de/125886?s=560&mode=embed' width='560' height='452' allowtransparency='true' scrolling='no' style='border:none;' mozallowfullscreen webkitallowfullscreen allowfullscreen />

    then you construct your HTML file and insert that iframe block of code into the example you were provided with. You basically just copy the code into notepad and save it as a .html file:

    <html>
    <head></head>
    <body>
    <iframe src='http://e.gsrca.de/125886?s=560&mode=embed' width='560' height='452' allowtransparency='true' scrolling='no' style='border:none;' mozallowfullscreen  webkitallowfullscreen allowfullscreen />
    </body>
    </html>
    

    then open that html file in IE or something and it works:

  • ETGgamesETGgames Member, PRO Posts: 190




    This is what i made into the html file. When i open it, it takes me to my browser, but it doesn't open my game. Instead, it just shows me that code. I did everything exactly like u said but its still not working

  • ETGgamesETGgames Member, PRO Posts: 190

    see it gives me this

  • ETGgamesETGgames Member, PRO Posts: 190

  • ETGgamesETGgames Member, PRO Posts: 190

    well now I've tried it with making the 'http://e.gsrca.de/125927?s=560&mode=embed' part a link, and on the game jolt site, it shows up the code just as it does on the browser, but if I click the link, it works! I just want it so the player doesn't have to look at the code, then press the link in the middle of all this code, to play the game. Also, the link onset take me to the gs site with the game, the game plays just how it should ! GETTING CLOSER

  • ETGgamesETGgames Member, PRO Posts: 190

    I think the problem is getting the code to actually start on its own. even jonmulcahy's code did the same thing as mine is

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    @EthaneusTheGreat said:
    I think the problem is getting the code to actually start on its own. even jonmulcahy's code did the same thing as mine is

    what browser are you using?

  • ETGgamesETGgames Member, PRO Posts: 190

    i tries safari a chrome from my mac

  • ETGgamesETGgames Member, PRO Posts: 190

    EUREKA!!! I FOUND THE PROBLEM! IM SO STUPID!

    so basically, what i was doing wrong was saving the code i had made in textedit as a .html

    After multiple attempts, i figured out that this was what i was doing wrong! i had saved the code as an index.html file directly from textedit. In fact, what i needed to do was save it as an rtf (rich text format - the default option) THEN in finder click get info and change the extension from there. WOW. I hope none of you had to go through this extreme pain.

  • gamestudentgamestudent Member Posts: 504

    Does anybody know if this is still the procedure, say, if I wanted to upload to Itch.io?

Sign In or Register to comment.