vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   v3 Arcade - Games Arcade & Challenge System [vB 3.0.3] (https://vborg.vbsupport.ru/showthread.php?t=60377)

Rampag33 02-05-2004 10:14 PM

Quote:

Originally Posted by CampusCrawler
http://www.campuscrawler.com/~ingen/Games/

I organised this fro you guys.. maybe you can work with it

Thanks alot, more games woohoo!

Deimos 02-05-2004 10:27 PM

Question, this part doesn't work for me...

"Display Arcade Awards in Postbit?
If enabled, highest scorers will have awards displayed in their postbit templates."

Even though everything else works, nothing shows up in the postbit..?

John 02-05-2004 10:29 PM

Either you didn't make the changes to the postbit template, or you're using the legacy postbit.

dethfire 02-06-2004 03:07 AM

how do you actually go about adding new games? Like the additional games on the first post here. How do I add those?

AutomatikStudio 02-06-2004 03:18 AM

Quote:

Originally Posted by dethfire
how do you actually go about adding new games? Like the additional games on the first post here. How do I add those?

You follow the instructions included in each games .ZIP file.

Detomah 02-06-2004 08:16 AM

Quote:

Originally Posted by dethfire
how do you actually go about adding new games? Like the additional games on the first post here. How do I add those?

Once you've read the instructions and managed it with one, you'll laugh about how easy it actually is - if you'd read the instructions with the games, you would be laughing at yourself for even thinking about asking this question though. ;)

Just as an example to show you how easy it actually is though:

1. Unzip the files.
2. Upload the the images to the arcade images folder.
3. Upload the game .swf file to the game folder.
4. Upload the install file to your forum cp.
5. run the install file, then once done delete the install file.

lol, it couldn't be any easier. ;)

GenSec 02-06-2004 08:32 AM

Small add-on.
It adds challenges statistics to gamer's stats table:
  • Find in File arcade.php
    PHP Code:

        $played $DB_site->num_rows($activitycount);
        
    $i 1;
        while (
    $listscores $DB_site->fetch_array($activitycount)) {
            if (
    $i<6){
                
    $scorelist .= $i.". <b><i>".$listscores['title']."</i></b>, with a score of <b><i>".$listscores['score']."</i></b><br>";
                
    $i++;
            }
            
    $playtime $playtime+($listscores['finish']-$listscores['start']);
            
    $ping += $listscores['ping'];
        } 

  • REPLACE that with:
    PHP Code:

        $played $DB_site->num_rows($activitycount);
        
    $i 1;
        
    $countch=0;
        
    $win=0;
        
    $lose=0;
        while (
    $listscores $DB_site->fetch_array($activitycount)) {
            if (
    $i<6){
                
    $scorelist .= $i.". <b><i>".$listscores['title']."</i></b>, ? ??????????? <b><i>".$listscores['score']."</i></b><br>";
                
    $i++;
            }
            
    $playtime $playtime+($listscores['finish']-$listscores['start']);
            
    $ping += $listscores['ping'];
            if (
    $listscores['challengeid']) {
            
    $countch++;
            
    $challengeid=$listscores['challengeid'];
            
    $mscore=$listscores['score'];
            
    $unuser $DB_site->query_first("SELECT score AS score FROM " TABLE_PREFIX "gamesessions WHERE challengeid=$challengeid AND userid!=$userid");
                          if (
    $unuser['score']<$mscore) {
                              
    $win++;
                          } else if (
    $unuser['score']>$mscore) {
                              
    $lose++;
                          }
            }
     
        } 

  • Find in Template arcade_statistics
    Code:

    <tr>
    <td class="alt1" width="50%">Recent Arcade scores:</td>
    <td class="alt1" width="50%"><span class="smallfont"><if condition="$scorelist==''">No Scores Recorded<else />$scorelist</if></span></td>
    </tr>

  • Add BELOW that
    Code:

    <tr>
    <td class="alt2" width="50%">Challenges:</td>
    <td class="alt2" width="50%"><span class="smallfont">Total: $countch&nbsp;&nbsp;&nbsp;<b><em>Win: $win</em></b>&nbsp;&nbsp;Lose: $lose</span></td>
    </tr>


lasto 02-06-2004 09:59 AM

nice little addon m8 - every bit helps - gotta admit though tis is the best arcade system for vb3 and hope to see it get bigger :)

monstergamer 02-06-2004 10:08 AM

/me likes, cool add on

MrNase 02-06-2004 10:47 AM

iam testing it on a rc3 installation right now and i think i've found a bug :(

i played 3 of the 5 games and iam the champion in 3 of those games and everything is fine for me in the postbit templates. But now, there's something like 'Chopper Challenge Champion! Tetris Champion!' beneath every guestpost and it seems like the guest played those games but really nobody played those games and a guest can't be a champion :)


All times are GMT. The time now is 09:39 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.02844 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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