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 - [DBTech] Triple Triad (Lite) [AJAX] (https://vborg.vbsupport.ru/showthread.php?t=244074)

Deceptor 06-05-2010 10:00 PM

[DBTech] Triple Triad (Lite) [AJAX]
 
1 Attachment(s)
Triple Triad

Triple Triad is the popular Card Game from within Final Fantasy 8. The original cards and gameplay have been recreated for you to integrate into your forum and play with your members through several match types. You can also integrate with uShop and other currency modifications to use existing point systems you may have installed.

Professional version & feature list available @ www.DragonByte-Tech.com
Priority support for Lite version is handled at the Developers Website.

Documentation
Documentation can be found here: http://www.dragonbyte-tech.com/conte...-documentation

Live Demos
The links below provide you access to view parts of Triple Triad (some sections/features are unavailable within Lite).
  • Features - Lite

    Core Features
    • Includes full Final Fantasy 8 Triple Triad Set
    • Member Vs. Member Matches
    • Member Vs. CPU Matches
    • Inline Points/Currency System
    • Fully animated battles using AJAX for true gameplay
      Triple Triad can also integrate with other point systems like uShop!
    • Give points/money per post/thread
    • Create your own custom sets/cards

    CPU Players
    • Create as many cpu players as you like
    • Specify CPU attitudes to determine how aggressive/defensive a CPU player is
    • Specify CPU Accuracy to determine how accurate and easy/hard a CPU player is
    • With adaptive CPU AI, your members will never get bored challenging tough CPU opponents

    Profiles
    • Individual user statistics
    • Set-by-set statistics
    • View user decks

    Messages
    • Inline Messages System
    • Integrated with vBulletin Notifications

    Purchase
    • Purchase decks created by you
    • Decks can contain random cards with specific rarity values or specific cards

    Battle Arena
    • Create battles against the computer or forum members
    • Setup your own match with rules from the original Triple Triad game
    • Leave battles early

    Rules
    • Quick overview of How to Play and advanced Triple Triad rules so your members can learn how to play
  • Features - Pro

    Core Features
    • Watch Live Matches in realtime
    • Watch Match Replays after they've finished
    • Manage users decks and money within the ACP
    • Full game music and sound effects during battles
    • God Mode CPU AI Technology to make the most difficult AI players possible

    Profiles
    • View users recent matches
    • View user trades

    Trade Center
    • View open or closed trades
    • Create your own trades offering/requesting as many cards as you desire, and money!
    • Accept open trades at any time for instant swaps/transactions

    Battle Arena
    • Watch any live match or match replay

    Tournaments
    • Create tournaments with 2, 4 or 8 members
    • Set money/points to be the prize
    • Automated tournament handling so no idle users will stop the game play
    • View tournament grids to see who has made it through
    • Creating/Deleting tournaments permission based

    Statistics
    • View who's in the Hall of Fame or Hall of Shame
    • See who's collected the most cards
    • View the most watched match replays

    Database
    • View all cards, of all levels, of any set at any time

Support

Priority support will be handled at DBTech.

Changelog

v1.1.1 Lite

- Resolved Bug: Battle score calculation when leaving, may have resulted in invalid win/loss.
- Resolved Bug: Some skins had broken headers within TT (vB4 affected only)
- Optimisation: fetch_id() was optimised to reduce resources
- New Features: New hook location added so vBActivity can reward points on battle victory/defeat.

v1.1.0 Lite

- Ability to leave battles
- Engage in multiple battles
- Notifications will now clearly instantly instead of requiring each message to be read
- Bug Fix: Starting a new battle while other was not completed due to both players not leaving meant you could not enter another battle.
- Bug Fix: Being invited to a new battle was not possible when previous battle had finished but both players had not left.
- Bug Fix: (CPU) tag showed in player 2 deck title for vB4 only.
- Bug Fix: Potential alert with card movement error.
- Bug Fix: A few bits of text unphrased now phrased.

v1.0.1 Lite - Released to the public

Deceptor 06-06-2010 02:28 PM

Reserved.

VipQBoy 06-06-2010 02:34 PM

First install :x

Skyline_GT 06-06-2010 03:21 PM

This looks cool to me. Tag for future.

Haywire0311 06-06-2010 03:44 PM

Installed the Lite Version but not working correctly.

I added all files but there is no Triple Triad in AdminCP. There are a couple of settings in AdminCP -> Options but its only to turn TT on and also to set meny usertable. I can't access tripletriad.php because it says my usergroup is not authorized but I can't find an area to authorize it. Also, in the provided instructions, it states to go to AdminCP -> Triple Triad and import tripletriad-final_fantasy_viii.xml but no such file is provided.

Looks promising though.

Edit: Found the final fantasy pack in the files. Still don't see the AdminCP options though.

Deceptor 06-06-2010 03:48 PM

Haywire - Try refreshing your admin cp or visiting: admincp/index.php?do=buildbitfields, perhaps the bitfields/XML weren't rebuilt.

As for the usergroup perms, edit your usergroup and set access to "yes" (which the install instructions provided state to do).

In regards to "tripletriad-final_fantasy_viii.xml", it's there: /dbtech/tripletriad/import/tripletriad-final_fantasy_viii.xml, check you've uploaded all files correctly.

Haywire0311 06-06-2010 03:56 PM

Quote:

Originally Posted by Deceptor (Post 2049399)
Haywire - Try refreshing your admin cp or visiting: admincp/index.php?do=buildbitfields, perhaps the bitfields/XML weren't rebuilt.

As for the usergroup perms, edit your usergroup and set access to "yes" (which the install instructions provided state to do).

In regards to "tripletriad-final_fantasy_viii.xml", it's there: /dbtech/tripletriad/import/tripletriad-final_fantasy_viii.xml, check you've uploaded all files correctly.

Deceptor,

Followed your instructions and still no luck. I also went into usergroup permissions and nothing is in there about Triple Triad.

Any other ideas?

Deceptor 06-06-2010 03:58 PM

Interesting, seems silly but the product shows in if you go to Manage Products, right? If the product isn't installed no navigation/perms wouldn't show.

Haywire0311 06-06-2010 04:07 PM

Yeah, it's there but still nothing in the adminCP

Deceptor 06-06-2010 04:10 PM

Hmm, can you verify the following files are on your site:
./includes/xml/cpnav_dbttripletriad.xml
./includes/xml/bitfield_dbttripletriad.xml

If you want me to take a look personally, feel free to PM me a temp administrative login to your forum (with access to products/plugins) :)

Haywire0311 06-06-2010 04:37 PM

Quote:

Originally Posted by Deceptor (Post 2049413)
Hmm, can you verify the following files are on your site:
./includes/xml/cpnav_dbttripletriad.xml
./includes/xml/bitfield_dbttripletriad.xml

If you want me to take a look personally, feel free to PM me a temp administrative login to your forum (with access to products/plugins) :)

Files are there. PM sent with temp admin account.

Deceptor 06-06-2010 04:48 PM

1 Attachment(s)
Haywire, I took a look and at first glance everything seems fine. However vBulletin is failing to finish importing the product, I tried a reinstallation and this is what I got:

Attachment 118140

The page doesn't complete the installation, the mass number of styles you have is causing PHP to timeout. There are a few steps you can do to try resolve this:

1) Increase PHP Memory Limit
2) Increase PHP Max Execution Time
3) Move styles to be children of 1 parent, instead of them all being parents
4) Remove unused styles

Really vBulletin should try force the import to work without time/memory limits in PHP, but that's there issue, for now the suggestions mentioned are your best options :)

Feel free to delete the admin account.

Haywire0311 06-06-2010 05:27 PM

Works now.....thanks for the help.

Deceptor 06-06-2010 05:29 PM

No problem, enjoy :)

keweedsmo 06-06-2010 09:59 PM

Hey. Installed and I Love the mod. Just 1 question though:

How does a player's deck work? Does it just pick 5 random cards you own when you play a game? If that's how it works then I highly recommend having a way for users to pick their deck, or a pool of cards to play from. If this isn't how it works then please explain how I can select the cards I'll be playing with :)

Also when I play multiplayer and i'm the one who gets invited it says "Commander (CPU)'s Deck ". My name is commander :P

DragonByte Tech 06-06-2010 11:05 PM

Quote:

Originally Posted by keweedsmo (Post 2049605)
Hey. Installed and I Love the mod. Just 1 question though:

How does a player's deck work? Does it just pick 5 random cards you own when you play a game? If that's how it works then I highly recommend having a way for users to pick their deck, or a pool of cards to play from. If this isn't how it works then please explain how I can select the cards I'll be playing with :)

Also when I play multiplayer and i'm the one who gets invited it says "Commander (CPU)'s Deck ". My name is commander :P

I'll let Deceptor handle the text issue, as for Decks, you get to pick the cards. The exception is when the "random" rule is turned on.

When you start a match you choose 5 cards from your deck (which is all of the cards you own) These 5 cards are the ones you use in the match =)

Haywire0311 06-06-2010 11:23 PM

Definitely loving it so far.

One suggestion is to have the ability to reset the whole game for everyone. For example, I set it up and created a few test decks and CPUs tjust to see how things work. Now that I've figured it out, users have the cards and they have the win/loss statistics. It would be nice to just reset all statistics and get rid of all cards from all users and start fresh once testing is done.

keweedsmo 06-07-2010 12:35 AM

