MochiGames support?

I'm at work and can't take a look but for saving games locally to XFA (or V3A or other arcade platform) they need to be "Leadeboard" enabled games and you need to have a crossdomain.xml file in the root of your site.

Where do we get this crossdomain.xml? :ninja:

Lemme look about the "Leaderboard" part.
 
And you did what, exactly?

I had to do it as save to online... (the other option said local or something.. maybe pc).

Played a round... waited, let myself die... Game ended, simply submitted score, and it showed up.

View attachment 142
 

Attachments

  • 1111.png
    1111.png
    68.5 KB · Views: 108
First thoughts playing around tonight after work...

- xfrocks: Looks great! I think it will be really well received.

- Edrondol: I can't get Zombie Attacks to save scores locally either. For testing I tried it with v3 Arcade on vB 3.8.x and got the same results. With Zombie Dolls, make sure you hit the Submit button at some point to save your scores. Try the "Local PC" option for the scores and then hit "Submit" in the game to save your scores. When it prompts for you name, you can type anything in as it will use your XF logged in name to actually save your score to XFA.
 
- Edrondol: I can't get Zombie Attacks to save scores locally either. For testing I tried it with v3 Arcade on vB 3.8.x and got the same results. With Zombie Dolls, make sure you hit the Submit button at some point to save your scores. Try the "Local PC" option for the scores and then hit "Submit" in the game to save your scores. When it prompts for you name, you can type anything in as it will use your XF logged in name to actually save your score to XFA.

Strange, I did the exact opposite for Zombie Dolls...
 
Attached is the current code in the repository; it has the minor tweak of moving the game descriptions to be standard node tooltip pop-ups. I should have posted this last night but got hung up trying to play around those Mochi games scores not submitting. In debug mode I can see that the game is submitting the scores to /arcade/mochi-gateway but the score isn't being saved. My guess is something is causing it fail the Mochi signature check.
 

Attachments

  • XFArcade-master-20130118.zip
    307.4 KB · Views: 88
Attached is the current code in the repository; it has the minor tweak of moving the game descriptions to be standard node tooltip pop-ups. I should have posted this last night but got hung up trying to play around those Mochi games scores not submitting. In debug mode I can see that the game is submitting the scores to /arcade/mochi-gateway but the score isn't being saved. My guess is something is causing it fail the Mochi signature check.
OK, confirmed. There is a formula used with Mochi games when scores are submitted to verify that the scores are legitimate as opposed to somebody trying to post a fake score. Disabling that check allows Mayan Gold scores to be submitted.

I don't have a solution but if you want to duplicate my results...

In {xf}/library/Arcade/ControllerPublic/ArcadeUgly.php find around line 274....
Code:
$validationStr = implode('&', $validation);
$validationStr .= Arcade_Option::get('mochimedia_key');
$validationMd5 = md5($validationStr);
if ($validationMd5 !== $params['signature']) {
    return $this->responseNoPermission();
}
... and comment out the 'return' line.
Code:
$validationStr = implode('&', $validation);
$validationStr .= Arcade_Option::get('mochimedia_key');
$validationMd5 = md5($validationStr);
if ($validationMd5 !== $params['signature']) {
//    return $this->responseNoPermission();
}
 
I wouldn't have a clue what to do with that part... I'll wait until all of you much smarter than me come up with a solution... hahaha.
 
I wouldn't have a clue what to do with that part... I'll wait until all of you much smarter than me come up with a solution... hahaha.
I *think* I have a solution in code ready to go. Just did a quick test and it seems to work but I am heading out the door for family dinner. Assuming XFR doesn't beat me to the punch with a fix, I'll update the repository and have a new file posted for you guys either very late tonight or Sunday.
 
OK, guys, try the attached. As long as you have your crossdomain.xml file in place, are using Leaderboard games, and aren't using AdBlock (or similar), then so far I have not had any Mochi games fail submitting a score. I've tried Mayan Gold, Zombie Attack, Zombie Dolls, Asteroids Deluxe, and Dot-Matrix Shooter 2.
 

Attachments

  • XFArcade-master-20130119.zip
    307.8 KB · Views: 89
OK, guys, try the attached. As long as you have your crossdomain.xml file in place, are using Leaderboard games, and aren't using AdBlock (or similar), then so far I have not had any Mochi games fail submitting a score. I've tried Mayan Gold, Zombie Attack, Zombie Dolls, Asteroids Deluxe, and Dot-Matrix Shooter 2.

This works, I might send Edrondol to give you a kiss... or maybe do a dance for ya...
stewstyle.gif
 
Back
Top