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)

wolfyman 01-06-2008 01:34 PM

I just split aces, got two blackjacks, and then pushed when the dealer dealt a 3 card 21.

:(

Andrew Green 01-06-2008 04:40 PM

Quote:

Originally Posted by wolfyman (Post 1416500)
Can somebody help me fix this please? The links are the same color as the background :P

It has to do with your table background color matching your link color, I've switched that background to use alt1 rather then the table background for the next update which will clean that up.

Quote:

Originally Posted by wolfyman (Post 1416502)
I just split aces, got two blackjacks, and then pushed when the dealer dealt a 3 card 21.

:(

Blackjack after a split is not considered blackjack, just 21.

wolfyman 01-06-2008 07:38 PM

Quote:

Originally Posted by Andrew Green (Post 1416618)
It has to do with your table background color matching your link color, I've switched that background to use alt1 rather then the table background for the next update which will clean that up.



Blackjack after a split is not considered blackjack, just 21.

well then, I guess you learn something new every day. Thanks :D

When is the next update expected?

Andrew Green 01-07-2008 12:51 AM

Quote:

Originally Posted by wolfyman (Post 1416733)
When is the next update expected?

A few minutes ago :D

Freesteyelz 01-07-2008 03:26 AM

Sweet! Thanks, Andrew. :)

*Since the roulette part of the mod didn't seem to change (based on the updates) can I leave the modified templates for it?

Andrew Green 01-07-2008 03:41 AM

Yes, nothing there changed.

Freesteyelz 01-07-2008 11:02 AM

Thanks, Andrew. :)

I just upgraded and noticed a few things.

1) Let's say I have a betting event with 3 options: Yes, No and Maybe. When editing I noticed that always the last option, in this case "Maybe" fills up the rest of the options that were originally left blank.

2) Secondly, if I make a mistake while adding an event such as not selecting a group, then all of my entries get cleared. I have to re-enter all of the information. Shouldn't the entries be left untouched?

3) While #1 may be a possible bug and #2 a normal behavior, my next question might seem silly but I'll take a chance anyway :D. I can add events but how do I go about adding groups?

4) In the last version and previous versions I noticed that Event Groups could not be deleted. They could merge with another group, however.



Can these issues be confirmed? :)

Andrew Green 01-07-2008 12:58 PM

Quote:

Originally Posted by Freesteyelz (Post 1417070)
Thanks, Andrew. :)

I just upgraded and noticed a few things.

1) Let's say I have a betting event with 3 options: Yes, No and Maybe. When editing I noticed that always the last option, in this case "Maybe" fills up the rest of the options that were originally left blank.

2) Secondly, if I make a mistake while adding an event such as not selecting a group, then all of my entries get cleared. I have to re-enter all of the information. Shouldn't the entries be left untouched?

3) While #1 may be a possible bug and #2 a normal behavior, my next question might seem silly but I'll take a chance anyway :D. I can add events but how do I go about adding groups?

4) In the last version and previous versions I noticed that Event Groups could not be deleted. They could merge with another group, however.



Can these issues be confirmed? :)

Editing groups looks like a missing link, go to: casino.php?do=sportspool&action=editgroups to add / edit.

In my test I didn't get the effect you get for #1, but I'll try a few other things when I have more time.

tigrattack 01-07-2008 05:47 PM

Hi,

I'm getting this error when importing the product:

Invalid SQL:
ALTER TABLE user ADD casino_cash integer default 250;

MySQL Error : Duplicate column name 'casino_cash'
Error Number : 1060

I've deleted all the casino referrences in sql, any ideas?

Thanks

sandt38 01-07-2008 05:57 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

http://img242.imageshack.us/img242/8018/casinoed2.jpg

Quote:

Originally Posted by Andrew Green (Post 1412724)
They've just moved, the acp got restructured, look under "Casino -> Game Settings".

Andrew, I have the same issue, only I don't see casino -> game settings in my adminCP

https://vborg.vbsupport.ru/external/2008/01/40.jpg

I tried to reload my admincp files manually, but no go.

**edit**Nevermind it changed after a few minutes.

Andrew Green 01-07-2008 06:00 PM

Quote:

Originally Posted by tigrattack (Post 1417303)
Hi,

I'm getting this error when importing the product:

Invalid SQL:
ALTER TABLE user ADD casino_cash integer default 250;

MySQL Error : Duplicate column name 'casino_cash'
Error Number : 1060

I've deleted all the casino referrences in sql, any ideas?


