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 12-27-2007 11:42 PM

Quote:

Originally Posted by Tigersmith (Post 1406574)
How would I go about allowing bets with decimal places in them? eg: 0.25 0.50 etc.

Can't, it works off whole numbers only.

Quote:

Originally Posted by Keyser S?ze (Post 1407433)
the sports betting is not working for me, i have it set up for football, but when i win all i get is my money back, it doesnt accually give me any winnings


Is anyone betting on the other team? Winners divide up the total that has been bet, so if no one bets on the other team you only get your money back as that is all that was in the pot.

Quote:

Originally Posted by firstrebel (Post 1407442)
Further to my post #2331, the member who triggered this db error has confirmed he tried to access Slots from the Casino main page, not directly as previously suggested.

Bob

I've seen it a few times as well now, will be looking into it in the next few days.

jasculs 12-28-2007 02:28 AM

Hey Andrew Green, how are we looking on the raffle system?

mikeylikesitz 12-28-2007 03:18 AM

Great hack, my members are loving this, and going broke on a regular basis

ezurick 12-28-2007 12:49 PM

Quote:

Originally Posted by Andrew Green (Post 1410419)
There never was a option to change the jackpot, are you sure you are not mixing up this lottery with the vbcredits lottery?



Sorry, but you really aren't paying enough to complain that you don't get problems answer immediately on CHRISTMAS DAY.

Perhaps not... but what contols the jackpot? How can I change it?

Fr4gZ 12-28-2007 02:59 PM

The mod looks brilliant, I have one query tho.

I'm currently using vcash on my site and want the casino mod to use the same. Instead of casino_cash what do I put int he settings to make vcash the default monetary value?

Immediate help required! :D

Fr4gZ 12-28-2007 03:07 PM

Quote:

Originally Posted by Andrew Green (Post 1351381)
as in vbookie_cash?

in the setup change the cash field to "vbookie_cash"

Just seen this. Answered my question! :D <3

SVTCobraLTD 12-28-2007 03:17 PM

Quote:

Originally Posted by Andrew Green (Post 1402629)
I've not seen it anywhere else, but haven't had a chance to really look into it. Have you done any mods that require changing source code on vb files?

Not sure which files would have done it but the problem did not exist until I upgraded to the newest version. The ones before that were fine. Any idea of where to even start looking?

Quote:

Originally Posted by SVTCobraLTD (Post 1400989)
Upgraded to .81a and still get the error below in the Announcement Thread.
Quote:

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(296) : eval()'d code on line 156



SVT

Andrew Green 12-28-2007 03:33 PM

Quote:

Originally Posted by ezurick (Post 1410770)
Perhaps not... but what contols the jackpot? How can I change it?


The Numbers used, how many numbers get drawn, the range on those numbers and the ticket price. Also it will adjust over time based on how many tickets have been bought.


Quote:

Originally Posted by SVTCobraLTD (Post 1410851)
Not sure which files would have done it but the problem did not exist until I upgraded to the newest version. The ones before that were fine. Any idea of where to even start looking?

SVT


What version where you using previously?

dodgeboard.com 12-28-2007 04:01 PM

Quote:

Originally Posted by Robert Paulson (Post 1410399)
Just kiddin'. I wanted to see if I could give dodgeball, or board, whatever, a massive heart attack.

Did it work?

Not quite.

I'd be dead by now if hearing the same question over and bloody over again could hurt me.:D

Actually, I feel sorry for those poor saps that are unable to help themselves. How can they even run a vBulletin site?

SledgeHammer101 12-28-2007 06:05 PM

we have been trying texas hold em on our board with 5 players, but it seems that the game is pushing down our server performance while we are playing.
is the game loading all informations directly from the database ?

Andrew Green 12-28-2007 06:50 PM

Quote:

Originally Posted by SledgeHammer101 (Post 1410940)
we have been trying texas hold em on our board with 5 players, but it seems that the game is pushing down our server performance while we are playing.
is the game loading all informations directly from the database ?


Yes, but all is a as little as it can get away with from as small of tables as it can get away with. I will look at optimizing it as much as I can, but I don't expect a huge difference. You can turn the delay time up, which will cut that back a little. But any multiplayer game that runs through the server is going to use some resources.

