collapse

Author Topic: Installing custom packages  (Read 1031 times)

0 Members and 1 Guest are viewing this topic.

Offline Turtwig

Installing custom packages
« 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:

Code: [Select]
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: [Select]
[code]_root.sendscore.gscore = _root.score;
_root.sendscore.gname = "Bop_the_ICOYAR";
_root.sendscore.send("index.php?act=Arcade&do=newscore","_self","POST");
[/code]
« Last Edit: July 17, 2012, 12:32:25 PM by Turtwig »

Offline Turtwig

Re: Installing custom packages
« Reply #1 on: July 17, 2012, 01:41:13 PM »
Nvm, I put a PHP file in the package and it worked.

Offline Skhilled

  • Administrator
  • Hero Member
  • *
  • Posts: 2642
  • Attack: 3025
    Defense: 2963
    Attack Member
  • Gender: Male
  • Retro Gamer!
    • Doc Skillz!
Re: Installing custom packages
« Reply #2 on: July 18, 2012, 07:39:10 AM »
Certain types of arcade games need that php file to work.


 

ordinary
ordinary
ordinary
ordinary