1
0
Commit Graph

452 Commits

Author SHA1 Message Date
madmaxoft@gmail.com
f2681777fb Fast NBT writer (Saving a chunk is now about twice as fast)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@484 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-08 11:31:54 +00:00
madmaxoft@gmail.com
05a1f89286 Fixed two "bottlenecks" found using profiling - MakeIndex() instead of MakeIndexNoCheck()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@483 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-08 09:25:15 +00:00
madmaxoft@gmail.com
90740aff3c Added a profiling option to the VC2008 projects, using the MS standalone profiler (see vc2008/profile_run.cmd for details and usage)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@482 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-08 09:22:32 +00:00
madmaxoft@gmail.com
35c8bc4c58 Fast NBT Parser (loading a chunk is now about 10 times faster)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@481 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-07 20:22:04 +00:00
madmaxoft@gmail.com
b73fba7c08 Updated version text to include 1.2.5; ChunkSender doesn't serialize chunk packets for chunks without a client
git-svn-id: http://mc-server.googlecode.com/svn/trunk@480 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-07 18:52:40 +00:00
madmaxoft@gmail.com
9cb8872851 Anvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@475 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-23 21:20:32 +00:00
madmaxoft@gmail.com
60b5f4b66b Lapis gets generated (thanks, Fordship)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@463 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-15 07:37:36 +00:00
faketruth
ae3fa2b622 Moved the commands /coords /viewdistance and /regeneratechunks from cServer.cpp to the Core plugin
git-svn-id: http://mc-server.googlecode.com/svn/trunk@457 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-11 12:16:13 +00:00
madmaxoft@gmail.com
2b0dd758d5 Added error messages to socket closing error conditions for *nix
git-svn-id: http://mc-server.googlecode.com/svn/trunk@456 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-10 14:56:42 +00:00
madmaxoft@gmail.com
23cfcc6ffd Added the permission "builtin.regeneratechunk" needed for regenerating chunks using a command.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@455 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-10 12:32:39 +00:00
madmaxoft@gmail.com
c51a4b9469 Added the "/regeneratechunk" command that regenerates either current chunk or a chunk specified with x, z parameters. TODO: permissions - we don't want guests erasing our chunks!
git-svn-id: http://mc-server.googlecode.com/svn/trunk@454 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-10 11:22:11 +00:00
madmaxoft@gmail.com
e009569060 Compression error -5 fix
git-svn-id: http://mc-server.googlecode.com/svn/trunk@452 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-04 14:36:52 +00:00
madmaxoft@gmail.com
3fe1622eda Fixed a parsing error in NBT classes (doubles weren't parsing correctly);
Added a working NBT serialization (verified in another project)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@451 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-04 12:07:38 +00:00
madmaxoft@gmail.com
0d0ad37da1 StringUtils' GetDirectoryContents() now accepts empty string and interprets it as "current directory" (*nix fix)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@450 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-04 10:50:43 +00:00
madmaxoft@gmail.com
b5a646d94a Logging OnBlockDig and OnBlockPlace only in Debug mode ( http://mc-server.org/support/index.php?do=details&task_id=133&project=2 )
git-svn-id: http://mc-server.googlecode.com/svn/trunk@447 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-03 14:07:18 +00:00
madmaxoft@gmail.com
00ea7d12c1 Attempted a fix for cSocket's Bind() call on MacOS-based systems (initializing the whole sockaddr_in structure with zeroes first)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@446 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-03 13:37:00 +00:00
faketruth
d975e5bf04 cSocket.cpp should also compile on Mac now (I hope)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@443 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-31 19:07:48 +00:00
faketruth
64f8549604 Fixed a crash when fluid would try to go below the world (y = -1)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@442 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-31 12:10:17 +00:00
faketruth
091d958b0c Got rid of sPluginManagerState
/pluginlist now also shows the number of active plugins
Fixed crash caused by lingering bound Lua commands http://forum.mc-server.org/showthread.php?tid=212&pid=2541#pid2541
Added error messages when binding commands to an invalid plugin

git-svn-id: http://mc-server.googlecode.com/svn/trunk@440 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-28 18:11:06 +00:00
madmaxoft@gmail.com
fcb9b281e0 Fixed a possible crash in ChunkSender - a client would be reported as removed but still would be in the internal queue.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@438 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-27 19:23:44 +00:00
madmaxoft@gmail.com
ce053d1b9b Removed the unneeded header wdirent.h
git-svn-id: http://mc-server.googlecode.com/svn/trunk@437 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-26 20:40:15 +00:00
madmaxoft@gmail.com
05252babc6 Added the supported client version to banner; shamelessly added myself to the authors list ;)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@436 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-26 18:09:10 +00:00
madmaxoft@gmail.com
ba5b6ca751 A globally-accessible OS-independent GetDirectoryContents() function for listing all objects in a folder as an AStringList
git-svn-id: http://mc-server.googlecode.com/svn/trunk@433 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-25 14:24:51 +00:00
madmaxoft@gmail.com
534e221316 Fixed the Log altogether (doesn't use NULL-to-va_list assignment, compiles for RaspberryPi)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@432 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-25 13:29:07 +00:00
madmaxoft@gmail.com
5783437436 Added the new 1.2.4's PlayerAbilities packet; restructures packet files for less files, more dense.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@431 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-24 13:28:53 +00:00
madmaxoft@gmail.com
3c3d1c60a3 Protocol version bumped up to 29 (MC 1.2.4), seems to work.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@430 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-24 12:10:23 +00:00
madmaxoft@gmail.com
e1ef489e08 Removed the split between 1.2.3 and 1.1, left only 1.2.3 code
git-svn-id: http://mc-server.googlecode.com/svn/trunk@429 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-24 11:40:29 +00:00
madmaxoft@gmail.com
b69ac328c0 Reverted the previous commit - it is useless, since entities still depend heavily on cWorld
git-svn-id: http://mc-server.googlecode.com/svn/trunk@428 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-24 11:14:34 +00:00
madmaxoft@gmail.com
be31652c40 Encapsulated cWorld functions needed in cWorldStorage into an interface, so that cWorldStorage can actually be used outside of MC-Server (such as storage conversion tools and chunk analyzers)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@427 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-23 21:12:48 +00:00
madmaxoft@gmail.com
389062a1ed Fixed a deadlock by removing clients from all chunks upon their exit, not using the clients chunklists.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@426 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-22 15:53:40 +00:00
faketruth
ed7b680d3c Added core.build permission to Core. Without this permission players are unable to build
git-svn-id: http://mc-server.googlecode.com/svn/trunk@425 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-19 20:30:24 +00:00
madmaxoft@gmail.com
2786ad306a Fixed player heads always pointing north (new EntityHeadLook packet)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@424 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-19 17:15:35 +00:00
madmaxoft@gmail.com
8d9e539f33 Fixed a warning in a Release build
git-svn-id: http://mc-server.googlecode.com/svn/trunk@423 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-19 14:21:52 +00:00
madmaxoft@gmail.com
ff9ae21e6d Install: added the high_detail_debug and medium_detail_debug scripts
git-svn-id: http://mc-server.googlecode.com/svn/trunk@422 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-19 14:13:19 +00:00
madmaxoft@gmail.com
fedd0dd95f Made some logging output debug-only
git-svn-id: http://mc-server.googlecode.com/svn/trunk@421 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-19 09:40:56 +00:00
madmaxoft@gmail.com
1e90dad245 Basic cWindow thread-safety
git-svn-id: http://mc-server.googlecode.com/svn/trunk@420 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-19 09:37:10 +00:00
madmaxoft@gmail.com
f72d1e1821 SocketThreads: proper thread finishing sequence (doesn't trigger AppVerifier checks :)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@419 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-19 09:36:34 +00:00
faketruth
cbfca006f7 Got rid of cPlayer::sPlayerState
git-svn-id: http://mc-server.googlecode.com/svn/trunk@418 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-16 16:16:37 +00:00
faketruth
445d31acc9 That didn't work.. I forgot some cChunk functions were changed. Now it should compile again
git-svn-id: http://mc-server.googlecode.com/svn/trunk@417 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-16 15:52:26 +00:00
faketruth
38b219de62 Exposed a function to Lua to get a block's sky light value
git-svn-id: http://mc-server.googlecode.com/svn/trunk@416 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-16 15:48:40 +00:00
madmaxoft@gmail.com
8127148f4c Actually commented out the Anvil terrain inversion code
git-svn-id: http://mc-server.googlecode.com/svn/trunk@415 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14 21:49:22 +00:00
madmaxoft@gmail.com
2386d79541 Anvil support: Added a debugging section for inverting terrain (So that MC cave generator can be seen in action). Commented out, so that it doesn't make it into the release versions
git-svn-id: http://mc-server.googlecode.com/svn/trunk@414 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14 21:45:04 +00:00
madmaxoft@gmail.com
b974b1ea59 Unified the chunk data to use the BLOCKDATA datatype.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@413 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14 21:21:03 +00:00
madmaxoft@gmail.com
0aefed3e22 Added the new ChunkDef.h into VC2010 project
git-svn-id: http://mc-server.googlecode.com/svn/trunk@412 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14 20:58:35 +00:00
madmaxoft@gmail.com
0b24efeb00 Split chunk data into separate arrays; decoupled most sources from cChunk.h dependency
git-svn-id: http://mc-server.googlecode.com/svn/trunk@411 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14 20:56:09 +00:00
madmaxoft@gmail.com
393e34d571 Fixed the server not waiting for the world to save completely before stopping
git-svn-id: http://mc-server.googlecode.com/svn/trunk@410 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-13 21:13:34 +00:00
madmaxoft@gmail.com
8be2528350 Removed an unwarranted assert in cChunkSender
git-svn-id: http://mc-server.googlecode.com/svn/trunk@409 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-13 20:32:11 +00:00
madmaxoft@gmail.com
b8041509e5 Small optimizations in the SetNibble() and GetNibble() functions; removed unused lighting functions from cChunk
git-svn-id: http://mc-server.googlecode.com/svn/trunk@408 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-13 20:26:36 +00:00
madmaxoft
d0a606959b Fixed a few warnings, lifted up the block interactinos limit to 20 (10 was not enough for Creative mode)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@407 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-13 09:28:24 +00:00
madmaxoft@gmail.com
12ce4e3a1a Gotten rid of stricmp MSVC warnings
git-svn-id: http://mc-server.googlecode.com/svn/trunk@406 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-12 19:43:25 +00:00