Thanks

It means you still have a "casino_cash" field in your user table, you can remove it through phpmyadmin.

tigrattack 01-07-2008 06:04 PM

Quote:

Originally Posted by Andrew Green (Post 1417316)
It means you still have a "casino_cash" field in your user table, you can remove it through phpmyadmin.


It's not there...I even did a search and it came up empty :(

Andrew Green 01-07-2008 06:08 PM

pretty sure it's there, would likely be the last column in the table.

But you can also do this, find these lines in the product_casino.xml file (line 140 / 141)

Code:

$query = "ALTER TABLE ". TABLE_PREFIX . "user DROP casino_cash";

$db->query_write(($query);


and delete them, then try importing the product again.

tigrattack 01-07-2008 06:23 PM

Quote:

Originally Posted by Andrew Green (Post 1417321)
pretty sure it's there, would likely be the last column in the table.

But you can also do this, find these lines in the product_casino.xml file (line 140 / 141)

Code:

$query = "ALTER TABLE ". TABLE_PREFIX . "user DROP casino_cash";

$db->query_write(($query);


and delete them, then try importing the product again.


Still getting the same error :erm:

Since I'm using an outside credit system (vbcredits), can I delete this line:

$query = "ALTER TABLE ". TABLE_PREFIX . "user ADD casino_cash integer default 250";
$db->query($query);

I deleted that line and it imported fine...thanks

skcyber 01-07-2008 07:37 PM

thank you very much andrew ! it works nice

this hack is better every update ! :D

wolfyman 01-07-2008 08:17 PM

no known issues with the new update?

punchbowl 01-07-2008 08:26 PM

Seems a lot snappier now.

One minor thing is the table just seems a bit big especially in hold'em. Could we tighten it up easily or is that a major thing?

Andrew Green 01-07-2008 08:31 PM

Quote:

Originally Posted by wolfyman (Post 1417396)
no known issues with the new update?

Only thing I've heard back so far is a missing link on the add event page, should point to the new add / edit groups page. It's located here: casino.php?do=sportspool&action=editgroups

Quote:

Originally Posted by punchbowl (Post 1417402)
Seems a lot snappier now.

One minor thing is the table just seems a bit big especially in hold'em. Could we tighten it up easily or is that a major thing?

Not much, 10 players on the screen is going to take up a fair bit of room no matter how it's laid out. The entire board is visible on 1024x768, can always hit the full screen button as well to get a little more. But I don't have any plans to try and shrink it beyond that.

punchbowl 01-07-2008 08:45 PM

Quote:

Originally Posted by Andrew Green (Post 1417403)
Only thing I've heard back so far is a missing link on the add event page, should point to the new add / edit groups page. It's located here: casino.php?do=sportspool&action=editgroups



Not much, 10 players on the screen is going to take up a fair bit of room no matter how it's laid out. The entire board is visible on 1024x768, can always hit the full screen button as well to get a little more. But I don't have any plans to try and shrink it beyond that.

i'm on 1280x800 and it doesn't - i have a couple of toolbars. No big deal at all just thought there was a bit of excess space up top.

Oh and if someones name is john's_mate then their name will appear as john\\'s_mate at the table and john\'s_mate in the text window.

Again very minor. Anyway I've left the members loose on it some if they can't break it no one can:D

I'd love the sporting pool to be thread based. People won't see the bets otherwise.

I'll probably give it a go on 3.7 in about 2 weeks too.

Great work and happy new year.

Freesteyelz 01-07-2008 10:16 PM

Quote:

Originally Posted by Andrew Green (Post 1417110)
Editing groups looks like a missing link, go to: casino.php?do=sportspool&action=editgroups to add / edit.

In my test I didn't get the effect you get for #1, but I'll try a few other things when I have more time.


In Template casino_sportspool_main I've changed (in red):

Code:

<if condition="! $recentevents">
<tr>
<td style='text-align:center' class='alt1'>
<a href='casino.php?do=sportspool&action=editgroups'>Edit Groups</a>
&nbsp;&nbsp;
<a href='casino.php?do=sportspool&action=addevent'>$vbphrase[casino_addevent]</a>
</td>
</tr>
</if>


Friendly suggestion: $vbphrase[casino_edit_group] should be added in next release. :)

----------------------

1) The #1 issue of edting events (adding the last option in all blank option fields) is confirmed (at least by me :D). I've done an upgrade, several fresh installs, dropped all Casino tables in process to start fresh with all the same result. *Attachments below.

