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)

Richard1964 10-14-2007 09:31 PM

I deleted the Casino Folder from my server, then uploaded all the files (using overwrite) and everything is working perfectly.

I have the Admin Control Panel and everything works just as expected.

Thanks Andrew, brilliant stuff. Now, where are some of my Members to play Poker with :cool:

SBlueman 10-14-2007 09:35 PM

Did any of the scoring changes besides the payout line for the slots? I was getting some odd results in there.

sinisterpain 10-14-2007 09:36 PM

Quote:

Originally Posted by Tulsa (Post 1360065)
I've not tried this latest update yet but I am having multiple reports from people saying poker has been freezing (just staying on "loading") on them and one person said blackjack did. I looked in my error log and found this in relative time to the reports.


Code:

PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/local/php5-fcgi/lib/php') in /home/****/public_html/casino.php on line 66
PHP Warning:  require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/****/public_html/casino.php on line 66


Do you have a forum root directory?

SBlueman 10-14-2007 09:46 PM

Also....bananas are missing in the payout line in slots.

The payout for oranges is $20 for every $1. I bet $100 so I should get $2,000 but I am only getting $300 dollars.

Hornstar 10-14-2007 09:51 PM

An idea for improved slots. Instead of only having 1 slot machine where you are trying to please everyone. Why not have a slots room, where there are several machines the player can choose from, and then they can play the slot machine they like the best. this way more slot machines can be added over time, and it will add more fun to the slots part of the casino. eg. different designed slot machines, different odds, that previous idea of a Japaneses slot machine where the player can stop each rotation as they choose, etc.

acegames 10-14-2007 10:16 PM

Texas Hold Em is very popular with my members

They asked can they have an All In option for it please

Greek76 10-14-2007 10:30 PM

Looks great but I think Ill wait a little longer until its bug free...

FreeFall1 10-14-2007 10:32 PM

i tried to uninstall and it wouldnt let me now im getting a database error

Database error in vBulletin 3.6.7:

Invalid SQL:
CREATE TABLE casino_texasholdem_whoisin (whoisinid integer NOT NULL PRIMARY KEY auto_increment,
userid integer, seat integer, lastcheck integer, status integer, bet integer);

MySQL Error : Table 'casino_texasholdem_whoisin' already exists
Error Number : 1050
Date : Sunday, October 14th 2007 @ 07:30:47 PM

Tulsa 10-14-2007 10:38 PM

Quote:

Originally Posted by sinisterpain (Post 1360104)
Do you have a forum root directory?


Yes I do called forums.

hoopsta 10-14-2007 10:48 PM

dude this is sweet... I'll be sending you a donation soon.

It doesn't seem like the chatbox works.... does anyone else have that problem?

uploaded here: www.PointGuardU.com

sinisterpain 10-14-2007 11:28 PM

Secondary groups not working now

Hornstar 10-14-2007 11:45 PM

bug in blackjack: if you get for eg. 2 3's then you split them, then you get a 3 for the top one, you can split them again. I believe you are only meant to be able to split once right?

Hornstar 10-15-2007 12:17 AM

im still using the prior version to this latest update however I just got this database error in my email:
Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:

UPDATE casino_bet_stats
SET won = won + 0, bet = bet +
WHERE userid = 54612
AND gameid = 5;

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 'WHERE userid = 54612
AND gameid = 5' at line 3
Error Number : 1064
Date : Sunday, October 14th 2007 @ 08:11:42 PM

stangger5 10-15-2007 12:54 AM

The chat box in the Texas Hold Em isnt working right for me..

Cigarcritic 10-15-2007 12:58 AM

Lots of problems with Hold'em...

1. Players cards don't show. Hitting the submit button brings them up at times. Other times, typing text and Submit works. Maybe it's a refresh issue?
2. Players fold for no reason.
3. A player folded and I was still able to bet. I won the hand and money was taken from the folded player.
4. Waiting and Ready buttons and chat are sporadic.

Keep up the good work!!

stangger5 10-15-2007 01:06 AM

I`ve got about 30 data base errors and getting more...lol..

Code:

Invalid SQL:SELECT vbbux FROM jelsoft_user AS user WHERE userid =; 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 '' at line 1Error Number : 1064Date : Monday, October 15th 2007 @ 03:04:42 AMScript : http://www.thissite.com/casino/texasholdem_ajax.phpReferrer : http://www.thissite.com/casino.php?do=texasholdem

Ski-Whiz 10-15-2007 01:09 AM

Yeah, when I'm in the room, and we both hit ready, one gets kicked out..

I also get errors in my browser at the bottom..

Andrew Green 10-15-2007 01:25 AM

Quote:

Originally Posted by SBlueman (Post 1360110)
Also....bananas are missing in the payout line in slots.

The payout for oranges is $20 for every $1. I bet $100 so I should get $2,000 but I am only getting $300 dollars.


You need to upload and overwrite existing files. The banana is no longer on the wheel at all, so you are using the old image.

Andrew Green 10-15-2007 01:26 AM

Quote:

Originally Posted by Cigarcritic (Post 1360262)
Lots of problems with Hold'em...

1. Players cards don't show. Hitting the submit button brings them up at times. Other times, typing text and Submit works. Maybe it's a refresh issue?
2. Players fold for no reason.
3. A player folded and I was still able to bet. I won the hand and money was taken from the folded player.
4. Waiting and Ready buttons and chat are sporadic.

Keep up the good work!!

Did you reupload the cards folder? Player cards use a new set of images that weren't there before. Plus it uses a bunch of new buttons

Andrew Green 10-15-2007 01:31 AM

Quote:

Originally Posted by hoopsta (Post 1360153)
dude this is sweet... I'll be sending you a donation soon.

It doesn't seem like the chatbox works.... does anyone else have that problem?

uploaded here: www.PointGuardU.com


Seems to work for me (on your site) what's it doing and what browser are you using?

SBlueman 10-15-2007 01:32 AM

Quote:

Originally Posted by Andrew Green (Post 1360283)
You need to upload and overwrite existing files. The banana is no longer on the wheel at all, so you are using the old image.

Yeah I actually did miss the images. How about they payout issue though?

Andrew Green 10-15-2007 01:37 AM

looks right, except that with the right image file you would have seen different fruit in the results ;)

Andrew Green 10-15-2007 01:51 AM

Quote:

Originally Posted by Tulsa (Post 1360065)
I've not tried this latest update yet but I am having multiple reports from people saying poker has been freezing (just staying on "loading") on them and one person said blackjack did. I looked in my error log and found this in relative time to the reports.


Code:

PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/local/php5-fcgi/lib/php') in /home/****/public_html/casino.php on line 66
PHP Warning:  require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/****/public_html/casino.php on line 66


Quote:

Originally Posted by Tulsa (Post 1360148)
Yes I do called forums.

It looks like it's where you put it doing this, casino.php needs to be in the "forums" folder, otherwise it won't be able to find global.php.

sandt38 10-15-2007 01:52 AM

Quote:

Originally Posted by Andrew Green (Post 1360040)
what do you mean by gone? the options are not there at all?

If that is the case can you try this:

edit /includes/xml/cpnav_casino.xml

and change

<text>Texas Hold'em Setup</text>

too

<text>Texas Hold em Setup</text>

could just be the apostrophe...

Correct. Removing the apostrophe and replacing it with a space solved the dead adminPanel issue.

stangger5 10-15-2007 01:53 AM

In slots_ajax.php,,it has
Code:

        $getuserinfo = $db->query_read("
                SELECT $cashtype
                FROM  ". TABLE_PREFIX . "user
                WHERE userid = $userid
        ");
       
        $userinfo = $db->fetch_array($getuserinfo);
        $vcash = $userinfo[$cashtype];

In the texasholdem_ajax.php has,,,
Code:

        $getuserinfo = $db->query_read("
                SELECT $cashtype
                FROM  ". TABLE_PREFIX . "user as abc
                WHERE userid = $userid
        ");
       
        $userinfo = $db->fetch_array($getuserinfo);
        $cash = floor($userinfo[$cashtype]);

Could my errors be from the $cash ???

Andrew Green 10-15-2007 01:55 AM

Quote:

Originally Posted by stangger5 (Post 1360308)

Could my errors be from the $cash ???

No, just a different variable name. I used vcash in the first ones, the switched to cash...

GoTTi 10-15-2007 02:16 AM

can admins controll a users bankroll?

sandt38 10-15-2007 02:21 AM

In the Texas hold em chat, i cannot see some of the text. The conversation is visible, but i have to highlight the box to see the moves the individual has made. Where or how do i bold this?

Andrew Green 10-15-2007 02:24 AM

it is bolded, you probably have your body color set to white?

Andrew Green 10-15-2007 02:25 AM

Quote:

Originally Posted by GoTTi (Post 1360318)
can admins controll a users bankroll?

On there user info page you can manually set someones cash, you can also do mass resets and mass additions. (ex +$100 to everyone in usergroup 4)

Andrew Green 10-15-2007 02:28 AM

Quote:

Originally Posted by hornstar1337 (Post 1360197)
bug in blackjack: if you get for eg. 2 3's then you split them, then you get a 3 for the top one, you can split them again. I believe you are only meant to be able to split once right?

That was intentional, just depends on the table. Sometimes you can, other times not.

GoTTi 10-15-2007 02:29 AM

the uninstall for this is not working right. gives a mysql error

GoTTi 10-15-2007 02:30 AM

i would like all my users to start with $0 bankroll and have to donate to get funds on their casino. how can that be setup?

GoTTi 10-15-2007 02:36 AM

getting problems with this after uninstall. wont remove itself, and it wont overwrite itself to reinstall.

what do i need to remove from my mysql db to completely remove this mod from my forum?

GoTTi 10-15-2007 02:38 AM

ok i got it removed from deleting the casino cash field from users....

the uninstall needs some work. i have reinstalled it, please provide answers for my last few questions if you can.

1. can the cash amount be set to $0 for everyone? i rather have donating users or users donate to have playable funds in their account.

Andrew Green 10-15-2007 02:38 AM

Quote:

Originally Posted by GoTTi (Post 1360336)
getting problems with this after uninstall. wont remove itself, and it wont overwrite itself to reinstall.

what do i need to remove from my mysql db to completely remove this mod from my forum?

I am guessing you updated from .1 along the way?

uninstall code for the mod should have this next to .1 (product manager -> edit)

Code:

$query = "ALTER TABLE ". TABLE_PREFIX . "user DROP COLUMN 'casino_cash'";
$db->query($query);

$query = "DROP table casino_settings";
$db->query($query);

$query = "DROP table casino_vidpok_dealt";
$db->query($query);

$query = "DROP table casino_blackjack_dealt";
$db->query($query);

$query = "DROP table casino_sb_groups";
$db->query($query);

$query = "DROP table casino_sb_events";
$db->query($query);

$query = "DROP table casino_sb_outcomes";
$db->query($query);

$query = "DROP table casino_sb_bets";
$db->query($query);

$query = "DROP table casino_bet_stats";
$db->query($query);

$query = "DROP table casino_lotto_tickets";
$db->query($query);

$query = "DROP table casino_lotto_draw";
$db->query($query);


If you want to do it manually all of the tables that start with "casino_" as well as the casino_cash field from the user table need to be removed.

Andrew Green 10-15-2007 02:41 AM

Quote:

Originally Posted by GoTTi (Post 1360339)
ok i got it removed from deleting the casino cash field from users....

the uninstall needs some work. i have reinstalled it, please provide answers for my last few questions if you can.

1. can the cash amount be set to $0 for everyone? i rather have donating users or users donate to have playable funds in their account.

yes, sort of. The option to set that isn't built in, but can be done manually.

You need to change the default value for casino_cash from 250 to 0. Are you using phpmyadmin? it can be done through that fairly simply.

GoTTi 10-15-2007 02:46 AM

i registered a new account and it gave my new test account the default $250. how can that be set to $0????

Andrew Green 10-15-2007 02:49 AM

Quote:

Originally Posted by GoTTi (Post 1360346)
i registered a new account and it gave my new test account the default $250. how can that be set to $0????

Did you change the default value in your table?

GoTTi 10-15-2007 02:52 AM

on the slots if there is not enough cash, a prompt box pops up saying so....

can that be a option on all the games ? i see when a chip is clicked, it takes us to another page, i rather have the popup box.


All times are GMT. The time now is 05:55 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.02514 seconds
  • Memory Usage 1,840KB
  • 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
  • (6)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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