vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Arcade Pass Hack v2.0 (https://vborg.vbsupport.ru/showthread.php?t=43700)

Link14716 09-17-2002 10:00 PM

Arcade Pass Hack v2.0
 
Arcade Pass Hack v3 is here!
vB2: https://vborg.vbsupport.ru/showthread.php?t=62060 (for futureal's vbProArcade Beta 2)
vB3: https://vborg.vbsupport.ru/showthread.php?t=62059 (for John's v3 Arcade)

Link14716 09-18-2002 09:16 PM

Screen 1

This is in vBProArcade General Options. See the new options you have? ;)

Link14716 09-18-2002 09:17 PM

Screen 2

This is when editing a game. There are 3 new fields to configure.

Link14716 09-18-2002 09:17 PM

Screen 3

This is the main arcade page where Arcade Passes and the hack itself are turned on and the user has a valid arcade pass.

Link14716 09-18-2002 09:17 PM

Screen 4

This is the main arcade page where Arcade Passes and the hack itself are turned on and the user does NOT have a valid arcade pass.

Link14716 09-18-2002 09:17 PM

Screen 5

Link14716 09-18-2002 09:18 PM

Screen 6

Link14716 09-18-2002 09:18 PM

Screen 7

Link14716 09-18-2002 09:18 PM

Screen 8

Link14716 09-18-2002 09:18 PM

Screen 9

Link14716 09-18-2002 09:20 PM

FAQ:

What versions of the Store hack is this compatable with?
This hack is compatible with v1.3 and v2 of the store hack.

Enjoy! :banana:

joeboo 09-18-2002 09:36 PM

looks awesome, i'll install it later today :)

Dark Jim 09-18-2002 10:45 PM

2 things I found that are somehow not correct.

1. In the install file it says you use "jackpotinc" a few times where it should be "jackpotadd" which is what you use.

2. Updating the main arcade options didn't work anymore so instead of replacing the sql queries I just put the new stuff before this stuff:
PHP Code:

.iif(($scoreicon != "") || ($deletescoreicon == 1),",scoreiconname='$scoreicon_name', scoreicondata='$scorei_d'","")."
                       "
.iif(($kingicon != "") || ($deletekingicon == 1),",kingiconname='$kingicon_name', kingicondata='$kingi_d'",", 

You should look at those parts.

Also this is not correct in the upgrade from my hack instructions:

-+-+-+
Find:
-+-+-+

PHP Code:

  $playcost $gameinfo[playcost];
  
$jackpot $gameinfo[jackpot];
  
$jackpotinc $gameinfo[jackpotinc];

  
$storepoints $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
  
$points=$storepoints[storep];
  if (
$points 0)
  {
$points -= $playcost;
   
$DB_site->query("UPDATE user SET storep=$points WHERE userid=$bbuserinfo[userid]");

   
$jackpot += $playcost $jackpotinc;
   
$DB_site->query("UPDATE arcadegames SET jackpot=$jackpot WHERE name='$game'");   

   
// query string and param lists must be eval'd since it contains PHP vars
   
eval("\$vpa_qstring = \"$gameinfo[querystring]\";");
   eval(
"\$vpa_oparams = \"$oparams\";");
   eval(
"\$vpa_eparams = \"$eparams\";");
  
    
// get the code to call the game, then send the page
   
eval("\$gamecode = \"".gettemplate("vbproarcade_playgame_flashcode")."\";");
   eval(
"dooutput(\"".gettemplate('vbproarcade_playgame')."\");");
  }
  else
  {eval(
"dooutput(\"".gettemplate('vbproarcade_playgame_nopoints')."\");");} 

-+-+-+-+-+-+
REMOVE IT!
-+-+-+-+-+-+

It should be:

-+-+-+
Find:
-+-+-+

PHP Code:

  $playcost $gameinfo[playcost];
  
$jackpot $gameinfo[jackpot];
  
$jackpotinc $gameinfo[jackpotinc];

  
$storepoints $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
  
$points=$storepoints[storep];
  if (
$points 0)
  {
$points -= $playcost;
   
$DB_site->query("UPDATE user SET storep=$points WHERE userid=$bbuserinfo[userid]");

   
$jackpot += $playcost $jackpotinc;
   
$DB_site->query("UPDATE arcadegames SET jackpot=$jackpot WHERE name='$game'");   

   
// query string and param lists must be eval'd since it contains PHP vars
   
eval("\$vpa_qstring = \"$gameinfo[querystring]\";");
   eval(
"\$vpa_oparams = \"$oparams\";");
   eval(
"\$vpa_eparams = \"$eparams\";");
  
    
// get the code to call the game, then send the page
   
eval("\$gamecode = \"".gettemplate("vbproarcade_playgame_flashcode")."\";");
   eval(
"dooutput(\"".gettemplate('vbproarcade_playgame')."\");");
  }
  else
  {eval(
"dooutput(\"".gettemplate('vbproarcade_playgame_nopoints')."\");");} 

-+-+-+-+-+-+
Replace with:
-+-+-+-+-+-+

PHP Code:

   // query string and param lists must be eval'd since it contains PHP vars
   
eval("\$vpa_qstring = \"$gameinfo[querystring]\";");
   eval(
"\$vpa_oparams = \"$oparams\";");
   eval(
"\$vpa_eparams = \"$eparams\";");
  
    
// get the code to call the game, then send the page
   
eval("\$gamecode = \"".gettemplate("vbproarcade_playgame_flashcode")."\";");
   eval(
"dooutput(\"".gettemplate('vbproarcade_playgame')."\");"); 


Link14716 09-18-2002 10:49 PM

Firstly, I use jackpotadd, and it says to replace the jackpotinc, which you use.

Second, whoops, got a little lazy by the time I was making the upgrade file. Hold on.....

Link14716 09-18-2002 10:57 PM

I am wondering how that happened. I took the code straight from my proarcadeadmin, and mine was right :confused:

Oh, and the part you mentioned is corrected. On a superfluos note, you forgot the } and the end. :)
ZIP Updated.

Dark Jim 09-18-2002 11:01 PM

Uhm:
-----------------------------------------------
ALTER TABLE `arcadegames` ADD `playcost` int(255) NOT NULL default '10', ADD `jackpot` int(255) NOT NULL default '0', ADD `jackpotadd` int(255) NOT NULL default '5';
-----------------------------------------------
-+-+-+-+-+-+-+-+
Replace With:
-+-+-+-+-+-+-+-+

