|
You last visited: Today at 01:01
Advertisement
Y u no work?
Discussion on Y u no work? within the CO2 Programming forum part of the Conquer Online 2 category.
05/09/2012, 04:29
|
#1
|
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
|
Y u no work?
Code:
private void button1_Click(object sender, EventArgs e)
{
List<COClient> Clients = new List<COClient>();
COClient client = new COClient();
client.Attached += (delegate()
{
{
this.Invoke(new MethodInvoker(delegate { List<string> lines = textBox1.Lines.ToList(); lines.Insert(0, Text); if (lines.Count > 100) lines.RemoveAt(100); textBox1.Lines = lines.ToArray(); textBox1.Refresh(); }));
}
textBox1.Text = +client.ProcessId + "";
});
client.PacketSent += (delegate(byte[] packet)
{
textBox1.Text = "SENT: " + BitConverter.ToString(packet).Replace("-", " ");
});
client.PacketReceived += (delegate(byte[] packet)
{
textBox1.Text = "RECV: " + BitConverter.ToString(packet).Replace("-", " ");
});
client.Start();
client.SendPacket(new byte[] { 0, 0 }); <<<-----This being the reason it doesn't load the Conquer.exe up?
}
|
|
|
05/09/2012, 08:40
|
#2
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
At least say what's not working.
#Edit nevermind
And ermm most likely yeah. Since there is no packet on the size of 2 bytes. Conquer packets take at least 4 bytes as packet-header.
2 bytes for the size (uint16)
2 bytes for the type (uint16)
|
|
|
05/09/2012, 09:16
|
#3
|
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
|
So what should those two zeros actually be o.0? Or better still how should I find what they should be?
|
|
|
05/09/2012, 09:40
|
#4
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Depends what packet you want to send o.o
|
|
|
05/09/2012, 09:48
|
#5
|
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
|
Hmmm well without "client.SendPacket(new byte[] { 0, 0 });" I can start the client so do I even need that? I'm assuming I must need it for something >.<
I'm assuming it's for login or something? I've noticed though that without it I can close the GUI and the client stays open even though I added something that should close the client if the GUI is closed which is why I assume it is needed for something lol.
Code:
private void Form_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e)
{
List<COClient> clients = new List<COClient>();
foreach (COClient client in clients)
{
client.Detach();
}
}
Code:
private void Main_Load(object sender, EventArgs e)
{
FormClosing += Form_FormClosing;
}
|
|
|
05/09/2012, 09:52
|
#6
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
|
Couldn't resist.
Also, I don't see where you're assigning the socket to the send.
|
|
|
05/09/2012, 10:03
|
#7
|
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
|
Now I'm puzzled >.< I'm also using Google to try to answer most of the things and this puzzled me
Quote:
Also, I don't see where you're assigning the socket to the send.
|
So I decided to take a look at this
|
|
|
05/09/2012, 10:16
|
#8
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,198
|
What the ****? Sigh..
Why the hell are you sending a { 0x00, 0x00 } packet? There is no need for this. This isn't even a valid packet and it probably crashes Conquer.exe because you're basically telling it to send a 2-byte packet with size 0
You don't call "Detach" to close the client, you call "Kill"
|
|
|
05/09/2012, 10:27
|
#9
|
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
|
So basically as I was I can just take
Code:
client.SendPacket(new byte[] { 0, 0 });
out because yes it loads without it and yes it sends data back and forth from what I can see in the textBox1?
I have changed it to kill rather than disconnect now, that's the problem I find when looking on Google.
Code:
private void Form_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e)
{
FormClosing += Form_FormClosing;
List<COClient> clients = new List<COClient>();
foreach (COClient client in clients)
{
client.Kill();
}
}
Code:
private void Main_Load(object sender, EventArgs e)
{
FormClosing += Form_FormClosing;
}
That still doesn't close the client if I close the GUI >.<
|
|
|
05/09/2012, 11:08
|
#10
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Process.Kill(), aye?
|
|
|
05/09/2012, 11:23
|
#11
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,198
|
Oh my ***....
|
|
|
05/09/2012, 11:33
|
#12
|
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
|
Oh my *** what? I even did a simple test and it STILL didn't close the Conquer.exe >.<
Code:
private void button3_Click(object sender, EventArgs e)
{
COClient client = new COClient();
{
client.Kill();
}
}
|
|
|
05/09/2012, 11:35
|
#13
|
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,198
|
Quote:
Originally Posted by denominator
Oh my *** what? I even did a simple test and it STILL didn't close the Conquer.exe >.<
Code:
private void button3_Click(object sender, EventArgs e)
{
COClient client = new COClient();
{
client.Kill();
}
}
|
Are you ******* retarded or what? Read a book about programming, please.
|
|
|
05/09/2012, 11:41
|
#14
|
elite*gold: 0
Join Date: Aug 2010
Posts: 940
Received Thanks: 76
|
Sorry for TRYING to learn! Guess I'll just go back to dotnetperls.com and continue to read as I have been doing all night.
|
|
|
05/09/2012, 11:59
|
#15
|
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
|
Quote:
Originally Posted by denominator
Oh my *** what? I even did a simple test and it STILL didn't close the Conquer.exe >.<
Code:
private void button3_Click(object sender, EventArgs e)
{
COClient client = new COClient();
{
client.Kill();
}
}
|
Because making a new client and killing it will help much.
|
|
|
|
|
Similar Threads
|
how to make register.php work and client work at the same time
07/04/2014 - Dekaron Private Server - 11 Replies
Prior to my tut I am assuming you already checked this steps:
1. Followed Warmongers Ultimate Dekaron Server Setup
2. That you had succesfully downloaded and implement Silkbotters web registration php's and installed XAMPP server
3. That you already edited all the .ini in your htdocs folder with localhost IP 127.0.0.1, (yup, including Login server config.ini)
NOW this is what I learned:
1. When you setup your system DSN which you named "account" with log-in and password = account, at the...
|
how to make DSEEG work with dragonica (THQ/ICE) work for vista 32 bit users
10/16/2010 - Dragonica - 4 Replies
ok after 3 hours of messing around with dragonica i found a way to make it work with DSEEG for those who got the memory edit error
firstly within the 1 minture the game is open with dseeg remove all hotkeys and delete all bot settings and click save
leave the patcher.exe filepath as it is, select THQ and close everything, make sure that you set DSEEG to run as admin from the compatibility tab in properties.
now delete engine.ini from both c: drive and the dragonica release folder
...
|
[Release] ReXIGNation (Anti-Xigncode+CRC Bypass) spam here work/no work
07/19/2010 - Dekaron - 9 Replies
F>Y>I the bypass still work for me reinstall the game and run the bypasss with Cheat engine only, no winhex or any other way will make you DC right away when log in, am a vista user and i testes 3 different way and only CE work now hope this help u guy :mofo:
|
All times are GMT +2. The time now is 01:01.
|
|