SledgeHammer101 12-28-2007 07:12 PM

wouldn't it be possible to make it all in flas so that it is not using the database for getting the data from ?
I think this is a big problem if you have a big board where many users are online. we use a server only for our forum, and our database has alot of resources that can be used but it still pushes down the whole performance of our board while only 4 users are playing. the performance was down that you nearly couldn't reach our website. and loading a single site needs up to 6 or 8 seconds which is way to much.
i realy like the casino and if this problem could be fixed I would love to install it and make it accessable for all of our users. I would really like to help with this, but my programming skills are too bad. do you see any chances for fixing this problems ?

ezurick 12-28-2007 08:41 PM

Quote:

Originally Posted by Andrew Green (Post 1410865)
The Numbers used, how many numbers get drawn, the range on those numbers and the ticket price. Also it will adjust over time based on how many tickets have been bought.

The reason I am asking is... I am using vbcredits. I run this wednesdays (it defaults to 11pm). I've been using it for about 6 weeks... My forum members and myslef seen the jackpot get up to over 5000... there has never been a winner, but after that drawing and no winner, the jaclpot went down to 1200 something for the next drawing. So it is not holding the balance or allowing the balance to carry forward. Can admins get control of that jackpot balance for the lottery please? It is getting some folks upset cause they see no winner, but the jackpot goes down... and they are calling that unfair... and I agree!

Robert Paulson 12-29-2007 03:02 AM

Quote:

Originally Posted by dodgeboard.com (Post 1410888)
Not quite.

I'd be dead by now if hearing the same question over and bloody over again could hurt me.:D

Actually, I feel sorry for those poor saps that are unable to help themselves. How can they even run a vBulletin site?

I hear ya!

dodgeboard.com 12-29-2007 03:17 AM

Quote:

Originally Posted by Robert Paulson (Post 1411177)
I hear ya!

This kind of says it all here...

(rule #2)

Robert Paulson 12-29-2007 03:48 AM

Quote:

Originally Posted by dodgeboard.com (Post 1411187)


bwahahaa!!!! :D

Atwal 12-29-2007 08:06 PM

vBulletin Message

A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:

* Bitfield Collision: prefixrequired = credits_cantearn

What do I do?

Andrew Green 12-29-2007 09:42 PM

That doesn't look like it has anything to do with the casino?

kylek 12-29-2007 10:03 PM

No it has to do with vbcredits and the latest release of 3.7.0 betas.

punchbowl 12-30-2007 04:43 PM

Quote:

Originally Posted by Andrew Green (Post 1410952)
Yes, but all is a as little as it can get away with from as small of tables as it can get away with. I will look at optimizing it as much as I can, but I don't expect a huge difference. You can turn the delay time up, which will cut that back a little. But any multiplayer game that runs through the server is going to use some resources.

how about using sockets?

http://forum.tufat.com/showthread.php?t=25042

Andrew Green 12-30-2007 10:14 PM

Just to confirm, there is a bug in the lottery, has to do with how the odds are calculated which throws the JP off. This is fixed in my development version, so next update it will be gone. Replace existing file (includes/cron/ folder) with attached to solve it now, won't show fixed until a new draw is created.

ezurick 12-30-2007 11:08 PM

Quote:

Originally Posted by Andrew Green (Post 1412231)
Just to confirm, there is a bug in the lottery, has to do with how the odds are calculated which throws the JP off. This is fixed in my development version, so next update it will be gone. Replace existing file (includes/cron/ folder) with attached to solve it now, won't show fixed until a new draw is created.


Thanks Andrew... I updated with this, but now my Lottery is stuck on charging 2 credits when I have it set for 10. I refreshed over and over... I ran the Lottery Draw task manually... still stuck on 2. I know it was set and changed on 10 prior to this... I am not sure what happened...

Also, we started to try the Sports Betting in Casino on some football games. I settled them, but I can not see how what the jackpot is or how it was distributed. Me as the admin can't even see what a user won or lost. Is there plans to change this in your new version?

Thanks...

Andrew Green 12-30-2007 11:27 PM

Until the existing draw is over a new one won't get created.

paldo 12-31-2007 01:36 AM

i just upgraded and lost all my big chips .. it goes to 10 bucks thats it

Andrew Green 12-31-2007 04:28 AM

Go to the game settings and turn them on.

paldo 12-31-2007 08:01 AM

they are on ;) thats the first thing i checked

