vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - The Gameroom - Multiplayer gaming (follow up to Casino) (https://vborg.vbsupport.ru/showthread.php?t=219483)

Andrew Green 07-25-2009 10:00 PM

The Gameroom - Multiplayer gaming (follow up to Casino)
 
1 Attachment(s)
For vb 4.x: https://vborg.vbsupport.ru/showthread.php?t=239817

This is a late-Beta, it has been tested fairly extensively and all the big kinks should be worked out. That said, once this hits more sites a couple other bugs are bound to work themself out. It works going back at least as far as the 3.6 branch of vBulletin, not sure about 3.5.

This is the free version of The Gameroom by http://vbgaming.org, the follow up / expansion of the Casino plugin for vBulletin. It improves the multiplayer gaming aspects by bringing in more games, and allowing users more options when starting and joining games. Included is a upgrade script for transfering your stats from the Casino to the Gameroom.

Multiplayer games are played live, with embedded chatrooms

Features include:

- Lobby
--- Chatroom for arranging games

- Solo Games
--- Blackjack
--- Let it Ride
--- Roulette
--- Video Poker
--- 3 different slot machines

- Texas Hold'em
--- Multiple tables
--- Customize blinds and rules when creating a game
--- Passwords for private games
--- vBulletin avatars in game
--- Alert sounds to notify to alert you when it is your turn

- 7-Card Stud
--- Multiple tables
--- Set Ante
--- Passwords for private games
--- vBulletin avatars in game
--- Alert sounds to notify to alert you when it is your turn

- Chess
--- Standard chess rules, with legal moves enforced.
--- Alert on Check and Checkmate
--- Tracking of the 50-move rule and Threefold repetition rule
--- Passwords for private games

- Reversi (aka Othello)
--- Legal moves enforced.
--- Passwords for private games

- Statistics
--- Redesigned offering graphs and sortable datagrids

- Betting
--- Module can be turned off if not in use
--- pool bets, where the bets are added together and dived amongst the winners

- Optional status bar
--- Choice of flash or html bar
--- Placed in main template
--- Shows current gameroom status (open multiplayer games, messages can be sent from within, # of open bets in betting module)

- Cash Bonuses for actions that benefit your site
--- Posting
--- Starting threads
--- Referalls
--- Daily sign in
--- Giving rep
--- Recieving Rep
--- Voting
--- Rating threads


August 1st - 0.9.8
- Added Settings to admin section
- Reversi board colours can now be changed
- Reset stats option
- Delete event option (event must be closed & settled first)
- Reduced cpu load of chess and reversi
- Blackjack - Added Surrender option
- poker - players with no money cannot continue
* Update -> upload & overwrite, import product file


0.9.9

- Added volume control
- Added "/buzz" chatroom function
- Added alert to user entering room
- Added audio alert to 'check' in chess
- Fixed bug with getting list of games when certain tabs are dissabled
- Fixed get games timer not shutting off properly when switching tabs
- Fixed decimals in poker when using different cash type
- Fixed names with certain characters messing up stats
- Fixed bug that caused "start game" box to uncheck if you entered a message
- Adjust cash can use userid / usergroupid as well as name
- Not logged in screen in language (can be translated / edited)
- The user that imports the product file is made a admin & mod, rather then using "1" as a default
- cash type to 64-bit value in flash component (for those with really high values)
- Poker time out is set up. You have 60 seconds to act, then forced fold. Warning buzzer and countdown starts at 20 seconds remaining
* Update -> upload & overwrite, import product file


August 3rd (0.9.9RC)
- Update cash in solo games and betting on enter & transfer
- Change event listener on colour selectors in settings, makes it stick properly.
- Theme colour updates on the fly when changed, so you can see what things will look like as you adjust it.
- Fixed a glitch in the board games that would bring text into the game chatroom from the Lobby chat room.
- Fixed a bug relating to the board games when other sections had been turned off
- Added payout chart to game screen for Slots, Video Poker & Let it ride
- Border changes with theme color

1.0.0
- Fixed up some language things
- Added a plugin to cache the html banner templates

1.0.1
- Bug: checkmate on promotion
- Bug: poker all in led to dropping player early
- Bug: foreign language fixes
- Bug: Double posts in chatrooms
- Bug: Update betting cash on tab click
- Bug: Poker Blinds go into pot, even if player can't make them
- Status bar colour updates with Theme
- Possible outcomes in betting up from 8 to 18

Note: There is a 2mb upload limit, so the flash banner came out of the main .zip which finally pushed itself over 2mb.



1.1.1


1.1.1
- Bug: Double entries on betting resolved
- Bug: Fixed error when two players tie with full house
- Bug: Top Poker Players stats displays properly
- Bug: User name colours in lobby now 'stick'
- Edit language is now a tree view, default phrase displays properly
- in game & add game phrases for poker are now in language
- "Players" phrase in Flash Banner reacts to changes in language
- Default Cash is now editable
- Disabled Hooks on XML calls, may improve speed slightly, decrease chances of conflict
- Can override general usertype permissions for each group of games
kjack push when both player & dealer have a blackjack
- Chatroom 'flicker' on new message
- castle through check
- Add users in gameroom count to link
- Seperated framework, Flash caches this once, and only once. Resulting in a smaller file size everytime after the first. It is cached across sites as well, so there is a good chance most people already have it ;)
- Roulette history was showing '37' when it landed on '0'
- Chess - Optional grid labels / moves in chat box

Updating:
1) Upload the framework files, they should go into the main forum folder with the .swf files folder. You will only need to do this once, which is why they are in a seperate file.
2) Upload the files in the main package, make sure everything overwrites old copies.


