Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbProArcade Beta 2 Details »»
vbProArcade Beta 2
Version: 1.00, by futureal futureal is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-28-2002 Last Update: Never Installs: 227
Is in Beta Stage  
No support by the author.

vbProArcade Beta 2

1/5/03: Beta 2 released
9/12/02: Beta 1.03 zip updated to include safe mode fix
9/3/02: Beta 1.03 released -- small bug fixes, see below
9/1/02: Beta 1 of vbProArcade has been posted. Please see below for installation instructions.


Background Information

vbProArcade is a fully-customizable Flash arcade add-on for vBulletin, complete with game-by-game scoreboards, forum integration, a "champions" system, statistics, and more.

This is an extensive hack that is still in BETA form, and I don't recommend installing it if you are not willing to work through potential issues and future updates/upgrades! I am working on making the installation instructions as easy as possible, but it will probably be some time before it is perfect.

Watch this post for updates as they happen, and check out screenshots from the list below. If you would like to see the hack in action, you may visit my Shadows of Namek forums. You will need to register to play, but you can view the scoreboards and the arcade itself as a guest.


Credits

This hack materialized thanks to work and help from a number of people and forums. Here they are:
  • Original vbTetris Hack by Erwin Loh
  • Original vbTetris Leaderboard Hack by John Warwick (john.eovie)
  • One of my users, Simon Steel, for work on Flash coding/recoding
  • The users of one of my forums, Shadows of Namek, for their extensive testing of the system
  • And The Kryptonian for pre-release and release candidate installation testing.
Games

So far, there are FIVE GAMES that work correctly with this hack. They are:

Breakout
Pacman
Snake
Space Invaders
Tetris

All five .SWF files are included in the release archive.

There is now a Flash Games Development Thread for the purpose of modifying existing games to work with vbProArcade, or for creating new games to be compatible with vbProArcade. If you have a game that you wish to see modified but don't know how, post the .FLA source in that thread and hopefully somebody can assist you.


Installation Instructions

Download the file attached to this post, unzip it and familiarize yourself with the contents BEFORE doing anything.

There are TWO separate files worth reading, the Documentation and the Installation Instructions. I recommend that you read both BEFORE doing anything else.

Once you have done this, the instructions to be followed are contained in vbproarcade-install.txt. Follow them as precisely as possible. If you encounter an error somewhere, it is likely that you missed a step or made a small error. Please double-check your work BEFORE posting about problems here.

And it cannot be said enough: read that file before you do anything, and if you are unsure of something, please post your question(s) before attempting to install the hack.


Problems and Fixes/Workarounds (as of 1/5)
  • None
Known Bugs/Limitations

Here is the list of stuff that I know does not work. I will be working towards correcting these bugs BEFORE adding new features for the next release.
  • Netscape will allow you to play the games but not record scores
  • If a user uses the "Back" button to go to the game screen, and does not refresh before playing, the score will result in a Security Violation. This is by design.
Screen Shots for Beta 2

Here is the list of posts from this thread that contain screen shots for the new version. Check them out!Upcoming Features

This is the stuff that is in progress for future release:
  • Complete Admin Panel Scoreboard Editor
  • Additional integration with vB
  • Even better Who's Online screen
Some have emailed or PM'd me asking if I would accept donations for my work on this hack, and yes, I certainly will, and any and all support is greatly appreciated. With over 2,000 lines of original PHP code, in addition to HTML and Flash work, I have spent a great deal of time developing and debugging the source for this, and it is a great feeling to have people like it so much that they want to give something back.

All donations received go directly back into supporting my websites and my design activities. You may click here to donate via Paypal. Note that donations are by no means required, and not donating does not mean you won't get support for the hack.

Last but not least, thanks for checking this out!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1632  
Old 10-17-2003, 10:11 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bitg
Ok, now that you have identified the problem, how do i fix it?
Hmm. The source code should be fine. I only could suggest that you try the following:

Replace:
SELECT * FROM arcadescores WHERE userid=$user AND valid=1 ORDER BY endtime DESC

With:
SELECT * FROM arcadescores WHERE userid=$userid AND valid=1 ORDER BY endtime DESC

in the proarcade.php file.

No guarantees. Give it a try.

And i would highly recommend that you check your vbulletin installation. It seems that you are running 2.2.8 and not 2.3.1 as you think. This could also cause many problems.

Cheers,

Pseudomizer
Reply With Quote
  #1633  
Old 10-18-2003, 07:12 PM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pseudomizer: Thanks again for figuring out the upload bug in the Admin CP. I worked with it a bit and discovered what the exact problem was.

In some versions of Apache/PHP, variable names are automatically created from forms. So for example, the input file "championicon" would turn into "$championicon_name" and "$championicon_data" automatically when it's passed through the headers into the next page.

So for some combinations of OS/Apache/PHP, this wouldn't happen, and the variables would not get inserted correctly into the database. The key then is to use the $HTTP_POST_FILES array for everything, rather than relying on PHP to do the dirty work.

The vpaupload() function already does this for the data portion, but the name was being mishandled. So the code now looks like this:

PHP Code:
    // only process the files if changes were made
    
if (is_array($HTTP_POST_FILES)) {

      
$thumbnail_name$HTTP_POST_FILES[thumbnail]['name'];
      
$championicon_name$HTTP_POST_FILES[championicon]['name'];

      if (
$thumbnail_name != "")
        
$thumbdata vpaupload("thumbnail");
      else
        
$thumbdata "";

      if (
$championicon_name != "")
        
$championdata vpaupload("championicon");
      else
        
$championdata "";

    } else {

      
$thumbdata "";
      
$championdata "";
    }

    
// make sure we have a valid hash offset
    
if ($hashoffset 31)
      
$hashoffset $hashoffset 31;
    else if (
$hashoffset 0)
      
$hashoffset 0;

    
$updatearcade "UPDATE arcadegames
                     SET name='
$name', title='$title', description='$desc', filename='$filename', hashoffset='$hashoffset',
                         "
.iif(($championdata != "") || ($deletechampicon == 1),"championpicname='$championicon_name', championpicdata='$championdata',","")."
                         "
.iif(($thumbdata != "") || ($deletethumb == 1),"thumbnailname='$thumbnail_name', thumbnaildata='$thumbdata',","")."
                         active='
$active', scorevar='$scorevar', gamecode='$gamecode',championactive='$championactive',championtext='$championtext',championcolor='$championcolor'
                     WHERE gameid='
$gameid'";

    
$DB_site->query($updatearcade); 
This fix (and appropriate credit) is given in Beta 2.1.
Reply With Quote
  #1634  
Old 10-18-2003, 08:56 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Futureal,

i am glad that you found the problem. Whenever i can help just tell me.

Did you had time to check my "Hall of Fame" ?

Cheers,

Pseudomizer
Reply With Quote
  #1635  
Old 10-18-2003, 11:00 PM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, I did have a look at it, it's very nice.

The way I've implemented it so far is a bit different; instead of going strictly by months, it allows the admin(s) to define any sort of period as a separate group or event, and then contains its own high scores for that. So it's more work, in that the admin would have to manually start a new group for each month, but it can also be reset more often if necessary.

I'm still testing it, and it won't be in Beta 2.1, but it will still make a showing in the vB2 version of the hack.

Your site did inspire me to start thinking about an optional cron job that could automatically rotate the scores each month/week/whatever.
Reply With Quote
  #1636  
Old 10-18-2003, 11:33 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by futureal
Yea, I did have a look at it, it's very nice.

The way I've implemented it so far is a bit different; instead of going strictly by months, it allows the admin(s) to define any sort of period as a separate group or event, and then contains its own high scores for that. So it's more work, in that the admin would have to manually start a new group for each month, but it can also be reset more often if necessary.

I'm still testing it, and it won't be in Beta 2.1, but it will still make a showing in the vB2 version of the hack.

Your site did inspire me to start thinking about an optional cron job that could automatically rotate the scores each month/week/whatever.
Smile. That is the next thing i wanted to implement. Right now i reset the scores manually and every time i reset them, the script looks for the actual month ( with some intelligence check behind ) and writes the Hall of Fames file. The next thing will be to insert into the cron job the start of the proarcadeadmin.php with the parameters to reset the scores and everything will happen then automatically. So we are both on the same way of solving this problem.

On unix a cronjob and on windows an AT job ( you can use Auto2000 to have a nice GUI on windows for that ).

If you need someone to test your solution just tell me.

Cheers,

Pseudomizer
Reply With Quote
  #1637  
Old 10-19-2003, 05:35 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when is this thing gunna go full release?????
Reply With Quote
  #1638  
Old 10-19-2003, 07:22 AM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its in testing, if all goes well, the next beta should be out soon
Reply With Quote
  #1639  
Old 10-19-2003, 04:21 PM
Kamui Shirou's Avatar
Kamui Shirou Kamui Shirou is offline
 
Join Date: Sep 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi. nice hack. but i've got a problem to solve.
When I wanna start out playing a game, the game loads and loads and loads, but noth' happens.
Hope u can help me.
http://www.mangaboard.com/forums/vbproarcade.php
Reply With Quote
  #1640  
Old 10-19-2003, 04:37 PM
xxxsaint's Avatar
xxxsaint xxxsaint is offline
 
Join Date: Jun 2002
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

go into the arcade options in your admin panel and double check your filepath to the games folder.

defaulted you will see /games/

I had to change mine to games/

then it worked
Reply With Quote
  #1641  
Old 10-19-2003, 10:06 PM
MaDCaT75 MaDCaT75 is offline
 
Join Date: Jul 2003
Location: Southern California
Posts: 718
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All things come in good time.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.28054 seconds
  • Memory Usage 2,345KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete