1
0

Commit Graph

  • a14e015354 Extended SocketThreads for writing support (unusable in cClientHandle due to too many deadlock possibilities) Extended the range of ignored packets in pre-game client states (fixes connection issues with some mods installed) madmaxoft@gmail.com 2012-02-25 23:48:28 +0000
  • bf19f7ae9c Made the viewdistance settable by users and default in settings.ini. The default is 9. madmaxoft@gmail.com 2012-02-23 22:51:03 +0000
  • 062b38b8b0 Plain pointer cChunkPtr finishing touches; removed cChunk's critical sections madmaxoft@gmail.com 2012-02-23 21:21:37 +0000
  • 9d3b837461 Made cChunkPtr a plain old pointer again, since it's safe now madmaxoft@gmail.com 2012-02-23 21:02:38 +0000
  • 8f85b9c625 cChunk: removed unused code madmaxoft@gmail.com 2012-02-23 11:38:10 +0000
  • 4455a1643d Added cmdline parameters "/cdg" and "/cdf" for crashdump flags "globals" and "full memory" madmaxoft@gmail.com 2012-02-23 11:37:53 +0000
  • 8cfcc2915c Rewritten ore generation from scratch, using a different (much faster) algorithm. Chunk generation now about 2x faster :) madmaxoft@gmail.com 2012-02-22 21:20:20 +0000
  • 3de5480191 That 2nd assert didn't make much sense... faketruth 2012-02-22 20:40:32 +0000
  • 3ca9b52ab2 Added some asserts to trace a bug faketruth 2012-02-22 20:33:33 +0000
  • 6015b59f13 Fixed a bug that no chunks were unloaded on the client. Now chunks are properly unloaded on the clients. faketruth 2012-02-22 19:31:30 +0000
  • 1cb756cbf2 Noise function optimization (chunk generation now about 1.5x faster :) madmaxoft@gmail.com 2012-02-22 17:04:04 +0000
  • a40ed8bd0d WorldGenerator: fixed small foliage - cacti now generate only at beaches, not underwater. madmaxoft@gmail.com 2012-02-22 16:11:10 +0000
  • 2518738f7f Updated the ChatLog plugin to the new format faketruth 2012-02-22 15:57:45 +0000
  • 41d55ef86b Lua seems to have trouble with a combination of overloaded functions and class inheritance, so I renamed TeleportTo( cEntity* ) to TeleportToEntity /tp command should work again :) faketruth 2012-02-22 15:46:38 +0000
  • 1d1b0fd00d Fixed a potential deadlock in cChunkMap::m_CSLayers vs cWorld::m_CSAllEntities madmaxoft@gmail.com 2012-02-22 15:45:00 +0000
  • d9c25a161e Added a crude way of disabling redstone. It's necessary though, redstone is completely broken, crashes the server all the time faketruth 2012-02-22 15:35:10 +0000
  • 42a3cd60d4 Added a CriticalSection to cPlugin_NewLua. Lua plugins are not threadsafe but they ARE accessed by multiple threads, this can create some hard to find errors, but I fixed it now :P faketruth 2012-02-22 15:15:44 +0000
  • 37415b4297 VC2008: cleaned up the Release configuration for the project madmaxoft@gmail.com 2012-02-22 09:38:36 +0000
  • eac080c94d nightbuild script: don't echo commands; check before building if the file already exists madmaxoft@gmail.com 2012-02-22 09:22:46 +0000
  • d1deba5b56 First attempt at an automated nightbuild script madmaxoft@gmail.com 2012-02-22 09:02:11 +0000
  • e2e261dd17 Restricted windows crash dump generating code to 32-bit platforms only due to inline assembly madmaxoft@gmail.com 2012-02-22 08:06:56 +0000
  • 16da9e07ae Added code to produce dump files on Windows builds to aid with debugging server crashes madmaxoft@gmail.com 2012-02-21 21:09:42 +0000
  • be0a659153 Changed ASSERT() to not cause warnings during compile Added VERIFY(); it's the same as ASSERT() but also works in release builds VS2010 project uses warning level 4 faketruth 2012-02-21 16:42:24 +0000
  • b653e6a012 Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :) Also fixed a threading issue when a player connecting might have gotten stuck in "Downloading world" forever madmaxoft@gmail.com 2012-02-21 16:27:30 +0000
  • f0145ee9fa Fixed heightmap optimization from rev 302; removed a few more cChunkPtrs madmaxoft@gmail.com 2012-02-21 15:18:02 +0000
  • da4afc0cf3 Optimized hightmap recalc when setting a chunk's block madmaxoft@gmail.com 2012-02-21 13:44:06 +0000
  • b4a68e58a9 Fixed block-getting so that simulators work again madmaxoft@gmail.com 2012-02-21 12:29:05 +0000
  • f07251625d Revised GNUmakefile for header file dependencies (again; this time it should work ;) madmaxoft@gmail.com 2012-02-21 12:07:08 +0000
  • edb1f1f87f VC2008: Temporarily reset compiler warnings to Level 3 due to the new ASSERT() madmaxoft@gmail.com 2012-02-20 16:40:34 +0000
  • d592882fe0 Removed some more cChunkPtr usage madmaxoft@gmail.com 2012-02-20 16:39:00 +0000
  • 0b616909e3 Using own ASSERT() that logs to file faketruth 2012-02-19 23:00:00 +0000
  • df39f12e30 Fixed assertion bug in NamedEntitySpawn packet, it used to assert when item ID is 0, but now 0 is allowed faketruth 2012-02-19 19:31:38 +0000
  • 3a8d2aa421 Substantial cWorld::FastSetBlock() speed up by queueing all such calls and processing them later chunk-wise (makes growing trees in the generator fast again) madmaxoft@gmail.com 2012-02-18 20:10:57 +0000
  • 993bdab1e8 Fixed previous commit: forgot to remove a debugging setting madmaxoft@gmail.com 2012-02-18 19:20:05 +0000
  • 76a92a21d1 Re-implemented tree-growing. May produce artefacts on old-world / new-world boundaries. madmaxoft@gmail.com 2012-02-18 19:18:16 +0000
  • 499745c1c7 Thread-safe chunk generation, storage and generator are queried for progress while initializing server Note that this commit breaks foliage generation - there are no trees in the chunks generated! madmaxoft@gmail.com 2012-02-18 17:53:22 +0000
  • 57dedd585c Logging: added thread ID to the log output in debug builds madmaxoft@gmail.com 2012-02-18 17:51:34 +0000
  • a0c29514d2 Logging: added LOGD macro that logs only in debug builds madmaxoft@gmail.com 2012-02-18 17:49:02 +0000
  • b173748c45 Moved stdarg.h inclusion into Globals.h madmaxoft@gmail.com 2012-02-18 17:47:27 +0000
  • d2b229d227 cIsThread: Added support for getting current thread ID madmaxoft@gmail.com 2012-02-18 17:43:20 +0000
  • 14617868fb Webserver: fixed a compiler warning madmaxoft@gmail.com 2012-02-18 16:04:49 +0000
  • 7a9925f982 Added the skeleton of the cLightingThread object madmaxoft@gmail.com 2012-02-17 18:24:34 +0000
  • 510133bd35 Chunk coords mostly "upgraded" to include the Y coord for future compatibility madmaxoft@gmail.com 2012-02-17 17:56:25 +0000
  • a97774624a Removed useless log messages madmaxoft@gmail.com 2012-02-17 13:34:16 +0000
  • 62c4ed1c2e Fixed *nix hang on server stop (socket needs shutting down) madmaxoft@gmail.com 2012-02-17 13:09:56 +0000
  • 71097aa49b Lots of logging added madmaxoft@gmail.com 2012-02-17 11:40:14 +0000
  • 4a7883a5e3 git-svn-id: http://mc-server.googlecode.com/svn/trunk@281 0a769ca7-a7f5-676a-18bf-c427514a06d6 faketruth 2012-02-16 22:28:19 +0000
  • eefe71f593 New server command "unload" to manually unload unused chunks madmaxoft@gmail.com 2012-02-16 19:32:31 +0000
  • 2928cb6853 cWorldGenerator speedup - doesn't call GetChunk() anymore, not queueing the chunk it's generating to be loaded recursively. cChunk fix - setting a block to the same value doesn't mark chunk dirty (resulted in un-unloadable chunks) madmaxoft@gmail.com 2012-02-16 17:45:26 +0000
  • 008addf5d7 Got rid of dangerous GetEntity(), not using DoWithEntity() faketruth 2012-02-16 17:20:28 +0000
  • 415d4eaa68 Chunks are now marked as saved madmaxoft@gmail.com 2012-02-16 16:50:11 +0000
  • 44a6fd20c4 Marking chunk dirty after generating madmaxoft@gmail.com 2012-02-16 15:53:52 +0000
  • cd2bb55176 cPlayer empty-handed spawn fix madmaxoft@gmail.com 2012-02-16 15:51:40 +0000
  • bb396c8cc0 Heightmap is properly generated after loading chunks now, so /spawn and /top should work properly again faketruth 2012-02-16 15:40:38 +0000
  • 423f49d175 Chunk is now marked as dirty; saving only dirty chunks; rewritten load / save not to use cChunkPtr; set VC2008 project to level4 warnings; block entities are now loaded and saved properly madmaxoft@gmail.com 2012-02-16 13:42:35 +0000
  • 1c4122313f Chunks are properly saved before being unloaded now numchunks server command works again faketruth 2012-02-16 13:23:54 +0000
  • 1b60fe14f8 Disabled the excessive logging while initializing the Core plugin faketruth 2012-02-16 12:42:46 +0000
  • 85db35a3ba cSocket::GetErrorString() now also compiles on Cygwin faketruth 2012-02-16 11:15:00 +0000
  • 3c4bfd9799 Fixed logging in cServer madmaxoft@gmail.com 2012-02-16 09:35:33 +0000
  • d15d40ad69 No longer using pointers for Vector3(f/d/i) in cEntity's and cTracer faketruth 2012-02-15 22:50:00 +0000
  • 57a97e8036 New players no longer cause an assert faketruth 2012-02-15 22:11:56 +0000
  • 7a26fbe471 Can use the 'restart' command again. cAuthenticator no longer asserts because it properly stops when the server is stopped. faketruth 2012-02-15 21:47:21 +0000
  • 5958478c59 Fixed a deadlock in WorldStorage faketruth 2012-02-15 21:35:59 +0000
  • 01341e2788 Fixed logging formatting error in cWorld madmaxoft@gmail.com 2012-02-15 14:26:37 +0000
  • 1aebcea095 Restored chest and furnace functionality as it was (it's basically working but joined chests show single-chest window) madmaxoft@gmail.com 2012-02-15 14:22:44 +0000
  • 5e1033c567 Can now pass any argument to cWorld:ForEachPlayer in Lua! But I'm not even using it.. lol faketruth 2012-02-15 13:16:42 +0000
  • 19e711a1e3 Slight cleanup - removed old code, some additional comments on dangerous functions madmaxoft@gmail.com 2012-02-14 21:09:14 +0000
  • e7ea352f41 Got rid of cWorld::GetAllPlayers() and implemented ForEachPlayer() more or less in Lua Core now uses ForEachPlayer() to interact with connected players faketruth 2012-02-14 19:14:23 +0000
  • 46df5ee331 Makefile cleanup - read COMPILING for details on *nix compilation madmaxoft@gmail.com 2012-02-14 13:50:34 +0000
  • 4d6bad2b21 makefile: fixed linux build using traditional makefile - added missing sources madmaxoft@gmail.com 2012-02-14 13:38:17 +0000
  • 9f38c219e2 Updated fluid simulators with geser's patch file! Fluids should behave more like Minecraft's fluids, and lava+water creates stone/cobble/obsidian! faketruth 2012-02-14 13:37:13 +0000
  • d131c2694c Fixing build for linux using GNUmakefile (explicitly removed LeakFinder and StackWalker) madmaxoft@gmail.com 2012-02-14 13:36:49 +0000
  • 5aeae0fd6d m_World was never set in cBlockEntity's, now it is faketruth 2012-02-14 13:15:09 +0000
  • dcce79b24d Apparently the Fire plugin is depreciated since it's implemented in C++ :P Using std::list instead of std::vector for fire, I think this would be faster due to all the adding and removing blocks from lists. Correct me if I'm wrong faketruth 2012-02-14 12:54:54 +0000
  • 504803cb6d Fixed the same leak in FireSimulator faketruth 2012-02-14 12:29:39 +0000
  • eaa17b6a84 Fixed a (pretty big) memory leak in cSandSimulator faketruth 2012-02-14 12:23:02 +0000
  • 4f17362aeb Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it. madmaxoft@gmail.com 2012-02-13 21:47:03 +0000
  • 0a46c065bf New makefile with automatic *.cpp sourcefile import, automatic header file dependencies and switchable debug / release configuration. gnumake-specific :( madmaxoft@gmail.com 2012-02-10 09:34:19 +0000
  • 10752d2f35 Removed unused code madmaxoft@gmail.com 2012-02-08 19:49:57 +0000
  • a204e33250 Added total chunk count to webadmin madmaxoft@gmail.com 2012-02-08 18:57:04 +0000
  • 356981a51d cPluginManager: slight cleanup madmaxoft@gmail.com 2012-02-08 17:38:02 +0000
  • 6651343261 cMonsterConfig: removed excessive logging madmaxoft@gmail.com 2012-02-08 17:14:12 +0000
  • 32880153ab MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core) madmaxoft@gmail.com 2012-02-08 12:36:54 +0000
  • c82c636d8c cSocketThreads plugged in for cClientHandle reading. Sending still kept the old way. Please help me test this commit thoroughly, this is a change that can break on subtleties. madmaxoft@gmail.com 2012-02-08 10:02:46 +0000
  • dcd82b6988 cSocket: final localhost fix - made it a function (forgotten file) madmaxoft@gmail.com 2012-02-07 21:16:34 +0000
  • 21f758c9c0 cSocket: final localhost fix - made it a function madmaxoft@gmail.com 2012-02-07 21:16:03 +0000
  • 5c8d7a75bf Temporary fix for Linux compilation. (gcc won't accept a function call in global var initialization) madmaxoft@gmail.com 2012-02-07 21:04:37 +0000
  • b7d524423c Rewritten all packets to use buffers instead of direct sockets, for future cSocketThreads compatibility. Moved data sending from cPacket into cSocket madmaxoft@gmail.com 2012-02-07 20:49:52 +0000
  • 16feb0924e cSocketThreads initial commit. Not yet tested and not yet integrated madmaxoft@gmail.com 2012-02-07 07:49:00 +0000
  • 92981dcb3c Slight cleanup madmaxoft@gmail.com 2012-02-07 07:44:42 +0000
  • 5750fbf65f cSocket: Added more functions that will be needed for the new cSocketThreads madmaxoft@gmail.com 2012-02-07 07:44:00 +0000
  • 12fd317a7b cSocket: error reporting function now works correctly on GNU Linux; also includes the error number for all errors madmaxoft@gmail.com 2012-02-06 13:22:28 +0000
  • f2343ad81b cSocket: re-implemented the GetLastErrorString() function; win: error texts are now queried from the system rather than enumerated by the program madmaxoft@gmail.com 2012-02-06 11:53:01 +0000
  • ab95abb6bd Now showing proper error messages when sockets fail :) Crossplatform GetLastError function in cSocket faketruth 2012-02-05 16:24:16 +0000
  • d6925efab3 cSocket: added error logging to Bind() failures madmaxoft@gmail.com 2012-02-05 15:41:56 +0000
  • da87f9f3c1 putting default settings back to default admin@omencraft.com 2012-02-04 19:44:42 +0000
  • debd0ea559 Fixed a bug in source/cClientHandle.h admin@omencraft.com 2012-02-04 19:40:48 +0000
  • c4abe1ed6a MCServer should be running fast again on Linux!! YAAAY!! It seems the intialization of MersenneTwister was really slow on Linux because it did some file reading. Doing this 200 times a tick can be pretty slow... faketruth 2012-02-03 16:01:25 +0000
  • b8be8a4df0 cClientHandle: split packet handling into separate functions for clarity madmaxoft@gmail.com 2012-02-03 14:33:40 +0000
  • f86d796295 cClientHandle: gotten rid of the obnoxious m_pState, now using direct members instead madmaxoft@gmail.com 2012-02-02 21:13:24 +0000