2) I also confirmed that when adding an event and leaving out a required field (ex. didn't select group), the entries (questions and answers) are cleared.

----------------------

3) The ability to remove groups is non-existent.

----------------------

I've been testing it on vB versions 3.6.4, 3.6.8 and 3.7 Beta 3. :)

Again, I hope you don't mind my postings. I know you work very hard on this script and it's much appreciated. I just want to help if I can. :)

larrydavidow 01-08-2008 01:20 AM

I just upgraded to 90 and the screen flickers pretty badly in holdem. It never did this before. Also, the /kick feature is not working in holdem.

larrydavidow 01-08-2008 01:29 AM

Quote:

Originally Posted by larrydavidow (Post 1417509)
I just upgraded to 90 and the screen flickers pretty badly in holdem. It never did this before. Also, the /kick feature is not working in holdem.

The /kick feature isn't working because the Mod Usergroups field is not updating in the CP when I save it.

larrydavidow 01-08-2008 01:34 AM

Also, am I missing something here? I saw someone with a lot more links in their Casino drill down.

https://vborg.vbsupport.ru/

Freesteyelz 01-08-2008 01:45 AM

Those categories are correct. The only files needed in your /forum/admincp folder are:

casino_donate.php
casino_games.php
casino_settings.php

All other settings are handled in the Betting Pool itself. Make sure that in "Game Settings" you define the Usergroups with Admin rights for Betting Pool.

For the edit groups link check my edit somewhere in page 164 of this thread. :)

Andrew Green 01-08-2008 02:12 AM

Quote:

Originally Posted by larrydavidow (Post 1417514)
The /kick feature isn't working because the Mod Usergroups field is not updating in the CP when I save it.

I'll have a look, I might have added a row into the settings table manually and forgotten about it in the install file (works for me, so that's my guess)

Quote:

Originally Posted by larrydavidow (Post 1417516)
Also, am I missing something here? I saw someone with a lot more links in their Casino drill down.

http://davidows.dnsalias.com/casino.gif

No, yours is correct. The other entries are now handled directly in the game or within the pages you have. admincp went under a pretty big overhaul in the last couple updates.

punchbowl 01-08-2008 09:31 AM

Quote:

Originally Posted by punchbowl (Post 1417411)
i'm on 1280x800 and it doesn't - i have a couple of toolbars. No big deal at all just thought there was a bit of excess space up top.

Oh and if someones name is john's_mate then their name will appear as john\\'s_mate at the table and john\'s_mate in the text window.

Again very minor. Anyway I've left the members loose on it some if they can't break it no one can:D

I'd love the sporting pool to be thread based. People won't see the bets otherwise.

I'll probably give it a go on 3.7 in about 2 weeks too.

Great work and happy new year.

aloso apostrophes in donator cause a db error on donate

Database error in vBulletin 3.6.8:

Invalid SQL:
INSERT INTO casino_donatelog (fromuser, touser, amount, dtime) VALUES ('john's_mate', 'someone ', 1, 1199787777);

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 's', 'someone ', 1, 1199787777)' at line 1
Error Number : 1064
Date : Tuesday, January 8th 2008 @ 10:22:57 AM
Script : http://www.xxxxxxxxx.com/forum/casin...&donate=Donate
Referrer : http://www.xxxxxxxxxx.com/forum/casino.php?do=donate
IP Address : xxxxxxxxxx
Username : john's_mate
Classname : vB_Database

seems ok it i donate to john's_mate though.

john has an awful lot to answer for:D

ezurick 01-08-2008 09:44 AM

I upgraded from 8.1a to 9.0... everything went smooth and appears to be working ok! Great job Andrew! and great MOD!

Just a friendly reminder for the next version... if the admin could have more ability to control the Sports Bet. I am not sure how much this would entail, but we definately need a way to see what was won. I am using vbcredits... but there has got to be some way to see who won what on each bet/settle. I can't see anything but the total. I should be able to see who won what and how much after I settle the bet. I only see my own (if I bet). Another thing is if a user placed a bet incorrectly (believe me, I have users like this). The admin needs to be able to edit any bet... and perhaps the jackpot... or at least allow the admin to increase the jackpot.

Thanks.... ~ Ed

River_rush 01-08-2008 12:11 PM

Posts from members

Quote:

Originally Posted by Lead_foot (Post 22283)
Texas hold'em doesn't work for me. keeps saying " This game is AJAX powered and requires javascript to be turned on." but javascript is turned on. Anyone else getting this problem. The other games like blackjack works.

