HQ NETWORK:   XBOX ONE |  XBOX 360 |  AIDELUXE HQ Network: 11,663 | Guests: 944 | Members: 4 


   Current Location: Forums New Game - Fursan al-Aqsa - Knights of al-Aqsa Mosque   |   Old Xbox boot but wont load games or MS Dashboard   |   New google drive   |   Which modchip is this?   |   Anyone here capable or interested in restarting XBConnect?   |   Error code 05   |   original xbox with 0 memory   |   Why cell damage is low with ratings   |   Xbox-Hq.Com VIP Member Testimonials   |   XBHD: A Full-Featured Original Xbox Adapter from EON Gaming,   |   
  Home | Active Topics | CD/DVD Media | Downloads | Forums | Feedback | Games | HardDrives | Homebrew | My Profile | ModChips | Reviews | Search | SoftMods | Tutorials

Xbox Forums

Discuss all aspects of the original Xbox Console in our Interactive Xbox Forums..

Get Xbox Game Pass Ultimate
Xbox-Hq.Com :: View topic - No scores kept except for PacMAn NEED HELP
Xbox-Hq.Com Forum Index -> pnFlashGames Project
Post new topic Reply to topic    
 No scores kept except for PacMAn NEED HELP View previous topic :: View next topic  
 
 
 
 
alpah
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jul 20, 2005
Posts: 6

Post Posted: Wed Jul 20, 2005 5:50 pm   
Post subject: No scores kept except for PacMAn NEED HELP
Reply with quote
 
Hello i downloaded and installed 050627_pnFlashGames_v0.6b(free) on our clan web site http://bf-dogs.com/modules.php?name=Flash_Games , and then i downloaded some flash games from http://www.pnFlashGames.com (High Score Enabled) as it said to do in the readme file, and they work ok ,but it dont keep the scores,the only score it keeps is for PacMan , so if 1 works why not the rest?, (PacMan was already included in the Zip file, could that be it?).

We are using a clan php website info below
-------------------------------------------------------------
PHPNUKE-CLAN v.2.1.0

The PHPNUKE-CLAN is a package of PHP-Nuke Platinum v.7.6.0 with over 100 preinstalled mods and security fixes all in one free package.

In PHPNUKE-CLAN (PNC) you have VWAR module already installed on it with some block!

Features overview:
- 100% size reduction in comparison to PHP-Nuke 7.6 default.
- Custom user friendly theme, T-Platinum.
- Optimizational Tweaks.
- Over 200% of newly added features and mods.
- Latest nuke security fixes and updates.
- Secure and customise themes with anti-theft management using
- ThemeConsole.
- Upgrade to something amazing, the easy way.
- Run PHP-Nuke Platinum from home using Inferno™
- Server Viewer
------------------------------------------------------------------
i checked the DB and all tables r there, all added games r there, it just dont put in any info,
if any 1 hase any ideas would love to here them ,reply to this thread or email me at webmaster@bf-dogs.com thanks..... Mr. Green
its a great bit of gear, the lads would love it Razz


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Thu Jul 21, 2005 9:18 am   
Post subject:
Reply with quote
 
Hi,

Sounds like you forgot to add one (1) line of code to your MAIN index.php.. Smile

Did you add the include"oldcomponent.php" line??
You need to add that include line as per the readme..

Once you have the include in your !ROOT/index.php file all scores will save just fine..

Get your games from pnFlashgames.com or from XBOXHQ downloads section (not many at the moment),,

enjoy..

btw.. i know its working 100% so it has to be something small.

l8r

FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
alpah
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jul 20, 2005
Posts: 6

Post Posted: Thu Jul 21, 2005 2:59 pm   
Post subject:
Reply with quote
 
i checked the code in the index.php and its there, as i said in the first post pacman scores work, i have since then downladed 2 games from this site and there scores work as well, i seems to be the games i downloaded from http://www.pnFlashGames.com (High Score Enabled)
that dont work,r they not compatable or is there a snip of code i need to insert somewhere to enable them?


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Thu Jul 21, 2005 3:14 pm   
Post subject:
Reply with quote
 
something is wrong.. You are the first EVER to have this issue.
Maybe try removing the module totally and reinstalling..

I find it strange that one set of pnFlASHGAMEs enabled games work and the others do not.. If you remove the INCLUDE FILE from the !ROOT!/index.php does PACMAN stop saving??

let me know as much info as possible and i will test.

Also please attach a game now via the forum here which DOES NOT work for you..

ill test it.. Im sure you must have done something wrong or you may be the first to notice the error but i doubt the second one very much.. We have 100's of sites running the module now.

l8r

FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
alpah
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jul 20, 2005
Posts: 6

Post Posted: Fri Jul 22, 2005 5:14 am   
Post subject:
Reply with quote
 
ok i download some more games from http://www.pnflashgames.com/UpDownload.phtml under catagory Highscore Enabled Games (Free) sub cat (Using Component) ...and most of them work only 2 dident, if you want a list of the games that work and ones that dont then go to our site, its divid it into 2 cats , (High score & no score) , link is http://bf-dogs.com/modules.php?name=Flash_Games
so far i got 13 game working with high scores & 18 that dont.
(ALL DOWNLOADED GAMES ARE HIGH SCORE ENABLED)
the ones that dont work where downloaded from
http://www.pnflashgames.com/UpDownload-index-req-viewdownload-cid-1.phtml

