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)

Andrew Green 10-15-2007 06:34 PM

Put up a updated texasholdem_functions.php, should clean up the database errors, and set the messages to black for anyone that was using a different color for body text.

I will repackage this later tonight, if you where having trouble let me know if this solves it or not.

hoopsta 10-15-2007 06:49 PM

will that fix the chatbox? I don't get any data base errors, but the chat box doesn't work

Robbed 10-15-2007 06:58 PM

Quote:

Originally Posted by Andrew Green (Post 1360711)
payout problem is that you have a older version of the slotwheel image in there, New one doesn't have banana's at all so it's showing different results then it thinks it has.

The other one, not sure, that one is odd. I'll play with it a little and get something that works in.

That was my fault, We edited a lot of the images so we didn't overwrite.

The payout text overlapping only happens in firefox and only since the last 2 updates.

How come the cherry payout was changed? usually if you get cherries anywhere it pays out.

sandt38 10-15-2007 06:59 PM

I have to say this is the best add-on i have ever used in a forum enviroment. I just spent hours playing hold'em. My members have pushed the no-limit, but frankly that can make it less fun for poor members. I suffered some slow downs, but nothing major. However, 1 time there were 3 of us in the room playing and 2 members got 4 cards. I did not. But one of my members took a couple screenshots...

http://img18.imagevenue.com/img.php?..._122_884lo.jpg

http://img125.imagevenue.com/img.php...122_1026lo.jpg

It paid out on the higher cards. From my perspective (as the 1 member who got 2 cards like normal) everything looked normal. It only happened once after about 2 hours of playing.

Also, it doesn't seem to recognize straights. I lost a K high straight to a pair of 3s on a big table... about $2500 worth. We had 2 or 3 other issues where straights were not recognized.

When this is all done it will get my vote for MOTM for sure... plus, i think a donation is in order. This little add-on is just awesome.

Andrew Green 10-15-2007 07:05 PM

I fyou have any other straights not get recognized can you get a screenshot of all the cards, it should pay out properly and has for me, so I am wondering what combinations of cards do it.

evesve 10-15-2007 07:06 PM

There is another problem...
I have to scroll up/down if I want to see the whole table.
Firefox with tabs, 19" widescreen...

Andrew Green 10-15-2007 07:06 PM

Quote:

Originally Posted by hoopsta (Post 1360944)
will that fix the chatbox? I don't get any data base errors, but the chat box doesn't work

No, but from what I can gather this has somethng to do with internet explorer not wanting to add more text to the box, I'll do what I can to work it out, but as a temporary measure I recommend a better browser ;)

Andrew Green 10-15-2007 07:09 PM

Quote:

Originally Posted by evesve (Post 1360964)
There is another problem...
I have to scroll up/down if I want to see the whole table.
Firefox with tabs, 19" widescreen...

I can fit the whole table in at 1024x768, did you overwrite the old card images? I went with the reduced ones as the default so that everything would fit.

If that's not it, what is your screen resolution set at?

evesve 10-15-2007 07:14 PM

Quote:

Originally Posted by Andrew Green (Post 1360968)
I can fit the whole table in at 1024x768, did you overwrite the old card images? I went with the reduced ones as the default so that everything would fit.

If that's not it, what is your screen resolution set at?

I have the new cards (100x143)
My screen is 1280x720

sandt38 10-15-2007 07:15 PM

Quote:

Originally Posted by Andrew Green (Post 1360961)
I fyou have any other straights not get recognized can you get a screenshot of all the cards, it should pay out properly and has for me, so I am wondering what combinations of cards do it.

I will. They were random, some were all numeric and others had face cards. But I don't recall a straight paying out correctly. Flushes paid out, as did every other combination. I almost had a straight flush to the jack... I would have been interested on seeing if that paid out.

Andrew Green 10-15-2007 07:20 PM

Quote:

Originally Posted by evesve (Post 1360971)
I have the new cards (100x143)
My screen is 1280x720

Well, I can see if there is anything I can trim, but I doubt I'll get much. Can always hit F11 and go to full screen while playing

towermatt 10-15-2007 07:20 PM

Quote:

Originally Posted by Andrew Green (Post 1360929)
Put up a updated texasholdem_functions.php, should clean up the database errors, and set the messages to black for anyone that was using a different color for body text.

I will repackage this later tonight, if you where having trouble let me know if this solves it or not.

Should we simply copy that to the forums folder?

Richard1964 10-15-2007 07:20 PM

I have the same trouble with one of the cards dropping down to the next row. However, this is due to me having vBulletin integrated into a Content Management System that I prefer to use a fixed width with.

Sure, if the main cards were just a little smaller it would work fine for me. BUT, it's no big deal, I just open up my browser to full screen size and it works perfectly. A small price to pay for such a fantastic MOD.

Great work Andrew. I look forward to seeing what ELSE you intend to do with this.

evesve 10-15-2007 07:22 PM

Quote:

Originally Posted by Andrew Green (Post 1360976)
Well, I can see if there is anything I can trim, but I doubt I'll get much. Can always hit F11 and go to full screen while playing

I changed to 1360x768, than it is OK.
I?ll see if I can live with that!

Andrew Green 10-15-2007 07:23 PM

Quote:

Originally Posted by towermatt (Post 1360978)
Should we simply copy that to the forums folder?

no, the casino/ one, overwrite the existing file.

sandt38 10-15-2007 07:28 PM

Quote:

Originally Posted by evesve (Post 1360971)
I have the new cards (100x143)
My screen is 1280x720

Mine is 1280X800 and i have no problem. Have you tried reducing your font size on the screen? Ctrl and scroll on the mouse. That is all I can think of. I use FF with 2 bars and tabs, plus status bar on the bottom on a 15.4 laptop widescreen with the 1280X800 and I have a ton of room.

sandt38 10-15-2007 07:31 PM

Quote:

Originally Posted by Andrew Green (Post 1360976)
Well, I can see if there is anything I can trim, but I doubt I'll get much. Can always hit F11 and go to full screen while playing

Andrew, if you want some help i will trim down the cards a bit for you this evening. I have modified several for my forum just to customize them and make it fit into my theme...

towermatt 10-15-2007 07:31 PM

Quote:

Originally Posted by Andrew Green (Post 1360982)
no, the casino/ one, overwrite the existing file.

thanks Andrew, this is very good

evesve 10-15-2007 07:34 PM

Quote:

Originally Posted by sandt38 (Post 1360987)
Mine is 1280X800 and i have no problem. Have you tried reducing your font size on the screen? Ctrl and scroll on the mouse. That is all I can think of. I use FF with 2 bars and tabs, plus status bar on the bottom on a 15.4 laptop widescreen with the 1280X800 and I have a ton of room.

1280x800 was better!

Andrew Green 10-15-2007 07:38 PM

Quote:

Originally Posted by sandt38 (Post 1360989)
Andrew, if you want some help i will trim down the cards a bit for you this evening. I have modified several for my forum just to customize them and make it fit into my theme...

Card resizing is easy, I just do them all at once by command line ;)

csavern 10-15-2007 08:05 PM

I seen where you added a new texasholdem functions.php and it replaced the one in the folder and it almost worked
i get no more database error but no one can see the 2 cards in there hand

Andrew Green 10-15-2007 08:18 PM

Quote:

Originally Posted by csavern (Post 1361022)
I seen where you added a new texasholdem functions.php and it replaced the one in the folder and it almost worked
i get no more database error but no one can see the 2 cards in there hand

lol, well one thing at a time. Re-uploaded the file with a copy that gets rid of the database errors AND gives you cards :D

towermatt 10-15-2007 08:23 PM

I'll grab it again then :D

stangger5 10-15-2007 08:27 PM

Quote:

Originally Posted by Andrew Green (Post 1361034)
lol, well one thing at a time. Re-uploaded the file with a copy that gets rid of the database errors AND gives you cards :D

Looks like it working fine now...

It doesnt say who won untill to click on ready again..

I didnt use the texasholdem_ajax.php tho...

csavern 10-15-2007 08:40 PM

sorry wasent trying to rush ya just giving heads up wasent in a big rush

stangger5 10-15-2007 08:46 PM

Texas hold em was working fine,,,then started dealing out 4 cards to everyone..

sinisterpain 10-15-2007 09:06 PM

Please have a look at the secondary usergroups as after updating to 3.1 it does not work. Also the lottery does not list the winners.

Andrew Green 10-15-2007 09:48 PM

Quote:

Originally Posted by stangger5 (Post 1361061)
Texas hold em was working fine,,,then started dealing out 4 cards to everyone..

That's strange, but fairly simple to take care of.

Quote:

Originally Posted by sinisterpain (Post 1361078)
Please have a look at the secondary usergroups as after updating to 3.1 it does not work. Also the lottery does not list the winners.

Usergroups I'll take care of. Lottery winners should only list people that hit all the numbers, have you had a Jackpot winner?

towermatt 10-15-2007 09:52 PM

I'm still waiting for my members to test Texas Holdum so I can throw on what ever new files I need to before tonight. :cool:

GoTTi 10-15-2007 10:32 PM

