ID:156805
 
I am using dantoms core and have put together a few bits of code. I am getting no coding errors in dream maker.

I have not put together any queries.
I have simply put together a proc that allows the user to connect to the database and a verb to initiate it to test see if i could connect properly.

However i keep getting the error message:
The specified module could not be found

I do not have a clue what the module is it is trying to find or what could be the cause for this error.

Also the code for what i did is below:

//Variables here

proc
Con()
var/DBConnection/dbcon = new()
var/connected = dbcon.Connect(DBI,username,Password())
if(!connected)
usr << "Connection failed: [dbcon.ErrorMsg()]"
else
usr << "Database connection was a success"

mob/verb
tester()
set name = "Connect to mysql"
set category = "Commands"
Con()


Any help would be greatly appreciated.

-Tony
I have found a solution credit to suicide shifter/divinetraveller for the solution.

If you have this problem it means you have no libmysql.dll in your windows system folder.

You can find the dll through google for downlaod.
Then place the file in the C;/Windows/system folder

Then it should all work no problem
You're missing libmysql.dll. It needs to be placed in system32 or in the BYOND directory (so I'm told; I always put it in system32).
In response to DivineTraveller
DivineTraveller wrote:
You're missing libmysql.dll. It needs to be placed in system32 or in the BYOND directory (so I'm told; I always put it in system32).

yes this was my problem
I just placed it straight into the system folder like yourself with the same success

Thanks for the help :)
For anyone searching this topic in the future:

I've posted some more information about this error at the DMCGI Guild.
In response to Tonyth
Yeah, I made two posts about it, you posted just before I made #2.
Thanks for making the post, Nadrew.
In response to Tonyth
What do you plan on using mysql for? I can run a mysql server but I guess I haven't really thought of anything I could use it for - game wise.
In response to UmbrousSoul
UmbrousSoul wrote:
What do you plan on using mysql for? I can run a mysql server but I guess I haven't really thought of anything I could use it for - game wise.

There is a lot of areas within a game you could use mysql to store information for. Its also very quick. When querying.

I think one of the main advantages of using mysql along with a server though is probably the ability to build a website around the game and its variables also.
In response to Tonyth
-sigh- Oh of course, I remember that.

Too bad I can only make websites and not program DM.

Its just not something I can create, I can edit it but not make it on my own. I'm more of a design/graphics/media/web/etc.
In response to UmbrousSoul
UmbrousSoul wrote:
-sigh- Oh of course, I remember that.

Too bad I can only make websites and not program DM.

Its just not something I can create, I can edit it but not make it on my own. I'm more of a design/graphics/media/web/etc.

I wish i was good with graphics i can code php, mysql, html, DM, not bad with javascript but couldn't make anything to advanced without references.

I cant do nothing with image editors though shapes with round edges is what i can do in terms of graphics hah
In response to Tonyth
Well it seems that we have each others offset skills. Interesting! I've always needed a dedicated programmer, thing is they just don't share the same dream; As everyone has their own vision I understand this ...but damn I hate thinking of a nice feature in a game and not even being able to begin to implement because I don't know how to even begin to write what is required, or whatever programming is required to implement already existing structure. Its kind of pathetic and has rendered all of my projects useless on byond simply because I can't do DM on my own (not good at math, which as I understand to be a good programmer you need to be good at math by nature).