vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Play By Post Gaming Core (https://vborg.vbsupport.ru/showthread.php?t=232900)

Carnage 01-29-2010 11:30 PM

you can ctrl+click to disable the last config enabled on a forum

Carnage 01-30-2010 12:27 PM

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)

PGAmerica 01-31-2010 04:17 AM

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?

Carnage 01-31-2010 10:37 AM

1 Attachment(s)
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.

Jeremy8 02-05-2010 05:28 PM

Quote:

5. I recomend turning off bbcode, smilies, images and post count in the forums you assign games to.
Reason?

Carnage 02-05-2010 06:37 PM

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.

Jeremy8 02-05-2010 09:06 PM

do you have a live demo instead of just screenshots?

Carnage 02-06-2010 12:03 AM

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.

Jeremy8 02-06-2010 05:12 AM

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

edit: nvm, i see it

Vaupell 02-08-2010 10:11 PM

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 ?


All times are GMT. The time now is 08:23 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.01171 seconds
  • Memory Usage 1,746KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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