No idea where to put this, database help needed)
by Luke (Soul) Horobin · in Technical Issues · 01/22/2006 (1:35 pm) · 4 replies
Hey chaps I've been following a few tutorials on adding SQLite and ODBC to my Torque engine, been having a problem getting the databases to actually work. They are compiled fine and trying to do their job, but I'm missing something some where. I get the following errors from my dedicated server console.
"starter.rpg/server/scripts/sqlite.cs (0): Unable to instantiate
non-conobject class SQLiteObject.
starter.rpg/server/scripts/sqlite.cs (0): Unable to find object: '0'
attempting to call function 'query'"
and this one for ODBC...
"starter.rpg/server/scripts/db/init.cs (0): Unable to instantiate
non-conobject class DatabaseConnection.
starter.rpg/server/scripts/db/init.cs (0): Unable to find object: '0'
attempting to call function "ConnectDriver'
Database error received while trying to connect to database.
End of database initialization."
I'm running windows XP, VS 2005 Express to compile. I'm also trying to get the ODBC to connect to my website host. Can provide any other details needed, any help here is welcome chaps.
"starter.rpg/server/scripts/sqlite.cs (0): Unable to instantiate
non-conobject class SQLiteObject.
starter.rpg/server/scripts/sqlite.cs (0): Unable to find object: '0'
attempting to call function 'query'"
and this one for ODBC...
"starter.rpg/server/scripts/db/init.cs (0): Unable to instantiate
non-conobject class DatabaseConnection.
starter.rpg/server/scripts/db/init.cs (0): Unable to find object: '0'
attempting to call function "ConnectDriver'
Database error received while trying to connect to database.
End of database initialization."
I'm running windows XP, VS 2005 Express to compile. I'm also trying to get the ODBC to connect to my website host. Can provide any other details needed, any help here is welcome chaps.
#2
01/22/2006 (3:23 pm)
Ahh, ok.. Well, I added the files to the project, compiled etc.. No errors? Did I miss something relating to the compile? Thanks for your help mate.
#3
Of course, it's -possible- that you either missed the macros, or that the tutorial themselves don't work properly, but that analysis was what triggered my initial response. Other than that, not much we can do remotely unfortunately :(
01/22/2006 (8:04 pm)
Well, the errors you are getting describe that the c++ class implementations have not been made available to the console. Since I'm assuming that the tutorials correctly expose them via the correct macros (DECLARE_CONOBJECT and IMPLEMENT_CONOBJECT), that would mean that the code itself isn't being linked in to your executable.Of course, it's -possible- that you either missed the macros, or that the tutorial themselves don't work properly, but that analysis was what triggered my initial response. Other than that, not much we can do remotely unfortunately :(
#4
Decided to give my box a full format/kick in the arse, and start this whole effort from a nice clean system. Should be able to pin point problems much easier then. Thanks for your help Stephen, when I get back to this project in a couple of hours, I'll have to run back here if I get the same problem! Thanks again!
01/23/2006 (8:38 am)
Ah, right.. Well, the tutorials don't talk about macros, but they do mention linking of dependancies. I'm trusting the tutorials work as other people seem to be getting along fine with them in some way or another. Decided to give my box a full format/kick in the arse, and start this whole effort from a nice clean system. Should be able to pin point problems much easier then. Thanks for your help Stephen, when I get back to this project in a couple of hours, I'll have to run back here if I get the same problem! Thanks again!
Torque 3D Owner Stephen Zepp
It's also possible that you did get them into your project and linked, but are using the wrong executable. Check the date/time stamp to make sure the executable you are using coincides with the build time.