PInvoke Call Bug (Hybird's Source Bug)

06/07/2011 21:14 Pro4Never2#1
watch the vid you understand everything

this is the 5379+ source for hybird i think

i can't debug the game idk why, i understood from the error that there is things in 32bit and others in 64bit so there's a balancement, but putting the project 32bit or 64bit doesn't change anything

note: when i put the 64bit and i fix everybug , i get the same Pinvoke error

06/07/2011 22:05 Korvacs#2
Search the release section for calling conventions, i posted the fix for this in anouther thread like 6 months ago.
06/07/2011 22:14 Kiyono#3
Oh, I had the exact same problem a while ago, go to your dllimport thingy and look for something like this:
[DllImport("nameofdllwithproblem")]
And change it to:
[DllImport("nameofdllwithproblem", CallingConvention = CallingConvention.Cdecl)]
06/07/2011 22:38 Pro4Never2#4
worked thx, but now i launched the auth and game server, turned hamachi On, logged in and i found the source offline

note : sorry for disturbance guys but i really want to try this source
06/07/2011 22:46 Kiyono#5
Well all I can say is check if you use the correct ports.
06/08/2011 08:14 BaussHacker#6
Quote:
Originally Posted by Kiyono View Post
Well all I can say is check if you use the correct ports.
Yup. I did the same mistake, because nullables loader is set to different ports :)
06/08/2011 10:42 Pro4Never2#7
Guys, look what i found in Auth Processor.cs

Quote:
if (Client.AuthID != 0)
{
if (PermanentBan == 2)
resp.Type = 0x41E;
else if (PermanentBan == 4)
{
resp.Type = 0x41D;
}
resp.IPAddress = "192.168.0.8";
resp.Key1 = Client.AuthID;
resp.Key2 = (uint)Client.Password.GetHashCode();
resp.Port = 5817;
ServerDatabase.AddAuthData(Client);
ServerDatabase.AddLastLogin(Client.Account);
}
else
{
resp.Key1 = 1;
BruteforceProtection.AddWatch(nClient.IP);
}
Client.Send(&resp);
}
else
{
nClient.Disconnect();
}
break;
have i to put my own Ip in?
have i to change the port to 9959 or 5816 idk
06/08/2011 10:49 Korvacs#8
Come on....really? REALLY??

Of course you have to put your own ip address in, this is like day one of conquer private server setup, the source needs to be customised to your environment.

So change the ip to the ip address of your computer, if your going to set it up for people outside your lan without hamachi then it needs to be your external ip address, the port is the port that the game server is running on.

Come on >_>
06/08/2011 13:45 chickmagnet#9
Quote:
Originally Posted by Pro4Never2 View Post
Guys, look what i found in Auth Processor.cs



have i to put my own Ip in?
have i to change the port to 9959 or 5816 idk
in that source the port was changed from 9959 to 9960 u can cange it bac buts its 9960 now
06/08/2011 14:08 Pro4Never2#10
look what happens when i login

[Only registered and activated users can see links. Click Here To Register...]
Quote:
Translate
Could not load file or assembly 'BlowfishCFB.dll'or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
06/08/2011 14:16 Kiyono#11
Oh that, you need a non-redistributable file from VS2008.
06/08/2011 14:27 Pro4Never2#12
would you explain more please?
06/08/2011 17:19 BaussHacker#13
Uploaded that long time ago.
06/08/2011 18:06 Pro4Never2#14
same thing after extracting it in debug file and everywhere
06/08/2011 18:39 Kiyono#15
Quote:
Originally Posted by BaussHacker View Post
Uploaded that long time ago.

[Only registered and activated users can see links. Click Here To Register...]
Just saying but it's non-redistributable so wouldn't it be against the rules on this forum?
Quote:
Originally Posted by Pro4Never2 View Post
same thing after extracting it in debug file and everywhere
It should work.