*********************************
** Common Problems **
*********************************

Non-english letters are not working properly
This is a problem with flash player and has been in there bug tracker for a long time. The workaround is to edit the "gameroom" template, remove the line that ways "wmode='transparent'", the downside it your popup menus will come up behind the flash box, rather then in front of it.
Images are working in IE, but not in Firefox
You likely have some form of image hot linking turned on, it is causing the requests for the images to be blocked.
Locked self out of admin panel
In the tools folder there is a file called 'makemeadmin.php', upload this and go to that page. It will make you admin, don't leave it on your server when you are done.
Updated and it is acting funny
Make sure all of your files are up to date. When you update ensure that all files are overwritten. Having mix matched files will cause funny behaviour. You may also have to clear your cache and reload the page after uploading a new gameroom.swf file.

*********************************
** Uninstall **
*********************************

If you want to uninstall the following procedure will get you through it without tossing any DB errors:

1) Dissable the product, this shuts down all the plugins. If the files are removed and plugins are still active you may see errors on your site.

2) Undo the template changes, changes where made to the navbar template and the postbit / postbit legacy template.

3) Delete all files. If the files are still present and you remove the database entries by uninstalling the product anyone that attempts to access one of them will cause a error. The Flash Banner could cause many as it could still be making calls after the template changes are undone.

