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 09-29-2007 10:00 PM

Casino (w/ 10 player poker)
 
The Gameroom is the follow up to this, and expands on its features. This mod will no longer be supported, Gameroom is here: https://vborg.vbsupport.ru/showthread.php?t=219483

This is a casino addition for vBulletin, so far containing video poker, blackjack, Slots, a lottery, Let 'em Ride, Roulette and a betting pool.

It can use it's own cash as well as cash fields from other products for easy integration. Cash bonuses are also awarded for various actions (posting, starting threads, etc.), you can alter the bonus values through the admincp.

Each of the 10 games can be turned on or off through the control panel, and the casino can be restricted by user group.

I'd consider this a test run, everything should work, but some of the template's and all of the phrasing are not done yet.

Screenshots are attached.

If you want to see a demo, it's live at http://vbgaming.org, it does require registration though as it needs a userid to attach your money too ;) Bug reports and requests can also be posted there, and will probably have less chance of getting buried in this rather massive thread. If you are having a problem, please look there. If it is one that others have been having, there will likely be a solution there (as well as in this thread, just harder to find here)

v 0.90 (Jan 6)
- Fixed a bug in lottery odds calculation that was casuing problems with the jackpot.
- Completed Phrasing of all games & admincp
- Removed card flicker some people experienced in Texas Hold'em
- Removed unused table limit setting from Video Poker settings
- Handled a DB error that occasionally came out of the slots game
- Sports Pool groups are now edited through the game, not the admincp
- Blackjack: Dealer checks for blackjack on A or 10
- Blackjack: Added Five card charlie rule
- Texas Hold'em: poker mod groups can now use the command "/kick username" to kick people out of the game. If a hand is in progress it counts as a forced fold, not returning their share of the pot.
- Blackjack - Fixed bug on bet amount when splitting more then once on a hand

v 0.91 (Jan 13)
- Added missing field for holdem mod groups to settings table
- Removed 0.90 test code of drawin same numbers in lottery
- Piped all the ajax files through casino.php, this should solve some of the conflicts people where having (ex. mkportal)
- Added missing link to add / edit groups in sports pool
- Fixed extra \'s in chatbox some users where getting
- Added a reset cash button in the ACP
- Fixed a bug where the blackjack_dealt table wasn't getting cleared properly
- Fixed "Most Lost" stat calculation


v 0.92 (Feb 18)
- Fixed Default Cash not saving
- Texas Hold'em no longer shows hand after folding
- Texas Hold'em buttons should not reappear after clicking if a request was in progress when they where clicked
- Fixed some of the reinstall issues people have been having

This is pretty minor, working on some major changes to the Texas Hold'em game that are taking longer then I planned due to other things coming up.

Known issues:
- The same player attempting to play more then one instance of the same game at the same time will cause errors.

To update overwrite all of the old files and import the product, revert any modified (casino) templates and don't forget the files in other folders ;) Also some of the images have changed, those need uploaded again. (as well as the includes and admincp files) You DO NOT need to uninstall the previous version to upgrade, this will cause problems. Just overwrite existing files and import the product again, allowing overwrite.

**Make sure you overwrite ALL existing files and revert ALL casino templates**

gbml4u 09-30-2007 10:23 PM

first installed. thx u so much

iogames 09-30-2007 10:28 PM

Wooow! LIK-IT! :D
but I will wait for 0.2 version :P

have you seen Xuqa.net? they have poker rooms... how can this be done?

Men this smell as a MotM ;)

Andrew Green 09-30-2007 10:36 PM

Quote:

Originally Posted by iogames (Post 1350470)
Wooow! LIK-IT! :D
but I will wait for 0.2 version :P

have you seen Xuqa.net? they have poker rooms... how can this be done?

Men this smell as a MotM ;)

I plan on getting a multiplayer poker game in there, but don't ask for a timeline ;)

Masiello 09-30-2007 10:41 PM

Oh great! waiting for a stable version!
Multiplayer is awesome!

SuperTaz 09-30-2007 11:08 PM

I will wait for a more stable version to add to my gaming site.

iogames 09-30-2007 11:08 PM

Quote:

Originally Posted by Andrew Green (Post 1350473)
I plan on getting a multiplayer poker game in there, but don't ask for a timeline ;)

I won't ask if you tell me when :P

Kaleem 09-30-2007 11:58 PM

clicking install to get future updates will watch it :)

stangger5 10-01-2007 12:56 AM

Has anyone got this install ??

