vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   vbProArcade Beta 2 (https://vborg.vbsupport.ru/showthread.php?t=42880)

Ian 09-02-2002 02:52 AM

Quote:

Originally posted by futureal
[B]Ah, thanks for pointing that out for me. I missed a line in the hack. Right before that line, add:

PHP Code:

global $DB_site

That will fix that error.
The fix worked, thanks!


Sorry about wasting your time with the other problem. you were right, one of my members snuck in when I wasn't looking. :bored:

Apok2002 09-02-2002 02:56 AM

Here's a new one for ya...

I have a usergroup named EZCO Admins. They have all the permissions of the Registered Group, and more. They have access to 3 other forums that the Registered Group does not.

Yet...no one in this group can play any of the games. It says:

Quote:

You do not have permission to access this page. This could be due to one of several reasons:
You do not have permission to access the page that you were trying to. Are you trying to edit someone else's post or trying to access administrative features? Check that you are allowed to perform this action in the Forum Rules.
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logged in user: Llama [logout]
What would cause this? Somehow they are being subjected to the rules of those not signed in, or not registered.

I assigned other usergroups to the same member name...it appears that any created usergroup, does not have permissions to play the games. Only the default groups do.

futureal 09-02-2002 03:00 AM

Quote:

Originally posted by Apok2002
How many scores will be recorded? The hack has been installed for only about 4 hours or so, and in the Snake scoreboard, I have 190 rankings (scores recorded).

If there is a limit, what is it? And how do we edit that to suit our own boards needs? And if there is no limit, won't that cause the db to get pretty large?

We really don't need anything more than the top 100 scores on the scoreboard.

Scores will be recorded forever, and database size is not an issue at all. I have had over 15,000 scores recorded on my site so far, and the size of the three tables, even with the icons, is about 300KB. Compared to a typical site's search index and post/attachment database, that is next to nothing.

The ability to define a max. number of scores to be displayed will be added in the next version.

chad777 09-02-2002 03:02 AM

Apok.

I had the same problem.

Ope up proarcade.php

search for // access check (here for future expansion)

right around line 32

under that there is lines that start with
if (($bbuserinfo[usergroupid]

just add the uder group id.

you will see when you get there :) pretty easy :)

futureal 09-02-2002 03:02 AM

Quote:

Originally posted by Apok2002
Here's a new one for ya...

I have a usergroup named EZCO Admins. They have all the permissions of the Registered Group, and more. They have access to 3 other forums that the Registered Group does not.

Yet...no one in this group can play any of the games. It says:

See my response to chad777 in this post: https://vborg.vbsupport.ru/showthrea...244#post294244

You need to add a line to proarcade.php corresponding to the group you'd like to give access to the arcade.

This functionality will definitely be part of the admin panel in the next release.

chad777 09-02-2002 03:22 AM

futureal


I have a couple suggestions for a features to be added in one of the releases :) not nessary, but would be nice.

Put the users highest score achieved under user name kinda like the crown.

Maybe if they don't have the highest score (crown) then it would have there highest scores achieved for certain games.

Also maybe the feature to be added to let the user select a type / music for the games they are playing ?

I don't know i had some brain storms when I was playing breakout. I mean it was kind of a boring game so I could think of other things :)

btw let me know if you need any beta testing :)

futureal 09-02-2002 03:26 AM

Having multiple music selections is tough, since it increases the filesize of the game files significantly. Plus, I'm not yet the Flash wizard that I'd like to be. :)

As for the highscore thing, that is something that could definitely be done...

Erwin 09-02-2002 03:59 AM

Great... can't wait to install this...

My users are going to be upset because their high scores with John's arcade hack will have to be reset again... I may have to figure out a way to import it over (but it looks like he does use a very different db structure).

Apok2002 09-02-2002 04:34 AM

Thanks for the info on the db size, I won't sweat it then. :)

Also, sorry for not seeing the permissions issue earlier. Fixed as per your instructions, and it's running fine. Thanks again, my members are going nutz over it.

I'm still working on the Who's Online issue though. I'll get back to you if I can't get it working on my own.

futureal 09-02-2002 04:36 AM

Erwin: Converting the old vbTetris table would not be terribly hard.

You would need to alter the table to include the date, time and username fields, and then make a quick script to pair the usernames with the ids and insert bogus date/time info. Once that is done though, it would work fine -- you'll just have to make sure that the Tetris identifier in vbProArcade is 'tetris' to match up with John's hack.

futureal 09-02-2002 04:37 AM

Quote:

Originally posted by Apok2002
I'm still working on the Who's Online issue though. I'll get back to you if I can't get it working on my own.
See my post to Ian regarding a Who's Online fix.

Here it is: https://vborg.vbsupport.ru/showthrea...235#post294235

mewgood 09-02-2002 08:18 AM

hey I think this is a grest hack
but you know any website which has games to dwonload?

Link14716 09-02-2002 01:55 PM

Quote:

Originally posted by futureal
Erwin: Converting the old vbTetris table would not be terribly hard.

You would need to alter the table to include the date, time and username fields, and then make a quick script to pair the usernames with the ids and insert bogus date/time info. Once that is done though, it would work fine -- you'll just have to make sure that the Tetris identifier in vbProArcade is 'tetris' to match up with John's hack.

Actually, you wouldn't have to add the date, just the time and username fields. I am gonna install this one over John's Arcade mostly for Breakout, which I tried to put on John's with proarcade.php being a copy of arcade.php but failed miserbly ;)

Trekkie 09-02-2002 02:06 PM

Is this Hack working with PHP which is in Safemode ?

Brandon 09-02-2002 02:22 PM

Hey, there is one arcade game you forgot...I think centipede and frogger would be a great addition. I've been looking for it on the 'net but I cant seem to find it. Just a suggestion though. BTW, Great Hack! My members love it!

Apok2002 09-02-2002 02:29 PM

My members have also requested Frogger and Centipede and Asteroids. I also have a few programmers on the site who said they could make some games. In turn, I told them as long as they integrated a score system and provide the .fla file, it may be possible. This is all that you need?

Brandon 09-02-2002 02:36 PM

It looks to be that way. If you go to your Admin Panel > vBProArcade it looks like you can add them yourself :D JOY!

Link14716 09-02-2002 03:12 PM

Trying to add usernames based on userids already in the arcade table........ no luck.

Code:

SQL-query : 

UPDATE arcade SET username=MattyD316 WHERE userid=1

MySQL said:


Unknown column 'MattyD316' in 'field list'

Tell me how bad I am screwing up, or try to make a scrip or something to do so. Please? ;)

Link14716 09-02-2002 03:27 PM

Ok, I am trying to make an Update Arcade thing in admin/misc.php, but I am not exactly sure how to. It is based off of the Update Forums part........ Can someone make one where it updates the Username in the arcade table based on userids?

Ninth Dimension 09-02-2002 06:03 PM

Quote:

Originally posted by Link14716
Trying to add usernames based on userids already in the arcade table........ no luck.

Code:

SQL-query : 

UPDATE arcade SET username=MattyD316 WHERE userid=1

MySQL said:


Unknown column 'MattyD316' in 'field list'

Tell me how bad I am screwing up, or try to make a scrip or something to do so. Please? ;)

Try this:

PHP Code:

UPDATE arcade SET username="MattyD316" WHERE userid=


Link14716 09-02-2002 06:13 PM

Ok, suggestion futureal, I want the miniboard (small leaderboard, no page nav, shown on the main arcade page) on this hack. I moved over from John's arcade and I miss my minileaderboard :(

futureal 09-02-2002 06:43 PM

Quote:

