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)

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 ....


All times are GMT. The time now is 05:03 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.01958 seconds
  • Memory Usage 1,758KB
  • 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_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
  • (10)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