Talk Arcades > Arcades > Scripts & Software > GameSiteScript

Welcome to Talk Arcades, the premier forum for arcade webmasters.

You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and talk advantage of the GameFeed™ Distribution Network for 1-click installation of games into your arcade.

Registration is easy, so please join us today!

Reply
 
LinkBack Thread Tools Display Modes
Old 06-07-2009, 06:27 PM   #1 (permalink)
nx8
Legendary Member
 
Join Date: Apr 2009
Location: Germany
Posts: 524
nx8 is on a distinguished road
Send a message via ICQ to nx8 Send a message via AIM to nx8 Send a message via MSN to nx8 Send a message via Skype™ to nx8


Default Mochiads + GSS how do i add all games at one time?

Hello,

is there an way to add all mochiad games to GSS 4.0?
With the plugin i need to open each game and click add. If i want to add all games, i need a few days :-(

Any Solutions?
__________________
Buy Cheap Arcade Traffic
nx8 is online now  
Digg this Post!
Reply With Quote
Old 06-07-2009, 06:59 PM   #2 (permalink)
freegamegallery
Senior Member
 
Join Date: Mar 2009
Posts: 222
freegamegallery is on a distinguished road


Default

I'm not sure how to do it with GSS specifically, but the concept isn't too hard. Mochiads will give you an XML or a JSON feed of the games. Its not too much work to write a php script that'll retrieve that feed, parse it, loop through a game at a time and download the thumbnail, swf file, and insert the metadata into the db. You'll need a little php and sql experience to be able to do it. You may even be able to look at the script GSS uses to load a game and copy most of it, passing in just the pieces it needs from the feed for each single game. It may take you a few hours to program it, but better than doing it one at a time.
__________________
Play Free Games | Free Games Lounge | Racing Games


Get 10,000 Free Impressions at the Arcade Traffic Exchange! Join Today!
freegamegallery is online now  
Digg this Post!
Reply With Quote
Old 06-07-2009, 07:14 PM   #3 (permalink)
freegamegallery
Senior Member
 
Join Date: Mar 2009
Posts: 222
freegamegallery is on a distinguished road


Default

Here ya go, hopefully this may help get ya started. I whipped up some of the php code to take the featured games JSON feed, and parse it looping through each game. All you'll need to do is take the things I parsed out and actually download the game, and insert it into your DB. Replace the MOCHI_PUB_ID with your mochi publisher ID. Hopefully you can pick apart your GSS and find the section where it can load a single game and copy that code or call a function it in. This'll at least get you going looping through the JSON feed specifics though.

Code:
<?php // //Construct the url that will contain the game data requested from mochi // $game_feed_url = "http://www.mochiads.com/feeds/games/" . MOCHI_PUB_ID . "/featured_games/all?format=json"; // //Call the URL and get the json feed // $json_feed = file_get_contents($game_feed_url); $json_items = json_decode($json_feed, TRUE); // //Parse the JSON feed and get the components of the game // $num_games = 0; foreach($json_items['games'] as $item) { //Parse the json data from the feed for a game $num_games ++; $game_name = $item['name']; $game_width = $item['width']; $game_height = $item['height']; $game_description = $item['description']; $game_instructions = $item['instructions']; $game_rating = $item['rating']; $game_leaderboard_enabled = $item['leaderboard_enabled']; $game_thumbnail_url = $item['thumbnail_url']; $game_swf_url = $item['swf_url']; $game_categories_array = $item['categories']; $game_slug = $item['slug']; $game_external_id = $item['game_tag']; echo "Processing Game: " . $game_name . " game tag: " . $game_external_id; //Heres where you'll have to do the real work. } ?>
__________________
Play Free Games | Free Games Lounge | Racing Games


Get 10,000 Free Impressions at the Arcade Traffic Exchange! Join Today!
freegamegallery is online now  
Digg this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Places to submit games webbom Marketing 12 03-30-2010 08:57 PM
Arcade Script Reviews arcadillo Scripts & Software 10 03-30-2010 03:34 PM
Equal treatment Permanent, hard coded, nothing hidden, deep link category to category ArcadeSiteBuilder Link Exchanges 6 04-25-2009 10:49 AM
DRESSSSSSS UP Time... 4 games Koalafun New Game Spotlight 2 06-24-2008 10:56 AM
Have an Arcade? Need Games? 2229 Games Inside!!! admin The Bazaar 3 09-15-2006 09:30 AM


All times are GMT -6. The time now is 06:18 PM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6
© TalkArcades.com
Forum - Register - Calendar - Memberlist - FAQ - Search