Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Play By Post Gaming Core Details »»
Play By Post Gaming Core
Version: 4.0-0.1 b4, by Carnage Carnage is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.x Rating:
Released: 01-11-2010 Last Update: 11-04-2010 Installs: 30
DB Changes Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

What does this do?
On its own this mod does NOTHING. It provides the Admin CP interface and common code for Play by post games.

What can I use it for?
There are two reasons why you might want to isntall this mod. The first and most common is that you wish to install one or more Play by post games for your forums. The second is that you want to develop your own play by post game.

What exactly IS play by post gaming/games?
The idea of a play by post game is that it is a game played by one or more of your forum members within a thread of your forum. A player makes a move by making a post containing the details of the move that they wish to make. As an example, take the chess plugin; this allows two members to play a game of chess beween them, each player in turn posts the piece they wish to move and where they want it to move to. The thread output gets turned into a chess board so that other members can see the game.

Features
  • Admin CP interface to configure games.
  • Admin CP interface to configure stats from games.
  • Allows assigning of games to forums.
  • When posting a new thread, members can pick between avaliable games to play.

Installation
1. Upload contents of upload folder.
2. Import product.
3. Find, download and install at least one PBPG compatible game.
4. Configure game and assign it to at least 1 forum.
5. I recomend turning off bbcode, smilies, images and post count in the forums you assign games to.

Uninstallation
1. Edit any forum with a configuration assigned; remove all the configurations.
2. Use the clear threads option (beta 2+) against each configuration to remove the config from threads. (the threads will revert to being normal forum threads)
3. Delete all configurations.
4. Uninstall all pbpg plugins.
5. Uninstall this product.

Changelog
  • 4.0-0.1 b4
    • Added statistics management tool. Any plugins which provide statistics can be managed by this tool, mapping stats into user profile fields.
    • Added some admin help to some areas; some work still needed.
    • Added comms support. This includes the basic tools for plugins to communicate with each other and store state.
  • 4.0-0.1 b3
    • Added install lib to simplify and unifiy plugin install code.
  • 4.0-0.1 b2
    • Changed select box to checkboxes for enabling plugins.
    • Added clear threads option to configuration to remove it from any threads its enabled on.
    • Product drops its own tables on uninstall.
  • 4.0-0.1 b1
    • Fixed bug with javascript in IE.
  • 4.0-0.1 a3
    • Added safety check to delete configuration. You can no longer delete a configuration thats in use.
    • Added a common directory for scripts and images common to one or more pbp game.
    • Fixed a bug that occured in threads that go beyond a single page when you are not viewing the last page.
  • 4.0-0.1 a2
    • Added ability to delete configurations
    • Phrased admin cp elements. (if anyone notices any missing let me know)
    • Cleaned up install code
    • Added uninstall code to revert changes to vbulletin tables only
    • Added redirect/error messages
  • 4.0-0.1 a1
    • Initial release

Notes
  • YOU MUST INSTALL AT LEAST ONE GAME FOR THIS MOD TO WORK. Games are posted in separate threads; I'll use the first post to keep a list of all the games that are avaliable.
  • If you intend to develop your own game, the API isn't finished or fixed yet, so hold fire for a while I'll also be putting some docs into the thread to assist with this.
  • Contents of ref folder in the zip are for referance, they list uploaded files and the database changes made in case you want to remove the mod.
  • Install lib file has been moved; some older versions of plugins may fail to find it, if this is the case update to the latest version of the plugin.

Download Now

File Type: zip PBP Gaming Core v4.0-01 Beta 4.zip (45.6 KB, 164 views)

Screenshots

File Type: jpg pbpgcore newthread.jpg (53.2 KB, 0 views)
File Type: jpg pbpgcore admin.jpg (49.8 KB, 0 views)
File Type: jpg pbpgcore configuration.jpg (38.0 KB, 0 views)
File Type: jpg pbpgcore forums.jpg (67.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-29-2010, 11:30 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can ctrl+click to disable the last config enabled on a forum
Reply With Quote
  #23  
Old 01-30-2010, 12:27 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Made a few changes to make it easier to remove unwanted pbpg plugins.

- Checkboxes instead of multi select field in forum manager
- Clear threads option to reset threads to normal threads
- Changed error when deleting a configuration to assist with where it needs to be removed from. (forums or threads)
Reply With Quote
  #24  
Old 01-31-2010, 04:17 AM
PGAmerica PGAmerica is offline
 
Join Date: Mar 2008
Posts: 405
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to see an addon that adds an RPG to the system. Like a Dungeons and Dragons game or something of that nature. How easy is it to create a game for this?
Reply With Quote
  #25  
Old 01-31-2010, 10:37 AM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Writing a dungeons and dragons mod would take a long time. D&D is also very copywrited so i'd not be able to release a direct copy.

My 3.8 forum uses a rpg mod based on the 3.0 rpg integration hack; I'm considering creating something based around that as an addon but thats not likely to happen for some time.

I've uploaded a skeleton plugin file. Things you need to do:

1. rename the directory they are in to your plugin name eg rpgsystem
2. open the two files and change the classnames to match the directory name eg rpgsystemPlugin and rpgsystemAdmin
3. insert a db row into pbpg_plugins containing rpgsystem as the dir and a friendly name for title eg RPG System.
4. Create a new product to go with the plugin for the purpose of holding templates phrases etc

The admin file is fairly simple to understand, I suggest you just take a look at one of my mods for how to make that work.

The plugin file contains three functions:

A constructor which is passed in the config settings saved by the admin. The default constructor will work but you may want to set defaults for values that haven't been set and setup the state of the game (eg the chess mod initiallises the board with the pieces in their starting places)

A public function parsePost it takes one argument the post array as fetched by vbulletin from the db, its called once for each post in the thread. It should essentially behaive as a state machine, changing the object state based on the contents of the post; you can again look at my mods on for examples of how I do this.

An output function, this function is called at the end of processing and its return value is used to replace the postbits part of a thread display. (this means you don't need to worry about navbar, footer etc) I used a template based on the postbit template for my UI's but this is totally upto you. If instead you want to stick a flash video in there showing the two combattants mauling each other, thats upto you.

I am tidying up the interfaces so the above information may change in a next release; the only change i'm considering at the moment is adding an ajaxOutput function or a parameter to the output function for returning content for ajax display but there may be other things based on bugs that need changing.
Attached Files
File Type: zip skeleton.zip (1.0 KB, 7 views)
Reply With Quote
  #26  
Old 02-05-2010, 05:28 PM
Jeremy8 Jeremy8 is offline
 
Join Date: Jan 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
5. I recomend turning off bbcode, smilies, images and post count in the forums you assign games to.
Reason?
Reply With Quote
  #27  
Old 02-05-2010, 06:37 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

post count is a simple one; playing a game of chess or similar requires in the order of 35 posts per player they may be made fairly rapidly over say half an hour, for any board that holds any value to the post count (eg usergroup promotions) will have things skewed by members playing lots of games.

bbcode, smilies and images aren't parsed by the comments display and may confuse the parsers in some of the games. The comments aren't supposed to be huge essays, a sentance or two perhaps but no more, bbcode and smilies aren't really required for them.
Reply With Quote
  #28  
Old 02-05-2010, 09:06 PM
Jeremy8 Jeremy8 is offline
 
Join Date: Jan 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you have a live demo instead of just screenshots?
Reply With Quote
  #29  
Old 02-06-2010, 12:03 AM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can take a look at vb4.giveupalready.com if you want a live demo this thread is a chess game http://vb4.giveupalready.com/forums/...?p=230#post230 bear in mind thou, this is my development area and there may be bugs and features in there that aren't in released versions as they are still under development.
Reply With Quote
  #30  
Old 02-06-2010, 05:12 AM
Jeremy8 Jeremy8 is offline
 
Join Date: Jan 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you show an example of this? https://vborg.vbsupport.ru/showthread.php?t=234160

edit: nvm, i see it
Reply With Quote
  #31  
Old 02-08-2010, 10:11 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well ive allready made a RPG core for vbulletin 4.0

dice roll, character creation, combat system with xp, level system and a PVE combat simulator,
next step is user vs user..

But this core would also be something interesting to incoorperate..

license info ?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:51 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.06838 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete