Register for your free account! | Forgot your password?

You last visited: Today at 09:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Connection.cs problem

Discussion on Connection.cs problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
RiksmanRiks's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 17
Received Thanks: 3
Connection.cs problem

I get this problem when i try to log in to my server

Native.memcpy(p, p2, DataLen);

Attached Images
File Type: jpg New Picture.jpg (22.0 KB, 12 views)
RiksmanRiks is offline  
Old 09/20/2010, 18:57   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
Posting a blocked website
Way 2 go.
Basser is offline  
Thanks
1 User
Old 09/20/2010, 22:31   #3
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
you can skip that part doing the debug with out using the C# that should do it just runit using the .EXE file

its not gonna fix it but its gonna let you run the server
{ Angelius } is offline  
Old 09/20/2010, 23:03   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Might wanna post a bigger screenshot.
Arcо is offline  
Old 09/20/2010, 23:07   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by RiksmanRiks View Post
I get this problem when i try to log in to my server

Native.memcpy(p, p2, DataLen);
restart ur pc, should fix it.
is because ur memory use gets to high.
Fish* is offline  
Old 09/20/2010, 23:17   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Actually, what framework are you using?
Arcо is offline  
Old 09/21/2010, 04:56   #7
 
RiksmanRiks's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 17
Received Thanks: 3
Quote:
Originally Posted by Аrco View Post
Actually, what framework are you using?
I Think i'm using framework 4
RiksmanRiks is offline  
Old 09/21/2010, 11:41   #8


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
You need to correctly assign your calling convention to your pinvoke methods in that case, do a search for calling convention ive posted the fix for this before in the release section i think.
Korvacs is offline  
Thanks
1 User
Old 09/21/2010, 13:37   #9
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Replace your native.cs with this.
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace NewestCOServer
{
    public unsafe class Native
    {
        [DllImport("kernel32.dll")]
        public static extern IntPtr GetStdHandle(uint nStdHandle);
        [DllImport("kernel32.dll")]
        public static extern bool SetConsoleTextAttribute(IntPtr hConsoleOutput, int wAttributes);
        [DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
        public static extern unsafe void* memcpy(void* dest, void* src, uint size);
        [DllImport("user32.dll")]
        public static extern int MessageBox(int h, string m, string c, int type);
        [DllImport("winmm.dll")]
        public static extern uint timeGetTime();
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_set_key(IntPtr _key, int len, byte[] data);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_ecb_encrypt(byte[] in_, byte[] out_, IntPtr schedule, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_cbc_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_cfb64_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, ref int num, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_ofb64_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, out int num);
    }
}
Arcо is offline  
Old 09/21/2010, 15:30   #10
 
RiksmanRiks's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 17
Received Thanks: 3
Quote:
Originally Posted by Аrco View Post
Replace your native.cs with this.
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace NewestCOServer
{
    public unsafe class Native
    {
        [DllImport("kernel32.dll")]
        public static extern IntPtr GetStdHandle(uint nStdHandle);
        [DllImport("kernel32.dll")]
        public static extern bool SetConsoleTextAttribute(IntPtr hConsoleOutput, int wAttributes);
        [DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
        public static extern unsafe void* memcpy(void* dest, void* src, uint size);
        [DllImport("user32.dll")]
        public static extern int MessageBox(int h, string m, string c, int type);
        [DllImport("winmm.dll")]
        public static extern uint timeGetTime();
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_set_key(IntPtr _key, int len, byte[] data);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_ecb_encrypt(byte[] in_, byte[] out_, IntPtr schedule, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_cbc_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_cfb64_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, ref int num, int enc);
        [DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
        public extern static void BF_ofb64_encrypt(byte[] in_, byte[] out_, int length, IntPtr schedule, byte[] ivec, out int num);
    }
}
Thx for this man. now i can play on my server
RiksmanRiks is offline  
Old 09/21/2010, 15:50   #11
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
You could have searched the forum, this error has been posted several times.
Basser is offline  
Reply


Similar Threads Similar Threads
Connection-Problem!
09/08/2010 - Metin2 Private Server - 9 Replies
hey , .. wir haben ein neues probelm ... mein freund kann nicht auf mein server connecten was kannn man tun ? ! der server läuft über hamachi ... er startet das game auch über multistarter.exe und in der mc.txt ist meine richtige hamachi ip drinne! Der Client ist von NeonBlue ! Version 4.5 den hat er auch. ich hoffe ihr könnt mir helfen ! :D MfG.
Connection Problem =P
10/26/2009 - Metin2 Private Server - 2 Replies
Moin^^ Habs gestern schon geschafft, nServer über Hamachi laufen zu lassen, ABER... Leider können andere nicht drauf connecten =(. -Ja ich habe Portmap an mit richtigen IPs (.100 am Schluss) Nun wollt ich fragen, an was das liegen kann ? Liegt es evtl. daran, dass beim Virtual PC nachdem ich ./start eingegebn hab, das kommt: -ConnectDBCheckAuthMasterAuth 6: Operation timed out
Connection Problem
01/22/2007 - World of Warcraft - 1 Replies
Also mein WoW startet nicht mehr richtig... wenn ich mich einloggen will schreibt er bloß: Connecting. . . Failed to connect (oder sowas) Und das ist bei jedem pserver so. Ich hatte WoW vor kurzem mal installiert, da ging alles, später hab ich es gelsöcht, und als ich nun wieder zocken wollte kam eben diese Meldung. Ich hatte auch die "No-Cooldown" wow.exe installiert, vll. liegt es daran.
connection problem
09/27/2006 - Ragnarok Online - 1 Replies
alsooo ich kann auf einen bestimmten server nicht connecten. ich hab alles richtig eingegeben kann auch ID/PW eingeben nur wenn ich server aus wähle bekomme ich DC also kann der wahrscheinlich nicht zum char server connecten ... achja ich meine damit denn bot und es ist nicht auf euro.
Connection Problem
05/05/2005 - World of Warcraft - 2 Replies
Ich wollte mit meinen Brüdern im lan spielen und beide können nich richtig sich einloggen!!!! 1. realm.... is richtig eingegeben 2. account für die beiden gemacht was is nich richtig BITTE HELFT MIR!!!!!



All times are GMT +1. The time now is 09:39.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.