Commit Graph

1057 Commits (01b7c1fbfb32e1617dae9e87c2450d12882be564)

Author SHA1 Message Date
madmaxoft@gmail.com d8635f812c MineShafts: added supports in corridors
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1329 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-30 11:59:59 +00:00
madmaxoft@gmail.com 55eaa3e175 MineShafts: Added branching corridors
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1328 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-30 10:55:20 +00:00
madmaxoft@gmail.com 51596c60a9 cTracer: Fixed asserts for invalid coords
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1327 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-30 10:54:05 +00:00
madmaxoft@gmail.com 674ed9d43a MineShafts: implemented basic corridors, without any embellishments or branching yet.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1326 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 20:54:24 +00:00
madmaxoft@gmail.com a3e4704b54 Cuboid: Fixed intersection calculation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1325 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 20:50:32 +00:00
madmaxoft@gmail.com c76092e329 ChunkDesc: Cuboid-based manipulation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1324 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 20:47:51 +00:00
madmaxoft@gmail.com a633c45e8e Cuboid: Added DoesIntersect(), more IsInside() and more constructors
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1323 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 19:45:42 +00:00
madmaxoft@gmail.com 025ee983d4 ListenThread now reports the protocol used (IPv4 - IPv6) in its error messages
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1322 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 18:27:07 +00:00
madmaxoft@gmail.com a4963b69ef MineShafts: backup commit with initial work, still unusable.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1321 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 16:46:58 +00:00
madmaxoft@gmail.com d023589a19 Cuboid: Added the DifX/Y/Z functions
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1320 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-29 16:45:00 +00:00
madmaxoft@gmail.com 8dc54301a4 BlockArea: Finished rotation and mirroring with meta. Implemented example meta handling for vines, stairs and torches.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1319 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-26 21:06:12 +00:00
madmaxoft@gmail.com b0397f7273 cBlockArea: Fixed type / meta copypasta errors in mirroring and rotation code
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1318 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-26 19:27:14 +00:00
madmaxoft@gmail.com 7ac3131984 BlockArea: Implemented rotation without meta manipulation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1317 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-25 20:14:36 +00:00
madmaxoft@gmail.com e0707a7af6 BlockArea: Implemented mirroring without meta manipulation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1316 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-25 12:16:23 +00:00
keyboard.osh@gmail.com bdc7d5f9c7 Fixed underflow issue in LeakFinder.cpp
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1315 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-25 00:07:50 +00:00
madmaxoft@gmail.com 172343e86f Tweaked LeakFinder for VC2012 debug build (too much housekeeping info allocated)
http://forum.mc-server.org/showthread.php?tid=826&pid=6974#pid6974

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1314 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-24 19:27:06 +00:00
madmaxoft@gmail.com 9eff51d831 LeakFinder: Fixed previous commit, housekeeping is now factored in properly in both "alloc" and "free".
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1311 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-24 17:41:54 +00:00
madmaxoft@gmail.com 398edefe06 LeakFinder: Factored in the housekeeping overhead
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1310 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-24 17:19:59 +00:00
keyboard.osh@gmail.com 513d67025f Changed memory leak detection value to 65970823. Also added support for compiling in Visual Studio 2012.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1309 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-24 16:49:55 +00:00
madmaxoft@gmail.com ae371e891f Made MultiStepMap BioGen the default
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1308 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-24 16:08:20 +00:00
madmaxoft@gmail.com 5462f43bae Fixed rounding error in MultiStepMap BioGen, introduced in rev 1289.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1307 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-24 16:07:51 +00:00
madmaxoft@gmail.com a4e6a027a1 Fixed a problem in Linux handling of ListenThread.
A closed socket doesn't seem to wake up a select() call on that socket on Linux. Fixed by waking up by a timeout regularly (semi-busywait).
Fixes FS #334

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1305 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-23 22:02:35 +00:00
madmaxoft@gmail.com 55ff2558d7 Added auto-kill-with-dump to LeakFinder if the allocated memory grows over 1 GiB.
Only works on Windows and only present in Debug mode. Produces memdump.xml for analysis.
http://forum.mc-server.org/showthread.php?tid=826&pid=6948#pid6948

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1302 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-23 19:04:39 +00:00
keyboard.osh@gmail.com b32a60106f Added helper functions AddSpeed, AddSpeedX, AddSpeedY, AddSpeedZ, AddPosition, AddPosX, AddPosY, AddPosZ. Made sure that all entites use these helper functions.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1299 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-23 04:33:47 +00:00
madmaxoft@gmail.com f41b33ba80 Re-tweaked WormNestCaves for more reasonable cave sizes
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1298 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-22 21:49:33 +00:00
madmaxoft@gmail.com 3e4fb19321 Fixed block update queueing and water meta change not propagated to clients.
Fixes FS #333.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1297 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-22 16:48:45 +00:00
madmaxoft@gmail.com 3f372ea466 WormNestCaves: tweaked a bit not to produce the single-block holes in the floor
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1296 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-22 14:54:59 +00:00
madmaxoft@gmail.com 18343674b3 Simulator: fixed a problem when manipulating the bedrock layer
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1295 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-22 14:54:08 +00:00
keyboard.osh@gmail.com 39e4bd3239 Implemented BroadcastMovementUpdate function. Moved m_Pos,m_Rot,m_Speed to private members and made sure that all classes uses the public functions to access these members.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1294 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-22 06:33:10 +00:00
madmaxoft@gmail.com e8aa03f8df DelayedFluidSimulator: optimized block storage for large amounts of blocks.
Speeds up chunk generation by 15 %. Expected to speed up fluid simulation, unmeasured.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1293 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-20 20:45:52 +00:00
madmaxoft@gmail.com f8ae3e6f62 HeiGenBiomal: added a fast but ugly-looking optimization, disabled by default.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1292 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-20 20:41:19 +00:00
madmaxoft@gmail.com d627e3a2e5 Alpha-sorted the generators in ComposableGenerator
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1291 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-20 11:00:55 +00:00
madmaxoft@gmail.com b3b96d645e Optimized BioGen-MultiStepMap's performance by using linear interpolation, about 25 % increase in total chunk generation speed.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1289 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-19 15:10:00 +00:00
madmaxoft@gmail.com 387135cdc3 Updated bindings for new cChunkDesc functions
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1288 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-19 10:16:18 +00:00
madmaxoft@gmail.com d43026ddc2 Lakes: added a limiter, better height distribution
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1287 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-19 10:14:57 +00:00
madmaxoft@gmail.com b4697ab9db The subgenerators use cChunkDesc instead of raw arrays. cChunkDesc is based on cBlockArea. Initial version of Lakes generator.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1286 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-19 08:32:02 +00:00
madmaxoft@gmail.com 1c1bcf5c07 Trees: fixed a glitch in large jungle trees' leaves (1 column was missing)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1285 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-19 07:54:56 +00:00
madmaxoft@gmail.com 4fa4d5e2b3 Fixed a copypasta error in cChunkDesc's BlockArea writer
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1284 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-18 20:47:25 +00:00
keyboard.osh@gmail.com 8557ed8359 Added support for the packet #28 (0x1C): ENTITY_VELOCITY
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1283 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-18 02:51:55 +00:00
madmaxoft@gmail.com 1ed3b3aed2 Rewritten generators so that they use the cChunkDesc class (and thus can use cBlockArea merging)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1282 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-17 17:55:03 +00:00
madmaxoft@gmail.com 3844523882 ProbabDistrib: fixed definition string parsing with nonzero start
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1281 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-17 13:24:57 +00:00
madmaxoft@gmail.com 84a6a3d968 Fluid simulator: fixed an out-of-bounds read when determining fluid direction
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1280 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-17 13:24:27 +00:00
madmaxoft@gmail.com 5e24cb38ac Fixed zero-probability height distribution in FluidSprings finisher
FS #330

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1279 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-17 09:16:14 +00:00
madmaxoft@gmail.com 8090c13cde Huge performance boost in blockhandlers, they have direct access to chunk data when blockchecking.
Also fixed vines' placement.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1278 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-15 20:18:11 +00:00
madmaxoft@gmail.com 6f883cba2d Small performance improvements in fluid simulator.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1276 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 21:56:01 +00:00
madmaxoft@gmail.com a710fcc9a4 Removed the Classic fluid simulator, it was too unstable (2nd attempt)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1275 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 20:50:01 +00:00
madmaxoft@gmail.com eaf973544b Removed the Classic fluid simulator, it was too unstable
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1274 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 20:46:40 +00:00
madmaxoft@gmail.com 75cc675bf2 Release 1.5 supported, yay :)
Although some new blocks are still not recognized and behave badly, the protocol itself is working.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1273 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 20:34:37 +00:00
madmaxoft@gmail.com 68b1aa23b0 Added a Noop fluid simulator that doesn't do anything with the fluid (fluid doesn't spread at all, behaves like a normal block)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1272 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 20:03:42 +00:00
madmaxoft@gmail.com 7f71bfb58f Fix for the Vaporize fluid simulator when loading chunks.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1271 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 20:02:52 +00:00
madmaxoft@gmail.com b18f657ac1 Added a Vaporize fluid simulator that simply replaces fluid blocks with air.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1270 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 19:44:27 +00:00
madmaxoft@gmail.com ff403fdbf0 Added water and lava springs.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1269 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 09:52:57 +00:00
madmaxoft@gmail.com e18e539ad2 Changed DelayedFluidSimulatorData to be a vector rather than a list, performance doubled :)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1268 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14 08:00:24 +00:00
madmaxoft@gmail.com d2573b84dd Initial nether composition generator
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1266 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-11 17:15:34 +00:00
madmaxoft@gmail.com 9931b5634b Fixed a crash in LeakFinder when out of memory
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1265 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-11 17:10:00 +00:00
madmaxoft@gmail.com e70251a7fc Anvil: Removed excessive debugging output
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1264 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-11 11:03:24 +00:00
madmaxoft@gmail.com e694893edf Minecarts get saved into Anvil.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1263 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-09 20:08:39 +00:00
madmaxoft@gmail.com 7593707713 Pickups are now being saved into Anvil.
Also changed cEntity rotation datatype to double

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-09 14:35:43 +00:00
madmaxoft@gmail.com 06dc6ae071 Fixed random teleporting into the void when leaving minecarts
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1259 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 20:49:07 +00:00
madmaxoft@gmail.com bc8ad9d1b1 Made ListenThread an OSSupport part, as it's generic enough
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1258 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 20:47:29 +00:00
madmaxoft@gmail.com 469d08ec42 IPv6: Windows XP doesn't have the inet_pton() function, resorting to custom-formatting the address
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1257 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 20:46:40 +00:00
madmaxoft fcdc68fd8e IPv6 support: fixed IP string getting on accept()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1256 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 13:35:19 +00:00
madmaxoft@gmail.com ea750b9745 Fixed logic in socketthreads connecting
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1255 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 11:50:56 +00:00
madmaxoft@gmail.com 37c1f8b16f Listening ports are now logged
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1254 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 11:43:14 +00:00
madmaxoft@gmail.com 9d2c841843 IPv6 support + removed cTCPLink from Lua API
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1253 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-05 09:53:29 +00:00
madmaxoft@gmail.com 28d8d8419a Moved client socket accepting into a separate thread object, cListenThread
MCServer can now listen on multiple ports
FS #312

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1252 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-04 21:13:08 +00:00
madmaxoft@gmail.com 7e16d48855 Removed the unused cHeartbeat object
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1251 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-04 21:09:01 +00:00
madmaxoft@gmail.com eb68b7ce01 Starting an IPv6 support / cSocket rewrite
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1250 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-04 18:40:48 +00:00
madmaxoft@gmail.com 01b24d73ea Player can sit in minecarts (but not move them yet)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1249 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03 19:05:11 +00:00
madmaxoft@gmail.com 55326ee2a7 Simulators are woken up upon chunk load
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1248 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03 15:33:55 +00:00
madmaxoft@gmail.com 4e8fd2c084 Redstone simulator: adding a block now checks if the neighbors are redstone-related; if not, the block is ignored.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1247 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03 15:06:01 +00:00
madmaxoft@gmail.com a2925ee6c8 FinishGen: Fixed sand collapsing and fluid stationarizing
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1246 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03 15:02:50 +00:00
madmaxoft@gmail.com 5d219dab28 Simulators now check if they are given a valid chunk
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1244 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03 14:25:27 +00:00
madmaxoft@gmail.com 0e2340ee34 Added missing item types, fixed placing stone walls.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1243 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03 14:00:49 +00:00
madmaxoft@gmail.com 46e1228f73 SandSimulator: Fixed sand dropping on half-slabs; added more blocks that break falling sand into pickups, fixed instant-fall
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1242 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-03 08:40:37 +00:00
madmaxoft@gmail.com 86c97cb28a cSandSimulator: implemented InstantFall
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1241 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02 20:24:18 +00:00
madmaxoft@gmail.com 6744738a85 Rewritten SandSimulator to use direct chunk access; and sand falling on torches now creates a pickup.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1240 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02 19:57:09 +00:00
madmaxoft@gmail.com cadf97a70a Added the anvil block
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1239 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02 19:55:04 +00:00
madmaxoft@gmail.com 7cd7ec2ddf Presimulator finisher now drops sand and gravel through fire blocks as well
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1238 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02 17:08:58 +00:00
madmaxoft@gmail.com 91a84a05f5 DelayedFluidSimulator: removed an obnoxious debugging output
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1237 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02 16:40:39 +00:00
madmaxoft@gmail.com 66670f5d5c Floody fluid simulator has been converted to use direct chunk access
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1236 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02 15:44:31 +00:00
madmaxoft@gmail.com e4a0c284c1 Fixed gcc compilation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1234 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-02 14:28:52 +00:00
madmaxoft@gmail.com 011e11af2c New fire simulator, fully rewritten to the new scheme of things, directly accessing chunk data.
http://forum.mc-server.org/showthread.php?tid=617&pid=6626#pid6626

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1233 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-01 19:35:29 +00:00
madmaxoft@gmail.com d636875fc0 Previous commit was missing the Entity.h file
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1232 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-01 19:33:41 +00:00
madmaxoft@gmail.com 39d5d6b85f Updated cEntity API; removed functions that are unusable from Lua, added a few query functions.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1231 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-01 15:49:24 +00:00
madmaxoft@gmail.com afee43d274 Fixed previous commit.
I'm too sleepy and shouldn't be let around the sources :P

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1230 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28 21:42:16 +00:00
madmaxoft@gmail.com ee7f36f682 Fixed a bug in cChunk::QueueTickBlockNeighbors() that caused the tick thread to overload easily
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1229 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28 21:36:43 +00:00
madmaxoft@gmail.com 619ec8b247 Converted simulators to take cWorld reference instead of a pointer
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1228 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28 13:39:20 +00:00
madmaxoft@gmail.com 2588f5a605 Simulators now have direct access to the cChunk object in the WakeUp() call
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1227 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-28 07:42:45 +00:00
madmaxoft@gmail.com d828054152 Fixed a copypasta error from rev 1224
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1226 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-27 11:58:02 +00:00
madmaxoft@gmail.com 5eff323db2 Minecart entity now supports IsA() self-identification
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1225 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-27 10:02:06 +00:00
madmaxoft@gmail.com 71cd0199fd Made FAST_FLOOR_DIV work correctly, replaced all floorf() divisions with it.
Still not perfect - chunk and region calculations can be made into a single CPU instruction - SAR - but not all compilers are known to support that (">>" operator on signed datatypes needs to perform arithmetic shift, C/C++ standard makes it implementation-specific; MSVC and GCC do what we need, LLVM unknown)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1224 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-27 10:01:20 +00:00
madmaxoft@gmail.com 24d3d5dac4 AnvilStats: Added ChunkExtract mode of operation, splitting Anvil files into individual chunks.
Both original zlibbed chunks and re-gzipped chunks are output.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1223 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-25 19:06:37 +00:00
madmaxoft@gmail.com 4ce0c5a983 Moved the Speed member into cEntity class instead of its descendants.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1222 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-21 21:55:36 +00:00
madmaxoft@gmail.com 99876ea4ba Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands.
Note that built-in console commands are exempt to this hook - they are always performed and the hook is not called. Also note that, for reasons unknown, the HookNotify plugin doesn't list the callback arguments.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1221 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-21 13:47:01 +00:00
madmaxoft@gmail.com d47ff55203 Minecarts can now be placed.
No interaction, no physics, though.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1219 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-18 16:48:50 +00:00
madmaxoft@gmail.com 32ee4aaf1e Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-16 11:12:56 +00:00
madmaxoft@gmail.com 246ab5d971 Fixed previous commit
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1216 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-15 22:03:10 +00:00
madmaxoft 666a718db1 Block and recipe update by STR_Warrior.
Adds missing fuels
Adds missing furnace recipes (FS #304)
Fixes some recipes (FS #305)
Adds current 1.5 weekly snapshot blocks and items.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1215 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-15 15:26:33 +00:00
madmaxoft@gmail.com 34b3c13404 Plugins can now bind console commands
FS #300
Most console commands are now implemented in the Core plugin.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1214 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-15 13:00:59 +00:00