Originally posted by Trekkie
Is this Hack working with PHP which is in Safemode ?
The hack works, but the icons don't. You can run the hack just fine without the icons. I am going to see if I can get it to work tonight in safe mode -- I know it's possible, my code is just a little off, and I don't have a safe mode server to test it on.

I will post an update related to safe mode as soon as I have something.

futureal 09-02-2002 06:45 PM

Quote:

Originally posted by mewgood
hey I think this is a grest hack
but you know any website which has games to dwonload?

Quote:

Originally posted by BrandonC
Hey, there is one arcade game you forgot...I think centipede and frogger would be a great addition. I've been looking for it on the 'net but I cant seem to find it. Just a suggestion though. BTW, Great Hack! My members love it!
Quote:

Originally posted by Apok2002
My members have also requested Frogger and Centipede and Asteroids. I also have a few programmers on the site who said they could make some games. In turn, I told them as long as they integrated a score system and provide the .fla file, it may be possible. This is all that you need?
As I've said, the games need to be modified to work with the hack, so yes, if you can find the source for any Flash game out there that has scoring, chances are good that we can convert it to work with this hack.

You can either post the .FLA here or PM it to me and I'll get it done. Note that I have changed the way scores are sent from Flash to the Arcade, so using the methods from the vbTetris Hack will NOT work with this one.

My personal wish list:

Centipede
Frogger
Pong
Asteroids

The closer the games look to the originals, the better!

futureal 09-02-2002 06:52 PM

Quote:

Originally posted by Link14716
Ok, I am trying to make an Update Arcade thing in admin/misc.php, but I am not exactly sure how to. It is based off of the Update Forums part........ Can someone make one where it updates the Username in the arcade table based on userids?
You would have to do something like this (this is off the top of my head so it probably needs work):

PHP Code:

$data_q $DB_site->query("SELECT scoreid,userid FROM arcade");

while (
$loop $DB_site->fetch_array($data_q)) {

  
// this gets a userid's username from the user table
  
$user_q $DB_site->query_first("SELECT username FROM user WHERE userid='$loop[userid]'");

  
// this updates the score we're looking at with said username
  
$DB_site->query("UPDATE arcade SET username='$user_q[username]' WHERE scoreid='$loop[scoreid]'");



That obviously is going to generate 2 queries for each entry in your arcade table. However, since you only need to run it once, it should be acceptable.

futureal 09-02-2002 06:54 PM

Quote:

Originally posted by Link14716
Ok, suggestion futureal, I want the miniboard (small leaderboard, no page nav, shown on the main arcade page) on this hack. I moved over from John's arcade and I miss my minileaderboard :(
The "mini scoreboards" will be a part of Beta 2.

I think that answers everybody's questions for now, I'll be back later for another round. :)

Link14716 09-02-2002 07:42 PM

Quote:

Originally posted by futureal


You would have to do something like this (this is off the top of my head so it probably needs work):

PHP Code:

$data_q $DB_site->query("SELECT scoreid,userid FROM arcade");

while (
$loop $DB_site->fetch_array($data_q)) {

  
// this gets a userid's username from the user table
  
$user_q $DB_site->query_first("SELECT username FROM user WHERE userid='$loop[userid]'");

  
// this updates the score we're looking at with said username
  
$DB_site->query("UPDATE arcade SET username='$user_q[username]' WHERE scoreid='$loop[scoreid]'");



That obviously is going to generate 2 queries for each entry in your arcade table. However, since you only need to run it once, it should be acceptable.

Unfortunetly, you hit me a little late and I already made my fingers go numb manually copying and pasting the usernames into all 125 rows. :)

And the Beta 2, when can we expect it? *starts chanting "MINILEADERBORD!" :D

Link14716 09-02-2002 07:55 PM

Quote:

Originally posted by futureal




As I've said, the games need to be modified to work with the hack, so yes, if you can find the source for any Flash game out there that has scoring, chances are good that we can convert it to work with this hack.