paldo 12-31-2007 08:09 AM

ok i went in and reset all the chips and clicked update settings now the entire area to set chip values is gone from the admin panel and still 10 bucks is as high as the chips go the last thing you see in settings is as far as it goes

https://vborg.vbsupport.ru/

DieselMinded 12-31-2007 08:40 AM

Got multiple Database errors Last Night

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT sum(bet) AS bet, sum(won) AS won, cs1.switch2
FROM casino_settings AS cs1
LEFT JOIN casino_settings AS cs2 ON cs1.switch1 = cs2.switch1
LEFT JOIN casino_bet_stats ON cs1.switch1 = gameid
WHERE cs1.settingname = 'gamename'
AND cs2.settingname = 'gameactive'
AND cs2.switch2 = '1'
GROUP BY gameid;

MySQL Error : The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
Error Number : 1104
Date : Monday, December 31st 2007 @ 02:54:13 AM
Script : http://www.dieselbombers.com/casino.php
Referrer :
IP Address :
Username :
Classname : vb_database

Any Fix?

ezurick 12-31-2007 01:48 PM

Quote:

Originally Posted by Andrew Green (Post 1412272)
Until the existing draw is over a new one won't get created.

Yes, I understand that... but the ticket amount won't change until the new drawing? That's strange... Shortly after I installed the Casino I set it at 10. I refreshed my browser and went to the Casino Lottery and it showed 10. All I done was updated this latest file and ran the lottery task... I noticed that the ticket amount is now 2. I went to the settings and it is 10. I resaved it, refreshed my browser and went back to the Casino lottery and it is still 2. It is like it doesn't care what the admin settings are... I shouldn't have to wait until a new drawing to change the amount of the ticket, right?

Andrew Green 12-31-2007 04:16 PM

Quote:

Originally Posted by paldo (Post 1412482)
ok i went in and reset all the chips and clicked update settings now the entire area to set chip values is gone from the admin panel and still 10 bucks is as high as the chips go the last thing you see in settings is as far as it goes

They've just moved, the acp got restructured, look under "Casino -> Game Settings".

Quote:

Originally Posted by DiesellMinded (Post 1412492)
Got multiple Database errors Last Night

Need to add a index to switch1 in the casino_settings table, this can be done through phpmyadmin. Will also set the next update to do it on install.


Quote:

Originally Posted by ezurick (Post 1412643)
Yes, I understand that... but the ticket amount won't change until the new drawing? That's strange... Shortly after I installed the Casino I set it at 10. I refreshed my browser and went to the Casino Lottery and it showed 10. All I done was updated this latest file and ran the lottery task... I noticed that the ticket amount is now 2. I went to the settings and it is 10. I resaved it, refreshed my browser and went back to the Casino lottery and it is still 2. It is like it doesn't care what the admin settings are... I shouldn't have to wait until a new drawing to change the amount of the ticket, right?

When the admincp got reworked all of the settings reverted to their defaults, chips in use, names, descriptions and lottery settings. That's why it is back to 2.

You also cannot change a draw once it has been started, changes always effect the next draw created, never ones that are already up. The reason is, lets say the ticket price is 1, I but 10 tickets, you change the ticket price to 10, this effects jackpots and has other people paying more then I did for the same tickets. Another problem is lets say I pick the numbers 10, 15 & 23. Then you go and change the number range to 1-15, yet I have a ticket with 23 on it.

Raptor 12-31-2007 06:19 PM

Superb mod - my members love it !

I only have one problem - Texas Hold 'Em worked when i first installed. Once i posted to the board for people to test EVERYONE (inc me) gets the message "This game is AJAX powered and requires javascript to be turned on"

I also see others with this same problem - any help is appreciated

My setup:
vb 3.6.4
Vista / IE7

DieselMinded 12-31-2007 08:41 PM

Quote:

Need to add a index to switch1 in the casino_settings table
What Query do i send to the database im getting 10 of these database emails every 12 hours

DieselMinded 12-31-2007 10:02 PM

