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)
-   -   Rpg Stats vB3 (https://vborg.vbsupport.ru/showthread.php?t=59750)

JTMON 05-21-2004 07:41 PM

thats because the image paths are wrong for the exp....they should be images\rpg\imagename.gif and not images\bar\imagename.gif. Check your template code.

Trigunflame 06-03-2004 02:24 AM

The code for this hack is really....really bad, no offence to whoever wrote it and using the arithmatic functions currently used to get stats is CPU% intensive :/

Zachery 06-03-2004 03:17 AM

O.o what? i dont see how they could be, what kind of processor is causing this bit of math to cause problems?

Trigunflame 06-03-2004 05:04 AM

The use of log10 / pow times 50+ post per page, with several hundred online does not work good on server load.

Not only that the, the code usage is eh..not so good for instance

PHP Code:

if ($hpmulti 1.5) {
$hpmulti 1.5;
}
if (
$hpmulti 1) {
$hpmulti 1;


Why not just use an elseif, instead of a Whole other If structure, thats inefficient (now we have to remember we're doing this in 50+post per page), excessive usage of floor() etc.. the declaration of so many variables is pointless, would be a lot more straightforward and efficient to just use an array of such ie.

PHP Code:

Instead of This:

$rpglvl
$level
$ep
$showlevel
$hpmulti

Use:
$rpg_stats['rpglvl']
$rpg_stats['level']
$rpg_stats['ep']
$rpg_stats['showlevel']
$rpg_stats['hpmulti'

Not only all of the aformentioned log10 and pow's, lots and lots of * and /, its not mearly a 'bit' of math, considering your having to do this for every post shown on a page. Now this may be fine on a small forum, but on a very busy forum processing all of this math takes cpu cycles.

I suggest making a heavier mod to the user table, and updating the stats when they make a new thread or post, thus saving overhead and processing time on every page load.

Of course I doubt you wanna bother with that, so I may release my own hack shortly to combat this problem... It may seem insignificant to many, but to me speed is everything.

Thats just my take and observation of the code provided, no pun is intended whatsoever.

zenmasteril 06-19-2004 05:38 PM

How does the measuring achieved (In each on) ??
Please tell me that i could explain my members... :nervous:

fiber1 08-08-2004 03:21 AM

Must be overlooking something here but I don't see "images/rpg"

I have the "/images" but no "rpg"?

Fiber

Knoman 10-09-2004 03:46 AM

Good work Zach =)
As for not replying earlier, I've pretty much done with vB hacking. Hell, I dont even have a subscription anymore :P
I just came to visit and was suprise people still talking about this system.

Zachery 10-09-2004 04:43 AM

Quote:

Originally Posted by Knoman
Good work Zach =)
As for not replying earlier, I've pretty much done with vB hacking. Hell, I dont even have a subscription anymore :P
I just came to visit and was suprise people still talking about this system.

Good to see you alive :) if youve got some free time can i contact you on msn?

Knoman 10-10-2004 04:30 AM

I dont mind at all. However, I havent coded anything in the longest time and I tend to forget languages quickly (like Spanish) :P
So, I dont know if I'll be any use to you.

Shadow Blaze 10-12-2004 06:57 PM

make this thing so there like more to it O.o like for roleplaying like adidng sections and what not


All times are GMT. The time now is 11:06 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.01170 seconds
  • Memory Usage 1,740KB
  • 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)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