View Single Post
  #123  
Old 08-21-2004, 10:18 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by winlya
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/vB3.0.3/install/battleinstall.php?step=1
Refererhttp://localhost/vB3.0.3/install/menue.htm
Usernameadmin
IP Address
127.0.0.1 
I cant seem to find an error in this installer, just yesterday I installed perfectly on the beta board I use to track down bugs.
At any rate, the new installer has redundant sections removed from it, patches for which will be found in the new version due to be released once all bugs have been pinned.


Quote:
Originally Posted by ogetbilo
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.
2 things for you:
First of all, those warnings appear because the rpg_rpg_type is of course auto_increment (since if you add more than one type you would get SQL errors if it didnt automatically increment by one.)
But the default value, the value that your users have BEFORE they update their stats, are "Unknown" which has an ID of 0.
I might change the numbers to have 1 be the default, but this would NOT work if you already installed the hack.
Dont worry about it

Second, please consult the FAQ_FRE file for solution to your RPG Name problem.
I will move that info over to the installer as it seems like everyone gets this problem



Quote:
Originally Posted by Starscream
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*
You can make the dropdown be the default view by running these 2 queries:
[SQL]ALTER TABLE `user` DROP `rpgstats`;
ALTER TABLE `user` ADD `rpgstats` CHAR(1) NOT NULL DEFAULT '0';[/SQL]
0 is the dropdown value and 1 is the normal postbit value
(Just remember to run these seperately in acp, and in quick succession to avoid SQL errors if an user tries to update )
Thanks for clicking install btw


Quote:
Originally Posted by SB2002
I have a question. I've divided the itemshop into different sections for the different classes, the only thing is, the only weapons people can buy are the generic ones, no matter what class they chose. When they access their classes weapons, it tells them that they must be that class to buy them.

ie i have a pistoleer class, and they should be able to buy the pistols, but whenever they go to that classes shop they are told they must be a pistoleer to purchase them...... any ideas?

Or do I have to just have everything as generic?
I believe you have to update the Classes as well. Currently all your classes are (probs) set to Generic type, and so they can only get Generic items
I have not done extensive testing on the Battle Types yet, but it will come in time



Thats about everything I guess
The Service Pack 1 that will update this hack to v2.5 build1 is in the works, with new bugs being squashed every day
I cannot tell an ETA yet, but heres the remaining sections to test:
* Itemshop
* User's Battle Types as discussed in the above quote
* Battle
* Healing

Finished sections:
* Entire ACP
* Entire ClanCP
* RPG CP

Additional work:
* Templates

 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01145 seconds
  • Memory Usage 1,843KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete