vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Some arcade games do not submit score (https://vborg.vbsupport.ru/showthread.php?t=258315)

floggerss 02-03-2011 11:36 PM

Some arcade games do not submit score
 
Some games did not submit the score game. What should i do, and i mean the ones thar this mod have, like space invaders. But no to all the users.

Hippy 02-04-2011 01:59 PM

lots of games don't submit score..
anyway.. do the index / portal edit found in your original zip file..
look at the text files .. you'll see what to add and where..

but if your members are getting logged out after submitting score..(result not saving) because you said some members.
after vb4.1.1 or may be vb4.0.8 you MUST have remember me ticked when logging to the forum or the score will not save because it loges you out..

floggerss 02-04-2011 02:33 PM

I do the index edit. I do not use a portal. My forum is 3.8.4. the remeber me is ticked by default.

Hippy 02-04-2011 06:08 PM

portal or not
what do you call you forum with index.php or forum.php?

if you call it from forum.php
you need to add the edit.

kh99 02-06-2011 01:24 PM

I posted this before somewhere a long time ago, but: I was debugging scoring problems and found that holdsession.php doesn't do what's intended because there's two problems with it: one is with the refresh html, there's an extra double quote after URL= so that the params aren't right.

The other problem is that the "lastactivity" time that's used to keep the session alive is updated using a shutdown query, and those don't get run at all unless exec_shut_down() is called (which is usually called by print_output() in vb scripts). I put exec_shut_down() at the end of my holdsession.php. (I haven't done anything with vB 4 versions so I don't know if this still applies).

There was also a problem with some code that apparently addresses a bug involving some version of IE and an "Error 005". I don't remember the details but I ended up hacking the code and changing $vs['start'] = $gametime; to $vs['start'] = $gametime - 1.0; around line 3484 of arcade.php.

Hippy 02-06-2011 03:03 PM

Quote:

Originally Posted by kh99 (Post 2159383)
I posted this before somewhere a long time ago, but: I was debugging scoring problems and found that holdsession.php doesn't do what's intended because there's two problems with it: one is with the refresh html, there's an extra double quote after URL= so that the params aren't right.

The other problem is that the "lastactivity" time that's used to keep the session alive is updated using a shutdown query, and those don't get run at all unless exec_shut_down() is called (which is usually called by print_output() in vb scripts). I put exec_shut_down() at the end of my holdsession.php. (I haven't done anything with vB 4 versions so I don't know if this still applies).

There was also a problem with some code that apparently addresses a bug involving some version of IE and an "Error 005". I don't remember the details but I ended up hacking the code and changing $vs['start'] = $gametime; to $vs['start'] = $gametime - 1.0; around line 3484 of arcade.php.

thanks for the info ..
here is the holdsession line

Code:

echo "<meta http-equiv=\"refresh\" content=\"$secs; URL=\"$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid\">";
what quotes are you talking about

could it have been fixed ?

did you add exec_shut_down() after the above code but before ?>

the "Error 005". would happen when ?

I see the line is still $vs['start'] = $gametime;
if that error never happened should it still be changed to $vs['start'] = $gametime - 1.0;

--------------- Added [DATE]1297014126[/DATE] at [TIME]1297014126[/TIME] ---------------

ok I found your post..
https://vborg.vbsupport.ru/showpost....5&postcount=94
and with some testing
removing the \ from this code in the holdsession.php

Code:

echo "<meta http-equiv=\"refresh\" content=\"$secs; URL=\"$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid\">";
so it looks like this
Code:

echo "<meta http-equiv=\"refresh\" content=\"$secs; URL="$vboptions[bburl]/holdsession.php$session[sessionurl_q]act=arcade&do=play&gameid=$gameid\">";
you no longer need the remember me ticked when you log in...

as far as the exec_shut_down();

I tried it with it in and out and it still keeps you logged in...

nyce find bud

please explain a little more about exec_shut_down();
I am not sure if it's still needed

what was it doing with out it before.. thanks

kh99 02-06-2011 05:03 PM

Quote:

Originally Posted by Hippy (Post 2159419)
the "Error 005". would happen when ?

I see the line is still $vs['start'] = $gametime;
if that error never happened should it still be changed to $vs['start'] = $gametime - 1.0;

Sorry, I don't remember the details. I think it only happened with IE in certain circumstances, maybe only with certain games (but I do remember that I was able to get it to happen when I wanted). I guess if no one's ever complained then there's probably no reason to change it. It's a hack - something later is subtracted from the gametime (or the other way around) and if it's 0 it causes an error, so I made sure it was never 0. I don't even know if that was a reasonable way to fix it, for all I know I was just disabling a check that was put in there for a reason I don't understand.

Quote:

please explain a little more about exec_shut_down();
I am not sure if it's still needed

what was it doing with out it before.. thanks
To keep the session from timing out, init.php calls $vbulletin->session->do_lastvisit_update(). I guess for guests it works OK, but for logged in users it updates the session table with the current time, but it does it with db->shutdown_query(), which just queues it up to be run at shutdown (I don't know why - to speed up page loading maybe?). Anyway, it turns out that it's usually called by print_output() which isn't called in holdsession.php. I remember all that pretty well because I spent hours trying to figure out why the session was timing out even though holdsession.php was being requested. But like I said, that was 3.8 code so if you're working on version 4 it might not be true any more.

I suppose it's also possible I made a mistake somewhere alone the line...

floggerss 02-07-2011 11:49 AM

Quote:

Originally Posted by Hippy (Post 2158791)
portal or not
what do you call you forum with index.php or forum.php?

if you call it from forum.php
you need to add the edit.

I call it index.php. I am still having problem with users that can not submit the score.

--------------- Added [DATE]1297101721[/DATE] at [TIME]1297101721[/TIME] ---------------

This error some times:

This score was not submitted from the game. Your score will not be saved.

Hippy 02-07-2011 07:46 PM

is it in red ?

Might not record unless it's high score
unless you set it tosave all scores

doubleclick 02-08-2011 06:07 AM

Hey guys -

I changed my database tables from MyISAM to InnoDB to correct an issue I was having. Now many (but not all) of my users aren't able to save their scores, and are presented with an error that another window is open.

I imagine that one or more of the tables shouldn't be InnoDB.

Any thoughts?

Thanks,
dc


All times are GMT. The time now is 10:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01045 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete