View Full Version : Ultima Battle System -- vB Integration
Link14716
10-30-2002, 10:00 PM
This is definetly in BETA. I am not feeling too good, and may have missed something in the instructions, but I doubt it. This has been tested minimally. Use at your own peril.
To use this hack, you must have UBS (Ultima Battle System) 1.0.5 installed. You can get it from http://www.gaming-honor.com/hq.
This integrates templates and users between the two. Templates will be ran out of the vB Admin Center like any other template, and users will be equally shared.
REQUIREMENTS:
-Ultima Battle System
-Caffine... lots of it.
-Band-aids.
-A lot of patience.
This is a brutal process, involving renamng every template UBS has and a find/replace spaning through all of the UBS files. If you can survive that, well, then you can get this hack installed.
Support only offered in this thread and the one at UB Systems HQ. Enjoy!
UB Systems HQ Support: http://www.gaming-honor.com/hq/thread.php?threadid=24&boardid=19&styleid=&page=1
Velocd
10-31-2002, 02:38 AM
Lol, those Burning Board's are very similar to design of a vBulletin. You can obviously tell who they modeled after.
How about demo's or screenshots Link? If this actually works..
And a demo of it on a vBulletin would be good, not a non-vB.
I'm not interested in installing even if it does, simply curious.
Link14716
10-31-2002, 02:42 AM
The script itself is a standalone. I was planing not to give screenshots since it doesn't change the appearance of the hack.
It does work, but the battle system ultimately is still pretty buggy. At the same time, this hack doesn't make it more or less buggy :)
My demo is: http://www.vggmn.com/rpg. And whoops, need to post a template change :) That way, people can't use the register.php in the battle system, but need to use the forum's registration. :)
Erwin
10-31-2002, 02:55 AM
Mmm... I keep seeing the same page in your demo. :)
Is this hack integrated into vB? Ie. does it use the same RPG stats, the same itemshop, points system, as vB, or it this a totally separate program, with pages just being integrated in vB?
Link14716
10-31-2002, 03:03 AM
Erwin, it's a totally seperate program, users has it's own table and things are stored there. With the integration, when users register or update their profile, info is changed on both tables, and I even programmed a p[art to transfer existing members over to the RPG table.
This is only my version 1.0 of the integration. Things will become better later on.
And yes, if you are not registered, you'll see the same page. That is something that was built in by design and needs to be changed to redirecting to the register page, but for now, :P.
Goldknight
10-31-2002, 06:20 AM
Link, since I m bit boring so I decide to give this hack a try and I follow everything in your instruction to T and then use url http://localhost/forum/admin/misc.php?action=irpg
then I got this error:
Database error in vBulletin Control Panel 2.2.8:
Invalid SQL: INSERT INTO db_users (userid,username,userpassword,useremail,regemail,r egdate,groupid)
VALUES ('2','test','098f6bcd4621d373cade4e832627b4f6','te st@hotmail.com','test@hotmail.com','1036049880','3 ')
mysql error: Table 'vbulletin.db_users' doesn't exist
mysql error number: 1146
Date: Thursday 31st of October 2002 01:14:44 AM
Script: http://localhost/forum/forum/admin/misc.php?action=irpg
Referer:
Then follow your instruction to edit all of UBS to change the gettemplate(" to gettemplate("rpg_ then rename all of UBS templates for rpg_ And UBS functions.php
After all of it, when I try to open UBS by point the browser to http://localhost/forum/rpg and my local server crashed! I cannot use local server until I reboot. It happen to me three times in row after install this hack and change etc..
What wrong? Why does it crash my local server? Any idea?
Graphics
10-31-2002, 06:52 AM
you have to get the rpg battle system and install it first
Link14716
10-31-2002, 10:20 AM
Well, by that error, you haven't ran the install file for the battle system. About your server crashing, I dunno. Something MUST have gone wrong there, but whatever it is, can't put my finger on it.
Goldknight
10-31-2002, 01:39 PM
Originally posted by Graphics
you have to get the rpg battle system and install it first
As I stated I follow Link's tutorial to T, I mean that I already install it by follow the step by step..yet it spit out the error..
Oh well..
Goldknight
10-31-2002, 01:42 PM
Lemme see if I edit correct or not, pls let me know..
Heres data.inc.php
<?
// Hostname or IP of your MySQL-Server
$mysqlhost = "localhost";
// Username and Password to Login to your Database
$mysqluser = "root";
$mysqlpassword = "password";
// Name of your Database
$mysqldb = "rpg";
// Email Address of the Administrator
$adminmail = "xxxxxx@hotmail.com";
//What kind of board are you running?
$mytypeofboard = "vb";
//what's your boards name?
$myboardname = "Localhost";
//logo url
$myimageurl = "images/ghban.jpg";
//my path to the rpg scripts
$myscriptpaths = "rpg/";
//position of the logo
$mylogopostion = "center";
//the lobby music
$mylobbymusic = "battle_music/lobby.mid";
//the shop music
$myshopmusic = "battle_music/shop.mid";
//music for the battle entrance
$mybattleentrancemusic = "battle_music/battle14.mid";
?>
Did I get it right or ?
Goldknight
10-31-2002, 04:28 PM
Ok I install at three different clean forum on my computer and two forums at net and I got all same result:
Database error in vBulletin Control Panel 2.2.8:
Invalid SQL: INSERT INTO db_users (userid,username,userpassword,useremail,regemail,r egdate,groupid)
VALUES ('1','Vagabond','fd91a96c25f4483c8128f7ed96b06e21' ,'XXXXXX@hotmail.com','XXXXXX@hotmail.com','103364 0282','1')
mysql error: Duplicate entry '1' for key 1
mysql error number: 1062
Date: Thursday 31st of October 2002 06:23:02 PM
Script: http://www.XXXXXXXXX.com/forum
Referer:
Yes I install UBS already at three local forums and two net forums also edit the files following the instuction then use this url admin/misc.php?action=irpg
Still got same error... I ask one of my friend to install it at his net and he got same error too.. But I can use UBS at net without problem. not local server cuz it ll crash the computer, it happen to my friend too.
My friend and I work on this almost five hours and nothing work with hack, UBS as standalone seem ok but not with hack for vbulletin since we kept got this error. We re using 2.2.8 verison and UNIX. Hope Link or someone find the solution for this.. thanks
Edit: I m more than glad to PM or email you my php files and see if I got it wrong or whatever..
Erwin
10-31-2002, 05:52 PM
You are getting an error because the installation file is trying to insert a new member with UserID 1 - but there is obviously a userid 1 on your forums. Link14716 may not have gotten that error if he installed on a new empty database.
The installation file will need to be edited so that the userid is the next userid up from your last userid.
Goldknight
10-31-2002, 06:57 PM
Erwin, Thats what I think but I m not skill enough to look thur others' hack to find out the error. Thanks for confirm my suspicious
ULTIMATESSJ
10-31-2002, 06:59 PM
heh this reminds me of when i tried making a phpRPG integration hack, errors galore
Link14716
10-31-2002, 07:07 PM
Goldknight, you must have downloaded it before I put the delete query in there......
So, run this query:
DELETE FROM db_users;
Link14716
10-31-2002, 07:12 PM
Originally posted by ULTIMATESSJ
heh this reminds me of when i tried making a phpRPG integration hack, errors galore
Heh. Hence why I put this sucker in BETA. I am guessing that was a smart move. ;)
Goldknight
10-31-2002, 07:53 PM
Originally posted by Link14716
Goldknight, you must have downloaded it before I put the delete query in there......
So, run this query:
DELETE FROM db_users;
Great, its work now. So few QQ for you.. excuse my stupidity
1) If anyone register and it automatically insert their username for UBS right?
2) All I do is add the link to UBS at anywhere forum on my host to access the UBS right?
3) Call me stupid if you want.. what does edit VB files do? Does it make any different? It is about your hack that instructed me to edit the vb files..
Also I notice that there are three same templates in admin/templates and rpg/templates... So how can I import these thur Firefly's TBS? TBS refuse to import three due to overwrite others..
It's admin/templates
rpg_db_error
rpg_error
rpg_headinclude
Link14716
10-31-2002, 08:13 PM
As I said, I wasn't feeling too good. By ALL UBS FILES I mean ALL ROOT UBS FILES. In other words, the admin templates weren't integrated into it, I left it seperate.
The vB Files were purely for users. Misc.php was to move the users over, register was to add the user to UBS, and member.php was to update the user in the UBS. I am trying to make the fact that they use 2 different tables transparent.
And yes. Just add a link anywhere on your site, board, in a post, wherever you want it.
Goldknight
10-31-2002, 08:37 PM
Okkk I guess I ll ask you several days later... I got other weird error.
Thanks for clear up, I ll post the error after several days. Hope you ll feel better
Link14716
10-31-2002, 10:49 PM
No, I felt bad last night. My shoulder and kness hurt relentlessly, for reasons that I don't know (an it was ard to think). But hey, I'm not feeling bad now. Ask away!
Goldknight
10-31-2002, 11:02 PM
Ok here it is..
Database error in Character battle system: Invalid SQL: select me from yes where id='1'
mysql error: Table 'XXXXXX.yes' doesn't exist
mysql error number: 1146
Date: 01.11.2002 @ 00:59
Script: /forum/rpg/
Referer:
There seems to be some technical problems with the database at this moment.
Please use the reload-button of your browser to try again.
If these problems continue, please contact the Admin of this Forum.
That was after DELETE FROM db_users; then misc instruction work and I went to rpg and it roll out the error above... heh
Link14716
10-31-2002, 11:31 PM
Oh yeah, that happened with me too. I think it has to do with something in the RPG. To fix it:
Open up header.php (root/UBS):
Find:
if($user_name != Guest && $room != 'lobby') {
REPLACE WITH:
if($user_name != Guest && $room != 'lobby' && $room != 'yes') {
And in index.php (root/UBS):
Find:
if($user_name != Guest && $room != 'lobby'){
REPLACE WITH:
if($user_name != Guest && $room != 'lobby' && $room != 'yes'){
Goldknight
10-31-2002, 11:51 PM
Originally posted by Link14716
And in index.php (root/UBS):
Find:
if($user_name != Guest && $room != 'lobby'){
REPLACE WITH:
if($user_name != Guest && $room != 'lobby' && $room != 'yes'){
Thats one I couldnt find any in rpg/index.php =\
There are only two like that in index.php are..
if($user_name != Guest){
Nothing after that such as yours above..
But as for header.php I m done edit and change.
Link14716
11-01-2002, 12:28 PM
Replace the second instance of what you found, then. :)
Goldknight
11-01-2002, 03:08 PM
Link, I follow your instruction, I replace second one..
if($user_name != Guest){
if($userclass==""){
$warning="Warning: You have not chosen a class, your stats are all set to 0!";
}
to
if($user_name != Guest && $room != 'lobby' && $room != 'yes'){
if($userclass==""){
$warning="Warning: You have not chosen a class, your stats are all set to 0!";
}
Then I go to http://www.xxxxxxxxxxx.com/forum/rpg and it still roll out same error:
Database error in Character battle system: Invalid SQL: select me from yes where id='1'
mysql error: Table 'xxxxx.yes' doesn't exist
mysql error number: 1146
Date: 01.11.2002 @ 17:02
Script: /forum/rpg/
Referer:
There seems to be some technical problems with the database at this moment.
Please use the reload-button of your browser to try again.
If these problems continue, please contact the Admin of this Forum.
:ermm: :ermm: :ermm:
Bleh I dont like the layout of that at all.
Link14716
11-01-2002, 07:08 PM
Then edit the templates....
Goldknight: Try the first one, then.
Goldknight
11-01-2002, 07:28 PM
Link14716, yup it s on first one. Thanks! =D I m now see if I can find any bugs or flaws..
I wonder about images.. seem that there is no upload feature for users to add the images. =\ I seem have to use upload hack to ulitize it for users to use it. Thanks for patience with me :)
Edit: Also images of items and few seem miss too. I have my own items from FF sites, do I have to use these to fill up? Thanks
Goldknight
11-01-2002, 07:34 PM
uh hu, I found a error already.. it is chat error... When I finally access rpg with your codes and there is white page on chat at homepage of UBS.
Error:
Warning: fopen("", "r+") - Success in /www.XXXXXXXXXX.com/forum/rpg/chat.php on line 417
error when reading in yes
And I attach the image in case..
On 417 lines in chat.php:
$fp = fopen ($file, "r+") or die ("error when reading $file in $userroom");
$mess = file($file);
if ($name2 == "$user_name" ) { $name2 = "name"; }
Edit: I cannot access AdminCP, it keep redirect to homepage of UBS.
Link14716
11-01-2002, 07:52 PM
You have to CHMOD all of the .dat files to 777.
And are you sure you are going to admin/admin.php?
Goldknight
11-01-2002, 08:33 PM
Originally posted by Link14716
You have to CHMOD all of the .dat files to 777.
And are you sure you are going to admin/admin.php?
Ok I CHMOD all of .dat to 777 and it is still not work. But UBS/chat/admin work fine before I edit VB/UBS to get it work together, chat or adminCP work normal.
Edit: yes I m sure its admin/admin.php. I check the url and yes it is but yet it redirect me to index.php (homepage)
Link14716
11-01-2002, 09:32 PM
Well, the chat fixed itself with me. And about the redirect... check templates....
Goldknight
11-01-2002, 10:56 PM
Templates look good and with prefix "rpg_" Chat or AdminCP still problem.. =\
DarkDraco07
11-02-2002, 12:36 AM
do i edit the UBS before i install or do i install it then edit the files
Goldknight
11-02-2002, 01:57 AM
Install UBS first, after install then edit files
jazza
02-12-2003, 06:06 AM
yo, can any one link me to a working ubs, the site the link posted is down :(
poetic
06-20-2003, 08:12 PM
yeah, i need it too
Murderer
07-15-2003, 01:54 PM
i need one 3 :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.