vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   RPG Integration Hack - Old Support Thread (https://vborg.vbsupport.ru/showthread.php?t=73868)

Revan 10-13-2004 02:58 PM

To upgrade, you will be asked to replace all your current FILE edits with new ones.
This is because code has so radically changed, that it would be too hard and too time consuming to manually patch each line.
All database stuff, apart from the SETTINGS (Battle Options and Items Options), will be rescued in the convert.
:)
Reason why I cant transfer settings is that I would have to tamper with the datastore, which I have bad experiences with in the past :p

Blam Forumz 10-13-2004 06:40 PM

Bah, will i still be able to change it so that the default is to have the drop down selected rather than having the rpg in postbit default?

Osiris2k 10-13-2004 09:34 PM

well, did you find any errors in the files? I did do it like it said in the read me, but it still does not show, I had to install an addon which shows it at the BOTTOM of the post, not in the part where it shows the user info.

Revan 10-14-2004 01:59 PM

Quote:

Originally Posted by Osiris2k
well, did you find any errors in the files? I did do it like it said in the read me, but it still does not show, I had to install an addon which shows it at the BOTTOM of the post, not in the part where it shows the user info.

I did not find any errors because there was no RPG code in those files.



Quote:

Originally Posted by Blam Forumz
Bah, will i still be able to change it so that the default is to have the drop down selected rather than having the rpg in postbit default?

Only settings in the battle_options and items_options will go away.

designstylez 10-14-2004 06:54 PM

Hi Revan,

I've finally got the RPG thing working for our site and it's working great. Everyone loves it, brings more interaction with eachother.

There's still a few problems here and there, but here's one I've got from a member.

Quote:

I was trying to battle someone for Gils and they said that person didn't have that amount to wager. And for some odd reason I go back to make it 0 and I later see I have no gill left. Is this a bug? Just reporting it cuz now I got no money to re gain health. haha. alright thanks
What do you think? Thanks.

Revan 10-14-2004 07:32 PM

Ive never ever seen Wager ERASING money.
As Ive tested it thoroughly on my own forums and never experienced this, I cant honestly give out a solution... :ermm:
Weekend coming up so I might have time to join your forums to debug it then :)

Blam Forumz 10-14-2004 08:32 PM

RPG Manual Error:

When you try clicking any of these :
Quote:

Originally Posted by RPG Manual
#

* Options

# Item Properties

* Item levels
* Item types
* Damage/Defense/Buff
* Cost
* Stock
* Potions

It just takes you down the page, but all it has is the potions section :|

Help

Yes Ihave re-uploaded rpgmanual.php

TTG 10-14-2004 11:09 PM

What a great addition .. installed with no problems .. https://vborg.vbsupport.ru/external/2005/01/2.gif

Clicked install

Revan 10-15-2004 07:03 AM

Quote:

Originally Posted by Blam Forumz
RPG Manual Error:

When you try clicking any of these :


It just takes you down the page, but all it has is the potions section :|

Help

Yes Ihave re-uploaded rpgmanual.php

The rpg manual is hopelessly outdated, but I have updated it for v3 :)

Blam Forumz 10-15-2004 03:22 PM

kk cool thanks :D

ps - i dont get how to make it so only certain classes/races/alignments/elemens/genders can have certain items :/

Revan 10-15-2004 04:41 PM

You can only limit Battle Types' access to certain items. To do this, create a Battle Type and move chosen classes into this Type. Then, edit Item Type and check the boxes for the items that you wish certain Battle Types to have.
:)

Blam Forumz 10-15-2004 09:22 PM

Call me stupid, but how do I create a battle type :\

Revan 10-15-2004 11:11 PM

Battle Type is really Class Type, this clears some I hope... ;)

Mr Peabody 10-16-2004 01:44 AM

The host i run my board on just updated to PHP ver 5 now im having problems with 2 of my hacks, this one and Statistik.
Both seem to be related becuase i get the same error.

Quote:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/bogans/public_html/includes/init.php on line 519




Unable to add cookies, header already sent.
File: /home/bogans/public_html/includes/init.php
Line: 519

:disappointed:
I get it in everything except healing Centre

RMS 10-16-2004 02:41 AM

Hmmm apparently my "wrong stats" problem persists. The one where after "updating stats" the MA turns incorrect, even upon entering battle. For some reason it somehow adjusts back after some time.

A new thing I've come across though is that in editing the item categories' order, all of the items within that category will have its attack/heal and/or MA cost reset. I don't know if this is the exact cause of it but I believe it has something to do with it at least.

Revan 10-16-2004 11:55 AM

Quote:

Originally Posted by Mr Peabody
The host i run my board on just updated to PHP ver 5 now im having problems with 2 of my hacks, this one and Statistik.
Both seem to be related becuase i get the same error.

:disappointed:
I get it in everything except healing Centre

My hack does not modify init.php, nor does it use the array_merge().
I have php5.0.2 on my localhost and can run everything fine.
Try this, though:
Go to your line 519, and check what the arguement #2 is for the array_merge() (for instance,
PHP Code:

