Creative Mode
#10
(11-02-2011, 03:54 AM)rs2k Wrote: I fixed creative mode to allow placement of blocks. Basically, any block added from the creative mode inventory is not acknowledged by the server. cClientHandle.cpp now ignores the check to remove an item in creative mode and allows placement of blocks not in your inventory.

I'm planning on changing creative mode to being player based. A player spawns into the world in whatever mode the world is set to, but all checks of creative mode will be based on the player's current mode.

That's exactly how I would do it.


(11-02-2011, 06:12 AM)rs2k Wrote: I added some sanity checks for working with blocks. I want to make the server kick the player if they cause the sanity check to go off too many times now.

MCserver crashes when picking up an inventory item. I'm not sure when this bug started since the server's been in GM 1 for a while now. I'll start looking into it.


Edit:
I added another LOG below the spot I thought was causing the problem and now I can't replicate the crash. Maybe it was just a problem in that one compile. Semms to be working now.

I set the interaction limit to 0.1 seconds. This is easy to hit by clicking quickly. I did this so it'd be easier to test.

I never had those problems on my side. I do notice sometimes when testing from cygwin that the server crashes randomly, and when I do a complete recompile of the entire project it works fine, so my guess is that you sometimes have to do a full recompile when using gcc
Reply
Thanks given by:


Messages In This Thread
Creative Mode - by rs2k - 10-27-2011, 02:39 AM
RE: Creative Mode - by rs2k - 10-27-2011, 04:16 AM
RE: Creative Mode - by rs2k - 10-27-2011, 05:17 AM
RE: Creative Mode - by FakeTruth - 10-27-2011, 05:26 AM
RE: Creative Mode - by rs2k - 10-27-2011, 05:38 AM
RE: Creative Mode - by FakeTruth - 10-27-2011, 05:53 AM
RE: Creative Mode - by rs2k - 10-27-2011, 06:06 AM
RE: Creative Mode - by rs2k - 11-02-2011, 03:54 AM
RE: Creative Mode - by FakeTruth - 11-02-2011, 07:04 AM
RE: Creative Mode - by rs2k - 11-02-2011, 06:12 AM
RE: Creative Mode - by rs2k - 11-02-2011, 07:15 AM
RE: Creative Mode - by FakeTruth - 11-02-2011, 07:21 AM
RE: Creative Mode - by rs2k - 11-02-2011, 07:23 AM
RE: Creative Mode - by FakeTruth - 11-02-2011, 08:13 AM
RE: Creative Mode - by rs2k - 11-02-2011, 08:17 AM
RE: Creative Mode - by FakeTruth - 11-02-2011, 08:24 AM
RE: Creative Mode - by rs2k - 11-02-2011, 08:30 AM
RE: Creative Mode - by FakeTruth - 11-02-2011, 09:39 AM
RE: Creative Mode - by rs2k - 11-02-2011, 06:35 PM
RE: Creative Mode - by rs2k - 11-02-2011, 09:43 AM
RE: Creative Mode - by FakeTruth - 11-03-2011, 03:17 AM
RE: Creative Mode - by rs2k - 11-03-2011, 03:50 AM
RE: Creative Mode - by FraNkYWIllS - 12-20-2011, 08:24 PM



Users browsing this thread: 2 Guest(s)