the ones that do work downloaded from
http://www.pnflashgames.com/UpDownload-index-req-viewsdownload-sid-7.phtml


i find it all very strange indeed Shocked

you asked
If you remove the INCLUDE FILE from the !ROOT!/index.php does PACMAN stop saving??

i need more info , which INCLUDE file do you mean?


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Sat Jul 23, 2005 4:44 am   
Post subject:
Reply with quote
 
ok..

open this file
1. !ROOT!/index.php (your main phpnuke file)
2. At the top of the main index.php file find this line:
Code:
require_once("mainfile.php");


Directly under that code you should find this:
Code:
// Save Score for Old pnFlashGames Component
include("modules/Flash_Games/includes/oldcomponent.php");


The CODE ABOVE saves the hiscores.. If you dont have this include file in your main phpnuke index.php file some games will not save.. ok???

So check the root/index.php file and double check it has th include file pointing to Flash_Games. If it doesnt add it!

l8r and hope that helps.

cheers,

FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
alpah
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jul 20, 2005
Posts: 6

Post Posted: Sat Jul 23, 2005 5:07 am   
Post subject:
Reply with quote
 
yes that code is in the index.php


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Sat Jul 23, 2005 5:58 am   
Post subject:
Reply with quote
 
remove that INCLUDE code and save your index.php

Then tell me whether or not PACMAN and the other games SAVE SCORES??

Try that..

ANother thing..

Move the INCLUDE file from below:
INCLUDE"MAINFILE.PHP"

to ABOVE IT..

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
alpah
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jul 20, 2005
Posts: 6

Post Posted: Sun Jul 24, 2005 8:09 am   
Post subject:
Reply with quote
 
ok i tried all that and there in no change ,
the bit of code looks like this now ( from the bottom of the root index.php)

require_once("mainfile.php");
// Save Score for Old pnFlashGames Component
//include("modules/Flash_Games/includes/oldcomponent.php");
$_SERVER['PHP_SELF'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;
i disabled it with putting the // infront of the line
but in the last post u said ( Move the INCLUDE file from below:
INCLUDE"MAINFILE.PHP")
which i could not find,but i take it u ment (require_once("mainfile.php"); which is the line above.
no change , pacman and the other game still keep the high scores, and the 18 or so others dont


View user's profile Send private message
 
 
 
 
alpah
Xbox-HQ Newbie
Xbox-HQ Newbie



Joined: Jul 20, 2005
Posts: 6

Post Posted: Sun Jul 24, 2005 9:32 am   
Post subject: Fixed
Reply with quote
 
think i fix it , you where on the right track
i deleted the code i added from the mod index file

Quote:
require_once("mainfile.php");
// Save Score for Old pnFlashGames Component
include("modules/Flash_Games/includes/oldcomponent.php");
$_SERVER['PHP_SELF'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;

if ($httpref==1) {
$referer = $_SERVER["HTTP_REFERER"];
$referer = check_html($referer, nohtml);
if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
} else {
$result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')");
}
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
if($numrows>=$httprefmax) {
$result2 = $db->sql_query("DELETE FROM ".$prefix."_referer");
}
}
if (!isset($mop)) { $mop="modload"; }
if (!isset($mod_file)) { $mod_file="index"; }
$name = trim($name);
$file = trim($file);
$mod_file = trim($mod_file);
$mop = trim($mop);
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mod_file) || ereg("\.\.",$mop)) {
echo "You are so cool...";
} else {
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/module.php")) {
include("themes/$ThemeSel/module.php");
if (is_active("$default_module") AND file_exists("modules/$default_module/".$mod_file.".php")) {
$name = $default_module;
}
}
if (file_exists("themes/$ThemeSel/modules/$name/".$mod_file.".php")) {
$modpath = "themes/$ThemeSel/";
}
$modpath .= "modules/$name/".$mod_file.".php";
if (file_exists($modpath)) {
include($modpath);
} else {
$index = 1;
include("header.php");
OpenTable();
if (is_admin($admin)) {
echo "<center><font class=\"\">"._HOMEPROBLEM."</font><br><br>[ "._ADDAHOME." ]</center>";
} else {
echo "<center>"._HOMEPROBLEMUSER."</center>";
}
CloseTable();
include("footer.php");
}
}



and just added the code line
Quote:
include("modules/Flash_Games/includes/oldcomponent.php");


to the top of my root index.php under the line
require_once("mainfile.php"); which was already there, and the other game have higi score now as well. Razz

thanks for the help m8 Very Happy


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator


Joined: May 22, 2003
Posts: 23944
Location: NSW, Australia

Post Posted: Mon Jul 25, 2005 2:25 am   
Post subject:
Reply with quote
 
glad you got it mate.. I knew you must have done something so small wrong.. heheh lol.. its all good.. Enjoy the module..
God knows its taken me long enough to code by myself hehehe lol

l8r

FH
http://www.xbox-hq.com

_________________
HQ Network:
www.xbox-hq.com | www.xboxone-hq.com | www.360-hq.com | www.c64-hq.com


View user's profile Send private message Send e-mail Visit poster's website
 
Display posts from previous:   
  Post new topic  
 
  Reply to topic  
|
 All times are GMT | Page 1 of 1
Jump to:  
 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
 


Get Xbox Game Pass Ultimate