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)

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.


All times are GMT. The time now is 11:33 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.01547 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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