COD4X MYSQL Help

Hi All.

So decided to get back into the old school CODs and for a bit of fun back into modding for COD4

Managed to get nsam and ming32 set up no problems, compiled the sql plugin ( from the fork that is ment to work ) and it created the .dll no problems, COD4x server compiled no problems. can run a server and see it on “local servers”

looking back through the server console I see the error below

Error: Failed to load the plugin d:\steamlibrary\steamapps\common\call of duty 4\plugin.libcod4x_mysql.tmp!

after a quick search i see someone else had the same error and the helpful response of “compile the plugin” - as far as im aware ive done that without any errors showing up and popped it in the xbase iwd.

Have I missed something? if so what?
Thanks in advance

You don’t need to put it in the xbase iwd.
Put the compiled plugin under <COD4XROOT>/plugins and then just call it in your cfg with loadplugin pluginname

Seems I had already put it in the /plugin folder. same problem :frowning:

It looks like its not creating the .tmp file in the root directory when the game trys to load the plugin. Other plugins load and work fine so its got to be a problem with the plugin code somewhere im guessing.

enable developer mode in the startup command: +set developer 1
It will show you exactly what is wrong with it.

developer already set to along with developer_script

the full output I get is below, dosnt help much, I know the plugin is old and I had to fix a few errors that came up during its compile that i’m pretty sure isnt the problem. Maybe a new plugin is required using the msql connector

Checking if the plugin is not already loaded…
Checking if the plugin file exists and is of correct format…
Parsing plugin function names…
Done parsing plugin function names.
Loading the plugin .so…
Error: Failed to load the plugin d:\steamlibrary\steamapps\common\call of duty 4\plugin.libcod4x_mysql.tmp!

Are you trying to load a .so file on a Windows system? That’s not gonna work.

no im not lol.
dunno why it says its an .so.
other plugins say the same and they load fine

Could you provide some logs please so we can see what’s going on exactly.

So adding the libmysql.dll to the cod4 root folder allowed the plugin to load