a14e015354Extended 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
bf19f7ae9cMade the viewdistance settable by users and default in settings.ini. The default is 9.
madmaxoft@gmail.com
2012-02-23 22:51:03 +0000
4455a1643dAdded cmdline parameters "/cdg" and "/cdf" for crashdump flags "globals" and "full memory"
madmaxoft@gmail.com
2012-02-23 11:37:53 +0000
8cfcc2915cRewritten 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
3de5480191That 2nd assert didn't make much sense...
faketruth
2012-02-22 20:40:32 +0000
3ca9b52ab2Added some asserts to trace a bug
faketruth
2012-02-22 20:33:33 +0000
6015b59f13Fixed 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
1cb756cbf2Noise function optimization (chunk generation now about 1.5x faster :)
madmaxoft@gmail.com
2012-02-22 17:04:04 +0000
a40ed8bd0dWorldGenerator: fixed small foliage - cacti now generate only at beaches, not underwater.
madmaxoft@gmail.com
2012-02-22 16:11:10 +0000
2518738f7fUpdated the ChatLog plugin to the new format
faketruth
2012-02-22 15:57:45 +0000
41d55ef86bLua 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
1d1b0fd00dFixed a potential deadlock in cChunkMap::m_CSLayers vs cWorld::m_CSAllEntities
madmaxoft@gmail.com
2012-02-22 15:45:00 +0000
d9c25a161eAdded 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
42a3cd60d4Added 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
37415b4297VC2008: cleaned up the Release configuration for the project
madmaxoft@gmail.com
2012-02-22 09:38:36 +0000
eac080c94dnightbuild script: don't echo commands; check before building if the file already exists
madmaxoft@gmail.com
2012-02-22 09:22:46 +0000
d1deba5b56First attempt at an automated nightbuild script
madmaxoft@gmail.com
2012-02-22 09:02:11 +0000
e2e261dd17Restricted windows crash dump generating code to 32-bit platforms only due to inline assembly
madmaxoft@gmail.com
2012-02-22 08:06:56 +0000
16da9e07aeAdded code to produce dump files on Windows builds to aid with debugging server crashes
madmaxoft@gmail.com
2012-02-21 21:09:42 +0000
be0a659153Changed 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
b653e6a012Removed 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
f0145ee9faFixed heightmap optimization from rev 302; removed a few more cChunkPtrs
madmaxoft@gmail.com
2012-02-21 15:18:02 +0000
da4afc0cf3Optimized hightmap recalc when setting a chunk's block
madmaxoft@gmail.com
2012-02-21 13:44:06 +0000
b4a68e58a9Fixed block-getting so that simulators work again
madmaxoft@gmail.com
2012-02-21 12:29:05 +0000
f07251625dRevised GNUmakefile for header file dependencies (again; this time it should work ;)
madmaxoft@gmail.com
2012-02-21 12:07:08 +0000
edb1f1f87fVC2008: Temporarily reset compiler warnings to Level 3 due to the new ASSERT()
madmaxoft@gmail.com
2012-02-20 16:40:34 +0000
d592882fe0Removed some more cChunkPtr usage
madmaxoft@gmail.com
2012-02-20 16:39:00 +0000
0b616909e3Using own ASSERT() that logs to file
faketruth
2012-02-19 23:00:00 +0000
df39f12e30Fixed 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
3a8d2aa421Substantial 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
993bdab1e8Fixed previous commit: forgot to remove a debugging setting
madmaxoft@gmail.com
2012-02-18 19:20:05 +0000
76a92a21d1Re-implemented tree-growing. May produce artefacts on old-world / new-world boundaries.
madmaxoft@gmail.com
2012-02-18 19:18:16 +0000
499745c1c7Thread-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
57dedd585cLogging: added thread ID to the log output in debug builds
madmaxoft@gmail.com
2012-02-18 17:51:34 +0000
a0c29514d2Logging: added LOGD macro that logs only in debug builds
madmaxoft@gmail.com
2012-02-18 17:49:02 +0000
b173748c45Moved stdarg.h inclusion into Globals.h
madmaxoft@gmail.com
2012-02-18 17:47:27 +0000
d2b229d227cIsThread: Added support for getting current thread ID
madmaxoft@gmail.com
2012-02-18 17:43:20 +0000
14617868fbWebserver: fixed a compiler warning
madmaxoft@gmail.com
2012-02-18 16:04:49 +0000
7a9925f982Added the skeleton of the cLightingThread object
madmaxoft@gmail.com
2012-02-17 18:24:34 +0000
510133bd35Chunk coords mostly "upgraded" to include the Y coord for future compatibility
madmaxoft@gmail.com
2012-02-17 17:56:25 +0000
eefe71f593New server command "unload" to manually unload unused chunks
madmaxoft@gmail.com
2012-02-16 19:32:31 +0000
2928cb6853cWorldGenerator 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
008addf5d7Got rid of dangerous GetEntity(), not using DoWithEntity()
faketruth
2012-02-16 17:20:28 +0000
415d4eaa68Chunks are now marked as saved
madmaxoft@gmail.com
2012-02-16 16:50:11 +0000
44a6fd20c4Marking chunk dirty after generating
madmaxoft@gmail.com
2012-02-16 15:53:52 +0000
bb396c8cc0Heightmap is properly generated after loading chunks now, so /spawn and /top should work properly again
faketruth
2012-02-16 15:40:38 +0000
423f49d175Chunk 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
1c4122313fChunks are properly saved before being unloaded now numchunks server command works again
faketruth
2012-02-16 13:23:54 +0000
1b60fe14f8Disabled the excessive logging while initializing the Core plugin
faketruth
2012-02-16 12:42:46 +0000
85db35a3bacSocket::GetErrorString() now also compiles on Cygwin
faketruth
2012-02-16 11:15:00 +0000
3c4bfd9799Fixed logging in cServer
madmaxoft@gmail.com
2012-02-16 09:35:33 +0000
d15d40ad69No longer using pointers for Vector3(f/d/i) in cEntity's and cTracer
faketruth
2012-02-15 22:50:00 +0000
57a97e8036New players no longer cause an assert
faketruth
2012-02-15 22:11:56 +0000
7a26fbe471Can 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
5958478c59Fixed a deadlock in WorldStorage
faketruth
2012-02-15 21:35:59 +0000
01341e2788Fixed logging formatting error in cWorld
madmaxoft@gmail.com
2012-02-15 14:26:37 +0000
1aebcea095Restored 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
5e1033c567Can 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
19e711a1e3Slight cleanup - removed old code, some additional comments on dangerous functions
madmaxoft@gmail.com
2012-02-14 21:09:14 +0000
e7ea352f41Got 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
46df5ee331Makefile cleanup - read COMPILING for details on *nix compilation
madmaxoft@gmail.com
2012-02-14 13:50:34 +0000
4d6bad2b21makefile: fixed linux build using traditional makefile - added missing sources
madmaxoft@gmail.com
2012-02-14 13:38:17 +0000
9f38c219e2Updated 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
d131c2694cFixing build for linux using GNUmakefile (explicitly removed LeakFinder and StackWalker)
madmaxoft@gmail.com
2012-02-14 13:36:49 +0000
5aeae0fd6dm_World was never set in cBlockEntity's, now it is
faketruth
2012-02-14 13:15:09 +0000
dcce79b24dApparently 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
504803cb6dFixed the same leak in FireSimulator
faketruth
2012-02-14 12:29:39 +0000
eaa17b6a84Fixed a (pretty big) memory leak in cSandSimulator
faketruth
2012-02-14 12:23:02 +0000
4f17362aebRewritten 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
32880153abMTRand 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
c82c636d8ccSocketThreads 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
dcd82b6988cSocket: final localhost fix - made it a function (forgotten file)
madmaxoft@gmail.com
2012-02-07 21:16:34 +0000
21f758c9c0cSocket: final localhost fix - made it a function
madmaxoft@gmail.com
2012-02-07 21:16:03 +0000
5c8d7a75bfTemporary 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
b7d524423cRewritten 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
16feb0924ecSocketThreads initial commit. Not yet tested and not yet integrated
madmaxoft@gmail.com
2012-02-07 07:49:00 +0000
5750fbf65fcSocket: Added more functions that will be needed for the new cSocketThreads
madmaxoft@gmail.com
2012-02-07 07:44:00 +0000
12fd317a7bcSocket: 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
f2343ad81bcSocket: 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
ab95abb6bdNow showing proper error messages when sockets fail :) Crossplatform GetLastError function in cSocket
faketruth
2012-02-05 16:24:16 +0000
da87f9f3c1putting default settings back to default
admin@omencraft.com
2012-02-04 19:44:42 +0000
debd0ea559Fixed a bug in source/cClientHandle.h
admin@omencraft.com
2012-02-04 19:40:48 +0000
c4abe1ed6aMCServer 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
b8be8a4df0cClientHandle: split packet handling into separate functions for clarity
madmaxoft@gmail.com
2012-02-03 14:33:40 +0000
f86d796295cClientHandle: gotten rid of the obnoxious m_pState, now using direct members instead
madmaxoft@gmail.com
2012-02-02 21:13:24 +0000