This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[DB] Database Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Scope
Junior Member
Join Date: Oct 2007
Old 10-13-2007 , 00:59   Re: [DB] Database Manager
Reply With Quote #31

Where does the sql lite make the database at when you do the local database thing ?

Ive looked through all my files and cant find the database it has created
Scope is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 10-13-2007 , 10:52   Re: [DB] Database Manager
Reply With Quote #32

/sourcemod/data/sqlite/sourcemod-local.sq3
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
tkaway69
Senior Member
Join Date: Dec 2004
Location: Millbrook Alabama
Old 10-21-2007 , 23:06   Re: [DB] Database Manager
Reply With Quote #33

Ok.. What exactly does it take to get this to store locally. When we try to transfer money we get "no one connected". and this error is showing up.

Code:
L 10/21/2007 - 21:42:03: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4)
L 10/21/2007 - 21:42:03: [SM] Debug mode is not enabled for "a_mysql.smx"
We were using a data base but until we upgrade it is no good. So I am trying to store bank info locally. I just want to make sure I have it correct. We have this at start of log but obviously something is not right.
Code:
L 10/21/2007 - 20:11:01: [a_mysql.smx] DB MANAGER SAYS:
L 10/21/2007 - 20:11:01: [a_mysql.smx] Unable to connect to default configuration
L 10/21/2007 - 20:11:01: [a_mysql.smx] Using SQLite instead...
Added
Code:
sm_db_config storage-local
to server.cfg. Hopefully this fixes it.

Well I am lost. Still getting errors even after adding the storage local line. Still cannot transfer money between players.

Code:
L 10/22/2007 - 18:39:16: Info (map "de_dust2") (file "errors_20071022.log")
L 10/22/2007 - 18:39:16: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4)
L 10/22/2007 - 18:39:16: [SM] Displaying call stack trace for plugin "a_mysql.smx":
L 10/22/2007 - 18:39:16: [SM]   [0]  Line 270, a_mysql.sp::GetClientConnectInfo()
L 10/22/2007 - 18:39:17: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4)
__________________

Last edited by tkaway69; 10-22-2007 at 20:15.
tkaway69 is offline
Send a message via AIM to tkaway69 Send a message via MSN to tkaway69 Send a message via Yahoo to tkaway69
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 10-22-2007 , 21:50   Re: [DB] Database Manager
Reply With Quote #34

Can you tell me what Version of this plugin are you using (type "sm plugin list" in console) and can you attach the DB you were using? (/sourcemod/data/sqlite/sourcemod-local.sq3)


I am sorry for the late response, I am having a horrible time lately
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
tkaway69
Senior Member
Join Date: Dec 2004
Location: Millbrook Alabama
Old 10-22-2007 , 22:10   Re: [DB] Database Manager
Reply With Quote #35

Sorry to hear that. Hopefully things will loosen up for you.
Code:
metamod_version "1.4.2.414"
sourcemod_version "1.0.0.1644"
07 "Database manager" (3.1) by Nican132
08 "SM Bank" (2.2) by MaTTe, edit by Nican
Hope this helps.
Attached Files
File Type: zip sourcemod-local.zip (692 Bytes, 201 views)
__________________

Last edited by tkaway69; 10-22-2007 at 22:44.
tkaway69 is offline
Send a message via AIM to tkaway69 Send a message via MSN to tkaway69 Send a message via Yahoo to tkaway69
sessus
Senior Member
Join Date: May 2006
Old 10-25-2007 , 00:00   Re: [DB] Database Manager
Reply With Quote #36

hey Nican,

any chance you'd be able to implement an option to creat all the tables based on the date? For example: when no new information has been recorded for a cetrain steam_ID that then all those table entries are deleted. This would help to keep the database small.
sessus is offline
tkaway69
Senior Member
Join Date: Dec 2004
Location: Millbrook Alabama
Old 10-26-2007 , 23:51   Re: [DB] Database Manager
Reply With Quote #37

What exactly does this "There is not one connected" message mean? That may be a start in finding out what is going on. With the bank and transfering money.
This error is filling my logs.

Code:
L 10/26/2007 - 22:37:05: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4)
L 10/26/2007 - 22:37:05: [SM] Debug mode is not enabled for "a_mysql.smx"
__________________
tkaway69 is offline
Send a message via AIM to tkaway69 Send a message via MSN to tkaway69 Send a message via Yahoo to tkaway69
sessus
Senior Member
Join Date: May 2006
Old 10-27-2007 , 03:22   Re: [DB] Database Manager
Reply With Quote #38

just realised sm_db_mapload is not even defined in the .sp file. Is it still working?
sessus is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 10-27-2007 , 10:21   Re: [DB] Database Manager
Reply With Quote #39

Ops... my bad

I removed it after I discovered that all players are disconnected and reconnected when map changes, so client_disconnect is taking care of it
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 01-10-2008 , 21:47   Re: [DB] Database Manager
Reply With Quote #40

I am back on-line.

I updated this plugin, and tested on saving string, float and integer values, and they are all working.

I am now working to add:
- Key / Value table
- Allow plugins to force the MySQL to update / select information from the database.
- Added cvars to allow more frequent UPDATE queries.
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode