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)

Blacura 08-21-2009 06:21 PM

its working now.. thanks

Digital Jedi 08-22-2009 04:37 AM

I'm gettting a Fatal Error while the product is active/installed:

Quote:

Fatal error: Call to undefined function can_administer() in /***********/public_html/cogonline/forums/language.php on line 29
What does the default language.php file in my forum root directory have to do with the Gameroom?

Andrew Green 08-22-2009 05:28 AM

Quote:

Originally Posted by Digital Jedi (Post 1871978)
I'm gettting a Fatal Error while the product is active/installed:



What does the default language.php file in my forum root directory have to do with the Gameroom?

Nothing at all... where are you getting that?

imported_silkroad 08-22-2009 11:52 AM

Quote:

Originally Posted by imported_silkroad (Post 1871685)
Hey Andrew,

Your Chess game does not enforce the "cannot castle through check rule".....

seen screenie with chat, attached.

FWIW,

The PHP Chess code might a some code ideas for how to fix this bug:

http://pear.php.net/package/Games_Chess/download/1.0.0

edgegamers 08-22-2009 03:58 PM

I can't seem to get images working in IE7 or FF...

Gameroom is uploaded as follows:
http://www.edgegamers.org/forums/gameroom.php
http://www.edgegamers.org/forums/gameroom/images/

All images are broken in this configuration.

As an attempted fix, I uploaded the "gameroom" folder to http://www.edgegamers.org/gameroom and set one of the poker chips to "/gameroom/images/chip-1.gif" - now all images are broken except for that single chip.

What have I done wrong in the directory structure to cause images to not display? Flash drives me absolutely nuts because I cannot see what it's even attempting to load from. Help would be appreciated.

Edit:
I fixed the issue. I had to modify the "gameroom" template in vBulletin. By default, it looks for the .swf files from your forum root. For whatever reason, these .swf files were placed in the /gameroom folder in the zip. Moving these to the root folder fixed the issue.

imported_silkroad 08-22-2009 06:16 PM

1 Attachment(s)
Update:

I hacked the Chess program and added algebraic chess notation to the chat area when playing.

It is not finished, I still need to add (will do lately when I have time .... :
  • "x" for capture
  • "+" for check.
  • "=" for promotion
.


But the basic is done and dusted, as the say...

a2 a3
Nb1 c3 etc. is working

See debug screen shot.

:D

COL NIL SATIS 08-22-2009 06:46 PM

brilliant this is...were do i put this on my site ..im very new to vbulletin so please bare with me!!

imported_silkroad 08-22-2009 07:52 PM

1 Attachment(s)
Quote:

Originally Posted by imported_silkroad (Post 1872237)
Update:

I hacked the Chess program and added algebraic chess notation to the chat area when playing.

It is not finished, I still need to add (will do lately when I have time .... :
  • "x" for capture
  • "+" for check.
  • "=" for promotion
.


But the basic is done and dusted, as the say...

a2 a3
Nb1 c3 etc. is working

See debug screen shot.

:D

Hmmmm.... basically I got a long form of the notation done, including capture, check and promotion.

Screenie attached ....

COL NIL SATIS 08-22-2009 08:01 PM

all very good and cool but how do you add it too your site lol ?? please speak to me as if i am 3 on this cos i dont know what i am doing at present lol...!!!

Devil Woman 08-22-2009 10:27 PM

Hi there, I have just recently added this onto my site, all seems to be working great apart from the betting, I have added new events to the betting but I do not seem to be able to see any of the open events.

Any help is greatly appreciated

Thanks

Digital Jedi 08-23-2009 05:18 AM

Quote:

Originally Posted by Andrew Green (Post 1871994)
Nothing at all... where are you getting that?

The whole board shuts down with that message, for some reason.

imported_silkroad 08-23-2009 05:30 AM

1 Attachment(s)
Quote:

Originally Posted by Andrew Green (Post 1871648)
Should be in the tools folder

It's not in any folder.... certainly not in the tools folder. You did not upload it. see attached.

Andrew Green 08-23-2009 07:00 AM

Quote:

Originally Posted by COL NIL SATIS (Post 1872289)
all very good and cool but how do you add it too your site lol ?? please speak to me as if i am 3 on this cos i dont know what i am doing at present lol...!!!

Follow the instructions in the readme file ;)

Greek76 08-23-2009 01:01 PM

Looks great but I'll hold off until problems are fixed..

ArnyVee 08-23-2009 02:02 PM

Once the chess options are updated (to show/track moves) and the checkers and other board/card game(s) are released (premium version), then I'm going to be diving right in with this one! :up:

RedeemedWarrior 08-23-2009 03:53 PM

can this be used on a shared server, aka cpu usage?

imported_silkroad 08-23-2009 06:09 PM

FYI, Andrew,

I was mod'ing your code in class_boardgame.php, making it so our view of the board games includes games which are not active (using gameroom_board_game.winner in db WHERE clause) and noticed that you have a conflict in your code with gameroom_board_game.gameName (using that for the cute name you give a game) and $gameName (the variable you use in HTML output to hold "Chess" or "Reversi" or other game).

I was able to get my mod to work correctly only when I deconflicted the "gameName" variable used in two different ways. Not sure why the conflict exists, but it does exist. I found other errors too, FYI.

Digital Jedi 08-23-2009 10:07 PM

Hrm, same fatal error even with the new update.

Code:

Fatal error:  Call to undefined function can_administer() in /****/****/public_html/cogonline/forums/language.php on line 29

Megatr0n 08-23-2009 10:20 PM

Hi Andrew,

Does this new update include the User Activity link being moved to the phrase system?

Plus, do we have to upload all the files for this update or only certain ones?

Andrew Green 08-24-2009 01:46 AM

Quote:

Originally Posted by Digital Jedi (Post 1872961)
Hrm, same fatal error even with the new update.

Code:

Fatal error:  Call to undefined function can_administer() in /****/****/public_html/cogonline/forums/language.php on line 29


Try disabling the banner plugins, those are the only things that can effect every page. That said, nothing touches either that file or that function anywhere in my code, so I'm guessing... I suspect you have another plugin or modification that is not playing nice with mine.

Digital Jedi 08-24-2009 02:06 AM

Quote:

Originally Posted by Andrew Green (Post 1873068)
Try disabling the banner plugins, those are the only things that can effect every page. That said, nothing touches either that file or that function anywhere in my code, so I'm guessing... I suspect you have another plugin or modification that is not playing nice with mine.

Hopefully, nobody will be on tonight so I can test that.

Aren't you're admin tools outside the ACP? When enabled I can't get to any part of the forum.

tandy 08-24-2009 08:02 AM

Thank you very much for this update and for all your work.

imported_silkroad 08-24-2009 08:49 AM

Hi Andrew,

Thanks for this release and for being so responsive to the community. I think I will purchase the commercial version as well, just for the chess rankings :-)

