|
You last visited: Today at 23:22
Advertisement
Jumping Problem
Discussion on Jumping Problem within the CO2 Private Server forum part of the Conquer Online 2 category.
09/12/2010, 17:25
|
#31
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Provided that your byte[] is 8 bytes longer than the length value to begin with then yeah that should be fine although personally i would memcpy:
Code:
fixed (byte* p = Packet, msg = GameHandler.TQServer)
{
msvcrt.memcpy(p + Packet.Length - 8, msg, 8);
}
|
|
|
09/12/2010, 17:34
|
#32
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
I don't need to implement that in both voids do I?
Just the second one right?
|
|
|
09/12/2010, 17:35
|
#33
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Just in your send void, every out going packet must contain it.
|
|
|
09/12/2010, 17:39
|
#34
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Hmm, well now that I did that, I can't logon o.o
Code:
public unsafe void Send(byte[] Packet)
{
lock (this)
{
fixed (byte* p = Packet, msg = PacketBuilder.TQServer)
{
DataPacket.memcpy(p + Packet.Length - 8, msg, 8);
}
this.Socket.Send(Packet);
}
}
|
|
|
09/12/2010, 17:46
|
#35
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
When you create your byte[] for your packet do you make it 8 bytes longer than the length of the packet appears to be?
|
|
|
09/12/2010, 17:47
|
#36
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Oye, I forgot to do that >.<
|
|
|
09/12/2010, 17:53
|
#37
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Any luck?
|
|
|
09/12/2010, 19:10
|
#38
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
No luck :/
I can login, but it won't go past SetLocation
|
|
|
09/12/2010, 19:23
|
#39
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Quote:
Originally Posted by .Arco
No luck :/
I can login, but it won't go past SetLocation
|
Odd, not sure whats up with that...
|
|
|
09/12/2010, 19:26
|
#40
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Is it 100% certain that its the TQServer thingy as you said?
|
|
|
09/12/2010, 19:30
|
#41
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,434
Received Thanks: 1,147
|
Your socket system probably already add the TQServer before sending. Look at my other post. You will find a way to always have the right seal.
|
|
|
09/12/2010, 20:21
|
#42
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Well I just took a look at which is the socket system I'm using and it does send the TQSeal.
|
|
|
09/12/2010, 23:15
|
#43
|
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
|
to korvacs
Were u ******* serious with the TQServer String? If he can login,move (even only a bit) he sent it with it. how else could you login, not possible without the 8bytes of bs.
Anyway.. i checked your source arco. Atleast the one u gave me ages ago when it was 5065. the Jump Packet is too large.
|
|
|
09/13/2010, 00:31
|
#44
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Quote:
Originally Posted by µ~Xero~µ
to korvacs
Were u ******* serious with the TQServer String? If he can login,move (even only a bit) he sent it with it. how else could you login, not possible without the 8bytes of bs.
Anyway.. i checked your source arco. Atleast the one u gave me ages ago when it was 5065. the Jump Packet is too large.
|
Yes i was serious, sending brand new packets with the TQ string is one thing, resending received packets is anouther. Clearly something you failed to grasp.
Remind me again of what youve done for the community that suddenly makes you an expert on anything? What....what was that? Nothing? Thought so.
As for "moving alittle bit" since you move client side even if you DONT send the packets back, any delay in resending (even for the slightest amount of time) can mean that you appear to move several spaces before receiving the first packet for your first movement, and since the .net framework sockets do not interact directly with the tcp protocol then this is definately a possibility.
Dont open your mouth unless you have something helpful to say Yuki, you just end up looking like a noob. >_>
|
|
|
09/13/2010, 02:12
|
#45
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by µ~Xero~µ
Anyway.. i checked your source arco. Atleast the one u gave me ages ago when it was 5065. the Jump Packet is too large.
|
Hum, the hell?
How is, (even if there is one) my jump packet too large o.O
|
|
|
|
|
Similar Threads
|
[Problem] Jumping and Walking being Viewed
08/04/2010 - CO2 Private Server - 2 Replies
Hey! I fixed Character Spawning...
but there's a problem with walking and jumping.
It does it right for the character running or walking; but when the walking action is being viewed, the viewed character is just standing there... but he's supposed to be walking and is walking.
Same with jump. They appear in the screen - not even in a half jump... and then they jump out to the top right no matter where you jump.
public static byte Walk(int Direction, int UID)
{
...
|
anyone has this problem? ms jumping very fast
11/05/2008 - Dekaron - 5 Replies
ok i was wondering if anyone has this problem. everything was working fine at the start. but after a few hours i started to have this problem. whenever i went into the game, the ms would keep increasing from 200 to 20000 and ill just dc. its impossible for me to trainn like this. even when i restart my computer and stuff, its still occuring. My internet connection has no problem so it should not be the cause.
Does anyone else face this problem too, and can anyone teach me how to fix this? help...
|
Jumping problem
01/19/2006 - Conquer Online 2 - 7 Replies
I get a jumping problem after reinstalling conquer last night. I used to jump my two legs togheter, but now, I jump like if i was walking in the air, the two legs moving and I also see other players jumping like that.Can anyone help me?(I also feel that im jumping slower this way)Thank you in advance for anyone who could help!
|
Jumping problem
12/08/2005 - Conquer Online 2 - 0 Replies
OK, here is what happened, after CO2 came out, too many errors and glitches happened, so I decided to redownload and reinstall the whole game all over again, after reinstalling, everything is fine, but once i logged into my tro, i realize it jumps totally different than it used to be. I have a small male tro. Before, it jumps with its leg close together, you guys should know what i mean. But now, it jumps like a small male tao, or a female tao, it jumps with its legs moving back and forth. The...
|
All times are GMT +2. The time now is 23:22.
|
|