PDA

View Full Version : integration with RPG Inferno


creedmaniac
03-11-2006, 04:19 PM
has anyone integrated this with RPG inferno...?

if so can you tell me what you did?...or how to figure out what field the rpg uses to store points so i can manually change it?

so far this is what i've done...

inferno used inferno_user as table, money as points field and bankmoney as bank field...so i set all that up...

when i try to give points though this is the error i get


Database error in vBulletin 3.5.4:

Invalid SQL:

UPDATE vbinferno_user
SET
money = money + 1523, bankmoney = bankmoney + 87;

MySQL Error : Table 'fdgdfsg_vb.vbinferno_user' doesn't exist
Error Number : 1146
Date : Saturday, March 11th 2006 @ 01:38:31 PM
Script : /home/admincp/vbplaza.php
Referrer : home/admincp/vbplaza.php?do=massgiveaway
IP Address : dfsgsdfgsdfg
Username : gffgf
Classname : vb_database


apparently vbplaza adds a 'vb' to the front of the user field?...how can i remove that?

lol, i just realized that the reason this is happening is because vbplaza adds the vbulletin prefix used in the vbtable....but inferno doesn't use the vbprefix...

so i guess i just need to know how and in what vbplaza file the 'vb' prefix is added to the usertable field?...i've been looking for almost 2 hours now...gues it would be easier if i knew more about php :(

CMX_CMGSCCC
03-11-2006, 09:04 PM
vbPlaza only adds TABLE_PREFIX like every single other vBulletin PHP file, that is definitely not the issue, I can assure u.

What is your TABLE_PREFIX inside of config.php? its probably vb judging from the above code. The problem is to be more "compatible" the vbPlaza uses table prefixes just like vBulletin. So the problem is really in fact with RPG Inferno not being compatible with TABLE_PREFIX's.

The only way you could get around this is to manually remove all of the " . TABLE_PREFIX . " from all of the php files that vbPlaza uses for the "points table".

-CMX

creedmaniac
03-11-2006, 10:00 PM
so does that mean i have to change this in everysingle file...or just a select few?

all i want this for is the points...i won't be using the store at all for this site...

Ski-Whiz
03-12-2006, 12:38 AM
You sure you mean Inferno's RPG, or the RPG Integrated (by Revan)??

Or are you trying to integrate this with Inferno's RPG?? Last time I knew, his point system was self contained in the RPG, meaning he didn't set it up to use ebux or any other...

CMX_CMGSCCC
03-12-2006, 10:47 AM
If u r talking about RPG Inferno, the problem exists where the money is not stored inside the user table. SO it gets very tricky to add support for it. You could try to set the vbBux options and change the user tablename to RPG Inferno's, as well as the money/bank fields and see what happens...

And disable the vbPlaza store from the vbPlaza Settings at the top with Enabled, Yes/No.

-CMX

creedmaniac
04-02-2006, 03:38 PM
cmx...i could do that...the problem that is happening though is that in the vbplaze ACP...where you set the name of the user table and field...vbplaze automatically adds the mysql vb prefix to the front of that table...(i.e...on my forum...if i put user as the field...it actually sets it to vbuser which is the actual name of the field...

rpg inferno doesn't user vbinferno_user...it uses inferno_user...so as you can see...if i type in inferno_user as the table...it changes it to vbinferno_user...

is there a way to keep this from adding that perfix?

trackpads
04-03-2006, 10:14 AM
[Removed - Wrong Thread - Sorry, had one too many windows open, it was supposed to be in the other one. Apologies!]

creedmaniac
04-04-2006, 01:49 PM
why'd you put that in this thread?

CMX_CMGSCCC
04-08-2006, 04:21 PM
Actually it's not that easy to add support because of that reason alone. It would be easier for the RPG Inferno guy to add TABLE_PREFIX's to his hack than for me to try to support it without it.

-CMX