I have made quite a few mods to the the vb.org (free) version, including (1) removing time limits for chess game (game start and play timouts), (2) adding long algebraic chess notation, and (3) showing inactive games in the board display.

Question: What Chess notation are you using? Do you mind to toss up a screen shot?

Thanks!

PS: I was considering an option to use either long notation or short notation. Also, I am going to log these moves into the database and make it so when someone rejoins the game , the log of prior moves is displayed in the game chat.

inciarco 08-24-2009 12:39 PM

After Uploading the Files and Updating and Overwriting the Product, when trying to access the "gameroom.php" File appears an Error Message: :( :confused:

"RSL Error 1 of 1"

"Error #2032"

Previous Version Works Fine but this New One don't.

I Hope this can be Fixed.

My Best Regards.

:)

inciarco 08-24-2009 12:52 PM

I Overwrited the "gameroom.swf" File of the Previous Version (the one of August 11th), and it Loaded the Gameroom, so the Problem is with that Particular File. :confused:

I Hope You Can Fix It, I noticed that the New File has 516 KB and the Previous One had 793 KB (the one that works fine), so something is missing in the New File or is Not Linking Well with some Change in the Latest Update. :confused:

I'm Using it with vB373 PL1.

My Best Regards.

:)

macc 08-24-2009 01:01 PM

Quote:

Originally Posted by inciarco (Post 1873335)
After Uploading the Files and Updating and Overwriting the Product, when trying to access the "gameroom.php" File appears an Error Message: :( :confused:

"RSL Error 1 of 1"

"Error #2032"

Previous Version Works Fine but this New One don't.

I Hope this can be Fixed.

My Best Regards.

:)

I think that you must upload files from framework.zip in your forum root and your gameroom should work fine!

regards
macc

imported_silkroad 08-24-2009 04:08 PM

Quote:

Originally Posted by imported_silkroad (Post 1873232)
..... I am going to log these moves into the database and make it so when someone rejoins the game , the log of prior moves is displayed in the game chat.

The first half was easy, just added a new db field move to table gameroom_board_game_log and added the move to the log update dB query.

The next part is a lot more tricky :confused: I think, off hand, the best approach is to create a new type sysMsg function that writes the moves to the chat window on demand. "On demand" means that the system will look at the chat messages in the gameroom, and if the chat "GETMOVES" (or something like that) when that will be interpreted as a command and it will read the moves out of the dB and then post then to the game chat area.

Maybe even an optional number of moves, like GETMOVES 10 (that defaults to ALL when an optional number argument is not present).

The more I think about it, I think adding a simple chat-system-command interpreter is maybe the best way to go...... :D

Andrew Green 08-24-2009 04:19 PM

Quote:

Originally Posted by inciarco (Post 1873335)
After Uploading the Files and Updating and Overwriting the Product, when trying to access the "gameroom.php" File appears an Error Message: :( :confused:

"RSL Error 1 of 1"

"Error #2032"

Previous Version Works Fine but this New One don't.

I Hope this can be Fixed.

My Best Regards.

:)

You need those framework files, pulling those out is what reduced the file size, that way they are cached by flash player (and are used across many flash apps) so users only need to download them once, then never again.


Quote:

Originally Posted by imported_silkroad (Post 1873492)
The first half was easy, just added a new db field move to table gameroom_board_game_log and added the move to the log update dB query.

The next part is a lot more tricky :confused: I think, off hand, the best approach is to create a new type sysMsg function that writes the moves to the chat window on demand. "On demand" means that the system will look at the chat messages in the gameroom, and if the chat "GETMOVES" (or something like that) when that will be interpreted as a command and it will read the moves out of the dB and then post then to the game chat area.

Maybe even an optional number of moves, like GETMOVES 10 (that defaults to ALL when an optional number argument is not present).

The more I think about it, I think adding a simple chat-system-command interpreter is maybe the best way to go...... :D

Right now they are storred in the chat logs, as userID '-1', which is what is used to filter them out when they are turned off. Match chatid and pull all entries by userid -1 and you should have what you are looking for. Right now it automatically pulls all messages from the last 2 minutes when you enter a room, if you modify that to also pull any that have a userid of -1 you should get what you want.

As for the notation, it is expanded to make sense to people that don't know chess notation. You get the letters / numbers on the screen and messages like "Rook a4-b4"

imported_silkroad 08-24-2009 04:45 PM

Quote:

Originally Posted by Andrew Green (Post 1873497)
Right now they are storred in the chat logs, as userID '-1', which is what is used to filter them out when they are turned off. Match chatid and pull all entries by userid -1 and you should have what you are looking for. Right now it automatically pulls all messages from the last 2 minutes when you enter a room, if you modify that to also pull any that have a userid of -1 you should get what you want.

As for the notation, it is expanded to make sense to people that don't know chess notation. You get the letters / numbers on the screen and messages like "Rook a4-b4"

Whoo.... perfect. Thanks!

Great, that means I can purchase your commercial version (demand more support, :D LOL) and rebuild my mods in class_boardgame.php that displays the inactive games (finished games) in the boardroom view, and with a little more work, a user could easily pull up an old game and review the moves, if they wanted too... Great!

Also, since you log the board positions as well, it is not much work to add a REPLAY command and a STEP or NEXT command via a chat-interpreter :-)

I think a simple chat-interpreter can add a lot of value :-)

Cheers and thanks again for the last update. I will try it soon, when I am "in the mood" to recode the necessary mods into the new version. I am a very bad PHP programmer, so I don't know how to make vB hooks.... :D

imported_silkroad 08-24-2009 04:54 PM

1 Attachment(s)
Hey Andrew,

I just noticed there is no user ID in the chatlog and the logs seem to be aggressively pruned. So, I am not sure that the chatlog is the ideal place for a "moves" database. I agree that the chatlog needs to be pruned, so I think it might be best to log the moves in the game_board_game table along with their cvs buddies :D

The alternative to not prune the chatlog and fix the bug/issue with no userID being correctly logged in the chatlog dB seems to make the alternative of simply using the board_game_log more attractive and efficient.

Screenshot ....

Andrew Green 08-24-2009 04:55 PM

As you have figured out, all board positions are logged. This served too purposes, tracking draw conditions and giving me the ability to add the ability to replay games later on.

From what you are saying I don't think you are going to have a ideal result. If games stay in hte list after ending you are very quickly going to end up with a very large list that will be hard to navigate, not to mention it only allows users who played a game to reenter a game that has started, so most of the list would be useless to most people.

imported_silkroad 08-24-2009 05:55 PM

Well, we currently don't have anyone playing board games, except our "debug games" so, if the list becomes large, then that is a different problem. I can expire them over time, etc.

Our users would like to see the results of finished games. It is pointless to play a game and then have it disappear "forever"... what happens if a forum member was watching the game and then had to do something, then he comes back, and nothing! That is really a terrible setup. There is no way we will implement the current "games disappear forever" setup, ROTFL.

We like our users at our forums :-)

inciarco 08-25-2009 03:14 AM

Quote:

Originally Posted by macc (Post 1873346)
I think that you must upload files from framework.zip in your forum root and your gameroom should work fine!

regards
macc

Thank You Very Much macc for your Help. I Uploaded the Files on that Zip File on the Root of the Forum Directory and now the gameroom.swf File is working Fine.

My Best Regards.

:)

cad2go 08-25-2009 08:11 PM

Auto deal in poker please.

Overall it's very buggy. Come have a game sometime:D

It's laughable. Doesn't payout on hands, skips peoples calls, the works.

pm for url (full version)

Flex Error #1001: Digest mismatch with RSL http://www.xxxxxx.com/forum/framework_3.3.0.4852.swf. Redeploy the matching RSL or relink your application with the matching library

tourney feedback
Quote:

1. if you win a hand it doesnt always give you the pot
2. if someone leaves the dealer button might completely dissapear
Quote:

People were calling 10x pre flop raises with A2. Need to get that fixed.
Quote:

When xxx left, who was after me, I had to check after everybody else's turn.
Quote:

Good feedback people. That no dealer thing is annoying as fxxk. Also xx went all in versus me and I was still asked if I wanted to raise and was able to too.
Quote:

Originally Posted by xx
When I went all in it was still asking me to check or fold on every street.

Quote:

i was seeing the flop before i betted
Quote:

Jesus it is bug ridden.

cad2go 08-25-2009 08:34 PM

no dealer button ffs!

Quote:

By the way I was last to leave the room.... I left the table and then joined again and the dealer button "appeared"..... if thats any help???
:D

Andrew Green 08-26-2009 03:06 AM

Quote:

Originally Posted by cad2go (Post 1874319)
Auto deal in poker please.

Overall it's very buggy. Come have a game sometime:D

It's laughable. Doesn't payout on hands, skips peoples calls, the works.


Well, I've played hundreds of hands in testing, and never had it skip a player or fail to payout. If you can provide more specific information on the state of the game when this occurred, preferably with a screenshot and a description of what happened and what should have happened I will have a much easier time verifying the error, and fixing it.

Quote:

Flex Error #1001: Digest mismatch with RSL http://www.xxxxxx.com/forum/framework_3.3.0.4852.swf. Redeploy the matching RSL or relink your application with the matching library
Gotta follow the instructions and put those framework files up. Without them, you get that error.

As for this:
Quote:

if someone leaves the dealer button might completely dissapear
If the dealer leaves it goes to the next person.


Quote:

By the way I was last to leave the room.... I left the table and then joined again and the dealer button "appeared"
Which it should, you can't deal, but if you are the only one there you are the dealer.

cad2go 08-26-2009 08:51 AM

Quote:

Originally Posted by Andrew Green (Post 1874537)
Well, I've played hundreds of hands in testing, and never had it skip a player or fail to payout. If you can provide more specific information on the state of the game when this occurred, preferably with a screenshot and a description of what happened and what should have happened I will have a much easier time verifying the error, and fixing it.



Gotta follow the instructions and put those framework files up. Without them, you get that error.

As for this:


If the dealer leaves it goes to the next person.




Which it should, you can't deal, but if you are the only one there you are the dealer.

We all left because the deal button disappeared. There were 5 at the table when it happened. It only reappeared when 4 of us left.:D

Anyway I'll do the bug reports over at vbgaming in future. Have you ever tried a 6+ player game of poker there btw? why not arrange one sometime for proper testing if you don't believe my bug reports.

imported_silkroad 08-26-2009 09:21 AM

Quote:

Originally Posted by cad2go (Post 1874629)
We all left because the deal button disappeared. There were 5 at the table when it happened. It only reappeared when 4 of us left.:D

To help Andrew (since this is free and so we should make debugging easier for him), it would be helpful if you could post screenshots of when images disappear, etc.

When a developer is giving away free software, and then folks post bugs with information the developer cannot easily see, it slows down development progress for all concerned.

So, next time you see some bug, please take a quick screen capture or two and upload them.

Cheers.

cad2go 08-26-2009 09:32 AM

Quote:

Originally Posted by imported_silkroad (Post 1874642)
To help Andrew (since this is free and so we should make debugging easier for him), it would be helpful if you could post screenshots of when images disappear, etc.

When a developer is giving away free software, and then folks post bugs with information the developer cannot easily see, it slows down development progress for all concerned.

So, next time you see some bug, please take a quick screen capture or two and upload them.

Cheers.

I'm testing the paid version hence why I mentioned I'd post over at vbgaming in future.

goxy63 08-27-2009 12:45 AM

Users who are using hack "Chief First Post - Every Page [Forum Based]" will have problem to display cash in postbit/postbit legacy on some settings within mentioned mod
Is it posible to get this fixed?

Or even better and without messing with other mods.... just to display cash in user profile within mini statistisc block on bottom, for me that would be best as I already got lots of stuff within postbit...(how to do that?)

Great mod

Nominated, rated, installed

Cheers


All times are GMT. The time now is 03:40 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.02054 seconds
  • Memory Usage 1,873KB
  • 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
  • (2)bbcode_code_printable
  • (30)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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