News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Arcade

Started by niko, October 01, 2004, 02:45:55 PM

Previous topic - Next topic

johnm

Quote from: Niko on August 10, 2005, 05:42:39 AM
Damn how hard its to run arcade_sql.php ... maybe i need to automate it :p

1.2.2 added

didnt you used to lol!!!
why not have a setting that package manager sets in the db 'needs_to_run_arcade_sql' and when the admin visits arcade it looks for and executes it (and maybe execute it a second time)

johnm

how about a flash tutorial?

Fiery

where are the manual uninstall instructions (for the latest version) ? I cant find them.

thanks

niko

#1203
just reverse install ie. replace second with first
Quote from: johnm on August 10, 2005, 03:52:58 PM
didnt you used to lol!!!
why not have a setting that package manager sets in the db 'needs_to_run_arcade_sql' and when the admin visits arcade it looks for and executes it (and maybe execute it a second time)

I did have but dunno where it disappeard

Edit: 1.2.3 is now available, theres only few bug fixes. To update just reupload files... (no need to re-apply)

Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

demon1975

The mode made my permissions page not work and my members can't play the game only admins, what are the fixes to this?

tentronik

Quote from: johnm on August 10, 2005, 03:55:23 PM
how about a flash tutorial?

Tutorial I - How to synchronize FLASH games with the mambo smf arcade mod,
so the highscores get passed to the arcade mod.

1.
Check your game and get the "score" variable.

2.
At the game over sequence add a button like:
on (release) {
game = "my_freakazoid_game";
score = _root.my_score
getURL("index.php?action=arcade", "_self", "POST");
}


Now change "my_freakazoid_game" to the name of your flash *.swf file.
Then change _root.my_score to your score variable.
If you prefer not to have a button you could just past
game = "my_freakazoid_game";
score = _root.my_score
getURL("index.php?action=arcade", "_self", "POST");

on a keyframe.

And voila - rockzors in the boxors :-p


tentronik

Quote from: demon1975 on August 11, 2005, 08:14:46 AM
The mode made my permissions page not work and my members can't play the game only admins, what are the fixes to this?
Go to the admin panel and click permissions then modify the member permissions.
The arcade mod adds his own permission values to the overall smf permission section.

Aravot

Champion icon gone after upgrade to SMF 1.1b3p and arcade 1.2.3

Was running SMF 1.0.1
Arcade 1.0.3

Today I upgraded to SMF 1.1 beta 3 public and Arcade 1.2.3, now the champion icons under the post count is gone, tried few things but can't get it back any help is appreciated.

thx

Anihc

it looks like the link to the most resent version is broken

1.2.2 and where is the link for 1.2.3? I thought it was updated recently?

I scanned though the thread but must have over looked it if it is there. :(

Anyone have a good link to these?

Thanks,
Anihc

ChaosForce

Got a problem with mine:

Table 'tekhack_smf1.smf_games_caterogy' doesn't exist
File: /home/tekhack/public_html/forum/Sources/ArcadeAdmin.php
Line: 169

Get that when I click on the games link.

I tried running that arcade_sql.php, but i get a 500 internal server error >_>

johnm

chmodd it to 755 and then run it twice


Aravot

Link for 1.2.3 is missing? was there yesterday.

tentronik

Do you have a link and i thought the newest is 1.2.2?

Anihc

The link is there but it does not work.

1.2.2 is the latest via a link but a few pages back it was mentioned that 1.2.3 is an update but there is no link on the mod page for that update. I think it was in a post somewhere in this thread but I can't find it.

Aravot

Quote from: Aravot on August 11, 2005, 09:22:04 PM
Champion icon gone after upgrade to SMF 1.1b3p and arcade 1.2.3

Was running SMF 1.0.1
Arcade 1.0.3

Today I upgraded to SMF 1.1 beta 3 public and Arcade 1.2.3, now the champion icons under the post count is gone, tried few things but can't get it back any help is appreciated.

thx

Changing the code in 'Sources/Display.php' from this (arcade v1.2.3)


/* Arcade thingy */
$arcade_champ = array();
$req = db_query("SELECT * FROM {$db_prefix}games_champ,{$db_prefix}games WHERE {$db_prefix}games_champ.game={$db_prefix}games.game LIMIT 0,{$modSettings['arcade_champions_in_post']}",__FILE__,__LINE__);
while ($rivi = mysql_fetch_assoc($req))
{
$ext = array('gif','GIF','png','PNG','jpg','JPG',); // Extensions to look for

$context['arcade']['games'][$i]['thumbnail'] = ""; // No thumbnail for default

foreach($ext as $ex){
if(file_exists($modSettings['arcade_games_dir']."/".$game['game'].".".$ex)){
$context['arcade']['games'][$i]['thumbnail'] = $modSettings['arcade_games_url']."/".$game['game'].".".$ex;
break;
}
}

}
loadLanguage('Arcade'); // We need strings from Arcade language file
$context['arcade']['champions'] = $arcade_champ;


to this solved my issue however I still would like to get it work with the other code since it seems much cleaner.


/* Arcade thingy */
$arcade_champ = array();
$req = db_query("SELECT * FROM {$db_prefix}games_champ,{$db_prefix}games WHERE {$db_prefix}games_champ.game={$db_prefix}games.game",__FILE__,__LINE__);
while ($rivi = mysql_fetch_assoc($req))
{
if(!empty($rivi['game']) && !empty($rivi['member']))
$arcade_champ[$rivi['member']][$rivi['game']] = $rivi;

if(file_exists("./Games/{$rivi['game']}.gif")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.gif";
}
elseif(file_exists("./Games/{$rivi['game']}.GIF")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.GIF";
}
elseif(file_exists("./Games/{$rivi['game']}.png")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.png";
}
elseif(file_exists("./Games/{$rivi['game']}.PNG")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.PNG";
}
elseif(file_exists("./Games/{$rivi['game']}.jpg")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.jpg";
}
elseif(file_exists("./Games/{$rivi['game']}.JPG")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.JPG";
}
else{
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "";
}

}
loadLanguage('Arcade'); // We need strings from Arcade language file
$context['arcade']['champions'] = $arcade_champ;


tentronik

http://mods.simplemachines.org/index.php?mod=36
Newest version is 1.2.2 and i know that at least 1.2.1 is fine with 1.1 beta 3p after you run the arcade_sql.php and fixing memberid to member (see log).

And the 1.2.2 is currently not accessable.

Aravot

Quote from: tentronik on August 12, 2005, 04:04:42 PM
http://mods.simplemachines.org/index.php?mod=36
Newest version is 1.2.2 and i know that at least 1.2.1 is fine with 1.1 beta 3p after you run the arcade_sql.php and fixing memberid to member (see log).

And the 1.2.2 is currently not accessable.

Are you referring to me, if so what 'memberid' to 'member' are you talking about what log?

I am running arcade v1.2.3

tentronik

Where did you downloaded the 1.2.3 ?
The error log is in admin panel -> forum error log

Col

I'm getting 1000's of these errors in the logs. Everything appears fine, both with the forum, and the games.

8: Undefined variable: i
File: /home/xxxxxx/public_html/community/Sources/Display.php
Line: 551
?topic=477.0


Line 551:

$context['arcade']['games'][$i]['thumbnail'] = ""; // No thumbnail for default

What's the problem?

Thanks.

Advertisement: