|
You last visited: Today at 16:51
Advertisement
Conquer Server V3 Source gamekeyexchangr.dll bug
Discussion on Conquer Server V3 Source gamekeyexchangr.dll bug within the CO2 Private Server forum part of the Conquer Online 2 category.
07/15/2011, 15:26
|
#1
|
elite*gold: 0
Join Date: Dec 2010
Posts: 97
Received Thanks: 11
|
Conquer Server V3 Source gamekeyexchangr.dll bug
Hello , i'm using the new hybird's source 5370 you know it so let's go ahead
the project didn't work for me in visual studio 2008 pro so i made a new project and i put all the elements in (i know how!)
well i fixed the little bugs i got exept one
when i open the Auth/Game Server it goes normal and smooth but when i login i get this exeption
i have no idea why i get it but it says
PHP Code:
An exception of type 'System.DllNotFoundException' Occurred in order HellMouthFuckingSource.exe Was Not Handled in user code
Additional information: Unable to load DLL 'gamekeyexchange.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
and here's the Blowfish.cs you can find something wrong in it
PHP Code:
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.Threading;
using System.Net.Sockets;
using BlowfishCFB;
using ConquerServer_v2.Packet_Structures;
namespace ConquerServer_v2.Client
{
public class DHExchange : IDisposable
{
[DllImport("gamekeyexchange.dll")]
private static extern unsafe IntPtr CreateInstance();
[DllImport("gamekeyexchange.dll")]
private static extern unsafe void PubKey(byte* pk, IntPtr instance);
[DllImport("gamekeyexchange.dll")]
private static extern unsafe void DeleteInstance(IntPtr instance);
[DllImport("gamekeyexchange.dll")]
private static extern unsafe void GenerateKey(byte* p, byte* g, IntPtr instance);
[DllImport("gamekeyexchange.dll")]
private static extern unsafe void ComputeKey(byte* A, byte* Out, IntPtr instance);
public static byte[] p;
public static byte[] g;
private byte[] pub_key;
private unsafe IntPtr dhinstance;
unsafe static DHExchange()
{
p = new byte[128];
fixed (byte* lpP = p)
MSVCRT.memset(lpP, (byte)'1', 128);
g = new byte[] { 48, 53 };
}
public unsafe DHExchange()
{
dhinstance = CreateInstance();
fixed (byte* lpP = p, lpG = g)
GenerateKey(lpP, lpG, dhinstance);
pub_key = null;
}
public void Dispose()
{
DeleteInstance(dhinstance);
}
public unsafe byte[] GetPubKey()
{
if (pub_key == null)
{
pub_key = new byte[128];
fixed (byte* lpPub_Key = pub_key)
PubKey(lpPub_Key, dhinstance);
}
return pub_key;
}
public unsafe byte[] SetKey(byte[] pubkey)
{
byte[] Out = new byte[64];
fixed (byte* lpPubKey = pubkey, lpOut = Out)
ComputeKey(lpPubKey, lpOut, dhinstance);
return Out;
}
}
public unsafe class BlowfishCrypter
{
private static byte[] blowfishKey = ASCIIEncoding.ASCII.GetBytes("DR654dt34trg4UI6");
private byte[] iv_enc, iv_dec;
private UnmanagedBlowfishCFB bf;
private DHExchange DHEx;
private byte num_dec, num_enc;
public BlowfishCrypter()
{
bf = new UnmanagedBlowfishCFB(blowfishKey);
DHEx = new DHExchange();
num_dec = 0;
num_enc = 0;
iv_dec = new byte[8];
iv_enc = new byte[8];
}
public unsafe void Encrypt(void* In, byte[] Out, int Size)
{
#if LOG_PACKETS
Console.WriteLine("Server:\r\n" + Program.Dump(ConquerServer_v2.Core.Kernel.ToBytes(In)));
#endif
fixed (byte* lpOut = Out, lpIV = iv_enc, lpCounter = &num_enc)
bf.Encrypt((byte*)In, lpOut, lpIV, Size, lpCounter);
}
public unsafe void Encrypt(byte[] In, byte[] Out, int Size)
{
fixed (byte* lpIn = In, lpOut = Out, lpIV = iv_enc, lpCounter = &num_enc)
bf.Encrypt(lpIn, lpOut, lpIV, Size, lpCounter);
}
public unsafe void Decrypt(byte[] In, byte[] Out, int Size)
{
fixed (byte* lpIn = In, lpOut = Out, lpIV = iv_dec, lpCounter = &num_dec)
bf.Decrypt(lpIn, lpOut, lpIV, Size, lpCounter);
}
public void DHSetKey(byte[] Key)
{
bf.SetKey(DHEx.SetKey(Key));
}
public void FinishHandShake()
{
fixed (byte* lpEnc = iv_enc, lpDec = iv_dec)
{
MSVCRT.memset(lpEnc, 0, 8);
MSVCRT.memset(lpDec, 0, 8);
}
num_dec = num_enc = 0;
DHEx.Dispose();
}
public byte[] CreateHandShake()
{
return PacketBuilder.HandShakePacket(DHExchange.g, DHExchange.p, DHEx.GetPubKey());
}
~BlowfishCrypter()
{
bf.Free();
}
}
}
Can you please help ? i'm begging you guys      
|
|
|
07/15/2011, 16:31
|
#2
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
|
Sorry,
We dont like beggers OR people who dont read the ******* exception...
"System.DllNotFoundException"
DLL NOT FOUND!
|
|
|
07/15/2011, 17:45
|
#3
|
elite*gold: 0
Join Date: Dec 2010
Posts: 97
Received Thanks: 11
|
1- i'm begging you to answer not to do it for my,
2-how the hell it's not found ( [DllImport("gamekeyexchange.dll")] ) is the fu***** way to add a native dll
3- if i understood wtf is going on here i won't ask for help so would you please talk to me with a respectful language?
|
|
|
07/15/2011, 17:57
|
#4
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
You need the .dll specified to be in the same folder as the .exe that your trying to run, this isnt hard a simple google search could have told you this, basically the application your trying to run is trying to locate the .dll in the same folder as itself and cant find.
It doesnt matter if your using DllImport, if it cant find it then it cant import it, common sense really.
|
|
|
07/15/2011, 18:22
|
#5
|
elite*gold: 0
Join Date: Dec 2010
Posts: 97
Received Thanks: 11
|
i'm 150% sure that the dll is in the debug folder which contains the application but
PS: the project doesn't have the same name because it's called FuckingStupidSource and the old one is Conquer_Serverv2 can this be the reason?
|
|
|
07/15/2011, 18:42
|
#6
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Well while you might be 150% sure, the application is stating without a shadow of a doubt that its not in the right place, the name of the project has nothing to do with it.
|
|
|
07/15/2011, 20:01
|
#7
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
Quote:
Originally Posted by Pro4Never2
i'm 150% sure that the dll is in the debug folder which contains the application but
PS: the project doesn't have the same name because it's called FuckingStupidSource and the old one is Conquer_Serverv2 can this be the reason?
|
I don't think you get help for renaming the best public sources that.
|
|
|
07/15/2011, 22:09
|
#8
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
Why is your project called "HellMouthFuckingSource"?
|
|
|
07/15/2011, 22:21
|
#9
|
elite*gold: 0
Join Date: Dec 2010
Posts: 97
Received Thanks: 11
|
nothing personel , just cuz it didn't work xD
|
|
|
07/15/2011, 22:30
|
#10
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
Quote:
Originally Posted by Pro4Never2
nothing personel , just cuz it didn't work xD
|
You're a very disrespectful person. You use Pro4Never's name with a number after it, unofficially claim to be his student which I'm sure he doesn't support, and use his old source's base - which is much better than most of the released sources here - and rename it "FuckingStupidSource" ...
That's really bad dude.
|
|
|
07/15/2011, 22:45
|
#11
|
elite*gold: 0
Join Date: Dec 2010
Posts: 97
Received Thanks: 11
|
i smell a ban or a warning, anyway sorry about that, if Pro4Never isn't okay about making my name like him i have no problem with remaking another
|
|
|
07/15/2011, 22:51
|
#12
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
Quote:
Originally Posted by Pro4Never2
i smell a ban or a warning, anyway sorry about that, if Pro4Never isn't okay about making my name like him i have no problem with remaking another
|
I'm not going to get a ban or warning for telling you off. You can't do that to someone's source that they put months of work into. It's just not right. That's why I don't release my bases- I don't want some noob raping it from behind because things aren't coded.
|
|
|
07/15/2011, 22:54
|
#13
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Quote:
Originally Posted by Fаng
You're a very disrespectful person. You use Pro4Never's name with a number after it, unofficially claim to be his student which I'm sure he doesn't support, and use his old source's base - which is much better than most of the released sources here - and rename it "FuckingStupidSource" ...
That's really bad dude.
|
Actually it isn't even my source he's using... he's using hybrids source for some reason renamed as hellmouth and then copied the cs files into it cause he couldn't open it in 2008 (it's designed for vs 2010 iirc) So yahhh... just more piling onto him really :P
|
|
|
07/15/2011, 22:57
|
#14
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
|
Quote:
Originally Posted by pro4never
Actually it isn't even my source he's using... he's using hybrids source for some reason renamed as hellmouth and then copied the cs files into it cause he couldn't open it in 2008 (it's designed for vs 2010 iirc) So yahhh... just more piling onto him really :P
|
Either way, it's disrespectful to someone. That's kinda worse taking that Hybrid's source was in development for longer than the one you released. It's just not right to name someone else's source "ShitSource" or something similar just because everything isn't coded for you. It's like throwing mud in the person's face that coded it and taking their wallet while they're not looking. They're both excellent bases.
|
|
|
07/16/2011, 11:09
|
#15
|
elite*gold: 0
Join Date: Oct 2008
Posts: 32
Received Thanks: 3
|
no no ym C#####
|
|
|
 |
Similar Threads
|
WTB Conquer P Server Source
09/01/2010 - Conquer Online 2 Trading - 0 Replies
Ok so i wanna buy a CO Private Server Source made from scratch.
5165+
Ini or SQL based (No binary files)
Compatible with x64 and x86 ; Vista and Windows 7.
So i want a server with all the basic stuff done - Chat, Guilds, teams, GW, NPCs, Mobs, Spawns, Portals, DMaps, Correct DMG Calc, All Skills, Lotto, Dis City etc.
|
[Development] 5018 Conquer Server Source
07/19/2010 - CO2 Private Server - 23 Replies
deleted by request.
|
[Release]Conquer Server Restarter Source
01/06/2010 - CO2 PServer Guides & Releases - 4 Replies
This Is The Conquer Server Restarter VB Source
Photo: http://i48.tinypic.com/2yumszc.jpg
DownLoad Link : Conquer Server Restarter VB.rar
Information : i Dont Got This Source From Any One So Dont Say Iam Leecher
O.o I Forget Something ( There Is No Rules )
|
Requesting 2 DB Tables From latest Conquer Server Source
08/31/2009 - Conquer Online 2 - 2 Replies
hey guys
could anyone hook me up with the latest cq_action table and a matching cq_npc table please.
Regards
Ultimation.
|
All times are GMT +1. The time now is 16:53.
|
|