[ABD] phpBB Arcade 1.0.RC10

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by DragonMaster1 » Tue Sep 09, 2008 11:33 pm

JRSweets wrote:
DragonMaster1 wrote:
JRSweets wrote:
DragonMaster1 wrote:I turned off protection for all games as it is a base testing board....did nothing at all and kept the same error and I can’t get any score to stick
Could you please post a link to a zip file of a game you are using so I can try it out myself.

here you are

I also added ‘snake’ with it as I am also testing and get the exact same error with it too

http://www.catchtherainbow.com/simon.zip

Thanx In Advance!!!
Both games work fine on my test board.

Did you make sure you select Activity mod as the game type when you created the install file? And snake/simon as the score variable?

This is the install file I used for snake.

Code: Select all

<?php
/**
*    Installation File How-to
*
*    Below are the parameters that must be set for a game to be installed into
*    the arcade.  There is no current way (and there will probably not be one)
*    to manually install games from the ACP.
*
*    You need this file for the game to show up in the ACP to install.
*
*    The only items that need to be set are the games name, description,
*    width, height, type, scoretype and files.
*
*    The arcade supports 7 types of games. (Activity Mod, IBPro, IBPro arcadelib,
*    V3Arcade, IBProV3, Arcade room and games that do not submit scores)  
*    Use the following constants for the type:
*
*    AMOD_GAME
*    AR_GAME
*    IBPRO_GAME
*    IBPRO_ARCADELIB_GAME
*    V3ARCADE_GAME
*    IBPROV3_GAME
*    NOSCORE_GAME
*
*    The scoretype should either be SCORETYPE_HIGH or SCORETYPE_LOW
*    these constants are defined in the main arcade class already.
*    SCORETYPE_HIGH is for games that score so that the best score is
*    the highest.  SCORETYPE_LOW is for games that score so that the
*    best score is the lowest.
*
*    The game_files item contain and array of any extra files that are need for
*    the game to run that are not in the same folder as the main game.  They
*    should be listed without the path from the phpbb root.
*
*    The following example would be if the game required three( 3) files:
*
*    'game_files'        => array (
*        0    => 'arcade/gamedata/snake/scores.swf',
*        1    => 'arcade/games/snake/scores.swf',
*        2    => 'arcade/gamedata/games/snake/scores.swf',
*    )
*
*    If there are no extra files the item should be set to false:
*
*    'game_files'        => false,
*/

if (!defined('IN_PHPBB'))
{
    exit;
}

$game_file = basename(__FILE__, '.' . $phpEx);

$game_data = array(
    'game_name'            => 'Snake',
    'game_desc'            => 'Snake.',
    'game_image'            => $game_file.'.gif',
    'game_swf'            => $game_file.'.swf',
    'game_scorevar'        => $game_file,
    'game_type'            => AMOD_GAME,
    'game_width'            => 320,
    'game_height'            => 320,
    'game_scoretype'        => SCORETYPE_HIGH,
    'game_files'            => false,
);
?>
I still can’t get this to work

I am unable to upload THAT file you used and when I create one it comes out as

Code: Select all

$game_data = array(
	'game_name'			=> 'Snake',
	'game_desc'			=> 'Snake',
	'game_image'			=> $game_file.'.gif',
	'game_swf'			=> $game_file.'.swf',
	'game_scorevar'		=> 'snake.swf',
	'game_type'			=> AMOD_GAME,
	'game_width'        	=> 320,
	'game_height'			=> 320,
	'game_scoretype'		=> SCORETYPE_HIGH,
	'game_files'			=> false,
);
?>
I removed the top text to see the actual code better here

I had to use the installer and when I do the install it and try it, it does the same thing

How can I get the file you posted or the sample ones in the instructions to upload and install?

If I add it in a named folder or use a zip in the install directory it is just not recognized

Sorry for being so stupid about loading this but I have been thinking that I was doing it right but apparently not

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by DragonMaster1 » Wed Sep 10, 2008 12:03 am

^^^^^

Ok....I FINALLY got it to work with uploading the sample file

I need to work with this some more and see what happens and I will post the results

Sorry for wasting your time and I really appreciate it

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by DragonMaster1 » Wed Sep 10, 2008 1:00 am

Follow Up ^^^

I have been able to load some other games now and they work....so far

The thing that was causing a problem is that when I use the installer, it changes the values that get uploaded to the server and that seems to be what is causing that problem

Perhaps I am not adding the right value but I use the game name in all places as the installer says and it ends up not matching the sample file(s)

Perhaps a better idea of what to use for the installer vales would be useful

THANK YOU MUCH!!!

GREAT MOD and glad to FINALLY have it working right

YOU ROCK!!!

TheNewWraiTh2
Registered User
Posts: 11
Joined: Wed Sep 10, 2008 9:18 am

Re: [BETA] phpBB Arcade 0.7.0

Post by TheNewWraiTh2 » Wed Sep 10, 2008 11:47 am

Code: Select all

    Eroare generală
    SQL ERROR [ mysql4 ]

    Field 'user_arcade_permissions' doesn't have a default value [1364] 


this appears when an user is trying to register....

what can i do?

User avatar
JRSweets
Registered User
Posts: 2047
Joined: Wed Apr 14, 2004 8:37 pm
Location: Massachusetts

Re: [BETA] phpBB Arcade 0.7.0

Post by JRSweets » Wed Sep 10, 2008 1:18 pm

DragonMaster1 wrote:Perhaps a better idea of what to use for the installer vales would be useful
I don't know what you mean. You can use anything you want for the game name and description. Make sure the game file name matches the game filename, in this case snake.swf, then make sure the game image name matches correctly, snake.gif. The score varibable is usually the filename without the extentsion should it would be snake. The file you put up had the score variable wrong, the score variable can be anything the person who modified the game wanted to set it to, so you would need to know this.
Last edited by JRSweets on Wed Sep 10, 2008 1:22 pm, edited 1 time in total.

vigge_swe
Registered User
Posts: 375
Joined: Sat Jun 03, 2006 5:01 pm

Re: [BETA] phpBB Arcade 0.7.0

Post by vigge_swe » Wed Sep 10, 2008 1:21 pm

:( sorry sorry sorry for this, but I got some noobish problems. What permission and what owner does the games/ folder need? I set it to 777 and owner apache and it tells me "Could not create directory Archerychallengev32Th"

Found it. The folder arcade/ in the root did need 777 and apache as owner too... I hate centOS with lxadmin :/

User avatar
JRSweets
Registered User
Posts: 2047
Joined: Wed Apr 14, 2004 8:37 pm
Location: Massachusetts

Re: [BETA] phpBB Arcade 0.7.0

Post by JRSweets » Wed Sep 10, 2008 1:26 pm

TheNewWraiTh2 wrote:

Code: Select all

    Eroare generală
    SQL ERROR [ mysql4 ]

    Field 'user_arcade_permissions' doesn't have a default value [1364] 


this appears when an user is trying to register....

what can i do?
Edit the includes/functions_users.php file correctly.

vigge_swe
Registered User
Posts: 375
Joined: Sat Jun 03, 2006 5:01 pm

Re: [BETA] phpBB Arcade 0.7.0

Post by vigge_swe » Wed Sep 10, 2008 1:32 pm

Code: Select all

General Error
SQL ERROR [ mysqli ]

Incorrect string value: '\xEF\xBF\xBDem ...' for column 'game_desc' at row 1 [1366]

SQL

INSERT INTO phpbb_arcade_games (game_order, game_image, game_desc, game_highscore, game_highdate, game_highuser, game_files, game_name, game_name_clean, game_swf, game_width, game_height, game_installdate, game_scorevar, game_scoretype, game_type, cat_id, game_filesize) VALUES (2270, 'AddictionSolitaireTAY.gif', 'Addiction Solitaire online is an incarnation of the classic deuces to kings, line �em up Solitaire game. Addiction Solitaire will keep you on your toes as you race against the clock..', 0, 0, 0, 'a:2:{i:0;s:63:\"arcade/gamedata/AddictionSolitaireTAY/AddictionSolitaireTAY.txt\";i:1;s:49:\"arcade/gamedata/AddictionSolitaireTAY/v32game.txt\";}', 'Addiction Solitaire', 'addiction solitaire', 'AddictionSolitaireTAY.swf', '680', '460', 1221053420, 'AddictionSolitaireTAY', 0, 4, '1', 142731)

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: includes/arcade/arcade_admin_class.php
LINE: 142
CALL: dbal_mysqli->sql_query()

FILE: includes/acp/acp_arcade_games.php
LINE: 101
CALL: arcade_admin->add_game()

FILE: includes/acp/acp_arcade_games.php
LINE: 45
CALL: acp_arcade_games->add_games()

FILE: includes/functions_module.php
LINE: 471
CALL: acp_arcade_games->main()

FILE: adm/index.php
LINE: 75
CALL: p_master->load_active()
well, this one I can't figure out, haven't got sql knowledge. This happens for all games I add from now.

It seems like it doesen't escape/fix charachters like ', ¨ etc

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by DragonMaster1 » Wed Sep 10, 2008 1:47 pm

JRSweets wrote:
DragonMaster1 wrote:Perhaps a better idea of what to use for the installer vales would be useful
I don't know what you mean. You can use anything you want for the game name and description. Make sure the game file name matches the game filename, in this case snake.swf, then make sure the game image name matches correctly, snake.gif. The score varibable is usually the filename without the extentsion should it would be snake. The file you put up had the score variable wrong, the score variable can be anything the person who modified the game wanted to set it to, so you would need to know this.

I just put snake.swf or snake.gif where I thought it should go and let the installer do it’s job and it ended up adding incorrect or rather incomplete code....or at least that is what it looked like to me. But by doing it manually with the values as supplied in the sample, it uploaded and works fine. What I still don’t see is how to use the installer and make it to do that code the way it needs to be done. But thanx for the help. :D

User avatar
NiceM
Registered User
Posts: 572
Joined: Sat Jul 30, 2005 9:25 am
Location: Denmark
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by NiceM » Wed Sep 10, 2008 3:22 pm

When you use create game install file for snake it should look like this.
Image
Download games for phpbb-Arcade at:
origon.dk

User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [BETA] phpBB Arcade 0.7.0

Post by *Christian* » Wed Sep 10, 2008 3:50 pm

Hey, just installed 0.7.0.

Coming up with this error whenever i try access memberlist.php

Code: Select all

Parse error: syntax error, unexpected ';', expecting ')' in /home2/pixelrai/public_html/forums/memberlist.php on line 578
Here is line 578:

Code: Select all

        $arcade_data = display_arcade_highscores($user_id, basename(__FILE__, '.' . $phpEx));
        if (sizeof($arcade_data)) 
verything else is working splendidly. :) . Do you know what could be wrong?
Proud owner of Bertie 3.0
:: No support via PM or IM ::

User avatar
easygo
Registered User
Posts: 689
Joined: Sun Oct 31, 2004 4:23 pm
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by easygo » Wed Sep 10, 2008 5:29 pm

*Christian* wrote:Hey, just installed 0.7.0.

Coming up with this error whenever i try access memberlist.php

Code: Select all

Parse error: syntax error, unexpected ';', expecting ')' in /home2/pixelrai/public_html/forums/memberlist.php on line 578
Here is line 578:

Code: Select all

        $arcade_data = display_arcade_highscores($user_id, basename(__FILE__, '.' . $phpEx));
        if (sizeof($arcade_data)) 
verything else is working splendidly. :) . Do you know what could be wrong?
What you get is just an aftereffect. Most likely you've done something in the wrong place.
Casual developer for AJAX Chat on behalf of the author / Arcade Center powered by phpBB Arcade

A problem well put is half solved. (John Dewey, 1859–1952)

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by DragonMaster1 » Wed Sep 10, 2008 5:49 pm

NiceM wrote:When you use create game install file for snake it should look like this.
Image

Exactly what I did an yet the variable always comes out bad

So now I am doing it manually and it if working fine

vigge_swe
Registered User
Posts: 375
Joined: Sat Jun 03, 2006 5:01 pm

Re: [BETA] phpBB Arcade 0.7.0

Post by vigge_swe » Wed Sep 10, 2008 7:11 pm

the encoding of charachters in the database need to be fixed. It has worked before, but it has been broken in the last one, but probably I did something wrong...

I noticed, that if the name of a game or the description contains !, ¨, ´, ' or any other special charachter, the game can't be added.

User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [BETA] phpBB Arcade 0.7.0

Post by DragonMaster1 » Wed Sep 10, 2008 7:31 pm

vigge_swe wrote:the encoding of charachters in the database need to be fixed. It has worked before, but it has been broken in the last one, but probably I did something wrong...

I noticed, that if the name of a game or the description contains !, ¨, ´, ' or any other special charachter, the game can't be added.

I added just the name to the swf and gif and variable area

I’ve got to leave now but I will post a copy of the actual file it produces then

Locked

Return to “[3.0.x] Abandoned MODs”