vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Arcade Pass Hack v3! (https://vborg.vbsupport.ru/showthread.php?t=62059)

Link14716 02-29-2004 10:00 PM

Arcade Pass Hack v3!
 
11/09/04 - Installer upgraded, nothing more.

11/05/04 8:28 PM EST: I botched the release because the important files "mysteriously" disappeared. I have updated the attachment.

11/04/04 9:00 PM EST: Changed to the Hack Installer System for installs. Just upload all the files in the upload folder and run forum/install/hack_install.php, chose Arcade Pass v3 and follow with the instructions. Should make a great replacement for the defunct HTL and the crappy TXT installer.

This is the Arcade Pass Hack v3. While it takes the name and feature set from it's predecessor, the Arcade Pass Hack 2.0 for vB2, the code has been improved, dependancies for the store removed, and the code completely re-written on vB3. The same code was then back-ported to vB2. Right now, the Arcade Pass Hack v3 supports both vB2 and vB3, and vbProArcade Beta 2 (for vB2) and the Arcade v3 (for vB3). When new versions of the arcades are released that have significantly changed code, another version of the Arcade Pass Hack v3 will be written for it.

The vB2 version contains a txt-based install as well as a vbHacker install, and the vB3 version uses the included Hack Installer System. Chose the appropriate vB version, then the appropriate arcade, and then chose the appropriate install and go from there. The arcadepass.php in the vB2 and vB3 folders must be uploaded to the root forums directory.

--------------------------------------

What does this hack actually do, you ask? It allows you, as an administrator, to force people to either buy an arcade pass for a set amount of points (point system not included - you'll have to install one from another hack and then configure this hack to use it) or make them pay a set amount per game (setable per game), or make them pay only if they do not have an arcade pass.

This hack also features a jackpot. First, a default jackpot (amount configurable) is set up, and after each game played, the cost of the game plus another amount (configurable per game) is added to the jackpot. If the user ends up with a high enough ranking (minimum ranking configurable), then they'll get a piece of the jackpot - if they are in 3rd place they'd get 1/3 of the jackpot, if they were in 50h, they'd get 1/50th of the jackpot, etc. Once someone takes 1st place, they default jackpot is entered back in and the lucky winner gets ALL of the jackpot.

This hack currently supports the following arcade/versions:

vB2:
vbProArcade Beta 2

vB3:
v3 Arcade (1.0)

Screenshots below.

Link14716 03-01-2004 06:02 AM

EDIT: Screens moved to first post.

PixelFx 03-01-2004 06:09 AM

kewl, I'll looking forward to this when Futureal finishes his vb3 pro arcade :) thanks for working on this again :) I clicked install, even though I'm waiting for futureals proarcade.

Link14716 03-01-2004 06:10 AM

Yeah, right now there are two versions, but when futureal releases the new vB2 version and the vB3 version, it'll have 4... that'll be fun to maintain. ;)

Fi_InCogNiTo 03-01-2004 02:56 PM

Seems to work fine.

*clicks install

Fi_InCogNiTo 03-01-2004 03:05 PM

If I set it to 0 points needed to play a game, it still doesn't show the play game link. I disabled the acrcade pass option and enabled pay per play in admincp.

Enable Arcade Passes? No
Enable Pay Per Game? Yes

And if I set Arcade Pass cost to 0, it still says "You do not have enough points for this." when I click it.


EDIT: Another thing:
Code:

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: UPDATE user SET uttpoints=uttpoints+505 WHERE userid='1'
mysql error: Unknown column 'uttpoints' in 'field list'

mysql error number: 1054

Date: Monday 01st of March 2004 09:10:09 AM
Script: http://www.pc-nerd.com/arcade.php

Happens when you finish a game and it goes to enter the score on the scoreboard. Even when the master switch is off.

EDIT: The above problem was solved by doing this query:
Code:

ALTER TABLE `user` ADD `uttpoints` BIGINT( 15 ) NOT NULL ;
However, even though my jackpot was 500, it gave me 555. And after I played the game, the jackpot reset to 525.

Link14716 03-01-2004 07:02 PM

As I said, this does not come with a point system, you must have one already installed and configure the settings to use it.

Not sure what is causing any other errors, though.

PixelFx 03-01-2004 07:54 PM

does this work with yoshi's store system? or can you add support for it, once he's release 4.0 ?

Link14716 03-01-2004 08:04 PM

It works with any point system that has its point field in the user or usergroup table. So yeas. (Although it integrates more closely with the uTT Store Hack that me and Zachery will be releasing sometime soon.)

gmarik 03-02-2004 04:21 PM

Interesting add-on, if only my vB3 arcade installation would work, something does not fits ....

Red Blaze 03-05-2004 01:27 PM

I posted this in the wrong vb Arcade Pass Hack (the vb2 version). Here's my... minor annoyance rather than a problem:

Quote:

Installed it and works great. Just a question though. Why does it leave the comments saying
// [Start Arcade Pass Hack blah blah blah
// [End Arcade Pass Hack blah blah blah

For all edit changes in adminarcade.php? The coding works great, no damage done, but it leaves the comments there.

Link14716 03-05-2004 03:07 PM

Quote:

Originally Posted by Sonikku
I posted this in the wrong vb Arcade Pass Hack (the vb2 version). Here's my... minor annoyance rather than a problem:

It's one bad thing about the HTL, it doesn't let me disable those goddamned comments.

Search for those comments in arcadeadmin.php and remove them.

Red Blaze 03-05-2004 03:09 PM

Well, I didn't really have a problem with the other HTL compatible hacks I installed. I'll remove them anyway.

Link14716 03-05-2004 03:10 PM

Because the other HTL compatible hacks didn't modify code that was being echo'd. ;)

