05-13-2015, 11:12 PM
is there a way to force MCServer to crash on windows?
Random Chitchat 2012-2016
|
05-13-2015, 11:12 PM
is there a way to force MCServer to crash on windows?
05-13-2015, 11:33 PM
Certainly, with a bad plugin:
function Initialize(a_Plugin) cPluginManager:BindConsoleCommand("crash", function() local InvalidObj = tolua.cast(a_Plugin, "cChunkDesc") InvalidObj:FillBlocks(0, 0) -- Overwrite the current plugin's C++ data with all zeroes. end, "Crashes the server on purpose" ) return true endThis gives you a consoel command "crash" that crashes the server on demand
05-13-2015, 11:33 PM
(Told you tolua.cast was a dangerous thing
I'm getting an error, but not a crash.
"[15:40:56] cBlockArea::Fill: requested datatypes that are not present in the BlockArea object, trimming those away (req 0x3, stor 0xe)" Restarting the server inside the console does not fix the inventory window desync bug btw. Even restarting the binary does not o.o
05-13-2015, 11:56 PM
MCServer is now running under an debugger (debug build) is there a way I can find the cause of the desync?
05-14-2015, 01:24 AM
More than a debugger you will need the protoproxy. Unfortunately if I remember correctly it only works with 1.7 clients.
05-15-2015, 07:07 AM
Stupid hockey. It seems the national team has won again, so now there's crowds of drunken loud fans walking the streets from the stadium to subway station, which means right past my windows This will be a tough night...
05-19-2015, 08:38 AM
How exactly is cByteBuffer::WriteVarInt32 supposed to work with entity ids? At the moment we seem to be using UInt32's for everything, but the protocol documentation says that it should be signed.
05-19-2015, 04:34 PM
VarInt cannot be signed. The protocol itself is somewhat shady on this, Mojang have begun changing EntityIDs from regular Ints to VarInts (and thus dropping the sign), but they still keep forgetting a few packets.
05-19-2015, 07:39 PM
That's not what http://wiki.vg/Protocol#Data_types says?
|
« Next Oldest | Next Newest »
|