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)

Deimos 08-19-2004 06:47 PM

Heh, i'm getting the password problem again, when accepting new battles
This is with the uploaded/updated battle php files

Revan 08-19-2004 06:59 PM

1 Attachment(s)
Quote:

Originally Posted by Deimos
Next question...

When someone dies, it says they have to goto the healing centre
Well, i'm in there on a dead character and there's nothing in here to do?
IT says my hit points are full (0/0), so is my MA (0/0)

The Heal me button doesn't do anything, just refreshes the screen......

------

Also, when trying to cancel a battle when it's waiting for a response from the challenged party, it comes up with a sql error saying the battle table doesn't exist.

Your first error must be due to the RPG stats not being updated, as that is the only reason who both your HP and MA would be 0 (as its rare to have your MA being exactly 0)

Your second error must be due to even more ".TABLE_PREFIX." missing, I will find the line and tell you how to patch it.
Ah, here it is:
Goto line 59 and replace it (
PHP Code:

        $DB_site->query("DELETE FROM battle WHERE battlenumber='$battlenumber'"); 

) with
PHP Code:

        $DB_site->query("DELETE FROM ".TABLE_PREFIX."battle WHERE battlenumber='$battlenumber'"); 

this applies to everybody with a prefix on their forums.


SB2000, the fix for your error is:
Goto line 552 and remove the comma of this code:
PHP Code:

            rm_col_access='$rm'

Afterwards, go to line 544 and remove it :)
(It is about the Clan Shoutbox, which I was forced to remove due to excessive amount of template and coding errors)


Ok try this file for the invalid stuff errors:

SB2002 08-19-2004 07:06 PM

sweet, thanks for the prompt reply.

This hack has turned my board from a group of none rpg fans into belivers, lol.

Revan 08-19-2004 07:07 PM

np mate :)
Im really sorry for this being so buggy, I swear I tested it... :(
Ah well with the help of you all I hope one day this can be error free :D

SB2002 08-19-2004 07:10 PM

heh, i wouldnt worry too much.I installed the old rpg hack from the start on my old forums and I can recall so many days of db errors that it was just as much fun playing the db error lottery as it was playing the game lol

Deimos 08-19-2004 07:16 PM

Trying to save my RPG Profile (user cp/update info) comes up with.

Invalid SQL: UPDATE user SET element='3', rpgrace='2', alignment='2', rpggender='2', rpgclass='14', rpgtype='0' rpgstats='0' WHERE userid='1686'
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 'rpgstats='0' WHERE userid='1686'' at line 1

fun :P
hehe

Revan 08-19-2004 07:20 PM

You forgot the comma before rpgstats :)
EDIT: no sorry that was my fault. Readme error :(


What I really need is updates on the clancp and battle password bugs...? :)


EDIT2: I just fixed a small graphical bug when an user in battle's HP is less than 25% of max.
Nothing much but it will be included in the next build when all errors are DEAD and BURIED! :p

Deimos 08-19-2004 07:48 PM

Ah, ok
Only issue I see now, is it won't save my RPG name in the usercp?
If I put a name in, it refreshes and doesn't save, heh
I know, i'm a pain

Revan 08-19-2004 08:19 PM

This is really weird, never happened to me before...
Ill look into it tomorrow, now its sleep :p

Deimos 08-19-2004 09:00 PM

Sleep? Pfft, sleep is for the weak! :P

Hehe, sleep well man, good job again

Deimos 08-19-2004 09:55 PM

Bug with the lottery

You Do Not Have Enough Gil To Buy A Ticket!
You Only Have Gil in your pocket.

I only have gil? shouldn't it say "You only have XX Gil in your pocket"?

deathemperor 08-20-2004 04:15 AM

Revan, told you that you should test it before the release, even you said that you tested it with no problems, how can I believe it with those buggy things ?

and I don't know how could you miss this:

PHP Code:

$DB_site->query("DELETE FROM battle WHERE battlenumber='$battlenumber'"); 

should be replace with
PHP Code:

$DB_site->query("DELETE FROM ".TABLE_PREFIX."rpg_battle WHERE battlenumber='$battlenumber'"); 

it's rpg_battle but not battle (there is no battle table), this is a crazy mistake that I couldn't even believe

of course the battle doesn't work, I think you got the same problem like the bitsys' RPG, you can re-read that thread.

Kru 08-20-2004 07:58 AM

I have the store and money system of the vPetz hack installed at my system. Is there a way that I can use it instead of uCash/uShop . I installed vbookie at my forum, too and it allows me to choose between uCash/uShop and vBetz money. Maybe somebody can tell me which changes I must make to run the rpg hack with the vPetz money?

ogetbilo 08-20-2004 12:13 PM

I have 2 questions.
1. Even if you have enough money you cannot heal yourself.Healing is not working.
2. I bought an item and tried to have fight but I couldnt use the item.It says I dont own any weapons I can use.
If a member buys an item does he supposed to do any action in order to use in the battle ?

Also even if you choose to use mid files during the war it isnot also working.

But it is an awesome hack.When you will release without any bugs i will install to my board.

Deimos 08-20-2004 12:27 PM

Quote:

Originally Posted by ogetbilo
I have 2 questions.
1. Even if you have enough money you cannot heal yourself.Healing is not working.

I had the same problem to. :(

Quote:

2. I bought an item and tried to have fight but I couldnt use the item.It says I dont own any weapons I can use.
You have to go into the Admin panel, click Itemshop, then Edit Items
On the next page you'll see "Weapons - Add items, Edit Remove"
Click Edit, then change the battletype to "One handed weapon" or "Two handed"
Then you can use them in battle.

Deimos 08-20-2004 12:28 PM

Is it possible to disallow point generation from a forum which is specifically setup for spam?
Since I put the system in, people are now spamming the "Spam forum" to get "Gil" so they can buy items
Like the petz system, can the code be changed to disallow gil generation for forums which are setup to not count towards post counts?

Revan 08-20-2004 01:30 PM

Quote:

Originally Posted by deathemperor
Revan, told you that you should test it before the release, even you said that you tested it with no problems, how can I believe it with those buggy things ?

and I don't know how could you miss this:

PHP Code:

$DB_site->query("DELETE FROM battle WHERE battlenumber='$battlenumber'"); 

should be replace with
PHP Code:

$DB_site->query("DELETE FROM ".TABLE_PREFIX."rpg_battle WHERE battlenumber='$battlenumber'"); 

it's rpg_battle but not battle (there is no battle table), this is a crazy mistake that I couldn't even believe

of course the battle doesn't work, I think you got the same problem like the bitsys' RPG, you can re-read that thread.

Weird that I didnt find this error when I tried to delete a battle, seeing as Im using the same files as is in the zip and I dont get the error.
It would also help that you actually named the file, saves me the hassle of looking through every file.

Quote:

Originally Posted by Deimos
Bug with the lottery

You Do Not Have Enough Gil To Buy A Ticket!
You Only Have Gil in your pocket.

I only have gil? shouldn't it say "You only have XX Gil in your pocket"?

EDIT:
Template error. Go into your Template Manager and find in the 'lottery_error2' template;
PHP Code:

$usershi[]t[field1

replace with
PHP Code:

$usershi[]t[uttpoints

Due to vB.org's policy, please remove the []'s from the 2 above to find what you really have to find and replace
;)

Quote:

Originally Posted by ogetbilo
I have 2 questions.
1. Even if you have enough money you cannot heal yourself.Healing is not working.

I am still unable to pin this down.
I put on healing cost, and entered my SQL to set my HP and MA to 0, and it updated fine.


In general news, Im gonna talk around and find a host where I can setup a beta forum where I install the uCS and RPG only, and where you can enter and find bugs. :)

deathemperor 08-20-2004 01:31 PM

Quote:

Originally Posted by Deimos
Is it possible to disallow point generation from a forum which is specifically setup for spam?
Since I put the system in, people are now spamming the "Spam forum" to get "Gil" so they can buy items
Like the petz system, can the code be changed to disallow gil generation for forums which are setup to not count towards post counts?

yes you can, since UCS offers you that.
Go to forum manager --> edit that forum --> set all the number to 0. the users won't have points by posting in that forum

Revan 08-20-2004 01:42 PM

1 Attachment(s)
As for the healing errors, try this file.
It doesnt really have any fixes, but its worth a shot.... :ermm:

Deimos 08-20-2004 01:47 PM

Quote:

Originally Posted by Revan


In general news, Im gonna talk around and find a host where I can setup a beta forum where I install the uCS and RPG only, and where you can enter and find bugs. :)

If the VBulletin license allows it, i'd be happy to setup a temp boards on my server for you to beta test with
I think the license allows it as long as it's not a live forum, but used for testing, right?

Revan 08-20-2004 02:13 PM

Yeah thatd be cool :D
I would of course need FTP access to do the coding ;)
Awaiting news about this :)

Deimos 08-20-2004 02:20 PM

Sure thing
I've posted about it on the vbulletin.com forums to see if it's ok
I did check the licence agreement but it's abit shady as to wether it would be allowed or not.

Quote:

If you have a valid licence, you may set up an additional test forum in order to test code, template and database modifications. To make this clear to us and our licence verification procedures, place it in a directory called 'testvb' and be sure to password protect it. It must not be accessible by the general public.

Revan 08-20-2004 02:23 PM

Hm well it would be accessible for the "public" that were to track down errors... perhaps we can have a little group that does this?
This wouldnt be classified as "public" yet enough people could take the hack apart to scan for the remaining bugs...

thanks for doin this, you been a great help :D

deathemperor 08-20-2004 02:27 PM

just: disable new registrations + guests cannot view board.

well if you need a 'beta tester' ^^

Deimos 08-20-2004 02:28 PM

I guess the publically accessible bit means it can't be accessed by going to the domain, which it can't
Hopefully i'll get a response soon.
But in the mean time i'm in the process of setting it up.

Deimos 08-20-2004 02:39 PM

Quote:

Originally Posted by Revan

thanks for doin this, you been a great help :D

You mean a pain in the ass :P
hehe
Check yer pm's.

Revan 08-20-2004 02:47 PM

Quote:

Originally Posted by Deimos
You mean a pain in the ass :P
hehe

Oh so youd rather the errors be left in there? XD
Wtf kinda support would it be if I thought users alerting me about errors was pains ;)

Deimos 08-20-2004 02:56 PM

Hehe, good point.
Forums are setup, so should we just take "recruits" to test them out? (when rpg is setup?)

Revan 08-20-2004 03:02 PM

Yeah sounds good.
Then again we dont want newbies that goes "omfgz heres an error" then leaves and never comes back XD (even tho I havnt seen one in THIS thread)

This sound aight?


Ill begin editing the files for uCS and RPG now, so if I dont reply even if Im viewing this thread thats why ;)

Deimos 08-20-2004 03:05 PM

Sounds good
It's your board to test on, so help yourself
I'll let you deal with giving out the URL etc for testers.

Polo 08-20-2004 04:11 PM

I'm apoligize for my ignorance, but i'm not that of a RPG fan... and i would like to know what the following means... (i hope i'm not the only one that needs to know this....)

RPG ?
HP ?
MA ?
PP ?
EXP ? (Experience maybe?)
Gil ?

Thanks for helping me out understand more about this RPG stuff, i really appreciate it.

Revan 08-20-2004 04:32 PM

The RPG Name not updating error has been fixed even BEFORE the complete RPG has been installed on the error find board! :D
I have added the changes to the build3 changelog text file.

I figure its best to relelease a cumulative Service Pack (M$, bite me :p ) than random error fixes and tons of attachment updates. :)
If anyone really cant wait for the test team to pick the hack apart for all errors, just holler out and I will give you a quickfix ;)



Quote:

Originally Posted by Polo
I'm apoligize for my ignorance, but i'm not that of a RPG fan... and i would like to know what the following means... (i hope i'm not the only one that needs to know this....)

RPG ?
HP ?
MA ?
PP ?
EXP ? (Experience maybe?)
Gil ?

Thanks for helping me out understand more about this RPG stuff, i really appreciate it.

RPG - Role Playing Game
HP - Health Points/Hit Points
MA/MP - Magic Aura/Magic Points
PP - Power Points
EXP - EXPerience Points (yer right ;) )
Gil - Money. It is the currency Final Fantasy games use

This helped? :)

Polo 08-20-2004 04:37 PM

Thank you Revan, that is all I needed to know ;) I appreciate it...
Regards

House_of_Crazed 08-20-2004 09:42 PM

Honestly, I'm not surprised that it's messy.

I'm sitting here trying to figure out how to start. I don't see a readme.htm as stated in the README text file.

Maybe it might be a good idea for you to sit down and go through everything & clean it up much more further. Even the installation instructions is messy.

HoC

winlya 08-21-2004 03:20 AM

wow..cool hack..
I am waiting this hack a long time.
But I look this hack same RPG Inferno V1...

Rahzel_hx 08-21-2004 03:59 AM

I'm having trouble i don't know how to install the rpg_phases and rpg_templets

Edit: nvm i'm stupid XD lol i fixed it
Edit#2: The lottery hack doesn't work no matter how many times i say to add lottery it says didn't fill out all the forums... where can i get the pictures for the diffrent classes ect?

winlya 08-21-2004 07:21 AM

hic,I just testing on localhost.But not work.
some error with me when install
PHP Code:

Database error in vBulletin 3.0.3:

Invalid SQLCREATE TABLE `rpg_clan` (
  `
clanidsmallint(5unsigned NOT NULL auto_increment,
  `
titlevarchar(50NOT NULL default '',
  `
passvarchar(50NOT NULL default '',
  `
leadervarchar(50NOT NULL default '',
  `
clanpointsvarchar(5NOT NULL default '',
  `
logovarchar(100NOT NULL default '',
  `
allyvarchar(10NOT NULL default '0',
  `
enemyvarchar(10NOT NULL default '0',
  `
sb_settingschar(1NOT NULL default '0',
  `
maxmemint(3NOT NULL default '5',
  `
col1varchar(5NOT NULL default '0',
  `
col2varchar(5NOT NULL default '0',
  `
col3varchar(5NOT NULL default '0',
  `
col4varchar(5NOT NULL default '0',
  `
sb_col_accessvarchar(5NOT NULL default '0',
  `
cm_col_accessvarchar(5NOT NULL default '0',
  `
ci_col_accessvarchar(5NOT NULL default '0',
  `
rm_col_accessvarchar(5NOT NULL default '0',
  `
clanmidiurlvarchar(100NOT NULL default '',
  
PRIMARY KEY  (`clanid`)
TYPE=MyISAM;

mysql errorYou have an error in your SQL syntax near ';
at line 22

mysql error number
1064

Date
Saturday 21st of August 2004 03:08:46 AM
Script
http://localhost/vbb3.0.3/install/battleinstall.php?step=1
Refererhttp://localhost/vbb3.0.3/install/menue.htm
Usernameadmin
IP Address
127.0.0.1 

And when install rpg_phases...
PHP Code:

The file you attempted to import only contains phrases and none of the settings requiredYou will be unable to make a new language with this file

Please fix some error man..
thank agian ^_^

ogetbilo 08-21-2004 07:52 AM

With the updated heal.php healing is working now.
But I found 2 more problems.
When I tried to optimize my database tables I had this warning :

PHP Code:

rpg_rpg_alignment      Check      WarningFound row where the auto_increment column has the value 0
rpg_rpg_alignment     Check     Status
OK
rpg_rpg_alignment     Optimize     Status
OK
rpg_rpg_classf     Check     Warning
Found row where the auto_increment column has the value 0
rpg_rpg_classf     Check     Status
OK
rpg_rpg_classf     Optimize     Status
OK
rpg_rpg_classm     Check     Warning
Found row where the auto_increment column has the value 0
rpg_rpg_classm     Check     Status
OK
rpg_rpg_classm     Optimize     Status
OK
rpg_rpg_element     Check     Warning
Found row where the auto_increment column has the value 0
rpg_rpg_element     Check     Status
OK
rpg_rpg_element     Optimize     Status
OK
rpg_rpg_race     Check     Warning
Found row where the auto_increment column has the value 0
rpg_rpg_race     Check     Status
OK
rpg_rpg_race     Optimize     Status
OK
rpg_rpg_type     Check     Warning
Found row where the auto_increment column has the value 0
rpg_rpg_type     Check     Status
OK
rpg_rpg_type     Optimize     Status
OK 

Why do i have a warning like this when I optimize the tables.
Also I dont know why but character names are always same with your location.
I thiink you miss coded something ovet there.Noone can update their names.

Starscream 08-21-2004 08:13 AM

Revan, thanks for the dropdown in the postbit. It is perfect for my forum. All things seem to be running great on my site. I have even heavily modified/adapted the RPG elements to fit my site theme and everything has gone pretty smoothly and is operational.

I am having one minor problem concerning the dropdown. I can't figure out how to make the dropdown in the postbit become the default view. I like that you made it so you can choose between having the dropdown or not, but I wish the dropdown would be the default view. It's probably a simple change, but I can't see it. Any help would be very appreciated.

*Clicks Install*

Rahzel_hx 08-21-2004 08:51 AM

Quote:

Originally Posted by winlya
And when install rpg_phases...
PHP Code:

The file you attempted to import only contains phrases and none of the settings requiredYou will be unable to make a new language with this file

Please fix some error man..
thank agian ^_^

Don't select it to be a new language select it to be meged with a language that you already have installed.. example: English Us


All times are GMT. The time now is 05:21 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.02046 seconds
  • Memory Usage 1,889KB
  • 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
  • (13)bbcode_php_printable
  • (13)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