MySqlHandler.dll For A Source

07/15/2017 16:59 killersub#1
Hello guys, I have left the conquer community for some time but now I'm back and I want to try and develop a conquer server using hybrid's bugless source. I have recently downloaded Arco's version of hybrid's bugless source and got it running except for the fact that the MySQL Connector is outdated from before version 4.1 I believe so I had to grab the newer MySQL.Data.dll and use that. My issue is that since I updated the MySQL.Data.dll I also need to update the MySqlHandler.dll to match the correct version of the connector but I am not so sure as to where to go ahead and find it.

I apologize for my ignorance but my mind has returned to a "rudimentary" state after not being involved with conquer for a long time.

Any help is greatly appreciated and taken into account. Much thanks, killersub.

By the way, this is the actual console error just in case I'm not being clear:

Code:
System.BadImageFormatException: 'Could not load file or assembly 'MySql.Data, Version=6.2.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'
07/15/2017 17:50 U2_Caparzo#2
Isn't it the same that is in impulse's source?, or you can just use a reflector and recompile it, wich seems to be the problem.
07/15/2017 17:53 killersub#3
Quote:
Originally Posted by U2_Caparzo View Post
Isn't it the same that is in impulse's source?, or you can just use a reflector and recompile it, wich seems to be the problem.
I''m not too sure if it was the same in impulse's source. I'm also not too sure by what you mean when you say to re-compile with a reflector but I will try and look at how to exactly go about doing that.
07/15/2017 18:07 U2_Caparzo#4
Quote:
Originally Posted by killersub View Post
I''m not too sure if it was the same in impulse's source. I'm also not too sure by what you mean when you say to re-compile with a reflector but I will try and look at how to exactly go about doing that.
get a .net reflector like ILSpy or something, you will get a similar source code (compilation will make some changes to the code) that you can throw to a project and compile with a different .net framework version.
07/15/2017 20:14 Spirited#5
You need to redownload the connector. The dll broke in recent versions of visual studio.
07/16/2017 00:39 boDil#6
Works fine here. No "broken DLL" (lol?) or any other problems with Visual Studio 2017 (Version 15.2 (26430.15) Release)

[Only registered and activated users can see links. Click Here To Register...]
07/18/2017 00:19 killersub#7
Quote:
Originally Posted by Spirited View Post
You need to redownload the connector. The dll broke in recent versions of visual studio.
I have the latest MySQL Connector/NET installed, it is version 6.6.5. Now I did have to also replace DMapLoader for another, I guess, more "recent" one in order to get one error out of the way before I encountered the error on this thread.

for example, this is what I first get when I get a fresh version of the source without touching anything:
Code:
BadImageFormatException: Could not load file or assembly 'DMapLoader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
And after I fix that, I then encounter the error on this thread.

Quote:
Originally Posted by boDil View Post
Works fine here. No "broken DLL" (lol?) or any other problems with Visual Studio 2017 (Version 15.2 (26430.15) Release)

[Only registered and activated users can see links. Click Here To Register...]
Read what I quoted above. thank you. By the way, I have Visual Studio 2017 version 15.2 (26430.16).
07/18/2017 02:53 Spirited#8
Quote:
Originally Posted by killersub View Post
I have the latest MySQL Connector/NET installed, it is version 6.6.5. Now I did have to also replace DMapLoader for another, I guess, more "recent" one in order to get one error out of the way before I encountered the error on this thread.

for example, this is what I first get when I get a fresh version of the source without touching anything:
Code:
BadImageFormatException: Could not load file or assembly 'DMapLoader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
And after I fix that, I then encounter the error on this thread.



Read what I quoted above. thank you. By the way, I have Visual Studio 2017 version 15.2 (26430.16).
Now that you have that working, download and build the dmap project. Then, change the reference in your project to the new dmap loader dll.