You can either post the .FLA here or PM it to me and I'll get it done. Note that I have changed the way scores are sent from Flash to the Arcade, so using the methods from the vbTetris Hack will NOT work with this one.

My personal wish list:

Centipede
Frogger
Pong
Asteroids

The closer the games look to the originals, the better!

Frogger:
http://www.flashkit.com/movies/Games...5654/index.php

Pong:
http://www.flashkit.com/movies/Games...5228/index.php

Can't find centipede or Asterioids yet.

mewgood 09-03-2002 01:21 AM

I got this when I try to edit the general option

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 149

Warning: fopen("/tmp/phpbb4sos", "r") - Operation not permitted in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 149

Warning: Supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 150

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 169

Warning: fopen("/tmp/phpJusCCI", "r") - Operation not permitted in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 169

Warning: Supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/admin/proarcadeadmin.php on line 170
Arcade options updated!

mewgood 09-03-2002 01:43 AM

I got the sam errors when I try to upload any images for the games..

mewgood 09-03-2002 03:34 AM

please help me out!~!~

Apok2002 09-03-2002 05:50 AM

mewgood, it's because your server runs in safemode. See Fut's posts above addressing this issue. Just install the games WITHOUT any icons for now. He'll get it all straightened out soon enough. I'm waiting for it too. The arcade works great, even without the icons.

futureal 09-03-2002 07:06 AM

Correct. The arcade will work fine with no icons -- it is because your server is running PHP in "Safe Mode." There will be a fix for this shortly.

I meant to get it done tonight, but all my code is stored remotely and my router died in the afternoon. I managed to pick up a new one before the stores closed, but didn't get it installed until just now. Got to get to sleep so I can make to work in the morning. Office life sure is grand. :)

TalkHardRandy 09-03-2002 07:38 AM

Great hack futureal... we're about to turn our users loose on it, but I did have one question:

I've enabled the Champions System... but I can't figure out where I modify the postbit template & what I use to show it. I've re-read the instructions a few times & I'm at a loss... could be the hour. Can anyone tell me what I put in the postbit to display the Champion ranking?

futureal 09-03-2002 02:50 PM

In Beta 1, no template modification is needed -- it will append the Champion Text to the user's title. Eventually, this will be attached to a template that can be inserted in postbit wherever you'd like.

If you scroll back a couple of pages in this thread, NTLDR had a quick modification that will let you use it anywhere in the postbit.

chad777 09-03-2002 06:58 PM

futureal


I too am having the problem with the champion text.

http://www.snarfproductions.com/forums

if you want to check it out.

I think i still have some of the tetris code because I do have a crown on my username. but someone else that has a hgh score on another game doesn't or any text
Thanks

Lesane 09-03-2002 08:10 PM

Just installed this great hack. Works great on vb 2.2.2. Well done 'futureal'.

Link14716 09-03-2002 08:56 PM

Quote:

Originally posted by chad777
futureal


I too am having the problem with the champion text.

http://www.snarfproductions.com/forums

if you want to check it out.

I think i still have some of the tetris code because I do have a crown on my username. but someone else that has a hgh score on another game doesn't or any text
Thanks

To fix this:

Go to the General Options for the arcade. Enable champion system. Now go to the Game Managment poart. Enable each one's chamion system seperatley. Done.

mewgood 09-03-2002 10:37 PM

hm..
somehow after I finish playing the frogger, it will not list my name under the scoreboard..

mewgood 09-03-2002 10:41 PM

I got an error when I trying to view who is online..

Fatal error: Call to a member function on a non-object in /usr/local/psa/home/vhosts/wcgalaxy.com/httpdocs/vbb/online.php on line 624

Ian 09-03-2002 10:58 PM

Quote:

Originally posted by mewgood
somehow after I finish playing the frogger, it will not list my name under the scoreboard..
What? Frogger is available now? Fill me in! :banana:


All times are GMT. The time now is 05:13 PM.

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.02670 seconds
  • Memory Usage 1,861KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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