Random Chitchat 2012-2016
|
12-13-2013, 01:48 AM
Just found something pretty usefull. Using F3 + B you can see the hitbox of an entity:
Weird thing has started happening to me. I set up a breakpoint in Decoda, that is hit everytime a player spawns in a world (HOOK_PLAYER_SPAWNED), and when the breakpoint is hit, Decoda pauses MCS, but it still manages to mis-parse the protocol, producing weird packet errors. I have no idea what's going on here, I'm suspecting a threading issue which could manifest in normal gameplay, but it hasn't yet, and the breakpoint amplifies it. But still, it's plain weird.
Yup, threading issue, a complicated one. Finally I untangled the mess. 1. The player connects 2. The client handle is created and added to cServer; the cServer's TickThread handles the packet processing for the client 3. The player logs in and spawns, the packet handler moves the client handle from the cServer to the specified cWorld and calls the OnPlayerSpawned hook. 4. Decoda breakpoint causes the cServer's TickThread to pause. 5. cWorld's TickThread is now in charge of handling the packets for the client handle; the thread is not paused by Decoda, so it runs and receives next packet 6. The next packet is stored in the ByteBuffer after the initial login packet 7. The next packet is processed and the ByteBuffer resets to the beginning of the "currently parsed" packet, to skip the PacketSize bytes of the packet correctly. However, because the login packet hasn't still been committed as processed, the ByteBuffer resets in front of the login packet instead of the next packet. 8. Bam, protocol error! The question now is, how to handle this mess. And it doesn't need to be caused just by Decoda, it could be anything in a plugin taking a bit longer in the OnPlayerSpawned hook.
Just bought Fallout *for free* on http://gog.com . Maybe this time I'll actually enjoy the game.
Threading issue fixed. Along with possibly a few others. Now packets are read full, separated into a new cByteBuffer, and only then processed.
12-14-2013, 05:53 AM
No, unfortunately not. That's a completely different issue, although it keeps bugging me quite a lot, too.
12-14-2013, 06:31 AM
Yesterday I got my new computer.
Intel core i5 nVidia gForce GTX 650 2g ddr5 8GB RAM DDR5 Do you think it will run Battlefield 4 well?
12-15-2013, 06:57 PM
I've been spending some time trying to compile Qt from source, because they no longer distribute the MSVC2008 binary package. It's been 5 days already and still it doesn't work
Thanks given by: tonibm19
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 138 Guest(s)