vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   RPG Integration Hack (https://vborg.vbsupport.ru/showthread.php?t=108790)

Revan 03-25-2006 10:44 PM

To update from Beta 1, simply replace all files and run the installer same way you did when installing it. You will be guided through the Upgrade process. You will need to manually point your browser to the Index file after each upgrade process, though. I think. XD

Ill see about that payment history, Im working on revamping the Headquarters for various features atm.

Otikeu 03-25-2006 11:03 PM

That's cool, thank you.

Another suggestion could be "forms" for a RPG character. Like a class of druid. However, I would assume that such will not be able (as it'll change their status depending on form) until v4... but would be pretty cool in that sense. I'm looking forward to the status system... where characters can be poisoned etc. That'll be awesome.

kevmaz 03-26-2006 07:44 AM

Hi when I go to Itemshop and click on inventory I get 404 error I have looked in all the downloaded files and there is not a inventory.php file anywhere. Other than that everything seem to be ok
Beta 5 I am using

mikeylikesitz 03-26-2006 11:41 AM

has this been updated to use vbplaza?

kevmaz 03-26-2006 04:05 PM

Hi
Yes I did have vbplaza but I uninstalled it and I have been through all the database and deleted all the referance to vbplaza, and deleted all the files from vbplaza
Kevin

Revan 03-26-2006 07:20 PM

Quote:

Originally Posted by kevmaz
Hi when I go to Itemshop and click on inventory I get 404 error I have looked in all the downloaded files and there is not a inventory.php file anywhere. Other than that everything seem to be ok
Beta 5 I am using

That feature is not yet complete, I've been meaning to add an empty file there.
Quote:

Originally Posted by mikeylikesitz
has this been updated to use vbplaza?

Edited first post, yes you can use that.

Freesteyelz 03-27-2006 10:25 PM

Hey, Revan. Congrats on a cool, featured hack. I'm testing it now. :)

I've ran into this error when clicking on the clan info either in the postbit and clan list:

Code:

Fatal error: Cannot instantiate non-existent class: vb_bbcodeparser in /../showclans.php on line 172
So I checked that line in the "showclans.php" file. I'd figured changing just "$parser" to "$bbcode_parser" to no avail. I tried several other adjustments such as removing the entire code bit (below) but it rendered the BB code unusable. No signature would show, only the image. So I did this:

Replaced:
Code:

        if ($clan['signature'])
        {
                /*
                        Signature parsed with default values:
                                HTML Off
                                BBCode On
                                Image Off
                */
                $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
                $show['clansig'] = $parser->do_parse($clan['signature'], false, true, false);
        }
        else
        {
                // Boring clan without a sig
                $show['clansig'] = $vbphrase['rpg_na'];
        }

With:
Code:

        if ($clan['signature'])
        {
                /*
                        Signature parsed with default values:
                                HTML Off
                                BBCode On
                                Image Off
                */
                require_once(DIR . '/includes/class_bbcode.php');
                $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
                $show['clansig'] = $bbcode_parser->do_parse($clan['signature'], false, true, false);
        }
        else
        {
                // Boring clan without a sig
                $show['clansig'] = $vbphrase['rpg_na'];
        }

That seemed to have resolved the issue. Now when I click the clan info in postbit and Clan List the link renders correctly. :)

The BB Codes don't work on my end but no biggie. I'll post back with update after more testing. :)

Freesteyelz 03-27-2006 11:15 PM

Quote:

Originally Posted by Revan
The regular postbit template (not _legacy) does not currently have any RPG data. The template edit is just there to cater to future needs.

I took the entire "rpg_postbit_legacy" template code and pasted it in the postbit template. All of the stats showed up. :)

Ziki 03-28-2006 08:59 AM

And anyway the plugin in the installer is corrupt.

Revan 03-29-2006 03:53 AM

Quote:

Originally Posted by Freesteyelz
Hey, Revan. Congrats on a cool, featured hack. I'm testing it now. :)

I've ran into this error when clicking on the clan info either in the postbit and clan list:

Code:

Fatal error: Cannot instantiate non-existent class: vb_bbcodeparser in /../showclans.php on line 172
So I checked that line in the "showclans.php" file. I'd figured changing just "$parser" to "$bbcode_parser" to no avail. I tried several other adjustments such as removing the entire code bit (below) but it rendered the BB code unusable. No signature would show, only the image. So I did this:

Replaced:
Code:

    if ($clan['signature'])
    {
        /*
            Signature parsed with default values:
                HTML Off
                BBCode On
                Image Off
        */
        $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
        $show['clansig'] = $parser->do_parse($clan['signature'], false, true, false);
    }
    else
    {
        // Boring clan without a sig
        $show['clansig'] = $vbphrase['rpg_na'];
    }

With:
Code:

    if ($clan['signature'])
    {
        /*
            Signature parsed with default values:
                HTML Off
                BBCode On
                Image Off
        */
                require_once(DIR . '/includes/class_bbcode.php');
        $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
        $show['clansig'] = $bbcode_parser->do_parse($clan['signature'], false, true, false);
    }
    else
    {
        // Boring clan without a sig
        $show['clansig'] = $vbphrase['rpg_na'];
    }

That seemed to have resolved the issue. Now when I click the clan info in postbit and Clan List the link renders correctly. :)

The BB Codes don't work on my end but no biggie. I'll post back with update after more testing. :)

Seems like I just missed the include() there, thanks for spotting thsi :)

@ZIKI: Proof? Errors?

Solitary Seraph 03-29-2006 05:30 AM

It says simply: There is an error with the installer.

Pretty much, at least.

Revan 03-29-2006 06:29 AM

That error string does not exist within my installer, please be more specific.

TosaInu 03-29-2006 07:21 AM

Downloaded 3.5 beta5 yesterday, upgrading from working 3.5beta4 today:

Step 4 run the upgrade script:

'Error in upgrade'.

Ziki 03-29-2006 12:43 PM

Quote:

Originally Posted by Revan
That error string does not exist within my installer, please be more specific.

When upgrading....the installer wants to rewrite the product but it says it is corurpt

EDIT: NOw i get a database error

Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE `forumziki_rpg_ibot_templates`
DROP `genderid`,
DROP `elementid`,
DROP `limitname`;

MySQL Error : Can't DROP 'genderid'; check that column/key exists
Error Number : 1091
Date : Wednesday, March 29th 2006 @ 09:42:32 AM
Script : http://www.zikihideout.com/forums/installer/index.php
Referrer : http://www.zikihideout.com/forums/installer/index.php
IP Address : 213.160.189.84
Username : ZIKI-SET
Classname : vb_database

Revan 03-29-2006 02:38 PM

Quote:

Originally Posted by ZIKI-SET
When upgrading....the installer wants to rewrite the product but it says it is corurpt

EDIT: NOw i get a database error

Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE `forumziki_rpg_ibot_templates`
DROP `genderid`,
DROP `elementid`,
DROP `limitname`;

MySQL Error : Can't DROP 'genderid'; check that column/key exists
Error Number : 1091
Date : Wednesday, March 29th 2006 @ 09:42:32 AM
Script : http://www.zikihideout.com/forums/installer/index.php
Referrer : http://www.zikihideout.com/forums/installer/index.php
IP Address : 213.160.189.84
Username : ZIKI-SET
Classname : vb_database

You did something wrong, I have multiple people upgrading it properly. You probably uploaded the XML in the wrong fomrat.
Manually reimport it from the AdminCP and turn on Debug Mode, updating the RPG Version Number setting that appears in the RPG Untoucheables section manually to 3505.
If you wanna know how to get into debug mode, search this forum.
Quote:

Originally Posted by TosaInu
Downloaded 3.5 beta5 yesterday, upgrading from working 3.5beta4 today:

Step 4 run the upgrade script:

'Error in upgrade'.

Try redownloading the thing, as I said above the upgrade worked for most.

TosaInu 03-29-2006 03:44 PM

Same MD5 cc757060f3d1a87a710474e433941445, still got the error. I'm going to try again.

Doesn't work. I could manually import the XML with the product manager, but now I miss those new tables.

Revan 03-29-2006 04:36 PM

Step 4 is just the product, beyond that its just incrementing version number. All tables should be updated fine.
Do what I said above for increase of version number and you should be fine.

TosaInu 03-29-2006 04:55 PM

The installer didn't run at all. Checked tables with PHPMyAdmin.
So, no step 1, 2 or 3.

Revan 03-29-2006 04:58 PM

Its impossible to get an error on step 4 and it not having run up until that step.
Check that the following segments are like they should be:
PHP Code:

    var $_version '3.5 Beta 5';
    var 
$version 3505

PHP Code:

        $versions = array(
            
=> 3011,
            
=> 3501,
            
=> 3502,
            
=> 3503,
            
=> 3504,
            
=> 3505
        
); 

PHP Code:

            ),
            
3505 => array(
                
=> 'Step 1) Choose Hack',
                
=> 'Step 2) Verify Environment',
                
=> 'Step 3) Altering Tables',
                
=> 'Step 4) Re-Importing Product',
                
=> 'Step 5) Finalising Upgrade',
                
=> 'Step 6) Upgrade Complete'
            



Freesteyelz 03-30-2006 05:34 AM

Quote:

Originally Posted by Revan
Seems like I just missed the include() there, thanks for spotting thsi :)

