![]() |
|
#1
|
||||
|
||||
|
I've put together some possible solutions to problems with installing games and saving scores that I've come across so far. This won't solve every problem but it hopefully may help some folks.
![]() No More Games To Install Make sure the transfer type is set to auto or binary when uploading, if it is set at ASCII the files won't be found Check you have CHMOD 777 the relevant folders For ibPro Games (tar files) forumroot/admincp/games forumroot/arcade/gamedata forumroot/images/arcade forumroot/games For v3arcade Games (zip files) forumroot/admincp/games forumroot/images/arcade forumroot/games When uploading games via FTP make sure you upload in auto or binary mode How do I integrate Mochi Games? Read this thread - http://www.v3arcade.com/forums/showthread.php?t=1934 ITEMS 6 and & ARE PARTICULARLY IMPORTANT I get a 'XML Error: no element found at Line 0' error when installing Mochi Games The error is a result of your server being unable to retrieve the game files to be installed. To date we have identified three possible conditions that might cause that error. 1) File Permissions - Several folders on your server must be writable (via CHMOD 777) during the installation process. When you are not installing games you can change the permissions of the folders to be non-writable; it is only while installing the games the folders must be set to allow writing to them. The list of folders that must be writable is included in the description when you are importing games (ACP => v3 Arcade => Game Tools). 2) allow_url_fopen - The current method of retrieving from v3Arcade.com to your server requires "allow_url_fopen" on your server to be turned on. To check to see if your server has it turned on or off, check ACP => Maintenance => View PHP Info and then look to see what the local value for "allow_url_fopen" is set to. Future versions of v3 Arcade may support additional methods to get around this issue. 3) Default User Setting - This one has *not* been confirmed by v3A yet but it has been reported by some of our community members as solving their problem... on a brand new installation of v3Arcade, select ACP => v3 Arcade => Default User Settings and then select your options & click the "Save" button. After that try retrieving the games again. I receive this error when installing Mochi games 'Fatal error: Must set URL with set_option(VURL_URL, $url) in [path]/includes/class_vurl.php' Search your database using phpMyAdmin, find the datastore table and then look for the field v3a_mochitemp edit the data field value of any content so it looks like this - a:0:{} and save. Then try importing games again. I still receive errors or don't see any games waiting to be installed. Check that your server doesn't have mod_security enabled. If it does, ask your host if it can be disabled, or try adding the following code to the top of a .htaccess file <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> Also try the above fix if you get the following error.......... Code:
Not Acceptable An appropriate representation of the requested resource /admincp/v3arcade_admin.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. ibPro Games give a blank white screen when submitting Check your v3arcade_games table in your database and make sure the shortname field has a value. For example, if you have a game called Pacman the shortname would be something like pacmanX. It is usually something relating to the gamename and the person who converted the game. (see attached files manual install.jpg and database.jpg for an example) The shortname is only required for ibPro Games and usually only for ones that are manually installed - you will find the shortname in the .php file within the game archive, look for the gname (ibPro Games equivalent to shortname). If you are manually adding a game the shortname/gname goes in the fieldbox above the Game System selection (the phrase is currently missing in v3arcade 2.0.2). If you have already installed the game you will need to add the value to the v3arcade_games table in your database as mentioned above. (see attached files manual install.jpg and database.jpg) I'm still getting a blank page upon submission (running vBadvanced CMPS) If you are running vBadvanced CMPS and made cmps_index.php your index.php page make sure your $forumpath is correct. How to check forumpath - http://www.vbadvanced.com/forum/faq....uble_forumpath Manually added games still not saving scores Make sure you have selected the correct Game System type when adding the game - v3arcade, Mochi and ibPro games all pass scores differently to the database and the correct selection is very important. ibPro Games give a Security Token error when submitting. If you are running either vB Suite CMS or vBadvanced CMPS you will need to make one small file edit to your index.php Suite CMS - http://www.v3arcade.com/forums/showthread.php?t=3215 vBa CMPS - http://www.v3arcade.com/forums/showthread.php?t=3407 Mochi Games No Permission error when submitting scores Make sure you upload crossdomain.xml to your site root (ie where you uploaded the mochi.html file that is required to verify your site by Mochi) You may also need to extend your Timeout Session so members aren't logged out during games. AdminCP > Settings > Options > Cookies and HTTP Header Options > Session Timeout Getting No Permission Errors When Allowing Only One Score Per User Open your arcade.php and find: Code:
$gamecheck = $db->query_first("
SELECT COUNT(*) AS sessioncount
FROM " . TABLE_PREFIX . "v3arcade_sessions
WHERE valid = 1
AND gameid = $game[gameid]
GROUP BY userid
");
Code:
$gamecheck = $db->query_first("
SELECT COUNT(*) AS sessioncount FROM (SELECT COUNT(*) AS group_count
FROM " . TABLE_PREFIX . "v3arcade_sessions
WHERE valid = 1
AND gameid = $game[gameid]
GROUP BY userid) AS sessioncounts
");
Code:
$scorecache[] = "(arcade_sessions.score = '$score[score]' AND arcade_sessions.userid = $score[userid])"; Code:
$scorecache[] = "(arcade_sessions.score = $score[score] AND arcade_sessions.userid = $score[userid])"; Also, you may want to make the Remember Me box automatically ticked, this will help prevent being logged out after so many minutes while playing a game - this working along with a higher timeout setting can help with 'No permission errors'. Open your header template and find: Code:
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label>
Code:
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" checked=checked"/> {vb:rawphrase remember_me}</label>
Go to admincp >> Styles & Templates >> Search in Templates. Now in the top box labeled "Search Templates" First select which theme you want to seach in then in the search box search for the following Code:
cb_cookieuser_navbar Find the following line of code Code:
<input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" /> Code:
<input type="checkbox" name="cookieuser" value="1" checked="checked" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" /> Read more here - http://www.v3arcade.com/forums/showthread.php?t=3325 v3arcade and .htaccess redirects If you are using .htaccess to redirect your index.php to forum.php or any other file your IPB games will not submit scores - IPB games are encoded to pass scores a certain way and being able to 'communicate' with index.php file is required as part of the submission process 'Deprecated: Assigning the return value of new by reference is deprecated' Error When Running PHP 5.3.x (fixed in v2.0.3) Anyone who is running or upgraded to php 5.3.x will most likely see errors at the top of the arcade. Quote:
Code:
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); Code:
$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list()); Mochi Games (leaderboard enabled ones) are installing with high scores disabled as default. (fixed in v2.0.3) Not sure if this affects all versions of the arcade, it has affected my own since 2.0.3 To fix it and make your Mochi Games Highscores enabled by default open your v3arcade_admin.php and find: Code:
$gameperms += 8; // disable scoring Code:
$gameperms += 0; // disable scoring Tournament Information Not Appearing On Forumhome For Guests Open v3arcade_tournaments_forumhome template and change it to Code:
<dl>
<dt>Tournaments Awaiting Players</dt>
<dd><a href="arcadetourmnt.php?{vb:raw session.sessionurl}do=viewwaiting">{vb:raw tourcounts.0}</a></dd>
<dt>Active Tournaments</dt>
<dd><a href="arcadetourmnt.php?{vb:raw session.sessionurl}do=viewactive">{vb:raw tourcounts.1}</a></dd>
</dl>
__________________
Arcade Junkies - one site, two arcades and a whole lot of other goodies. |
|
#2
|
||||
|
||||
|
I've broken the problem solving thread up because it was getting too messy. This post will be made a sticky for reference.
If you are having problems which cannot be fixed with the information here, please create a new thread and give as much detail of the problem as possible.
__________________
Arcade Junkies - one site, two arcades and a whole lot of other goodies. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|