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 04-02-2006 12:51 PM

All queries are in installer\hacks\rpg_integr_hack\mysql-schema.php

I guess you got stuck in the versionnumber thing like I did. Where are you now? Fixing the beta install so you can do an uninstall or proper upgrade may be less work than manually uninstalling all (templates, phrases).

Ziki 04-02-2006 01:30 PM

I am trying to delete all tables made by the installer and I am gonna install again.But I dunno which tables it altered...

Revan 04-02-2006 03:02 PM

If it takes you back to index.php then its because it detects you haven't upgraded to the latest version.
I don't understand how you could get stuck in the version number issue, its two people out of all the people that dloaded this...

Revan 04-02-2006 08:55 PM

Update 1 released

Just a quick update because of a PHP error, also added is the WOL locations.

Kingzor 04-02-2006 09:22 PM

tried reseting items, got the following error:
Code:

Database error in vBulletin 3.5.4:

Invalid SQL:
WHERE `itemid` NOT IN (1);

MySQL Error  : You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `itemid` NOT IN (1)' at line 1
Error Number : 1064
Date        : Sunday, April 2nd 2006 @ 05:22:07 PM
Script      : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
Referrer    : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
IP Address  :x.x.x.x
Username    : King
Classname    : vb_database


Revan 04-03-2006 07:41 AM

Hm, Ill look into that when I get home.

TosaInu 04-03-2006 02:31 PM

Quote:

Originally Posted by Revan
You need to have a specific comment present in your navbar:
<!-- / nav buttons bar -->
This is present just below the </div> in the default navbar template.

3.5 update 1 installed fine, no problems at all. But the navbar is still not loading. The plugin is there and active, but I can't find anywhere what to edit in the template navbar.

The idea is that a whole new navbar is added, right?

Revan 04-03-2006 03:32 PM

Yeah. You should look in the default templates for where to place that code.

Anyways, Ive located the source of the problems that caused upgrades to malfunction, and I've removed the files pending an update.
I am looking into the above SQL error, at which point I will release Update 2.

TosaInu 04-03-2006 03:46 PM

Which code? I've added a second non RPG navbar in the production board, so adding my own RPG bar shouldn't be a huge problem. But you added the plugin code already, so better use that. I guess we should add a line in template navbar, but what is that code? The installation guide doesn't mention anything at all.
-Is the supplied RPG navbar supposed to show.
-Is any template edit required to make it show?

Great that you fixed the installer, it ran smooth for me. It upgraded from 3505 to 3507.

Revan 04-03-2006 04:00 PM

The problem was for new installers, their version number settings was getting corrupted.

Anyways, what you mean "what code"? The comment you put above. Thats the code the plugin is trying to find in your skin.

TosaInu 04-03-2006 04:04 PM

Quote:

Originally Posted by Revan
The problem was for new installers, their version number settings was getting corrupted.

Anyways, what you mean "what code"? The comment you put above. Thats the code the plugin is trying to find in your skin.

Code:

<!-- / nav buttons bar -->
That code is in the template. It doesn't show the RPG navbar, but isn't it just an ignored comment?

Revan 04-03-2006 04:16 PM

No thats the place where it would normally try to plugin to the table.

Revan 04-03-2006 04:25 PM

Update 2 released.

This update only adresses a few minor and localised problems in the AdminCP. For new users installing, it fixes many issues in the installer that would corrupt their install beyond repair. Sorry for all the mishaps.

TosaInu 04-03-2006 04:31 PM

Quote:

Originally Posted by Revan
No thats the place where it would normally try to plugin to the table.

Quote:

Originally Posted by Revan
You need to have a specific comment present in your navbar:
<!-- / nav buttons bar -->
This is present just below the </div> in the default navbar template.

I'm totally lost now.

-1 The RPG hack has a plugin and whatever to display a RPG navbar -right?
-2 To actually use this, there must be a piece of code in some template for each style -right?
-3 I assume there must be some sort of code pasted into template navbar right?
-4 I assume this code has to be pasted just above <!-- / nav buttons bar --> -right?
-5 What is this code?

Revan 04-03-2006 04:33 PM

Quote:

Originally Posted by TosaInu
I'm totally lost now.

-The RPG hack has a plugin and whatever to display a RPG navbar -right?
-To actually use this, there must be a piece of code in some template for each style -right?
-I assume there must be some sort of code pasted into template navbar right?
-I assume this code has to be pasted just above <!-- / nav buttons bar --> -right?

Wrong. That comment IS the code. The plugin looks for that very comment and tries to hook onto it.

TosaInu 04-03-2006 04:35 PM

Ok, it doesn't work for me then.

Revan 04-03-2006 04:38 PM

Guess youll have to use that method you coded yourself then, or whatyousaid. Strange how it wont work, owells.

TosaInu 04-03-2006 05:09 PM

Don't worry: conflict with other hack or something with our PHP configuration and/or board settings.

Got a working navbar now. Your (and team) work should bring a lot of fun on our board :)

Revan 04-03-2006 05:44 PM

Excellent, glad to have it all working for you. (Read: Your not allowed to have any more problems, hear!? ;)). Hehe.

Kingzor 04-04-2006 01:50 AM

Code:


Parse error: syntax error, unexpected T_STRING, expecting '(' in /xxx/xxx/public_html/vbull/admincp/rpg_maintenance.php on line 394

went to goto do "Maintenance" and got this error.


Code:

                        else if (in_array($cachename, array('items')))
works


but still getting

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

                                        UPDATE `rpg_user`
                                        SET `items` = '',
                                                `inventory` = '';

MySQL Error  : Unknown column 'items' in 'field list'
Error Number : 1054
Date        : Monday, April 3rd 2006 @ 09:53:03 PM
Script      : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
Referrer    : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
IP Address  : xxxxxx
Username    : King
Classname    : vb_database

when i tried resetting items.

Ziki 04-04-2006 06:39 AM

Quote:

Originally Posted by Kingzor
Code:


Parse error: syntax error, unexpected T_STRING, expecting '(' in /xxx/xxx/public_html/vbull/admincp/rpg_maintenance.php on line 394

went to goto do "Maintenance" and got this error.


Code:

                        else if (in_array($cachename, array('items')))
works


but still getting

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

                                        UPDATE `rpg_user`
                                        SET `items` = '',
                                                `inventory` = '';

MySQL Error  : Unknown column 'items' in 'field list'
Error Number : 1054
Date        : Monday, April 3rd 2006 @ 09:53:03 PM
Script      : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
Referrer    : http://www.hiberniagaming.net/vbull/admincp/rpg_maintenance.php
IP Address  : xxxxxx
Username    : King
Classname    : vb_database

when i tried resetting items.



Run the SQL query in mysql-scheme.php to remake the items

Revan 04-04-2006 08:02 AM

Nah its just a code error in that batch.
PHP Code:

            else if (in_array($cachename, array('items')))
            {
                
// items aren't in user table
                
$db->query_write("
                    UPDATE `" 
TABLE_PREFIX "user`
                    SET `items` = '',
                        `inventory` = ''
                "
);
            } 

That's what happens when you code when in a rush...
I dont think I cba to fix this until I done some other features, all these non-content updates are becoming tiring :p

cayote 04-04-2006 10:31 AM

Just the error:

Parse error: parse error, unexpected T_STRING, expecting '(' in /homepages/26/d1xxxxx824/htdocs/forum/admincp/rpg_maintenance.php on line 394

Otherwise everything seems to work fine...oh..inventory...is that not operational? Clicking on it just gets a page not found error.

Thanks

Revan 04-04-2006 10:34 AM

Edited the code, small mistake.
And no, the Inventory isn't done yet.

cayote 04-04-2006 10:38 AM

Ok..thx for quick reply...so I just paste that code you posted above over what's already in there? (Sorry, kinda newbish at this)

NEVERMIND....I did it and now it works...Thanks again, great game!

Ziki 04-05-2006 11:19 AM

Revan how to unpopulate the tables?I deleted the tables it create but I don't know how to unpopulate

Solitary Seraph 04-05-2006 11:57 AM

Did you run the uninstall.php that comes in the installer folder?

Ziki 04-05-2006 01:28 PM

I don't have the RPG installed anymore so there is no use.I just wanna know how to unpopulate tables....

Revan 04-05-2006 07:17 PM

I do not support methods of removal other than the uninstall.php.

Update 3 released
This takes care of a small problem with the Maintenance functions, file gave a parse error.
And since I hate to increment version numbers without actually adding something, I took care of what used to be #4 in the Known Issues list. User are now able to Reset their RPG Info by clicking the Reset radio button in their Headquarters, then confirm this action before it's finally reset.

What it does:
* Reset everything users chose in the Create Character.
* Reset Battle Statistics.
* Gives the admin the option of resetting Money and/or Items (Equipped as well as Inventory).

What it does not:
* Delete the Clan the user was in. Reason for this is because for larger boards with larger clans, just disbanding the clan might not be a good option. I will make something out of this later.

Revan 04-05-2006 07:33 PM

Whoops... A bit too pre-emptive with the AdminCP Maintenance fix, seems like the file wasn't properly added to the zip.
Fixed now, hopefully not too many downloaded.

shoupz 04-06-2006 06:06 AM

hey revan, is there a way to set a higher amount of members to join a clan, i'm only getting a maximun of 5 members for each clan.

theorigin 04-06-2006 07:11 AM

This is probably a really stupid question..but why am I receiving this when I'm the head admin and every option (that I know of) is set to Yes?

Quote:

Sorry, you don't have permission to access the administrative controls on this page.

If you need to access this page, ask your lead administrator to enable your permissions for this page using the Administrator Permissions section of the control panel.

Revan 04-06-2006 07:51 AM

Quote:

Originally Posted by shoupz
hey revan, is there a way to set a higher amount of members to join a clan, i'm only getting a maximun of 5 members for each clan.

You need to increase your clan's Rank. Do this by winning battles against players (not bots) of opposite clans (own clan members wont work).
Quote:

Originally Posted by theorigin
This is probably a really stupid question..but why am I receiving this when I'm the head admin and every option (that I know of) is set to Yes?

Try making yourself Super Admin through the variable and check the Admin Permissions, that's the only thing I can think of rly.

Ziki 04-06-2006 08:26 AM

Ermm Revan?The uninstall.php doesn't work at all.I installed The RPG but I get a blank page when I want to access a feature and when I tried to uninstall it just upgraded....how should I uninstall then?

Ziki 04-06-2006 08:28 AM

OK sorry got it to work
..................
that's ++++ing stupid.It only uninstalls if I have the newest version

Anyway Revan b4 it looked much better than now.Now when they want to change the class they lose the EXP and everything!tHAT'S STUPID

Revan 04-06-2006 03:12 PM

Quote:

Originally Posted by ZIKI-SET
OK sorry got it to work
..................
that's ++++ing stupid.It only uninstalls if I have the newest version

Yeah because the SQL errors the tables would generate if you didn't have the newest version installed wouldn't be "+++ing stupid".
Quote:

Originally Posted by ZIKI-SET
Anyway Revan b4 it looked much better than now.Now when they want to change the class they lose the EXP and everything!tHAT'S STUPID

If you can show me more than one RPG that allows you to change your Class without losing anything...
kthxbai

Replicators 04-06-2006 03:15 PM

Most real RPG's drop your level to 1 when you change class, play a game like wizardry 8 for example and it makes sense, For example, you are skilled in electronics, you know everything there is to it, then you wanna take up mechanic, would you know the same about being a mechanic as you do as a electrician? So no it's not stupid, it's RPG!

BTW revan, you are doing a great job with this mod! My only request for a future version is that we can have a world map, and towns and stuff to explore, i know that's prob asking for too much for a free mod though.

KurtBMX 04-06-2006 04:27 PM

Hi Revan

Could you give a short explaination on how to edit ibots?

i would like to edit the reward prices of the current ones, and perhaps change there names and possible add some new ones?

(refering to Monster Arena)

any help would be greatly appreciated

/KurtBMX

Revan 04-06-2006 06:35 PM

Quote:

Originally Posted by Replicators
BTW revan, you are doing a great job with this mod! My only request for a future version is that we can have a world map, and towns and stuff to explore, i know that's prob asking for too much for a free mod though.

Free or paid, I will never add this feature. Sorry, but a world map is just not something that conforms with the direction this hack will be taking. Im planning to move for a forum integration to make it more worthy of its name, and a World Map is basically creating a game seperate from the forum. I want the RPG to be an extra incentive to post for RP boards, not be something people can use to spend time while waiting for posts.
Quote:

Originally Posted by KurtBMX
Hi Revan

Could you give a short explaination on how to edit ibots?

i would like to edit the reward prices of the current ones, and perhaps change there names and possible add some new ones?

(refering to Monster Arena)

any help would be greatly appreciated

/KurtBMX

AdminCP -> RPG Integration Hack Menu -> I-Bot Manager :)

Replicators 04-06-2006 06:51 PM

Quote:

Originally Posted by Revan
Free or paid, I will never add this feature. Sorry, but a world map is just not something that conforms with the direction this hack will be taking. Im planning to move for a forum integration to make it more worthy of its name, and a World Map is basically creating a game seperate from the forum. I want the RPG to be an extra incentive to post for RP boards, not be something people can use to spend time while waiting for posts.
AdminCP -> RPG Integration Hack Menu -> I-Bot Manager :)

Yea i can understand where your coming from, i still have confidence that however it is like, it will be good >8)


All times are GMT. The time now is 02:09 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.01867 seconds
  • Memory Usage 1,846KB
  • 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
  • (8)bbcode_code_printable
  • (1)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