I'm glad to have helped. :)

TosaInu 03-30-2006 10:07 AM

Quote:

Originally Posted by Revan
Its impossible to get an error on step 4 and it not having run up until that step.

I did not say I got an error at step 4. I get the error right when I select and proceed installation of RPG beta5. So, the installer doesn't work at all.

As it's a testboard and this is beta software, I experimented with just importing the XML. That works. Ergo, 'step 4', that what is supposed to be done during step 4, works.

By manually doing the so called step 4, not by running the installer, I omit step 1, step 2 and step 3. Not because I don't want it, but because it won't run.

Why does this installer not work, while the one supplied with beta4 did?

Revan 03-30-2006 12:11 PM

Quote:

Originally Posted by TosaInu
Downloaded 3.5 beta5 yesterday, upgrading from working 3.5beta4 today:

Step 4 run the upgrade script:

'Error in upgrade'.

Ahem. Anyways.
Did you look into the installer/hacks/rpg_integr_hack/class.php and see that those variables are like I posted in the post?
Also, what I don't understand is, how can several other people have upgraded successfully, yet you cannot?

TosaInu 03-30-2006 12:36 PM

Oh, lol. That's step 4 in the installation guide (README_FIRST.html). Sorry about the confusion.

Yes, I checked that file class.php, all is there.

I don't understand either. I don't have to uninstall the old beta first, do I?

Revan 03-30-2006 03:35 PM

No you shouldn't have. Others have upgraded successfully.
What you should do is open the upgrade3505.php and manually do the queries that lies within.
Then do the version number increase like described in a previous post.
That will get you up to date.

Ziki 03-30-2006 04:13 PM

Revan I am getting that error

TosaInu 04-01-2006 09:44 AM

In installer/class_installer.php

// Figure out which version this belongs to
$nextstep = $versions["$currentversion"];

if (!is_array($steps["$nextstep"]))
{
die('Error in upgrade.');
}

I // commented out the die bit. Then (of course?) another problem pops-up



Advanced Hack Installer could not find the file 'upgrade' within the requested directory.

Please contact the hack author.


One may assume that this refers to upgrade350x.php files. So it had to select upgrade3505.php in my case, but it can't get that info. So, just make a copy of upgrade3505.php, call it upgrade.php and upload that. Run the installer again and it will go to

This script will update your RPG Integration Hack to version .

Press the 'Next Step' button to proceed.


Click proceed



* Altered Table: 0nvb3_rpg_ibots
* Altered Table: 0nvb3_rpg_monster_battles
* Altered Table: 0nvb3_rpg_user


Click proceed, the product.XML is imported. Click proceed.

Updated Setting: Version Number successfully.

Click proceed

You have now successfully upgraded the RPG Integration Hack to version ..

We hope you will enjoy using all the new features in the RPG Integration Hack as much as we have enjoyed writing them.
The RPG Integration Hack offers a level of forum and user integration both you and your members will enjoy for countless hours into the future, and new things are always in development.

What are you waiting for, go to your AdminCP and start configuring the hack!


And the things that weren't there are now installed -> seems to work fine.


So, our problem seems to be that the installer can't figure out our current version. Comment out the PHP die in installer/class_installer.php and modify the filename of your required upgrade350x.php file to upgrade.php and upload that to installer/hacks/rpg_integr_hack

Code:

//                if (!is_array($steps["$nextstep"]))
//                {
//                        die('Error in upgrade.');
//                }

Then just run the installation.

TosaInu 04-01-2006 10:12 AM

Examined our database a bit, xxx_table setting record rpg_versionnumber. You'ld expect it to store the number of the version (3505 in this case), but it stores 0.

Edit: not all new SQL fields are added:

_rpg_ibot_templates ibotid
_rpg_monster_battles turnid
_rpg_monster_battle_posts still uses battleid instead of monsterbattleid

Playing moster in arena works so far. Will post when I find more.

More:
-rpg_ibots loses is not updated to the new losses

Ziki 04-01-2006 11:25 AM

So it causes the database error just because it can't detect the RPG version?

TosaInu 04-01-2006 11:52 AM

The upgrade doesn't run because it can't determine the version number, that's correct.

The upgrade seems to miss some steps, even when it runs (some SQL fields are not added).

TosaInu 04-01-2006 01:18 PM

I'm playing this RPG on the testforum now and it looks good.

What we like to do is setup one forum where people are RPG characters, while not knowing each others real identity. That's mostly possible already, but the PM's to challenge each other gives the usernames/forumnames away. There should be an anonimous sender in the PM or PM's are proxied by some admin.

Revan 04-01-2006 02:04 PM

Just to make it PERFECTLY clear:
In NO way do I support the upgrade method described above. Should you choose to upgrade that way, you are on your own.

Ill see about adding a proxy user later, though this is not top priority.
The Final version is in last testing phases atm, will be out later today.
@ you two: If you want to upgrade successfully I suggest you fix the Version Number issue...

TosaInu 04-01-2006 03:39 PM

The versionnumber issue was already manually fixed by using PHPMyAdmin (enable debug mode http://www.vbulletin.com/forum/showt...le+debug+mode).

For giggles: I put it back to 3504 and now the original installer supplied with beta5 did run. I do not have a dump of the testdatabase, but I guess the previous beta already didn't install the version number -> causing the installer to quit.

After a lot of manual SQL fixes, I ran the installer how it should be run. Maybe the very first install of the previous beta did not add the version number for me.

Maybe an extra note for upgraders, when you upgrade from say beta2 to beta5, you get the success message and may think you're ready. You're not and need to make more runs. It works like updating vbulletin when skipping some upgrades, but it does not proceed automatically.

Good news about a final version Revan.

Revan 04-01-2006 10:06 PM

Update
The RPG has now been updated to version 3.5 Final which marks the end of the public Beta phase. There have been some important changes to this version, so be sure to read the following release notes carefully before asking questions.

Release Notes:
  • The Headquarters have been updated to only allow alteration of RPG Info once. Now, once you choose your character, you are stuck with this info until such a time as a Reset option is available. You will not lose your EXP now when you create your character.
  • The Elements have begun being moved out of the Stat control system. Therefore, you will have noticed a severe drop in HP/MP/PP/AP. This is perfectly normal. If the Admins will it, they will increase the HP/MP/PP modifiers to bring the levels back to somewhat normal. AP (Limit Break) cannot be restored through such means.
  • Genders are now limited by Race. By default, it duplicates the current Male/Female genders for all Races.
  • The Monster Arena now has an option to drop cash after each battle.
IMPORTANT INFO:
You must do a Hard Refresh (Crtl + F5) on the Create Character page for the JavaScript errors to disappear and the script to function normally!



My next point on the agenda is shortening the list of Known Issues. Most of them will be adressed in Update 1.

nadanada 04-02-2006 02:10 AM

had to apply a few database fixes for some fields that didn't populate on install, but they were an easy fix:

'hascharacter' in vb_rpg_user table
'cashdrop' and 'expdrop' in vb_rpg_monster_battles and vb_rpg_ibots tables

everything else so far appears to be working as intended except for the stats pop-up window. I get the following error:

Quote:

"Fatal error: RPG_core::init_user(): Attempted to initialise user(s), RPG not initialised with proper variables!

Tthe following variable is missing:

* Genders

To remedy this error, make sure the $specialtemplates and RPG_core::set_cachefields() variables are properly populated.
The error occurred in rpg.php."
I love the monster cash feature btw!

nadanada 04-02-2006 02:45 AM

it appears that:

Quote:

"Fatal error: RPG_core::init_user(): Attempted to initialise user(s), RPG not initialised with proper variables!

Tthe following variable is missing:

* Genders

To remedy this error, make sure the $specialtemplates and RPG_core::set_cachefields() variables are properly populated.
The error occurred in rpg.php."
I simply needed to add 'rpg_genders' to the end of:

Quote:

$specialtemplates = array(
'rpg_alignments',
'rpg_categories',
'rpg_clans',
'rpg_classes',
'rpg_elements',
'rpg_items',
'rpg_races',
'rpg_types',
'rpg_genders'
);
and

Quote:

RPG_core::set_cachefields(array(
'rpg_alignments',
'rpg_categories',
'rpg_clans',
'rpg_classes',
'rpg_elements',
'rpg_items',
'rpg_races',
'rpg_types',
'rpg_genders'
));

Kingzor 04-02-2006 03:26 AM

How do i uninstall the hack so i can reinstall it fresh from the start?
Edit:changed index.php to uninstall.php

also nadanada save your self some work....instead of "rpg_gender" make it "rpg_genders" no table renaming needed :P

Revan 04-02-2006 09:54 AM

Sorry about that rpg.php error, I will release Update 1 that will fix this along with WOL locations later today.
Hey at least I taught you guys how to debug new created pages that require $RPG->init_user(), aye? :p

Ziki 04-02-2006 10:12 AM

Revan how to uninstall it?

Revan 04-02-2006 10:22 AM

uninstall.php?

Ziki 04-02-2006 11:20 AM

Doesn't work
It takes me back to index.php

Can you please tell all database queries the installer does so I can uninstall it manualy?


All times are GMT. The time now is 02:21 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.02127 seconds
  • Memory Usage 1,870KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (14)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