gameroom.php
gameroom.swf
gameroomBanner.swf
gameroom/*
includes/cron/gameroom_nightly.php


4) Uninstall the product file, which removes all database entries, that means the following are removed:

tables with 'gameroom_' as a prefix
gameroom_cash field within the user table

SnapOff Racing 07-26-2009 07:54 AM

Installed. Thanks.

Anyway to change the purplish color to black?

Andrew Green 07-26-2009 07:55 AM

Settings file ;)

By_OkT@Y 07-26-2009 07:55 AM

Thanks

macc 07-26-2009 08:00 AM

Thanks!

Tried to get default message and maked change in language - banner but message come not up?
and how adjust time (wait time) for some game which user made?
some help?

macc

SnapOff Racing 07-26-2009 08:06 AM

Also, I'm having issues while playing chess. It won't let me or the kid I'm facing click on 'start game' and we cannot move pieces...I've allowed all usergroups in the settings.php file.

Edit:

while joining the game it says empty vs empty as well.

macc 07-26-2009 08:12 AM

Quote:

Originally Posted by SnapOff Racing (Post 1855604)
Also, I'm having issues while playing chess. It won't let me or the kid I'm facing click on 'start game' and we cannot move pieces...I've allowed all usergroups in the settings.php file.

same problem too ... and how get time in 24 hours format?

apiasto 07-26-2009 10:44 AM

nice ,but how you play chess ?where can you get more games for this,thanks

DangerousDale 07-26-2009 11:03 AM

Same issue for the board games, thanks for the mod looking good!!

Not sure why its not seeing the players usernames, is it something to do with permissions?

vijayninel 07-26-2009 11:57 AM

Quote:

Originally Posted by SnapOff Racing (Post 1855604)
Also, I'm having issues while playing chess. It won't let me or the kid I'm facing click on 'start game' and we cannot move pieces...I've allowed all usergroups in the settings.php file.

Edit:

while joining the game it says empty vs empty as well.

Exactly the same problem here.

DonHouston 07-26-2009 01:16 PM

will install after the chess fix :)

Andrew Green 07-26-2009 02:30 PM

Sorry about that folks, I was trying to squeeze everything into the 2mb limit and took out something important. Just re-upload the .php files, no need for the other stuff or the product file.

skol 07-26-2009 02:35 PM

Thanks Andrew,I know as with casino we had to change the casino_currency_marker to change
$ to £,How do we change it now..Thanks.

Andrew Green 07-26-2009 02:41 PM

Quote:

Originally Posted by skol (Post 1855897)
Thanks Andrew,I know as with casino we had to change the casino_currency_marker to change
$ to ?,How do we change it now..Thanks.

admin tab -> edit language

Hasann 07-26-2009 02:42 PM

vauww Excellent Andrew Thanks Can you Add the Online Backgammon?

Andrew Green 07-26-2009 02:44 PM

Quote:

Originally Posted by Hasann (Post 1855904)
vauww Excellent Andrew Thanks Can you Add the Online Backgammon?

I would have to write it first.

macc 07-26-2009 02:49 PM

nice - thanks again .. how change time to 24 hours ?

regards

macc

Andrew Green 07-26-2009 02:52 PM

Quote:

Originally Posted by macc (Post 1855912)
nice - thanks again .. how change time to 24 hours ?

regards

macc

Which time are you looking at? Right now there is no setting to change time format.

g0dfather1984 07-26-2009 03:14 PM

Excellent mod! If you can ever add checkers, please do so! Otherwise thanks!

macc 07-26-2009 03:26 PM

Quote:

Originally Posted by Andrew Green (Post 1855915)
Which time are you looking at? Right now there is no setting to change time format.

mean in gameroom - it shows pm and am - will have 24 hours ...

macc

SnapOff Racing 07-26-2009 03:54 PM

after re-upping the files you've attached it will only let my opponent make a move in chess, but not me. it now says the correct names of who is playing, though.

Andrew Green 07-26-2009 04:03 PM

Quote:

Originally Posted by SnapOff Racing (Post 1855949)
after re-upping the files you've attached it will only let my opponent make a move in chess, but not me. it now says the correct names of who is playing, though.

Is it showing as your turn? (Your name is bold) Can you select your pieces? (When you click on them the square turns blue)

skol 07-26-2009 04:31 PM

Quote:

Originally Posted by Andrew Green (Post 1855902)
admin tab -> edit language

Thanks again..Is there a code for ? sign. I tried shift pound sign but all get is this #

Andrew Green 07-26-2009 04:39 PM

Quote:

Originally Posted by skol (Post 1855962)
Thanks again..Is there a code for ? sign. I tried shift pound sign but all get is this #

I think you mean on your keyboard? I just copy and pasted it in and it worked.

skol 07-26-2009 05:03 PM

Quote:

Originally Posted by Andrew Green (Post 1855965)
I think you mean on your keyboard? I just copy and pasted it in and it worked.

lol..Why didn't i think of that..Thanks again,I liked casino but this is much better.Clicks installed.

Raptor 07-26-2009 06:16 PM

If this is the "Free" version - what do you get with the paid for version ?

Andrew Green 07-26-2009 06:25 PM

Quote:

Originally Posted by Raptor (Post 1856011)
If this is the "Free" version - what do you get with the paid for version ?

Poker games can use Spread, pot limit or no limit betting. You can set up a stake (players buy in for 100) with a multiplier on it (buy in for 100, multiplier = 100, players play with 10000 chips)

Board games can use time control (Blitz, standard, increment), and optionally the ranking system (ELO)

Betting component can used fixed moneyline odds, rather then just a pool.

Additional games will go into the paid one, but likely not this one.

Bounce 07-26-2009 06:39 PM

How can I change the colour of the room box?

Andrew Green 07-26-2009 06:43 PM

Quote:

Originally Posted by hIBEES (Post 1856022)
How can I change the colour of the room box?

Settings file, you can theme it to whatever colour you want.

McCarroll21 07-26-2009 07:07 PM

Is there a way to make the gameroom box stretch to fill the entire page?

kawe 07-26-2009 07:11 PM

1 Attachment(s)
getting error on flash

what is it ?

Bounce 07-26-2009 07:12 PM

Quote:

Originally Posted by Andrew Green (Post 1856025)
Settings file, you can theme it to whatever colour you want.

thanks bud :up:

kawe 07-26-2009 07:13 PM

deleted

andie215 07-26-2009 07:15 PM

Quote:

Originally Posted by Andrew Green (Post 1855902)
admin tab -> edit language

when i add ? to the new phrase in admin and press export language it saves a file called
importLanguage.php but the $ sign stays the same,, sorry im useless at this :o
Am i doing something wrong ?

andie215 07-26-2009 07:18 PM

Quote:

Originally Posted by andie215 (Post 1856038)
when i add ? to the new phrase in admin and press export language it saves a file called
importLanguage.php but the $ sign stays the same,, sorry im useless at this :o
Am i doing something wrong ?


Ignore that, as said i pasted the change into the language.php:o:up: and its fine...

Bounce 07-26-2009 07:25 PM

What more do you get for paid version?

This is the dugs bollocks :D

kylek 07-26-2009 07:35 PM

Is there admincp settings?

Bounce 07-26-2009 07:41 PM

Quote:

Originally Posted by kylek (Post 1856052)
Is there admincp settings?

yes, edit the settings.php to include your user ID, admin is available through the gameroom.php page :up:

HTML Code:

/*
 * List of UserIDs who have special priveledges.
 * Admin users can
 *                - add / settle events in the sports pool
 *                - use the cash adjuster
 *                - edit language
 * Too add multiple users seperate by comma:
 * $this->adminIDs = array(1, 2, 3);
 * 
 */
$this->adminIDs = array(1);


zombietom 07-26-2009 07:44 PM

Does this work with VB Credits? and do i need to remove vbCasino?

thanks

Andrew Green 07-26-2009 07:46 PM

Quote:

Originally Posted by McCarroll21 (Post 1856032)
Is there a way to make the gameroom box stretch to fill the entire page?

Nope, the size is fixed so that things stay in the proper place. If you want to give it a try you can edit the dimensions in the gameroom template for the embedded flash file (set to 100%) but it will probably look funny

Quote:

Originally Posted by hIBEES (Post 1856045)
What more do you get for paid version?

This is the dugs bollocks :D


Poker games can use Spread, pot limit or no limit betting. You can set up a stake (players buy in for 100) with a multiplier on it (buy in for 100, multiplier = 100, players play with 10000 chips)

Board games can use time control (Blitz, standard, increment), and optionally the ranking system (ELO)

Betting component can used fixed moneyline odds, rather then just a pool.

Your logo in the lobby.

Additional games will go into the paid one, but likely not this one.

Quote:

Originally Posted by kylek (Post 1856052)
Is there admincp settings?

No, the settings are stored separately.


Quote:

Originally Posted by andie215 (Post 1856041)
Ignore that, as said i pasted the change into the language.php:o:up: and its fine...

Your best bet is to do it through the admin tab, but you don't need to export. The export is if you want to export all of your changes and import them somewhere else (ie translating to another language).

Making the change in the language.php file will work, but if the file gets updated you have to make any changes you made again.


All times are GMT. The time now is 05:52 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.01748 seconds
  • Memory Usage 1,853KB
  • 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
  • (1)bbcode_html_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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