Re: What did you do to do this
Quote: Originally Posted by DieselMinded
Quote: Originally Posted by MEMBER
Quote: Originally Posted by DieselMinded
Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT sum(bet) AS bet, sum(won) AS won, cs1.switch2
FROM casino_settings AS cs1
LEFT JOIN casino_settings AS cs2 ON cs1.switch1 = cs2.switch1
LEFT JOIN casino_bet_stats ON cs1.switch1 = gameid
WHERE cs1.settingname = 'gamename'
AND cs2.settingname = 'gameactive'
AND cs2.switch2 = '1'
GROUP BY gameid;

MySQL Error : The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
Error Number : 1104
Date : Monday, December 31st 2007 @ 06:46:05 PM
Script : http://www.dieselbombers.com/casino.php?
Referrer : http://www.dieselbombers.com/
IP Address : ipipipipipip
Username : MEMBER
Classname : vb_database


????

Did you get an error in the casino a little bit ago?


Ya I had $70 and tried to bet $100

ezurick 01-01-2008 06:41 AM

Quote:

Originally Posted by Andrew Green (Post 1412724)
When the admincp got reworked all of the settings reverted to their defaults, chips in use, names, descriptions and lottery settings. That's why it is back to 2.

You also cannot change a draw once it has been started, changes always effect the next draw created, never ones that are already up. The reason is, lets say the ticket price is 1, I but 10 tickets, you change the ticket price to 10, this effects jackpots and has other people paying more then I did for the same tickets. Another problem is lets say I pick the numbers 10, 15 & 23. Then you go and change the number range to 1-15, yet I have a ticket with 23 on it.

Hi Andrew... Ok, that makes sense. I'll wait until the next drawing for it to change to the correct amount.

Is there a quick fix to remove games that are not active from the Casino menu? I thought you had this fixed at one time... not sure, but I don't use the Texas Hold 'em... and it is annoying to have users constantly ask about it cause it is on the Casino menu, but when they click it, they get the typical vb error of not having permission.

Thanks for your great Mod! And Happy New Year!!!

ezurick 01-01-2008 07:45 AM

Quote:

Originally Posted by ezurick (Post 1413042)
Hi Andrew... Ok, that makes sense. I'll wait until the next drawing for it to change to the correct amount.

Is there a quick fix to remove games that are not active from the Casino menu? I thought you had this fixed at one time... not sure, but I don't use the Texas Hold 'em... and it is annoying to have users constantly ask about it cause it is on the Casino menu, but when they click it, they get the typical vb error of not having permission.

Thanks for your great Mod! And Happy New Year!!!


Andrew! Help! I just setup a Sports Bet for the NFL playoffs... AFC and NFC having multiple games for each. I saved them and refreshed my browser... Now I get a database error with no details. How frustrating. I can't do anything because of this error. I can't even get into my adminCP... anything I do I get a database error.

[Edit] Andrew... Nevermind. I figured it. I needed to change something in my config.php file so the admin could change the admin user account... I uploaded it and didn't realize it had the wrong database name in it... False alarm... Sorry....

Derekclarke 01-01-2008 03:05 PM

is it possible to add more games.... like No limit holdem?

Andrew Green 01-01-2008 03:51 PM

Quote:

Originally Posted by DiesellMinded (Post 1412846)
What Query do i send to the database im getting 10 of these database emails every 12 hours

No query, do it through phpmyadmin.

Select the table, it will show the structure, beside each field there will be a bunch of little boxes, click the one that says "index"

DieselMinded 01-01-2008 06:28 PM

Quote:

An index has been added on switch1 (Query took 0.0037 sec)
Thanks Sir

towermatt 01-01-2008 10:50 PM

I have a bit of a weird problem. In my casino, I have all the chips set up and I can see them.

It does not allow me to choose the 500 and 100 for some reason. That is as high as it goes and its just those two.

I combed the settings and couldn't figure it out. I also unchecked and rechecked all, after that re saved the overall casino settings.

EDIT--Sorry, I figured it out. Table limit field.

chrisdaman77 01-02-2008 12:23 AM

I love this. I just wanted to add that so far this is working fine with 3.7 beta 3.


All times are GMT. The time now is 11:01 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.06097 seconds
  • Memory Usage 1,857KB
  • 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
  • (27)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