$specialtemplates array_merge(array(
                
'options',
                
'cron',
                
'forumcache',
                
'usergroupcache',
                
// ## <ucs>
                
'stylecache',
                
'arcadesettings',
                
'utt_store_act'
                
// ## </ucs>
            
), $specialtemplates);
// where $specialtemplates is the 2nd arguement 

and just ABOVE the array_merge(), input this:
PHP Code:

$[arg] = array();
//where [arg] is the arguement you found above 


Quote:

Originally Posted by RMS
Hmmm apparently my "wrong stats" problem persists. The one where after "updating stats" the MA turns incorrect, even upon entering battle. For some reason it somehow adjusts back after some time.

A new thing I've come across though is that in editing the item categories' order, all of the items within that category will have its attack/heal and/or MA cost reset. I don't know if this is the exact cause of it but I believe it has something to do with it at least.

If your modifiers are set correctly, then I cant really say antyhing more. Your the only one I know of with this problem :lick:

Neal-UK 10-16-2004 02:28 PM

I've added this hack to my forum here: www.burnleyweb.com

It all appears to be working correctly excpet for 1 problem, when I try to add a new lottery, and enter all the fields, it comes back "You need to enter all fields corretly" and goes back to add new lottery. Can't find any othr probs as yet.

I've made a change to the adminlottery.php as Revan said via IM but it still doesan't fix the problem.

Neal-UK 10-16-2004 03:31 PM

Quote:

Originally Posted by nealparry
I've added this hack to my forum here: www.burnleyweb.com

It all appears to be working correctly excpet for 1 problem, when I try to add a new lottery, and enter all the fields, it comes back "You need to enter all fields corretly" and goes back to add new lottery. Can't find any othr probs as yet.

I've made a change to the adminlottery.php as Revan said via IM but it still doesan't fix the problem.

right it's working now, but how do people get to all the options for the lottery, etc. Do I need to add the link in my navbar?

Revan 10-16-2004 03:33 PM

Hm I notice now there are TWO instances of that string, did ye replace both?

Neal-UK 10-16-2004 03:48 PM

Quote:

Originally Posted by Revan
Hm I notice now there are TWO instances of that string, did ye replace both?

yeah, done both of them. It was something to do with the date, but it works now. Just how do users get to the lottery page?

Neal-UK 10-16-2004 07:14 PM

Quote:

Originally Posted by nealparry
yeah, done both of them. It was something to do with the date, but it works now. Just how do users get to the lottery page?

anyone willing to register on www.burnleyweb.com just so I can test the system out? Someone who uses this on a daily basis please. Appears to work for me, but having to re-start the forums, some members haven't come back yet.

Revan 10-16-2004 07:47 PM

Install one of the navbar addons to make the rpg appear on navbar.

Neal-UK 10-16-2004 07:57 PM

Quote:

Originally Posted by Revan
Install one of the navbar addons to make the rpg appear on navbar.

Yeah done that, thanks Revan. Think more members will like this hack. Well done on it by the way.

Mr Peabody 10-17-2004 12:35 AM

Cheers Reven Your suggestion worked like a charm and everything is 100%.

PHP Code:

            $specialtemplates = array(); 
            
//where [arg] is the arguement you found above 
            
$specialtemplates array_merge(array(
                
'options',
                
'cron',
                
'forumcache',
                
'usergroupcache',
                
'stylecache',
                
'utt_store_act',
                
'arcadesettings'
        
), $specialtemplates);
        } 

Strange though now i get a error when i try to post.

Quote:

Warning: Invalid argument supplied for foreach() in /home/bogans/public_html/includes/functions_editor.php on line 443
I'm going to ask if they can install php 5.0.2 maybe that will help.
Problems started with 5.0.0

deathemperor 10-17-2004 06:25 AM

Congratulations, Revan ! it's now HoTM. now you care to release V3 ? ^^ (I mean the ETA)

Revan 10-17-2004 10:12 AM

Quote:

Originally Posted by Mr Peabody
Strange though now i get a error when i try to post.

Quote:

Warning: Invalid argument supplied for foreach() in /home/bogans/public_html/includes/functions_editor.php on line 443
I'm going to ask if they can install php 5.0.2 maybe that will help.
Problems started with 5.0.0

In the meantime you can post the surrounding 5 lines, with linestamps, here so we can see if theres something missing :)


Quote:

Originally Posted by deathemperor
Congratulations, Revan ! it's now HoTM. now you care to release V3 ? ^^ (I mean the ETA)

Thanks :)
And about the eta, you can do the math:
Things I have to do before v3 final
  • Finish redesign of ACP (approx 60 % done now)
  • Look over the entire current hack, especially Speed and Evade, and clean up their function in battle.
  • Code about 10 new features, out of which about 3-4 are as big as some of the hacks in the Major Additions.... The tournament alone is almost as big as this hack in its own, at least if Im making it better than Inferno's :p
Now does it sound like I can give an eta? :P

deathemperor 10-17-2004 02:09 PM

it seems too long, really long.

tnx for the news anyway.

RMS 10-17-2004 05:02 PM

Alright, hopefully this time I don't come up with another crazy problem that only I manage to get.

It seems that my clans get clan points even when they fight their own clan members. It was my impression that you get these when one clan fights another. Is it supposed to be this way?

Revan 10-17-2004 05:59 PM

That might be a bug in the clan points system coding.
Ill take a look at it later.

Neal-UK 10-18-2004 07:17 PM

I've started getting database errors now when some users do something I don't know:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT
post.*, post.username AS postusername, post.ipaddress AS ip,
user.*, userfield.*, usertextfield.*,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,rpg_battle_options.namefield,rpg_battle_option s.exprate,rpg_battle_options.privacy AS battleprivacy,rpg_items_user.*,rpg_battle_stats.*, rpg_rpg_race.name AS rpgracename,rpg_rpg_race.alignment AS rpgalignmentname,rpg_rpg_classf.name AS fclassname,
rpg_rpg_classf.folder AS fclassfolder,rpg_rpg_classm.name AS mclassname,rpg_rpg_classm.folder AS mclassfolder,rpg_rpg_element.name AS elename,
icon.title as icontitle, icon.iconpath,
avatar.avatarpath, NOT ISNULL(customavatar.avatardata) AS hascustomavatar, customavatar.dateline AS avatardateline,
level,

editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason,
post_parsed.pagetext_html, post_parsed.hasimages,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid

FROM post AS post, rpg_battle_options, rpg_items_options
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN rpg_items_user ON rpg_items_user.userid=user.userid
LEFT JOIN rpg_battle_stats ON rpg_battle_stats.userid=user.userid
LEFT JOIN rpg_rpg_classf ON rpg_rpg_classf.id=user.rpgclass
LEFT JOIN rpg_rpg_classm ON rpg_rpg_classm.id=user.rpgclass
LEFT JOIN rpg_rpg_element ON rpg_rpg_element.elementid=user.element
LEFT JOIN rpg_rpg_race ON rpg_rpg_race.raceid=user.rpgrace AND rpg_rpg_race.alignmentid=user.alignment
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid) LEFT JOIN reputationlevel AS reputationlevel ON(user.reputationlevelid = reputationlevel.reputationlevelid)

LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN post_parsed AS post_parsed ON(post_parsed.postid = post.postid)
WHERE post.postid IN (0,1229,1234)
ORDER BY dateline

mysql error: Got error -1 from table handler

mysql error number: 1030

Date: Monday 18th of October 2004 08:53:13 PM
Script: http://www.burnleyweb.com/forum/show...ted=1#post1234
Referer: http://www.burnleyweb.com/forum/show...=1229#post1229
Username: dellym
IP Address: XX.XX.XXX.XXX

I've had a few of these e-mails now concerning different members. I have the uCash / uShop hack installed too.

Revan 10-19-2004 11:30 AM

Your table got owned by something. Ive never seen this error before in my life :lick:
try looking it up somewhere, cos I come up short.

Neal-UK 10-19-2004 12:02 PM

Quote:

Originally Posted by Revan
Your table got owned by something. Ive never seen this error before in my life :lick:
try looking it up somewhere, cos I come up short.

I think it's a server issue. The hosting company do have regular updates to their servers and sometimes the site can go down. They are cheap so who cares. I'll see how things go.

Blam Forumz 10-19-2004 03:50 PM

Does anyone know how the Petz hack has drop down menus with all the images in a certain directory?

thanks

GCA-Shawn 10-19-2004 11:24 PM

I've installed it and everything works great, thanks!

One question: No one seems to be able to use magic...How do I set up spells and such, if there is a way?

Revan 10-20-2004 05:40 AM

You have to setup the spells in the ACP. Create a new category with spells in it.

GCA-Shawn 10-20-2004 05:47 AM

Okay, perhaps in ACP I also must set items so they can be used in battle? I had poison knuckles, for example, but the only option available was to use my fists, despite that the knuckles were displayed...

GCA-Shawn 10-20-2004 05:57 AM

Never mind, I figured it out :) Thanks again (sorry for double post)

RMS 10-21-2004 08:31 PM

This is just a minor thing but I just noticed something on the battlescreen. When I'm hovering over the dead person, instead of just showing his HP I get "HP: <a style='color#FFFF00'><a style='color:#FF0000'>0</a></a>30" where 30 is his total life.

I don't suppose there's a fix for the always changing, weird background size yet?

Also, I'm trying to create class-specific items for all my classes. However, this comes up to many links in the itemshop. Is there a way to limit it so that someone can only see whatever items are available to whatever class type he is or hide the rest unless he specifically chooses to view them?

Revan 10-22-2004 07:01 AM

Ill look over that <a style> stuff when I get home.
Battle scene fix is in the addons post, I had to remove the list of them due to sig line rule.

And theres no way to limit the amount of links to be shown, sorry :(

Areku 10-22-2004 08:23 AM

Thanks for bringing this to a reality! I'll try to install it and make it a very part of my site. Is there any special BUG i should take care off in these 46 pages I've'nt been able to read?


All times are GMT. The time now is 02:58 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.02152 seconds
  • Memory Usage 1,855KB
  • 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
  • (3)bbcode_php_printable
  • (17)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
  • (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