$DB_site->query("UPDATE arcadegames
SET name='$name', title='$title', description='$desc', filename='$filename',
".iif(($thumbdata != "") || ($deletethumb == 1),"thumbnailname='$thumbnail_name', thumbnaildata='$thumbdata',","")."
active='$active', scorevar='$scorevar', width='$width', height='$height',
codebase='$codebase', querystring='$querystring', objectparam='$objectparams',
embedparam='$embedparams',championactive='$champio nactive',championtext='$championtext',championcolo r='$championcolor',playcost='$playcost',jackpot='$ jackpot',jackpotinc='$jackpotadd'
WHERE gameid='$gameid'");
--------------------------------------------------------------------
It just doesn't seem right to me.

Link14716 09-18-2002 11:05 PM

As I said above, something with the instructions screwed up (dunno what, it was right on my proarcadeadmin.php), so the zip is updated.

Dark Jim 09-18-2002 11:22 PM

I have set all options to yes so you either need a pass or pay 1 credit. I tested this on the Tetris game where 1 user already is 1st (and got the jackpot). I then just quickly lost and ended 2nd. I didn't loose a credit. I also didn't buy a pass.

Also some of the jackpots have 10 credits in them but the jackpot column on the main arcade page is empty. What gives?

Dark Jim 09-18-2002 11:24 PM

If you didn't modify the store.php, proarcade.php and proarcadeadmin.php more than with your own hack, could you upload those?

Link14716 09-18-2002 11:27 PM

ok then, I will, hold on.........

Link14716 09-18-2002 11:31 PM

proarcade

Link14716 09-18-2002 11:31 PM

proarcadeadmin

Link14716 09-18-2002 11:32 PM

store

Link14716 09-18-2002 11:35 PM

Quote:

Originally posted by Dark Jim
I have set all options to yes so you either need a pass or pay 1 credit. I tested this on the Tetris game where 1 user already is 1st (and got the jackpot). I then just quickly lost and ended 2nd. I didn't loose a credit. I also didn't buy a pass.
If the jackpot was 2 credits, then you would have gained a credit from 2nd place. Also, the 1 credit you lost was in the jackpot, and if it was the lone credit in the jackpot, 1/2 = 0.5 and it rounds to 1 Credit, so you regained that credit.
Quote:


Also some of the jackpots have 10 credits in them but the jackpot column on the main arcade page is empty. What gives?

Make sure you edited vbproarcade_arcadebit template!

Dark Jim 09-18-2002 11:41 PM

Uhm I always gain 1 credit instead of losing one. If I get 0 points and not get to enter a comment then it takes one. Also why are the games in reversed order now?

Edit: Ok I see now but the cost column and jackpot show up now so it was definitely the instructions that are not complete or something.

Link14716 09-18-2002 11:43 PM

If you are using my file, they are because that's how I put it.

Hmm...... I tested it thouroughly and it worked perfect for me. :|

EDIT: If you get 0 points, you loose one, then it must be the jackpot add is giving you some.

Hmm.... Try getting into a very low position and see how much you gain, if jackpot divided by the poition is less than 0.5, then you'd get nothing, other than that, it'd still be rounded. remember, I tested it with the PPG Cost at 10 and the Jackpot Add at 5, so it must be the low cost and position rounding up a bit. If all else fails, raise the cost and/or raise the jackpot add.

Dark Jim 09-18-2002 11:52 PM

Ok ok I see. I guess I need to make everything more expenseive (but also increase the credits gained per post). :)

But in case you missed it from the above post, the cost and jackpot columns showed up right after I uploaded your files so the install instructions are somehow not complete.

Link14716 09-18-2002 11:54 PM

Maybe it was my fault trying to reduce queries, so let me pop back up my 3 query per arcade page version and see if you can get it to work. :)

Link14716 09-19-2002 12:00 AM

Ok, attachment back up. Dark Jim, use your proarcade.php and see if the instructions in the new zip work.

Dark Jim 09-19-2002 08:29 AM

I'll check it out tonight.

ZiRu$ 09-20-2002 02:13 AM

will install in a few days :) thx homie

Keta 09-20-2002 07:27 AM

well i already added the beta. i should of waited for the full release. but good job!

Link14716 09-20-2002 12:55 PM

I included instructions to upgrade. This version is far superior to the beta release, many many more options.

My next version (v2.1) will reduce the queries created by this version (there are about 3 worthless queries on the play action and the arcade main page). But seriously....... UPGRADE! ;)

Prophet2002 09-22-2002 12:15 AM

great hack link although i do have one problem. After i got through installing it all the game/champion/scoreboard icons got messed up, some were distored other just disappeard. I reset them all and reimported them. The game icons are fine now, but the scoreboard and champion icon wont import. The scoreboard just shows a blank pic, and the champion icon shows as a missing pic (the square with the little x in the corner). Any idea whats goin on?

Link14716 09-22-2002 09:42 PM

I would be able to help you if you told me where it is happening. If it is in the admin, make SURE that you followed the instructions PERFECTLY. If it is in the arcade page, then this must be another problem, because this hack doesn't replace anything, and it doesn't even TOUCH the scoreboard pages. :)

mewgood 10-08-2002 01:36 AM

how come I can't edit the time for the password? When I change the number and click edit and it turns out the defult number again. As well when I try to change some functions in the arcradeadmin.php it will not change.

mewgood 10-08-2002 10:05 PM

anyone?

mewgood 10-09-2002 03:34 AM

help pleas.

mewgood 10-09-2002 09:33 PM

hello?

netware 10-10-2002 07:58 AM

what about new Games !

The existing Games are nice but old ! Anybody got new Games for this section ??


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