Jump to content


Photo

instant play


  • Please log in to reply
3 replies to this topic

#1 mecool1

mecool1

    GMC Member

  • GMC Member
  • 313 posts

Posted 21 August 2011 - 03:54 AM

ok i didnt see this on the gmarcade site anymore. i just viewed the page source of gmarcade and im giving it to you. i did not make this, i just couldnt find this anywere else.

this is how you use java to "embed" your games using the gmarcade instant play thing.
and this is html (duh)
<applet code="gmarcadejnlp/Applet.class" 
        archive="http://gmarcade.com/GMArcadeRunner.jar"
        width=150 height=30>
<PARAM NAME=GAMENAME VALUE="NAME YOU WANT TO APPEAR IN SECURITY BOX">
<PARAM NAME=RUNEXE VALUE="NAME OF EXE IN ZIP FILE">
<PARAM NAME=GAMEZIP VALUE="DIRECT LINK TO FILE">

<PARAM NAME=LOADSTRING VALUE="Loading Game...">
<PARAM NAME=BUTTONTEXT VALUE="Instant Play">
<PARAM NAME=BUTTONIMAGE VALUE="">
<PARAM NAME=BUTTONIMAGEROLLOVER VALUE="">
<PARAM NAME=BUTTONIMAGEPRESSED VALUE="">
</applet>

values you need to change:

NAME YOU WANT TO APPEAR IN SECURITY BOX
NAME OF EXE IN ZIP FILE
DIRECT LINK TO FILE

//optional
Loading Game...
Instant Play

its pretty self explanatory but for those of you with no coding experience i decided to make it easy for you.

on the gmarcade website they used to have this and told you how you could use it on your site, but i couldnt find it.

if the author doesnt want me to post this i will delete this topic.
  • 0

#2 Chris Vergilio

Chris Vergilio

    GMC Member

  • GMC Member
  • 481 posts

Posted 21 August 2011 - 06:31 AM

I tried and out and had to tweak some things

<PARAM NAME=GAMENAME VALUE="NAME YOU WANT TO APPEAR IN SECURITY BOX"> <PARAM NAME=RUNEXE VALUE="NAME OF EXE IN ZIP FILE">
These have to share the same name with the exe file
So if your game's exe is "rpgawesome.exe" the GAMENAME VAULE must be "rpgawesome"
it is case sensitive

Plus it may or may not like certain extensions
I tried it with my latest game, loaded just fine but when I pressed the key to play, it froze up on me
Probably because of my BEEP extension, so look out for that

Edited by Chris Vergilio, 21 August 2011 - 06:32 AM.

  • 0

#3 mecool1

mecool1

    GMC Member

  • GMC Member
  • 313 posts

Posted 21 August 2011 - 06:09 PM

hmm i tested it out and used different names and it worked. my exe was socialsmileys.exe and for the name i did Social Smileys. but maybe im mistaken.
  • 0

#4 Chris Vergilio

Chris Vergilio

    GMC Member

  • GMC Member
  • 481 posts

Posted 21 August 2011 - 06:50 PM

hmm i tested it out and used different names and it worked. my exe was socialsmileys.exe and for the name i did Social Smileys. but maybe im mistaken.


Hmmm well then that means my error was only because I didn't link to the file within the ZIP properly lol



  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users