I get the first page working fine but when you try to play a game,,,I get red X`s and a box that just says loading...

Andrew Green 10-01-2007 01:27 AM

Do you have javascript enabled?

and does it happen on all 4?

stangger5 10-01-2007 01:33 AM

Yes for both...

Andrew Green 10-01-2007 01:37 AM

Quote:

Originally Posted by stangger5 (Post 1350543)
Yes for both...

Do other AJAX features work for you?

stangger5 10-01-2007 01:43 AM

Yes..

Andrew Green 10-01-2007 01:58 AM

Something is conflicting with the code amber banner. Sticking that on my site broke it there as well...

stangger5 10-01-2007 02:04 AM

I just took everything out of the footer template...It didnt help...

If you look on thefulcrumpoint.org and the disturbed_x skin,,you`ll see what i`m talking about...
I have it set for non registered members can see...

stangger5 10-01-2007 02:08 AM

The first page is fine...click on Video Poker and see what happens...Look at the links in the Nav bar after that....it puts casino in front of everything...

Andrew Green 10-01-2007 02:13 AM

Quote:

Originally Posted by stangger5 (Post 1350559)
I just took everything out of the footer template...It didnt help...

If you look on thefulcrumpoint.org and the disturbed_x skin,,you`ll see what i`m talking about...
I have it set for non registered members can see...

Skin looks like it is the problem, you got header info going in twice. On line 489 of the source you got this:

HTML Code:

<html dir="ltr" lang="en">
<head>
<title>Homepage </title>


and it starts over again with the header info.

stangger5 10-01-2007 02:23 AM

I`m trying it on anther skin without anything in the footer...Still get the same thing..
I`ve tried disabling different plugins hopeing it was one of them,,no help yet..

kylek 10-01-2007 03:13 AM

Just installed to 3.6.8 and set for vbcredits. The main casino.php page shows but when you click on a game it just says loading.

QsKGlobal.com 10-01-2007 03:15 AM

I'm very interested in this hack, clicked install, now lets see a stable version!

trackpads 10-01-2007 03:24 AM

Installed but how comes there is blackjack in the demo screenshots but not in the game?

trackpads 10-01-2007 03:27 AM

Never mind, I had the other casino installed, now installing this one :)

Andrew Green 10-01-2007 03:30 AM

Found the problem with it not loading, I have some paths hardcoded into templates that I forgot I changed, vbulletin doesn't really care for having things outside of the main forum folder.

Temporary fix:

in headinclude:

change
HTML Code:

<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>

to:

HTML Code:

<script type="text/javascript" src="/forum/clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="/forum/clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>

replacing "/forum/" with whatever folder your forum is in.

kylek 10-01-2007 03:45 AM

That fixed it for me, the only thing I cant seem to show is the lottery, playing with the settings right now. Looks good though.

stangger5 10-01-2007 03:58 AM

My forum and everything is in the root folder...I renamed the index.php file to forum.php..
Theres no forum folder..

Andrew Green 10-01-2007 04:02 AM

Quote:

Originally Posted by stangger5 (Post 1350602)
My forum and everything is in the root folder...I renamed the index.php file to forum.php..
Theres no forum folder..


then just add a "/" in front ;)

ex:
HTML Code:

src="/clientscript/vbulletin_global.js?v=$vboptions[simpleversion]">

Andrew Green 10-01-2007 04:03 AM

Quote:

Originally Posted by kylek (Post 1350599)
That fixed it for me, the only thing I cant seem to show is the lottery, playing with the settings right now. Looks good though.

Ok... I know why, I'll stick a fix up tomorrow.

kylek 10-01-2007 04:20 AM

Quote:

Originally Posted by Andrew Green (Post 1350605)
Ok... I know why, I'll stick a fix up tomorrow.

Other than the lottery problem, this is cool, members are going to love this!!

Where do you change the percentages for the lottery? If you have it set for 3 balls right now it looks like 3/3 gets 50 %, 2/3 gets 50% and 1/3 gets 0

Andrew Green 10-01-2007 04:25 AM

Quote:

Originally Posted by kylek (Post 1350613)
Other than the lottery problem, this is cool, members are going to love this!!

Where do you change the percentages for the lottery? If you have it set for 3 balls right now it looks like 3/3 gets 50 %, 2/3 gets 50% and 1/3 gets 0

those percentages are misleading, that's not 50 percent of the pot, it also takes odds into account on that. It's more of a internal modification thing to keep the payout balanced that probably shouldn't be shown outside of testing purposes.

The Minimum payout is a better number to look at. But basically you have odds x percent = payout. In the end it should work out to about 100% payout overtime regardless of what numbers you put in for # of balls and range on them.

stangger5 10-01-2007 04:59 AM

Quote:

Originally Posted by Andrew Green (Post 1350604)
then just add a "/" in front ;)

ex:
HTML Code:

src="/clientscript/vbulletin_global.js?v=$vboptions[simpleversion]">


That fixed the loading problem...I still see a few red X`s...

stangger5 10-01-2007 05:02 AM

I tried to uninstall it so I could try to install it again...See if something got messed up on the install...
When uninstalling...I get a data base error...

Invalid SQL:
ALTER TABLE user DROP 'casino_cash';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''casino_cash'' at line 1
Error Number : 1064

HarryBO 10-01-2007 10:25 AM

Installed but don´t work. I can´t play any game. Only the Loading screen shows up.

...Still waiting 4 a running version...

Andrew Green 10-01-2007 12:56 PM

Quote:

Originally Posted by HarryBO (Post 1350703)
Installed but don?t work. I can?t play any game. Only the Loading screen shows up.


...Still waiting 4 a running version...

Did you adjust the "headinclude" as shown in the 1st post?

Andrew Green 10-01-2007 01:17 PM

Will try to do a update with all things that have come up so far fixed.
- Lottery not loading the first draw
- messing up paths to vb files / images from being in a separate folder
- SQL error on uninstall.

Anyone getting anything else?

bazzup 10-01-2007 01:35 PM

this looks good andrew cheers

iogames 10-01-2007 08:38 PM

Quote:

Originally Posted by Andrew Green (Post 1350752)
Will try to do a update with all things that have come up so far fixed.
- Lottery not loading the first draw
- messing up paths to vb files / images from being in a separate folder
- SQL error on uninstall.

Anyone getting anything else?

Kudos! you're heading the right way...:up:

acegames 10-01-2007 08:46 PM

Looks great , but I will wait for a stable version , hope thats real soon

Andrew Green 10-02-2007 03:21 AM

0.11 Update should fix all of the problems that have been brought up.

stangger5 10-02-2007 04:04 AM

Double click on the casino/blackjack.html file....lol....

Andrew Green 10-02-2007 04:10 AM

Quote:

Originally Posted by stangger5 (Post 1351149)
Double click on the casino/blackjack.html file....lol....

lol... opps... a debugging secret leaks...

I'll just get that out of there...


All times are GMT. The time now is 06:25 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.03193 seconds
  • Memory Usage 1,829KB
  • 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_html_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (2)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