is there a way to make the hodlem no limit?

rinkrat 10-16-2007 12:17 AM

This is what I get when I try and play a game

Warning: Unknown(./includes/functions_forumlist.php): failed to open stream: No such file or directory in /includes/functions.php(5166) : eval()'d code on line 215

Fatal error: (null)(): Failed opening required './includes/functions_forumlist.php' (include_path='.:/usr/share/pear') in /home/www/html/bbs/includes/functions.php(5166) : eval()'d code on line 215

sinisterpain 10-16-2007 12:28 AM

Quote:

Lottery winners should only list people that hit all the numbers, have you had a Jackpot winner?
No just two numbers were hit. that would explain it thanks

rinkrat 10-16-2007 01:03 AM

It looks like the Sports pool works and the slots graphics only work in Firefox, the Texas Holdem has just a shoutbox with no graphics in both browsers and the blackjack shows the error in the message up there ^^ a couple of posts up. . Id love to get this working.

TheBlackPoet 10-16-2007 01:29 AM

everything works perfectly for my 3.68 IE7.... however, i have no idea how to play poker!!!! so i guess this is a learning tool too!!

installed!!!

Andrew Green 10-16-2007 02:21 AM

Quote:

Originally Posted by rinkrat (Post 1361216)
It looks like the Sports pool works and the slots graphics only work in Firefox, the Texas Holdem has just a shoutbox with no graphics in both browsers and the blackjack shows the error in the message up there ^^ a couple of posts up. . Id love to get this working.

I'll sign up and have a look at what's going on when I get a chance.

Quote:

Originally Posted by GoTTi (Post 1361140)
is there a way to make the hodlem no limit?

Not at this time. No limit only really works for tournaments IMO, when people got differing amounts of cash it's just unfair...

csavern 10-16-2007 02:25 AM

is there a way to set the odds to the slots ?
i seen in slots_ajax where the wheel i belive is set to 64% but i didnt want to mess any thing up so thought i would as here first

Andrew Green 10-16-2007 02:43 AM

Quote:

Originally Posted by csavern (Post 1361247)
is there a way to set the odds to the slots ?
i seen in slots_ajax where the wheel i belive is set to 64% but i didnt want to mess any thing up so thought i would as here first

Not really, you could edit the file, but balancing odds is tricky. Set the numbers funny and you could end up with very low or very high payouts.

Basically each wheel has 64 possible hits, each position is weighted differently.

So strawberries for example have a 32 in 64 chance on each wheel. or 50%, .5 x .5 x .5 = 12.5% change of getting 3 strawberries.

Cherries have a 16 / 64 chance on each. or .25 of getting the first, .0625 of getting first 2, and .016 (1.6%) of getting all 3

Right now the payout will average a little over 100% of what goes into it. (104%) which is pretty good ;)

csavern 10-16-2007 02:52 AM

i know it pays to well
the deal on my board is we will be giving away a Ready To Fly radio control heli and i dont want people playing the slots and making a ton of credits
more like 80% over all ods some get lucky some dont get so lucky

sandt38 10-16-2007 02:57 AM

Quote:

Originally Posted by Andrew Green (Post 1361255)
Not really, you could edit the file, but balancing odds is tricky. Set the numbers funny and you could end up with very low or very high payouts.

Basically each wheel has 64 possible hits, each position is weighted differently.

So strawberries for example have a 32 in 64 chance on each wheel. or 50%, .5 x .5 x .5 = 12.5% change of getting 3 strawberries.

Cherries have a 16 / 64 chance on each. or .25 of getting the first, .0625 of getting first 2, and .016 (1.6%) of getting all 3

Right now the payout will average a little over 100% of what goes into it. (104%) which is pretty good ;)

Darn... I am sitting at about 70%...

Now cards on the other hand, I own all card games. Especially Hold'em

Andrew Green 10-16-2007 03:01 AM

Quote:

Originally Posted by csavern (Post 1361259)
i know it pays to well
the deal on my board is we will be giving away a Ready To Fly radio control heli and i dont want people playing the slots and making a ton of credits
more like 80% over all ods some get lucky some dont get so lucky

All the games payout about 100% ;)

But you do have to be pretty lucky to go over 100%

Easiest thing to do too bring it down would be change this line:
Code:

$payouts = array(10,1000,200,50,20,3);
to this:

Code:

$payouts = array(10,1000,200,50,20,2);

Will put you down to around 90%, strawberries will pay 2 rather then 3, just edit the payout chart to reflect that as well ;)


All times are GMT. The time now is 02:50 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.03761 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
  • (2)bbcode_code_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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