Bugs:
1. The User's name issue I mentioned above
2. Notifications don't clear after you've read/viewed them

Suggestions:
1. Having the ability to create a game and just have it sit there in an html/ajax lobby until someone (anyone) accepts the game and joins you.
2. Having a private shoutbox in each game
3. Premium Feature: A live ajax or flash lobby system. Fully featured with a chat room, user list of people in lobby, invitation system, live game results by chat bot, etc.
4. Ability to wager points/gil on games in addition to cards.
5. Demo versions of the premium card sets. Something like all level 1 cards, a few level 2 and 3 cards, and 1 of each of the rest.

I'm sure i'll have more suggestions incoming very soon :) Love the game man. Very cool!

Quote:

Originally Posted by Haywire0311 (Post 2049637)
Definitely loving it so far.

One suggestion is to have the ability to reset the whole game for everyone. For example, I set it up and created a few test decks and CPUs tjust to see how things work. Now that I've figured it out, users have the cards and they have the win/loss statistics. It would be nice to just reset all statistics and get rid of all cards from all users and start fresh once testing is done.

I second that. I am in the same boat as you my friend :)

Quote:

Originally Posted by DragonByte Tech (Post 2049627)
I'll let Deceptor handle the text issue, as for Decks, you get to pick the cards. The exception is when the "random" rule is turned on.

When you start a match you choose 5 cards from your deck (which is all of the cards you own) These 5 cards are the ones you use in the match =)

Ah that makes sense. I believe I've had random set the whole time without knowing what it does...lol

DragonByte Tech 06-07-2010 01:04 AM

Quote:

Originally Posted by keweedsmo (Post 2049657)
Bugs:
1. The User's name issue I mentioned above
2. Notifications don't clear after you've read/viewed them

Suggestions:
1. Having the ability to create a game and just have it sit there in an html/ajax lobby until someone (anyone) accepts the game and joins you.
2. Having a private shoutbox in each game
3. Premium Feature: A live ajax or flash lobby system. Fully featured with a chat room, user list of people in lobby, invitation system, live game results by chat bot, etc.
4. Ability to wager points/gil on games in addition to cards.
5. Demo versions of the premium card sets. Something like all level 1 cards, a few level 2 and 3 cards, and 1 of each of the rest.

I'm sure i'll have more suggestions incoming very soon :) Love the game man. Very cool!



I second that. I am in the same boat as you my friend :)



Ah that makes sense. I believe I've had random set the whole time without knowing what it does...lol

1) Lobby system etc is being done in a future version, all planned out already =)
2) Not much point since the games are so short, we will be integrating TT and vBShout more though, so you will have a tab for TT games, Will look into allowing an instance to be placed in the TT game page also but i don't think it's likely tbh.
3) See 1 =)
4)There are plans to implement something very similar in the pro tournament system.
5)Premium sets are viewable/usable on the DBTech website, but we'll consider supplying demo sets with limited cards. It might just serve to cause confusion which is something I'll have to consider.

We'll definetely look into adding a "reset" button in the next version ^.^

Thanks for the suggestions!

Iain

keweedsmo 06-07-2010 01:11 AM

Thank you for the speedy replies. To be honest, I've never been a fan of premium modifications but if you guys add a great lobby system to this game I'll be the first one buying it. Hell, i've been programming for 15 years, if you need help just let me know ;)

Some questions:
When creating a deck with random cards: "Deck Card Type Chances"
Quote:

If you use the number of random cards option above, this will define the chances of a card being a specific level. You can use 0-1000% here to define the chances, 0 will exclude the type from being added to the deck while 1000 guarentees it.

You do not need to enter the % symbol, and you should note that using 1000 will stop other types from being included within the deck when purchased. At least one type will need a value higher than 0 applied if you use the random cards.
How do these chances work? There are so many ways this can work out, I have no idea how to even begin to understand. Further details really are necessary. Same goes for cpu behavior.

If I have 2 sets at 500 each and other at 100, does that mean that since those first two = 1000 that only cards from those 2 sets will be used? Does it mean that the code goes to each group and says "ok this is set to 500. There is a 50% chance we will pick a card from this group. If not we move onto the next group". Does the total chance of all types always have to = 1000?

I think posting examples of stats and what they produce for both random cards and CPU Intelligence would help a LOT for many people, including myself.

Deceptor 06-07-2010 11:36 AM

You're right about the (CPU) bug, I'll patch it in an update later today, although it's just a text error for now so no rush.

As for the chances within Decks, there are 2 types. First of all decks themselves have level chances, ranging from 0-1000%. The code will roll through each level in order (1 -> 10) and checking a random number between 1-1000 fits in the chance, if so a level 1 card is added, if not roll to the next level. Repeat until the process is done :)

Secondly in regards to decks, cards themselves have a 0-100% "rare" value, so when a card is added from a level that too is is picked based on rarity values, so you can make specific cards rare within a level :)

In regards to the CPU Artificial Intelligence, by rule of thumb both aggresive/defensive attitudes should sum to 100, eg: 50/50 or 20/80, etc... The attitudes themselves are a guideline to how the CPU plays (agressively or defensively).

After that you just have accuracy to consider, 10% ands lower for either accuracy makes the CPU pretty dumb, 50% gives is a good chance and both accuracys at 100% and the CPU will make the best moves it can find all the time including some sub attitudes like aggresive-defensive and defensive-aggresive playing.

That's it in short, I am writing up documentation however to explain all this and the rest in detail :)

Deceptor 06-07-2010 02:40 PM

I've edited the first post to include the documentation link, which is found here: http://www.dragonbyte-tech.com/conte...-documentation

This should help explain the admin-side of things to users who aren't completely sure of all settings :)

keweedsmo 06-07-2010 04:08 PM

Awesome. that explains it perfectly. ty for your time to explain that and ty for this awesome mod. I am very excited for future updates.

Deceptor 06-07-2010 04:54 PM

Most updates will be bug fixes for stability, features may trickle down from Pro once it has numerous other features but that's determined as-is at the time, so we'll see how it goes :)

If you encounter any issues/bugs feel free to let us know!

keweedsmo 06-08-2010 12:50 AM

Yea I mostly meant the pro version. If this game becomes popular on my forum I will definitely be upgrading.

btw I may have missed it, did you mention anything about the notification issues i'm having? All other notifications clear except Triple Triad.

Deceptor 06-08-2010 11:50 AM

keweedsmo - The notifications should decrease as you read each unread message from Triple Triad. I'll probably change it to clear the notifications once you hit the messages screen instead since that's more effective as not everyone reads each message :)

keweedsmo 06-08-2010 01:53 PM

I've tried reading and deleting the messages and it still shows the notifications. Maybe it's just a bug in my forum. When I click on the notification it goes to a page that says "You have no messages currently."

All other notifications clear properly on my VB. I'm on the latest version of vb.

Deceptor 06-08-2010 02:22 PM

Strange, you can reset the counters through this query:
[sql]update user set dbt_tt_notify = 0[/sql]

Everyones TT notifications will be set to 0 then, be sure to change "user" if you have a table prefix. After that's done, let me know if the problem re-occurs :)

baghdad4ever 06-14-2010 12:17 PM

when i play with another user

it say

you r not in the battle

and my name still in current battle

how to fix that? and how to delete all current match?

Deceptor 06-17-2010 08:04 PM

You can delete battles through SQL for now:
[sql]delete from dbt_triad_battles[/sql]

Don't forgot to add the prefix. It's a bug we're aware of and is being resolved :)

baghdad4ever 06-19-2010 02:17 PM

Quote:

Originally Posted by Deceptor (Post 2055170)
You can delete battles through SQL for now:
[sql]delete from dbt_triad_battles[/sql]
Don't forgot to add the prefix. It's a bug we're aware of and is being resolved :)


thanks

what the prefix i must add?? can i use that

TRUNCATE TABLE `dbt_triad_battles`

Deceptor 06-19-2010 03:41 PM

Quote:

Originally Posted by baghdad4ever (Post 2055851)
thanks

what the prefix i must add?? can i use that

TRUNCATE TABLE `dbt_triad_battles`

You prefix defined in ./includes/config.php when you installed vBulletin, so if it's vb_, you'd execute:

TRUNCATE TABLE `vb_dbt_triad_battles`

Deceptor 06-25-2010 11:21 PM

v1.1.0 Lite released, new features and bug fixes included :) See the first post for the changelog.

session-one 06-26-2010 08:16 PM

edit,

looks great i'll let u know how everything goes

session-one 06-26-2010 08:23 PM

ok so is there a guide on how to create a deck, i have no knowledge of FF and don't know what to put into the fields..is there a pre made setup i could use deceptor, that i could then tweak a little bit?

Deceptor 06-26-2010 09:38 PM

Session-one - As the first post says, documentation is here: http://www.dragonbyte-tech.com/conte...-documentation :)

Note the documentation is for Pro - so if it says something you don't see, don't worry :)

session-one 06-27-2010 12:36 AM

thanks a lot deceptor..ill let u know of any bugs if i find any

session-one 06-27-2010 04:47 AM

users love it so far

Deceptor 06-27-2010 12:11 PM

Good stuff :) If you have any issues let me know, otherwise enjoy the game :D

Xencored 07-03-2010 08:56 PM

not working for me i cant "click" the cards to add them to decks etc... :(


All times are GMT. The time now is 06:30 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.04069 seconds
  • Memory Usage 1,857KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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