Yippiiiiiiiiiiiiiiiiii!  :-)  BTW, I have a soccer game for you...

Yep. I´ve tested it on a clean install. All is looking fine. Maybe others can help, sorry. Think it´s a php version problem.

Hmm.. dont see any problems. It´s the same as it runs on my forum.
Now switch all back, disable debug mode and query output.

Please enable the following line too, this displays all queries
define('PUN_SHOW_QUERIES', 1);

Edit /include/common.php and enable debug mode for testing:

// Enable DEBUG mode by removing // from the following line
define('PUN_DEBUG', 1);

// This displays all executed queries in the page footer.
// DO NOT enable this in a production environment!
define('PUN_SHOW_QUERIES', 1);

It seems there is a problem with your mysql or php version. I dont know exactly whats the problem ...
If you can give me access to your server I can check this online. Just email me.

The random game is also not displayd on your forum. Just copy all files again and try

iatbm wrote:

ango ... I installed the latest mod of yours .... but this is what I get :


Parse error: syntax error, unexpected '}' in /home/goalchat/public_html/newscore.php on line 9

Did you installed the one from my forum (Arcade Games 24-05-2006.zip)?
The file newscore.php wasn´t changed for weeks.  Wich version of mysql and php are you using?

iatbm wrote:

Is there some soccer game in this arcade mode so I can make competition on my soccer forum ? ... If not would it be possible to make it ? smile  or how this works .... are there points etc....

Well, I´ve adapted all swf games for this mod, wich special game do like to play?

nico_somb wrote:

well... I see my project is better smile ! thank you for all!

dharmil : can you do a ZIP file for us please? smile

dharmil and my version are a little different, we exchange our experiences and the mod is going better and better  :-)

ThX!

Nice work dharmil, please send me the files, i´d like to test it on my forum.

38

(69 replies, posted in News)

jmpy wrote:

Great! Thanks for this update.

iatbm wrote:

Is there any way we can make manual updates ... like for 1.2.11 .... ?

There's a hdiff file here: hdiff-1.2.11_to_1.2.12.html

thx for the update and the diff!

Looking great, good partitioning.
I wanted to change also the main page.  :-)
Think the sort and search block needs a new look too ...

More ideas:
- champion of the month
- Advanced Highscore system (Points for 1., 2. and 3. place of a game or Tournament placing ...)

It´s a pity!
It looks like the update query for the game_played counter didn´t execute.

Sorry, I´m not a good programmer.

We need help of a professional programmer, who has a look at our source code and tell us what could be better done.
(For example: Compatibility between different mysql and php versions, optimization ...)
I´m on my programming boundaries. Otherwise the code will be soon completely in disorder.  :-)

spycam wrote:

I have problems with this mod (Update 18.05.2006 and other versions). Does'nt work "How many times played" in each game. Besides i have errors on the arcade.php page.
http://www.ruspravo.net/go/arcade.php
pass: test login: test
Sorry for my english.

PS MySQL 4.0.25
PHP 4.4.2

Please open /include/common.php and remove the leading slashes from: //define('PUN_SHOW_QUERIES', 1);
This is for displaying all executed queries in the page footer. I´ll test it again later on your forum.


I also saw this error on your site:

Notice: Undefined variable: sqlquery in /home/ruspra/public_html/go/arcade.php on line 180

It´s a problem with your mysql version.
Open arcade.php and change:

    
{
    // Set defaults
    $_SESSION['firsttime'] = true;
    $_SESSION['cat']=0;
    $_SESSION['nump']=10;
    $_SESSION['search']='';
    $_SESSION['rsearch']='game_name';
    $_SESSION['page']=0;
    $_SESSION['sorto']='DESC';
    $_SESSION['sortby']='game_id';
}

to

    
{
    // Set defaults
    $_SESSION['firsttime'] = true;
    $_SESSION['cat']=0;
    $_SESSION['nump']=10;
    $_SESSION['search']='';
    $_SESSION['rsearch']='game_name';
    $_SESSION['page']=0;
    $_SESSION['sorto']='DESC';
    $_SESSION['sortby']='game_id';
    $sqlquery = '';
}

Hope this get rid of the error.

dharmil wrote:

yeah i used this ango

<img src="yetisports8.jpg"  width="200" height="85"> use html tags


and the lower and upcase some server you have to have the correct case in file name or they dont load the server will think its not there

Ok, it´s better to convert all to lowercase for future releases. thanx for the hint

Tubby wrote:

love the new mod i just currently installed it.....on the highscore table there seems to be 2 random white lines wich look horrible.....i think you tried to seperate them with it but the line overlaps the tables and it looks horrible....i would like to remove the 2 white lines because there is already a box around the content. hpw shall i do this?

Sorry, I dont have this problem. Did you have a screenshot? I´ll try to fix it for other updates...

dharmil wrote:

the arcade mod is llokg nice good job and your ghame install files for engilh are not good because when the file is installed it sets the name in llowercase how you set it but in the games dictony the staring for some of the games is uper case

Did you mean the filename in the games addon packs?
I´ve changed some files, but I dont have problems with uppercase or lowercase on my system.
All games are tested and working fine for me.

Btw, nice looking of your modification. Did you resized all thumbs for it or did you used html tags?
For example: <img src="yetisports8.jpg"  width="200" height="85">

I would adopt it ...  :-)

Hmm.. some users reported a problem with newscore.php, think thats a problem between windows and linux.

Just edit newscore.php and change line 25

$sql = 'SELECT rank_topscore, rank_score FROM '.$db->prefix.'arcade_ranking, '.$db->prefix.'users WHERE rank_player = users.id AND rank_game = "'.$game_name.'" ORDER BY rank_score DESC LIMIT 1';

to

$sql = 'SELECT rank_topscore, rank_score FROM '.$db->prefix.'arcade_ranking, '.$db->prefix.'users WHERE rank_player = '.$db->prefix.'users.id AND rank_game = "'.$game_name.'" ORDER BY rank_score DESC LIMIT 1';

Hope this fixed the error.

Update 18.05.2006

- added "random game" in the statistic block
- added search and sort functions
- fixed some game errors

Tested on a clean database with PHP 4.4.2 and MySQL 5.0.19.

Download: Arcade Mod  Game Pack 1 (50 Games), Game Pack 2 (25 Games), Game Pack 3 (25 Games).

Don´t use the old download links!

Have fun ...

Shame on me! I´ve messed up some games (Iceage and sonic). The path in the main swf files are not correct.
Tomorrow I´ll upload the correct ones.  Sorry ...

Sort and search function is ready.
A little testing and I make a new package.  :-)

Whats the problem with the games ice age and sonic? Did you see the title screen and then the game hangs?
It looks like that parts of the game could not be loaded.
Sonic searchs for his parts in PUNROOT "games/sonic" and ice age in PUNROOT "games/iceagedata".
If you have renamed the GAMES folder for example PUNROOT "mygames/sonic" the games dont run!

...yes, game-pack three is coming soon  :-)

Hi dharmil,
nothing new for the moment.
At next I´ll try to add a search and a sort function. Think that is necessary because there are so many games.