vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Casino (w/ 10 player poker) (https://vborg.vbsupport.ru/showthread.php?t=159151)

towermatt 10-24-2007 08:48 PM

Sure Andrew--just that in the file?

I actually don't have program to do it in here and I understand notepad is no good. I'll have to do it when I get home.

Thanks for the help, should be a couple of hours.

ArchangelX 10-24-2007 09:03 PM

Found another serious bug with Video Poker...here's the PM from my user:

Quote:

I found a bug in the video poker game when you added the $25 and higher. I suspect the bug's been there all along, but I really only discovered it when I started playing with the bigger chips.

The bad part is that I don't think there's a way around it.

Here's how it works:

1) Start a video poker game.
2) Bet $1 by clicking on the $1 chip.
3) Let's say before you discard any cards, you already have a pair of jacks.
4) Click the video poker link across the top. The game will restart, but you'll have the same cards (with the pair of jacks)
5) This time, click the $100 chip.
6) You'll win $99 ($100 minus the $1 you bet.)

If you didn't get dealt a winning hand right off the bat, just play the hand out normally. When the winning hands pay out 99x normal payouts, you don't have to win very often to come out ahead.

I have a pretty good idea as to why this happens, but I don't think there's a good fix for it.

I suspect the game stores each player's hand and the current status of every game in the database. It would make sense to do it that way, so if the player closes his browser or reboots his machine in the middle of a game, he'll have the same hand when he comes back. You'd want to do it this way so people can't just restart their browser when they don't get dealt good cards.

The problem is, you also get to keep your cards if you get dealt a good hand. You can restart the game and change your bet while keeping your winning hand.

There really isn't an easy way to program around this problem. Either you have to protect yourself against one cheat or the other. Mine is probably the one people are less likely to accidentally stumble across, so it makes sense for the video poker game to work the way it does. Any fix I can think of can be fairly easily thwarted by using two browsers (or two different computers) logged in to the board as the same user. Leave one on the betting screen and play the hands with the other.

The only real fix I can think of is to completely rewrite the video poker game and have it work more like the RPG. The RPG appears to be a considerably more sophisticated bit of programming than the casino, however, so that would require quite a bit of work. It would be like writing another RPG hack.

I'm not sure what you or the developer could do to fix this, but I'd hate to see the video poker go away. It's my favorite game in the casino, and I was probably close to 200% before I found the cheat.

I just threw away 250K in the casino (in two pulls of the slot machine) in an attempt to take my name off that stats page, but it's still there. How often are those stats calculated?

Freesteyelz 10-24-2007 09:15 PM

Quote:

Originally Posted by Mark.B (Post 1367427)
Glad it worked...

Just to add, in vBadvanced 3.0, the instructions are slightly different:

AdminCP > vbaCMPS > Edit Pages > Default/Homepage >
Scroll down to "Main Options" and expand the block (click the + sign)
Portal Output Global Variables is in there.

Cool. :) I'm running the latest build 3.0 RC2 (vB 3.6) but I'm not currently using the default homepage. I am running custom pages (e.g., About, Site Rules, For Best Results, etc...) that use separate PHP files, however. I'm not certain if that makes a difference but then again, as you said, it worked. :D Again, I appreciated the help. :)

Quote:

Originally Posted by Andrew Green (Post 1367437)
Another solution which should work would be to put the "$inpoker" at the bottom of the header, rather then the navbar. It will have it appear in a slightly different place, but I think it will work.

Sweet. Thanks for the tip. :)



On a soon-to-be-released site I have this setup on the default theme:

pillarfan1 10-24-2007 09:28 PM

Looks good. I vote for spades as well :)

Andrew Green 10-24-2007 09:32 PM

Quote:

Originally Posted by ArchangelX (Post 1367803)
Found another serious bug with Video Poker...here's the PM from my user:


I can't duplicate this on .50, I noticed that a while back as well and worked it out. SO you should be ok once you update.

Andrew Green 10-24-2007 09:33 PM

Quote:

Originally Posted by towermatt (Post 1367790)
Sure Andrew--just that in the file?

I actually don't have program to do it in here and I understand notepad is no good. I'll have to do it when I get home.

Thanks for the help, should be a couple of hours.


Just that, and notepad is fine :)

towermatt 10-24-2007 09:35 PM

ah, note pad.

I can do that now

we're also having trouble with the times in the betting pool, and when we go to add, the first option is a colon for some reason. LOL

Then when we try to edit (with only two options--one on the line with a colon) it says we don't have enough options

towermatt 10-24-2007 09:39 PM

Notepad only gave me an option to save it as a text file :( I can't image that is right.

but it is here: http://www.thedarktower.com/palaver/andrew.txt

Andrew Green 10-24-2007 09:42 PM

rename it to .php and it should be good ;) You'll get lots of info out of it :)

Running out now for a few hours though, so no rush.

towermatt 10-24-2007 09:49 PM

Sweet!

Its there now and you are right about the info

http://www.thedarktower.com/palaver/andrew.php


All times are GMT. The time now is 02:03 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.03436 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)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