Docskillz

The Good Stuff => SMF Arcade Support => Topic started by: Turtwig on July 17, 2012, 12:26:54 PM

Title: Installing custom packages
Post by: Turtwig on July 17, 2012, 12:26:54 PM
I've created zip containing a PNG and swf file, that I made. I added the code:

sendscore.gscore = _root.score;
sendscore.gname = "Bop_the_ICOYAR";
sendscore.send("index.php?act=Arcade&do=newscore","_self","POST");


To a button in the small game to send the score. Yes, my score variable is attached to the root and named root. My swf and png are both named Bop_the_ICOYAR, and the zip installs properly, but when a score is sent I get the error:

An error occurred while saving score

Anyone know what I did wrong? I am using SMF 2.0.2 and SMFArcade 2.5 RC1.1D.

Thanks for any help.

EDIT:

It didn't work with this code either:

[code]_root.sendscore.gscore = _root.score;
_root.sendscore.gname = "Bop_the_ICOYAR";
_root.sendscore.send("index.php?act=Arcade&do=newscore","_self","POST");
[/code]
Title: Re: Installing custom packages
Post by: Turtwig on July 17, 2012, 01:41:13 PM
Nvm, I put a PHP file in the package and it worked.
Title: Re: Installing custom packages
Post by: Skhilled on July 18, 2012, 07:39:10 AM
Certain types of arcade games need that php file to work.