L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 10:41:55 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > 0.5.x Custom/Unofficial Modules > Topic: TWC
Pages: 1 ... 3 4 [5] 6 7   Go Down
« previous next »
Print
Author Topic: TWC  (Read 4434 times)
0 Members and 1 Guest are viewing this topic.
Vain
Rookie
**
Offline Offline

Posts: 53


Re: TWC
« Reply #60 on: September 04, 2008, 03:27:10 PM »

I am getting Duplicate entry '0' for key 2
when trying to register...

Any suggestions?
Logged
Vain
Rookie
**
Offline Offline

Posts: 53


Re: TWC
« Reply #61 on: September 04, 2008, 04:05:01 PM »

It lets me register the initial person but after that I get the Duplicate entry '0' for key 2 whenever someone else tries to register.

The problem is that when a new user registers it doesnt assign a value to the char_id table. it leaves it at 0, so the next person to register gets the error.
« Last Edit: September 04, 2008, 04:27:04 PM by Vain » Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: TWC
« Reply #62 on: September 05, 2008, 12:27:23 AM »

the id field should be auto incremental
code that makes it looks ok, ill do some testing tomorrow
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Mardonge
Freshman
*
Offline Offline

Posts: 3


Re: TWC
« Reply #63 on: September 10, 2008, 07:41:12 AM »

Interesting work here, I'll have to try this one out when I get home from work if my line is up again by then.
Just one question... What phpBB versions are supported for user db? 2.x or 3.x?
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: TWC
« Reply #64 on: September 10, 2008, 07:46:40 AM »

this doesnt user the DB for phpBB all the data required was in the arrays provided by forum
this was made useing 3.x no idea if will work with 2.x
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Vain
Rookie
**
Offline Offline

Posts: 53


Re: TWC
« Reply #65 on: September 10, 2008, 02:39:15 PM »

Quote from: Temar on September 05, 2008, 12:27:23 AM
the id field should be auto incremental
code that makes it looks ok, ill do some testing tomorrow

Any word Temar?
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: TWC
« Reply #66 on: September 10, 2008, 03:05:19 PM »

well i check my table just and id is set to auto incremental, please check you table
if its not set, set it to autoincremental
if the problem is not caused by this it will prob be the module its self and ill check it
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Vain
Rookie
**
Offline Offline

Posts: 53


Re: TWC
« Reply #67 on: September 11, 2008, 05:35:21 PM »

Quote from: Temar on September 10, 2008, 03:05:19 PM
well i check my table just and id is set to auto incremental, please check you table
if its not set, set it to autoincremental
if the problem is not caused by this it will prob be the module its self and ill check it

users.char_id or users.id?

users.id is set to autoincrement but users.char_id is not.


Let me clear a few things up. it is using the same table that the bot uses for org members. Is it supposed to have its own table?
« Last Edit: September 11, 2008, 05:37:32 PM by Vain » Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: TWC
« Reply #68 on: September 11, 2008, 05:38:01 PM »

char_id ? i dont use a column called that and never have as far as i can remember
« Last Edit: September 11, 2008, 05:39:53 PM by Temar » Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: TWC
« Reply #69 on: September 11, 2008, 05:41:14 PM »

its has its own table lol :p
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Vain
Rookie
**
Offline Offline

Posts: 53


Re: TWC
« Reply #70 on: September 11, 2008, 05:48:52 PM »

ok i must have my settings wrong....

Code:
$this -> settings["forum_sql_server"] = 'localhost';
$this -> settings["forum_sql_username"] = 'Bebot';
$this -> settings["forum_sql_password"] = 'xxxxx';
$this -> settings["bot_sql_server"] = 'localhost';
$this -> settings["bot_sql_username"] = 'Bebot';
$this -> settings["bot_sql_password"] = 'xxxxx';
$this -> settings["forum_pre"] = '';
$this -> settings["forum_db"] = 'bebot';
$this -> settings["orgbot_db"] = 'bebot';
$this -> settings["orgbot_name"] = 'Havocbot';
$this -> settings["online_orgbot_names"] = 'Havocbot';
$this -> settings["orgbot_names"] = 'Havocbot;Havocbot';
$this -> settings["twc_db"] = 'twc';
$this -> settings["twc_pre"] = '';
$this -> settings["login_table"] = '';
$this -> settings["loginbots_prefix"] = '';
$this -> settings["orgchat"] = TRUE;
$this -> settings["loginchat"] = FALSE;
$this -> settings["forum_root"] = '/var/www/twc';
$this -> settings["twc_root"] = '/var/www/twc';
$this -> settings["twc_url"] = 'http://xxx.xxx.193.108';
$this -> settings["user_data"] = 3;
$this -> settings["allow_new"] = FALSE;

For some reason its using the bebot table.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: TWC
« Reply #71 on: September 11, 2008, 05:57:19 PM »

$this -> settings["forum_db"] = 'bebot';
this is the DB setting for the user table, yes i know there is also a twc_db ill fix it soon :p

If useing twc user mode and not a forum
all forum setting like database are used for the user table it makes
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Vain
Rookie
**
Offline Offline

Posts: 53


Re: TWC
« Reply #72 on: September 11, 2008, 06:00:38 PM »

Thanks Temar!

I changed the forum db to twc and it works great now.
I was unaware that for a forumless install this is where the users are stored.
Logged
Vain
Rookie
**
Offline Offline

Posts: 53


Re: TWC
« Reply #73 on: September 11, 2008, 06:03:50 PM »

Although when i goto the install script script, I see an option for create superadmin.

When I click on the link i get:
Fatal error: Cannot redeclare select() (previously declared in /var/www/twc/sql.php:42) in /var/www/twc/sql.php on line 42
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: TWC
« Reply #74 on: September 11, 2008, 06:05:00 PM »

yer im currently in the process of rewriting it alot, this issue will no longer exists when im done
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Pages: 1 ... 3 4 [5] 6 7   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > 0.5.x Custom/Unofficial Modules > Topic: TWC
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[Today at 04:41:09 PM]

Shared DB online list
by Temar
[Today at 01:55:47 AM]

relay colors
by Temar
[Today at 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 17
Total: 18
clashbot

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.85 seconds with 28 queries. (Pretty URLs adds 0.047s, 4q)
Loading...