vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBTripleTriad (https://vborg.vbsupport.ru/showthread.php?t=93123)

deathemperor 09-19-2005 04:19 PM

Darkwaltz4, do you plan to port this hack to vb3.5 ?

Darkwaltz4 09-19-2005 06:27 PM

yes, in fact i just got finished gathering stuff from the how-to forum on conversion :-p

but before i do that ive been implementing some better caching ideas, since some queries in the hack could potential grab lots and lots of data, and i want to make it better.

also, i want to reduce the amount of plugins for the hack to possibly even 0 (its very non invasive in the first place) but id have to add another small thing to it

short answer: yes, of course :-p

lonely 09-19-2005 08:19 PM

Quote:

Originally Posted by Darkwaltz4
lonely: the system currently requires at least one card per level, otherwise itll search forever, hence the error. im thinking of working on deck support first, as itll address all of the issues that are coming up, as well as aiding with more advanced editing (like changing levels or adding elements) as well as remove some of the hard-coded dependancies that you have.

A workaround you could use for that, is removing the option for a level 10 match from the newaimatch template, and then selecting the new BONUS level that appears, and it will allow you what you want.

the cards you select are moved into a match, and are no longer 'available' to you. this ensures that you cant resell or trade away a card that you are using. this is normal behavior, and you recieve the cards back at the end of a match, whether its played through or rejected by your opponent (and depending on if you didnt lose them because of a prize rule!)

there is not a 'no multiples' rule currently, but there might be on in the future (if i am convinced of its merit)

as per the issue i explained above, you dont need to 'return' the cards to the user if they selected to use them in a trade/match, as they will be returned automatically once they are done being used. however the deck support update might include an inventory editor.

Ah okay, that seems to have worked like a charm so far.

I still have one more thing that's bothering me though -
How do I assign people one of the UC cards, or ANY card for that matter. I see how to make new cards, and give those to people, but I want to be able to send someone a specific existing card.

If this can only be done in the database right now, where in phpmyadmin could i go to assign someone a card? The triad_user table is really confusing to me, it doesn't seem to match up with the people playing.

Anyway thank you for your responses Dark :D

deathemperor 09-19-2005 08:22 PM

oh nice, I'd be looking forward to this.

be sure to send an update when you release the vb3.5 version.

keep it up !

Darkwaltz4 09-19-2005 09:26 PM

you bet i will :)

lonely:
yeah, again, an inventory editing thing im working on.
for now, find the card you want in the triad_card table (or select to edit it in the card editor thing in ACP, im pretty sure 2.7 has the id:X thing, but the first method is foolproof) and look for its rowid. now in the triad_user table, find the userid row of the person, and a column cr_X where X was that rowid. Its a big table (might change) edit that column for that user, as a number available for that card for that user

AllenSam 09-30-2005 01:51 PM

Is there a way to close this off to certain users/usergroups? I have a temp banned usergroup that I still allow to view the foums, they just can't post or anything...So, I want to deny them access to TT.

Also, I think I found a bug...either that or something I messed up when I installed.

When I go to view someone's statistics, it shows my stats (userid 1) under "Available Inventory Statistics" no matter who I'm viewing, except Usercards. The Usercards number is right, but the other stuff like "Collection: xx/xx (xx%)", "Standard Cards", and "Most Available Cards" show only my stats, even if I'm looking at someone else's score card.

EDIT: I take that back...It's not using my stats for everyone...some people have my stats, but one user has "Collection: 188/138 (136%)". =\ I think maybe it's adding my cards in with theirs or something...

Darkwaltz4 09-30-2005 04:00 PM

hmm that last one does sound like a bug, ill look into it. (it might already be fixed since the stats sections have been heavily optimized in the version i am working on)

find out the usergroupid of your banned usergroup (its in the ACP)

in the tops of the TT files in question, and underneath this

PHP Code:

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ######################################################################## 

put this, where X is the usergroupid you just looked up

PHP Code:

if ($bbuserinfo['usergroupid'] == X)
{
 
print_no_permission();


i might incorporate a permissions thing for the next version

PixelFx 10-05-2005 10:12 AM

can't wait for 3.5 update, seems I've updated everything to that now .. but miss these hacks :( but I know your busy .. so its all good

DS MrSinister 10-12-2005 03:35 AM

any word on this bad boy yet? I hope it will be out soon.

Darkwaltz4 10-12-2005 01:58 PM

i am recoding a bit of it as well as infusing the deck support system, this is about half done. i also am setting up a website which will host a demo of triple triad, and yes that forum is 3.5, so this should be a good sign for you :-p

version 2.8 will be the vb3.5 version 1.0, im still learning the apis for 3.5 :)


All times are GMT. The time now is 11:45 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.01234 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (1)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
  • (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