Archives FluxBB.fr

Les archives de FluxBB.fr

Vous n'êtes pas identifié(e).

#1 21-06-2008 21:11:48

bob63
Membre

aide pour le mod arcade

Hello, voilà j'ai télécharger le mod arcade sur un site (où j'ai trouvé le lien sur ce forum) .. j'ai donc copier les fichiers sur mon FTP et j'ai installer le fichier via /install_mod.php, tout niquel, arrivé ds le "read me" juste aprés qui dise qu'il faut installer j'arrive sur ces lignes :

Infos for adding your own games
---------------------------------

You can use a php script for adding your games. Please look into one of my
game addons for more details of the php syntax.

Example:
$db->query('INSERT INTO '.$db->prefix.'arcade_games (game_name, game_filename, game_desc, game_image, game_width, game_height, game_cat) VALUES ("GAMENAME", "FILENAME", "GAMEINFO", "GAMEPIC.jpg", GAMEWIDTH, GAMEHEIGHT, GAMECATEGORY)') or error('Unable to add game GAMENAME', __FILE__, __LINE__, $db->error());

GAMENAME:     The name of the game (Ex.: Tetris Deluxe)
FILENAME:     The filename of the game without .swf (Ex.: tetris)
GAMEINFO:     Some infos about the game (Ex.: This game is good.)
GAMEPIC.jpg:  The name of the game pic with .jpg (Ex.: tetris.jpg)
GAMEWIDTH:    The pixel width of the game (Ex.: 500)
GAMEHEIGHT:   The pixel hight of the game (Ex.: 450)
GAMECATEGORY: The game category (Ex.: 4)
              1=Arcade, 2=Shooting, 3=Puzzle, 4=Skill, 5=Card, 6=Adventure, 7=JumpAndRun, 8=Racing, 9=Sport


All games must be placed into the "game" folder.
All game images must be placed into the "games/images" folder.

Image format of game pics
- size: 50x50, format: JPEG, name: like the .swf game name  (Ex.: tetris.jpg)

Image format of small game pics
- size: 15x15, format: JPEG, name: like the .swf game name with an "_" underscore in front of (Ex.: _tetris.jpg)


The following var´s are used inside the flash games
-----------------------------------------------------
Actionscript example:

on (release)
{
    score = _root.score;
    game_name = "tetrisdeluxe";
    if (score > 0)
    {
        getURL("newscore.php", "_self", "POST");
    }
}


For MySQL 3 Users
-------------------
change ENGINE=MyISAM to ENGINE=MyISAM in install_mod.php.
Otherwise you get an error:

File: /var/www/html/forum/install_mod.php
Line: 31
PunBB reported: Unable to add Table "arcade_ranking"
Database reported: You have an error in your SQL syntax near 'ENGINE=MyISAM ' at line 9 (Errno: 1064)


Have fun ...

Et donc je ne sais pas ce qu'il faut vraiment faire avec le dbquery ... Quand je clique sur la page de jeux sur mon forum, c'est marquer page not found .. cela est dû à qu'il n'y a pas encore de jeu ou est-ce que les fichiers plus haut son important ? Merci de m'aider car je ne comprend pas trop ..

Voilà la page ou j'ai installé le mod uniquement :

http://www.elite-system.net/Arcade.php

Pourtant le fichier arcade.php est bien présent a la racine du FTP ..

Dernière modification par bob63 (21-06-2008 21:16:01)

Hors ligne

#2 21-06-2008 21:30:35

bob63
Membre

Re : aide pour le mod arcade

Ah oui effectivement .. j'ai modifié le bouton .. mais les commandes que j'ai copier / coller, elles servent à quoi en fait ?

Dernière modification par bob63 (21-06-2008 21:31:33)

Hors ligne

#3 22-06-2008 09:31:06

bob63
Membre

Re : aide pour le mod arcade

je viens de trouver à quoi sa server wink

Hors ligne

Pied de page des forums