Get the same also. Clicking on the start game button does nothing either.

Quote:

Originally Posted by Adrian (Post 22294)
Video Poker hung on the first game as well. held a pair and nothing after clicking discard.

Could be to do with the javascript I guess. Or even the AJAX plugin.


any ideas?

wolfyman 01-08-2008 01:27 PM

Quote:

Originally Posted by punchbowl (Post 1417411)
I'd love the sporting pool to be thread based. People won't see the bets otherwise.

Interesting idea....

Quote:

Originally Posted by larrydavidow (Post 1417509)
I just upgraded to 90 and the screen flickers pretty badly in holdem.

Is anybody else having this issue? That's the main reason I want to upgrade, to get rid of the jumpy hold em page.

Quote:

Originally Posted by ezurick (Post 1417661)
I should be able to see who won what and how much after I settle the bet. I only see my own (if I bet). Another thing is if a user placed a bet incorrectly (believe me, I have users like this). The admin needs to be able to edit any bet... and perhaps the jackpot... or at least allow the admin to increase the jackpot.

Good ideas as well :)

Andrew Green 01-08-2008 01:32 PM

The flicker was completely eliminated for me, if anyone is having problems send me a link to your site so I can see why it's still happening.

River_rush 01-08-2008 01:50 PM

Quote:

Originally Posted by Andrew Green (Post 1417748)
The flicker was completely eliminated for me, if anyone is having problems send me a link to your site so I can see why it's still happening.

The link to my site is in my sig btw.

Andrew Green 01-08-2008 02:04 PM

Quote:

Originally Posted by River_rush (Post 1417756)
The link to my site is in my sig btw.

Your "casino/texasholdem.js" file is messed up, try reuploading that from the archive.

AndyA 01-08-2008 02:05 PM

Do you have any idea when this will become the full version ? :)

Andrew Green 01-08-2008 02:40 PM

Quote:

Originally Posted by AndyA (Post 1417765)
Do you have any idea when this will become the full version ? :)

When it's done, it's getting there, but there are still a few things to do. If I had to guess I'd say hopefully within a month or so, but that's just a guess.

wolfyman 01-08-2008 02:56 PM

upgrade to 0.9 = success. :)

Jimandbob 01-08-2008 03:22 PM

Quote:

Originally Posted by wolfyman (Post 1417785)
upgrade to 0.9 = success. :)

Seems fine here too :)

River_rush 01-08-2008 05:49 PM

Quote:

Originally Posted by Andrew Green (Post 1417762)
Your "casino/texasholdem.js" file is messed up, try reuploading that from the archive.

Thanks, I have done so, waiting for the masses to report back :)

ArchangelX 01-09-2008 01:50 AM

Hmm...my CRON jobs didn't get added in the Scheduled Tasks on the last update, for some reason. Can someone tell me what they are, and how they're supposed to be scheduled? Thanks.

Also, my lottery appears to be broken. No matter what I do, I can't get the lottery to change numbers from 3 to 5, and I can't seem to get it to draw...even after running the Casino_Lotta job manually. Any ideas?

ChU v2 01-09-2008 02:57 AM

Did I read in the thread that Texas Hold em' didn't work on 3.7?

Andrew Green 01-09-2008 03:23 AM

Quote:

Originally Posted by ArchangelX (Post 1418092)
Hmm...my CRON jobs didn't get added in the Scheduled Tasks on the last update, for some reason. Can someone tell me what they are, and how they're supposed to be scheduled? Thanks.


casino_lotto - daily, hour = 21, minute = 1
casino_update - daily, hour = 2, minute 45 (as long as this one runs daily, it doesn't matter when)

Quote:

Also, my lottery appears to be broken. No matter what I do, I can't get the lottery to change numbers from 3 to 5, and I can't seem to get it to draw...even after running the Casino_Lotta job manually. Any ideas?
Draws can't be changed once they are created. Would cause problems with tickets already purchased if you then changed the rules. So the changes will take effect after the current one finishes and the next one starts.

Quote:

Originally Posted by ChU v2 (Post 1418123)
Did I read in the thread that Texas Hold em' didn't work on 3.7?

I think someone said yes and someone else said no. I've not tried it, and likely won't until it gets out of Beta, unless this gets out of beta first, then maybe.


All times are GMT. The time now is 09:35 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.03388 seconds
  • Memory Usage 1,866KB
  • 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
  • (3)bbcode_code_printable
  • (31)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