Posted: Mon Jan 02, 2006 5:04 am Post subject: Problems with v0.4++ posting scores and showing users
Hello,
First let me start off by saying this is a great module and works very well for the most part. I was unable to open the info file in the zip download, so I may have missed something in installation. My problems are:
1) Some games are not posting scores (all darts games, Altex 3, Speed Ball, Ms. PacMan, Hoops, znax, pokler, a couple others). I have made sure the include was added on my root index.php. I have tried it before the mainfile include and after...and also without the comment line. It doesn't seem to affect anything. I have also installed and uninstalled three times, all with the same result.
2) Users online and number of people playing are not being recognized.
3) All-Time leaderboard is not registering. I'm not sure if this is a problem or not. Does the all_time leaderboard register only when I reset Hi-Scores? If so, I haven't done that yet.
4) Some driving games are only registering minutes...not seconds. I haven't searched for a fix for this yet. Maybe this is a reported issue.
Like I said, I am running v0.4++ on php-nuke 7.8 patched with the Chatserv 3.1 files. The site is at www.clansenescence.com and the games are under the senescence arcade link on the left.
Thank you for anyone that might be able to help.
P.S. I would love to know how you are adding the gamercard into the avatar area on phpbb.
rusty73 Xbox-HQ Newbie
Joined: Dec 30, 2005 Posts: 9
Posted: Mon Jan 02, 2006 1:40 pm Post subject:
I found the cause of one of the users not showing up. forahobby sent me an email and I was able to open the info file using wordpad rather than just clicking to open the info file. In there I realized I needed to use the custom_header.php file in includes since I am using nuke 7.8. I already had a custom header for a security module so I just added the pnflashgames custom header code to my existing custom header and users now show up.
So, I just need to get the rest of the games to score and find out how the all-time leaderboard works.
Thank you
forahobby Administrator
Joined: May 22, 2003 Posts: 23945 Location: NSW, Australia
Posted: Tue Jan 03, 2006 12:35 am Post subject:
Hi rusty,
I would say more then likely you have just forgotten to add the include CODE to your main index.php file of your PHPNUKE..
Check over the install notes again.. You cant be too far mate.. You have sorted out most things..
anyway, let me know if you need more help.. Ill do my best bro..
btw.. try going through some topics in our forums here on PHPNUKE 7.8 probs.. There may be some that others have fixed..
I have definitely added the include on index.php in my root. I am now looking into the the mainfile.php post issue you had mentioned in your email. I will post here when I have tried to fix that. Thanks for your help. I know you are extremely busy and the amount of support you provide for your project amazes me.
rusty73 Xbox-HQ Newbie
Joined: Dec 30, 2005 Posts: 9
Posted: Tue Jan 03, 2006 2:14 pm Post subject:
Ok. Here is my progress. These are the first few lines from my root index.php (please note that I have removed the comment line because I read on here that it helped someone (did not in my case):
require_once("mainfile.php");
include("modules/Flash_Games/includes/oldcomponent.php");
global $prefix, $db, $admin_file;
if ($op == "ad_click" AND isset($bid)) {
$bid = intval($bid);
$sql = "SELECT clickurl FROM ".$prefix."_banner WHERE bid='$bid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_query("UPDATE ".$prefix."_banner SET clicks=clicks+1 WHERE bid='$bid'");
update_points(21);
Header("Location: $row[clickurl]");
die();
}
Then I tried to find the code in mainfile.php from http://www.xbox-hq.com/html/postt10054.html but could not find the code to comment out in my mainfile.php. I am attaching a text version of my mainfile.php because I am unable to add the code into my post. It tells me the HTML tags are not allowed when I try to insert into a code box.
Joined: May 22, 2003 Posts: 23945 Location: NSW, Australia
Posted: Tue Jan 03, 2006 2:51 pm Post subject:
Just to double check..
Which games ARE NOT WORKING.. Can you please provide a list of the games some of which ARE working and most of which ARE NOT!
Please also tell me if you downloaded from my website or pnFlashGames.Com????
I will check it out.. I cant see any reason why your mainfile.php is causing the scores not to save unless you have corrupted games or my CUSTOM GAMES on HQ.
The CUSTOM GAMES like pacman etc etc on my site will not work on any other site.. Its totally different.
Maybe you could mean this is the problem.. I have heard of it before.
hope to hear you working it out soon.. Is there anyway you could install a standalone nuke into another directory and test again??
Joined: May 22, 2003 Posts: 23945 Location: NSW, Australia
Posted: Tue Jan 03, 2006 2:53 pm Post subject:
try this..
Maybe the UNION TAP is causing it.. I dont know.. its been so long now..
Just hang in there.. Im just wrapping up the transformations here on XBOXHQ and 360-hq.com and i will be releasing my latest version.
Altex 3
Speed Ball
Contra World Challenge
International Karate
Moonlander - doesn't record more than first digit
shooting gallery
Ms. Pacman
all darts games
Hoops
Cone Crazy 2
parking
pokler
Zynx
Working games:
Bloody Pingu
Duck Hunt
Eat!
Kill Kenny
Ned Nebula
Pingu
Target shooting
Astaroth
Frogger
Gauntlet
Pacman
Space Invaders
pool training
roulette
video poker
Bar Slide
Driver - NOT SECONDS
GTA
Super Sprint
Jewels
Simon
Tetris
If the game was available in your download section and it is on this list it came from your site. All others came from pnflashgames.
forahobby Administrator
Joined: May 22, 2003 Posts: 23945 Location: NSW, Australia
Posted: Wed Jan 04, 2006 4:52 am Post subject:
ok.
So that means if ms.pacman and my other games are working like FROGGER then its the StoreScore function in the /Flash_Games/ module which is NOT SAVING..
The include("oldcomponent.php") IS WORKING.
So you need to keep looking into it??
Any other members here who have this sorted? I know its simple but just dont have the time to find it.
So that means if ms.pacman and my other games are working like FROGGER then its the StoreScore function in the /Flash_Games/ module which is NOT SAVING..
The include("oldcomponent.php") IS WORKING.
So you need to keep looking into it??
Any other members here who have this sorted? I know its simple but just dont have the time to find it.
Thanks for any help.
Hang in there rusty!
Ms. Pacman is not working.....Frogger is. We have been messing around with the mainfile.php and no change. I guess I'll have to wait for your update.
Thank you.
Maybe you can help with my other two questions:
1) How does the All-Time greats scoreboard work? Will names appear once I clear my high scores? They do not seem to show up but I haven't tried that yet.
2) Some games that are scoring time do not score seconds, only the minute. Is there any fix for this that anyone knows of? I thought I read someone having this problem and fixing it, but I can't find the thread again.
forahobby Administrator
Joined: May 22, 2003 Posts: 23945 Location: NSW, Australia
Posted: Mon Jan 09, 2006 4:09 am Post subject:
Quote:
Maybe you can help with my other two questions:
1) How does the All-Time greats scoreboard work? Will names appear once I clear my high scores? They do not seem to show up but I haven't tried that yet.
2) Some games that are scoring time do not score seconds, only the minute. Is there any fix for this that anyone knows of? I thought I read someone having this problem and fixing it, but I can't find the thread again.
1) Basically it copies all hiscores into the all time hiscores and then resets the main hi-scores to zero (0).. Its just a basic setup at this stage.. I will be rewriting everything..
2) Thats fine. I have a fix for it but when you use it some other games play up.. You have to remember most of the problem is because some games use v2.0 of the save score pnFlashGames component and all the older ones use v1.0.. There is a big difference in the way it saves..
I think if you change your playerscore to INTEGAR it will save with decimal points but some games like POKER will play up when you hit over 1,000,000 points.
I am really stuck on this. I've gone through everything I could think of and nothing seems to work. Now any new games I install are not scoring either.
What is the most recent version of nuke that the module was tested with? What about MySQL or PHP?
I'm just trying to find the problem here. I just don't get why the games with old scoring are working, but the new ones aren't.
Do you think it might help to use 0.6 rather than 0.4++? The module is very successful on my site and I really want to fix this.
Is there anyone else out there that has this module working with nuke 7.8 that can share anything you did?
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