PixelFx 04-07-2004 11:26 AM

any eta on your point system? :) *twitches a bit more*

lasto 04-07-2004 01:33 PM

looks good but will wait for a store hack to be releashed like everyone else is :)

then will have this :)

Zelda-King 04-13-2004 11:37 AM

The arcade_main_games_bit template edits don't appear compatible with vB3 Gold. I get that 'parse problem but you can continue if you want' prompt.

James Collins 04-13-2004 06:21 PM

I dont get that, but what I do get is that when someone wins the "Jackpot" the "Jackpot" defaults back to 500 for me - then it goes to 255, then 500 again :o

Which part defines the score, maybe I left something out? This was after setting them all to 20 in the CP first off.

Either way, nice first addition for the shop - even if this did come before your shop :)

Zelda-King 04-13-2004 07:14 PM

Well I got that template working. I have Arcade Pass working just fine with the uShop from what I can tell.

James Collins 04-13-2004 07:21 PM

Do you get the jackpot problem I have?

hmm, maybe I need to install again - will wait for your input :)

dstruct2k 04-14-2004 12:07 AM

My jackpots are turning into HUGE decimal numbers... (Probably from people coming in third and dividing by 3) Squall, any ideas for a fix?

(My idea: X by 100, floor, ? by 100) :)

dstruct2k 04-14-2004 03:05 AM

[sql]ALTER TABLE `games` CHANGE `arcadepass_jackpot` `arcadepass_jackpot` DECIMAL( 20, 2 ) DEFAULT '0.00' NOT NULL[/sql]
This query fixed the super-long decimals, and made it so that the jackpots ALWAYS have 2 decimal points, like a real dollar amount.

Change the underlined number 2 to how many decimals you want and run the query to fix long decimal values. :)

Leah 04-14-2004 11:49 AM

There seem to be a problem here.
Does anyone have any idea what I need to do to fix this?

James Collins 04-14-2004 04:21 PM

Does anyone get the Jackpot to work after it has been played a few times. Like I said I reset the Jackpot to 50, but it always goes back to 500 again after someone has "won" the jackpot.

500 is far 2 much imho to start off with...

NameWolf 04-16-2004 12:40 AM

Hello,

I am trying to do a manual install on vb3.0 after installing links' store hack. Unfortunately I ran setting.sql before settingphrase.sql and now I get ;

Error

SQL-query :

INSERT INTO `vb3_phrase` ( `phraseid` , `languageid` , `varname` , `text` , `phrasetypeid` )
VALUES ( 6472, 0, 'settinggroup_arcadepass', 'Arcade Pass Hack v3 Settings', 5000 )

MySQL said:

#1062 - Duplicate entry '6472' for key 1

----

How can I fix this situation ?

Thanks in advance .

NW

Leah 04-17-2004 09:28 PM

Ok, now I got the templatething working. But the arcade pass doesn't stop people from playing if they have the URL to the game or find it on the highscore.

Or have I missed something here?

Cyricx 04-18-2004 01:40 AM

If they don't have the pass they pay the "cost fee" I believe, if they do have the pass, they don't have to pay the "cost fee". At least, thats how I'm understanding it =/

msimplay 04-18-2004 08:08 AM

Quote:

Originally Posted by James Collins
I dont get that, but what I do get is that when someone wins the "Jackpot" the "Jackpot" defaults back to 500 for me - then it goes to 255, then 500 again :o

Which part defines the score, maybe I left something out? This was after setting them all to 20 in the CP first off.

Either way, nice first addition for the shop - even if this did come before your shop :)

i have a similar problem where i set the jackpot to 100 and set the jackpot increase to 0 yet it still increases

lasto 04-18-2004 08:29 AM

so does this hack not work proper with the Ustore then ?

Seany 04-18-2004 05:55 PM

Quote:

Originally Posted by NameWolf
Hello,

I am trying to do a manual install on vb3.0 after installing links' store hack. Unfortunately I ran setting.sql before settingphrase.sql and now I get ;

Error

SQL-query :

INSERT INTO `vb3_phrase` ( `phraseid` , `languageid` , `varname` , `text` , `phrasetypeid` )
VALUES ( 6472, 0, 'settinggroup_arcadepass', 'Arcade Pass Hack v3 Settings', 5000 )

MySQL said:


#1062 - Duplicate entry '6472' for key 1

----

How can I fix this situation ?

Thanks in advance .

NW

I get the same problem. Link, any help here? Can we continue the install if we get that error?

NameWolf 04-18-2004 11:14 PM

Well I was trying to manually delete the entries and I just realised that entry 6472 is used by another entry that that does not belong to Arcade pass. None of the IDs are actually free. They are all used by previous hacks or entries.

NW

Seany 04-19-2004 12:56 AM

So what exactly did you do to get it working? Or did you get it working? Also, which entried do I delete if I wanted to get rid of it? Thanks.

NameWolf 04-19-2004 07:22 AM

Well I did not get it working because I did not delete the entries 6472 and above. All the IDs were also taken up to around 13500. I wonder if we can change them and assign higher ids such as 14000 etc. Link ?

NW

Davey-UK 04-19-2004 06:32 PM

When clicking on the buy an arcade pass link, it just takes me to page unnavailable, but when i buy one in the shop it works fine.


When i hover over the buy pass link above the avatar, it says arcadepass.php as the link, which i have uploaded to the correct place.

Any ideas? :o

Ive sussed it out!!...

You cannot have the pass enabled in the Utt store, or it seems to conflict with the arcade pass hack

msimplay 04-19-2004 06:40 PM

yep find
PHP Code:

 header("Location: uttstore.php?do=a&aid=$action[actionid]"); 

and change it to

PHP Code:

 header("Location: ushop.php?do=a&aid=$action[actionid]"); 


Seany 04-19-2004 11:37 PM

Quote:

Originally Posted by NameWolf
Well I did not get it working because I did not delete the entries 6472 and above. All the IDs were also taken up to around 13500. I wonder if we can change them and assign higher ids such as 14000 etc. Link ?

NW

I wanna remove the queries I performed up and till the point I got that error. Any way I can do that? Thanks.

lasto 04-24-2004 06:13 PM

quick question - arcade vb3 installed
store installed

installing this hack will it then work to make members pay or is there people still having probs with it and the store ?

msimplay 04-24-2004 06:26 PM

Quote:

Originally Posted by lasto
quick question - arcade vb3 installed
store installed

installing this hack will it then work to make members pay or is there people still having probs with it and the store ?

it works to make members pay however i have this problem

check this post
https://vborg.vbsupport.ru/showpost....3&postcount=18

weaver 04-25-2004 12:04 AM

It seems to be working fine for me after running the query dstruct2k provided. But I'm wondering if there is a way to have a notification when someone wins part of the jackpot telling them how much they have won. Also, maybe a list of recent jackpot winners similar to the "latest arcade scores" box.

lasto 04-25-2004 12:09 AM

msimplay cheers m8 so it dont work to an extent where it forces people to pay to use the arcade as thats all im bothered about at moment as im fed up with people parking thier behinds in the arcade all day and totally by passing the board.

Wait till tournament arcade comes along LOL will be nobody posting :)


All times are GMT. The time now is 04:48 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.01396 seconds
  • Memory Usage 1,831KB
  • 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
  • (6)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