1
0

Commit Graph

  • eb942797b8 Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld() Changed isValidItem to IsValidItem in Core.lua faketruth 2011-12-26 21:54:08 +00:00
  • 9f77572fb0 - improved Simulator system -> Manager handles all ticks -> advantage: Much easier to add new simulators, because you only have to register them in the manager lapayo94@gmail.com 2011-12-26 20:57:12 +00:00
  • 92e0ba6645 - improved ClosestPlayerDetection (Really the closest now ;)) - renamed function because the old one wasn´t listing - improved some time vars so no move gets dropped when the server laggs for a few seconds lapayo94@gmail.com 2011-12-26 18:20:00 +00:00
  • f65115ef9f GameMode Switch added to Core Functions (/gm 0 | /gm 1) needs permission core.changegm lapayo94@gmail.com 2011-12-26 16:43:45 +00:00
  • 2a1d75ab09 Fixed the little check for max players. If somehow a player was able to connect and the number of players would exceed the max players, everybody is allowed in and the server will never be 'full'. It's fixed now faketruth 2011-12-26 14:29:52 +00:00
  • c7fa610be3 - Linux compatible fixes including updated makefile - Mersenne Twister still says uint32 but it's now signed for compatibility with random uses needing negative values - Server seed is sent to clients, but needs to be able to be signed long long later on for authentic reasons - Protocol Version is required to match to ensure client compatibility, this should probably have a settings.ini check as well as store the value there mtilden@gmail.com 2011-12-26 09:09:47 +00:00
  • e2acb45d19 - Added timer to cPlayer PlayerListItem because sending the packets like minecraft does (every tick per player) is 20 pps per client to each client and was causing Kicks for having too high of a packet queue mtilden@gmail.com 2011-12-26 04:06:29 +00:00
  • f029b905d5 - Default Notchian Ping (static until ping implemented through keepalive send/receive) - Player "left" message regardless of exit reason mtilden@gmail.com 2011-12-26 03:05:31 +00:00
  • 0321819ce8 - Scoreboard deleting moved to cClientHandle::~cClientHandle() with checks. Please test this every way you can with clients disconnecting from the internet, crashing, etc. It should work on all cases as every client gets called in this part to be 'Deleted' mtilden@gmail.com 2011-12-26 02:46:53 +00:00
  • 537e1afcb1 Moved the actual world generation from cChunk.cpp to a more isolated file cWorldGenerator.cpp New generators should inherit cWorldGenerator and implement their own generation algorithms faketruth 2011-12-26 02:39:43 +00:00
  • a85ea1c9ac - Cleaned up PLI Packet and its creation/sending and fixed bug of player not being removed on scoreboard (forgot to send color in the removal packet) mtilden@gmail.com 2011-12-26 02:35:49 +00:00
  • c35db25269 Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speed faketruth 2011-12-26 02:13:40 +00:00
  • 4c76ca986c - Ignoring Debug and Release makes it easier to check what should be committed mtilden@gmail.com 2011-12-26 01:27:49 +00:00
  • bf838238e4 - Make Color was using 2 extra characters which took 2 characters off the 16 max (including color codes) for scoreboard display - Added xC9 PlayerListItem packet and added code for player names to be added and removed from the scoreboard (need a catch-all for client disconnects: crashes, timeouts, etc) - Changed wid wording to a_WindowType mtilden@gmail.com 2011-12-26 01:07:35 +00:00
  • e8f230f24e - Fixed Bug #99 -> Mobs no longer bother you in creative mode - refactored many things in the Monster system lapayo94@gmail.com 2011-12-25 22:47:12 +00:00
  • adb4dbc904 - fixed the code from the last commit :) lapayo94@gmail.com 2011-12-25 20:23:30 +00:00
  • cf720c17e6 - Fixed a critical bug, which caused players to not getting spawned on the others client - corrected newline in cMonsterConfig (VS did :D) lapayo94@gmail.com 2011-12-25 19:34:31 +00:00
  • 62abd8f29b - Implemented function to check item category - (Cobble-)stone don´t drop item anymore if mined without pickaxe - FluidSimulator no longer causes compiler warning - Glowstone drops fixed lapayo94@gmail.com 2011-12-25 17:47:01 +00:00
  • d6953a7ea2 Refactored both simulators (water and lava) to make them more flexible and easier to modify lapayo94@gmail.com 2011-12-25 16:20:06 +00:00
  • 62737fd163 Hold item is now dropped when inventory is closed Thanks to mtilden for this ( http://forum.mc-server.org/showthread.php?tid=183&pid=1428#pid1428 ) lapayo94@gmail.com 2011-12-25 14:03:01 +00:00
  • d0a7f9a57d Code improvements Fixed authentication (Can be activated now) Added MersenneTwister.h Thanks to mtilden ( http://forum.mc-server.org/showthread.php?tid=183&pid=1428#pid1428 and http://forum.mc-server.org/showthread.php?tid=183&pid=1418#pid1418 ) lapayo94@gmail.com 2011-12-25 13:44:22 +00:00
  • 81c73341b2 The missing file! cChunkGenerator.h/cpp faketruth 2011-12-25 12:55:20 +00:00
  • f419ec2fe7 - improved and simplified the door system (shorter, clearer) - Doors now drop a complete door & other part gets destroyed - Build a function for pickup counts (cBlockToPickup::PickupCount) (Default is 1) lapayo94@gmail.com 2011-12-25 01:40:31 +00:00
  • 2892a844d4 Chunks are generated in a separate thread allowing players to keep on playing and chatting while chunks are generated. This means, however, that cWorld::GetChunk() does not always return a chunk and is something you need to be aware of. I am not entirely sure if all this is completely stable, but I think so :O faketruth 2011-12-24 23:34:30 +00:00
  • e45b01ba4a Very alpha water physic for pickups (The swim now) but there are some problems (get stuck on some positions) so someone might look at it because I have no idea how to make it better :D lapayo94@gmail.com 2011-12-24 01:36:15 +00:00
  • ad610e63ba Max. players and MOTD are now changeable in the settings.ini Thanks to mtilden ( http://forum.mc-server.org/showthread.php?tid=183&pid=1381#pid1381 ) lapayo94@gmail.com 2011-12-23 23:58:54 +00:00
  • aa392170a2 Added thread names to cThread so when debugging in Visual Studio you actually know what thread you're looking at faketruth 2011-12-23 14:26:29 +00:00
  • 24efa6f864 Digging leaves with shears now drops leaves Falling Sand now notifies water around Implemented Function to get the relative chunk position in the total position (cChunk::PositionToWorldPosition) Pistons don´t drop water and lava items anymore when stopping water/lava implemented Getter for lava and water simulator IsBlockWater and IsBlockLava function in Defines.h lapayo94@gmail.com 2011-12-22 21:36:24 +00:00
  • e54373160b Fixes: - Pickups fall through water now (Server-side they stayed in the water surface) - Suppressed some warnings (int to short etc.) - Water is now passable for cTracer lapayo94@gmail.com 2011-12-22 16:30:40 +00:00
  • 0498a43d21 Missed a class in r94 ;) Sorry guys :D lapayo94@gmail.com 2011-12-21 21:05:18 +00:00
  • 02f05f7496 - Crafting fixed in 1.0.0 - Server compatible with the weapons and equip again. (Some Packets were incompatible) - fixed bucket bugs (not all) - Fixed clients getting crashed by wrong Pickups - fixed nearly all mob drops. (Check wheather they are burning is missing Big Grin) - maybe some other things I can´t recall atm Big Grin lapayo94@gmail.com 2011-12-21 20:42:34 +00:00
  • 3ea286fef8 Changed chunk generation so any surface sand with air underneath it will turn into sandstone to prevent most sand cave-ins due to odd cave placement. admin@omencraft.com 2011-11-15 00:39:01 +00:00
  • 458b3bf5e3 Put view distance back to 13. Didn't mean to change that. admin@omencraft.com 2011-11-12 05:48:29 +00:00
  • 750f9ab74f Found and fixed a bug not letting users place blocks in water or lava. admin@omencraft.com 2011-11-11 00:21:52 +00:00
  • 7528819117 Fixed logging in underground bug this time. A hack, but it works. :D admin@omencraft.com 2011-11-10 20:04:20 +00:00
  • 993680a39e Can now set gamemode via lua. admin@omencraft.com 2011-11-10 18:28:21 +00:00
  • 9f3f60c666 Some more changes to redstone. admin@omencraft.com 2011-11-10 17:03:35 +00:00
  • 6027c3d0b8 Made block action sanity checks more robust, water buckets, lava buckets and empty buckets should all now work. admin@omencraft.com 2011-11-10 16:30:14 +00:00
  • 581165bb58 Fixed doors. I forgot to actually return proper Hex value. Started work on adding farmland, farming, and leaf decay support. admin@omencraft.com 2011-11-10 03:35:46 +00:00
  • df7823280c Added code for doors. Doors now place correctly but opening them is buggy and I need to change the current opening code to use bitwise operators. admin@omencraft.com 2011-11-10 02:05:51 +00:00
  • b634310a2c Storms were WAY too frequent. I toned them down. admin@omencraft.com 2011-11-09 23:36:21 +00:00
  • 3be48a2d5a Added random weather that persists per world. Also added SetWeather, GetWeather, and CastThunderbolt to lua bindings. admin@omencraft.com 2011-11-09 23:24:51 +00:00
  • 18b7563680 Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState) admin@omencraft.com 2011-11-09 22:17:30 +00:00
  • 9e77db8e3d bugfix to redstone, it can climb walls again. admin@omencraft.com 2011-11-09 03:04:56 +00:00
  • 744c0187ba Redstone clocks now work. even one clocks. torches don't update themselves when placed yet, but redstone wire updates the torch. Fixed a bug with piston animations. admin@omencraft.com 2011-11-09 01:31:19 +00:00
  • cce5a8df97 Broke something in the filters file, fixed now faketruth 2011-11-08 02:15:41 +00:00
  • 9ad53cde45 Fixed world time faketruth 2011-11-08 02:02:13 +00:00
  • 99c672df7e Forgot to add squirrel project for windows faketruth 2011-11-08 01:32:53 +00:00
  • 8285a11a26 It's a Squirrel!! In SquirrelBindings.h use #define USE_SQUIRREL 1 to enable squirrel faketruth 2011-11-08 01:25:01 +00:00
  • 0c3eda9b17 Fixed bug in cChunk.cpp not calculating RedstoneCircuits at the correct positions. Also, forgot to mention you can now place colored wool. admin@omencraft.com 2011-11-07 23:09:03 +00:00
  • a9e02cf8fa Updated redstone and pistons some mode. If you break an extended piston the piston extension will now also break. When a redstone device is broken by something other than a person the redstone circuit should now update. admin@omencraft.com 2011-11-07 22:59:29 +00:00
  • 9812c38ae2 More updates to cPiston.cpp. Piston action will now only be broadcasted to players who have the chunk with the moving piston loaded. admin@omencraft.com 2011-11-07 19:15:27 +00:00
  • 907ba15fe2 Added Sebi's changes to pistons and item drops. admin@omencraft.com 2011-11-07 18:19:38 +00:00
  • f07ade2c58 Pistons now generate noise and animate when moving. admin@omencraft.com 2011-11-07 05:49:18 +00:00
  • 894f6e02d4 Added three new packets and cleaned up cPacket_Thunderbolt.cpp... cPacket_BlockAction, cPacket_Explosion, and cPacket_SoundEffect. admin@omencraft.com 2011-11-07 01:41:54 +00:00
  • 094456a131 Redstone wire now updates correctly when added and removed. it also updates all currently programmed redstone items and wire circuits. Also cleaned up the mess I left of the code. admin@omencraft.com 2011-11-06 21:20:38 +00:00
  • cc4e4345de Redstone is now self aware. It's not quite as dumb as it used to be at any rate. Redstone wires have no range and understand they are supposed to stay on whenever there's an active torch touching it. (Need to add other power devices) admin@omencraft.com 2011-11-06 20:39:44 +00:00
  • 36f7084e3f Patch with diff file created by Sebi (implemented some stuff like lava physics, drops are deleted when in lava, water is now slower, lava gives actual damage etc.). Pistons now work mostly as they should. They do not yet show the motion animation and do not emit sound. They do extend, push, and retract as they should though. Right now the only way to activate a piston is to light redstone wire adjacent to it with a redstone torch. admin@omencraft.com 2011-11-06 09:23:20 +00:00
  • 6df50b40ee Finished most of piston class. Pistons should work when a redstone current with wire is lit up or extinguished near them but don't yet. There'sa bug to kill. admin@omencraft.com 2011-11-06 02:36:05 +00:00
  • 7fe70356b9 Change SetBlock to FastSetBlock in cRedstone.cpp and grass will now grow if any one hit block is above it. admin@omencraft.com 2011-11-05 19:31:25 +00:00
  • b7bff510f9 Added cPiston.h and cPiston.cpp to VC2010 files. admin@omencraft.com 2011-11-05 18:33:50 +00:00
  • f32b5aafe8 Added all the items up to Beta 1.9.5. Added pistons and piston class. admin@omencraft.com 2011-11-05 18:28:19 +00:00
  • cbc22b646d dang finicky OS installs. >.> Bug fixes to make sure this compiles is more than two OS's. admin@omencraft.com 2011-11-05 01:21:03 +00:00
  • dd36ea269f Updated denotch map converter to work in windows. Still has memory leak though. admin@omencraft.com 2011-11-05 00:23:32 +00:00
  • 7fe0813942 last file... finally admin@omencraft.com 2011-11-04 20:14:48 +00:00
  • 0e8cf38fc8 fixing svn directory admin@omencraft.com 2011-11-04 20:13:52 +00:00
  • c10ba99d15 fixing svn directory admin@omencraft.com 2011-11-04 20:13:10 +00:00
  • 12bfd97612 Updated denotch map converter. Compiled with zlib that MCServr uses to remove the lag spike problem caused when reading map files using a different compression. Remade makefile and cleaned up code considerably. admin@omencraft.com 2011-11-04 19:39:46 +00:00
  • ef4ec35417 delete and reupload to reslve svn error. admin@omencraft.com 2011-11-04 19:28:58 +00:00
  • 563028f6db Changes to the denotch map converter. Now runs 20 times faster than before. Not done yet. admin@omencraft.com 2011-11-04 16:27:11 +00:00
  • 7deed96d09 Added cRedstone to project file Changed NetworkToHostFloat4(), maybe it works now on 64bit linux faketruth 2011-11-04 16:05:18 +00:00
  • 2ffedf16ae Changed use of deprecated function. admin@omencraft.com 2011-11-04 07:50:18 +00:00
  • df976c3590 celeaning up the mess I made of cRedstone.h. >.> admin@omencraft.com 2011-11-04 05:17:46 +00:00
  • d2b1aea018 Added (Probably incorrectly) a cRedstone class. Also, palcing a redstone torch will recursively light any redstone wire it's connected to. Removing a torch from an active wire will unlight the entire length. Class needs to be updated to make use of non deprecated function. Current deprecated function warning drastically slows redstone performance. admin@omencraft.com 2011-11-04 05:01:55 +00:00
  • ef99915447 Fixed some redstone items and a bug that prevented floats from client to server packets reading correctly on 64 bit linux. admin@omencraft.com 2011-11-03 17:42:24 +00:00
  • 301569a6c9 Added some redstone items. admin@omencraft.com 2011-11-03 05:53:54 +00:00
  • 39fd1697e4 Updated the thunderbolt packet. Lightning and rain can be tested with a workbench and a chest. >:) admin@omencraft.com 2011-11-03 00:42:53 +00:00
  • a5af50c293 Added New/Invaid State and Thunderbolt packets. For testing purposes it now rains whenever a player opens a workbench and stops when they pen a chest. The rain start/stop in only sent to the sole clientopening the items. admin@omencraft.com 2011-11-02 20:40:39 +00:00
  • dada2bea27 Fixed some "Entity was not found in any chunk!" warnings Player's current world is saved in the player file. When a player joins the server, the player joins the last world he was in. It seems MCServer can finally run multiple worlds! It just needs functionality to switch between them faketruth 2011-11-02 20:19:57 +00:00
  • 40b5574144 Fixed player spawn teleport postion. admin@omencraft.com 2011-11-02 08:32:16 +00:00
  • 713c73970d Fixed crash when client only sends a space in the chat faketruth 2011-11-02 01:20:40 +00:00
  • 98aaa32394 Changed world gamemode location to world.ini for world based gamemodes. admin@omencraft.com 2011-11-01 23:05:47 +00:00
  • bf2806dcb8 fixed player spawning in the ground. admin@omencraft.com 2011-11-01 22:27:09 +00:00
  • 239d6c8d95 Accidentally removed a line of code faketruth 2011-11-01 22:19:21 +00:00
  • b5b920deda You can now run multiple worlds by defining them in settings.ini . However there's no way to change worlds on the fly yet faketruth 2011-11-01 21:57:08 +00:00
  • 4c4e9867eb forogt to update all of cPlayer.cpp for player based gamemode. admin@omencraft.com 2011-11-01 20:26:11 +00:00
  • f849b664e0 Put in some sanity checks to ensure players don't interact with blocks too quickly. Changed gamemode to be player based. (MCServer crashes when picking up an item. Need to find and fix bug.) admin@omencraft.com 2011-11-01 20:09:13 +00:00
  • 01246b27b0 Players can now place blocks in creative mode. The blocks players select from the creative mode inventory are not stored in the players' inventory. (I kind of like that) admin@omencraft.com 2011-11-01 17:48:11 +00:00
  • dda41a0406 denotch map converter works! :D admin@omencraft.com 2011-10-31 22:02:04 +00:00
  • c2b43f33da Player data is saved and loaded as human readable JSON now. cFileFormatUpdate will loop through old files and convert them to new files (should replace legacy old format loading code) cItem has two new functions to load from Json and output Json, this will keep the items in Json standard ChestEntity and FurnaceEntity use the new functions in cItem faketruth 2011-10-31 21:30:14 +00:00
  • 1979404815 denotch map converter can now successfully converter an mcr to a vaild pak file. Takes about 20 seconds per region file. admin@omencraft.com 2011-10-31 18:49:07 +00:00
  • b696647010 denotch map convert successfully created a pak file from an mcr file. Still need to check if it's valid. admin@omencraft.com 2011-10-31 09:04:14 +00:00
  • 35c44ede5a Compounds are not closed double anymore Float values are actually added to 'lists' now (should do the same for the rest) Indenting while printing NBT data aligns slightly better now faketruth 2011-10-31 05:12:21 +00:00
  • 20d391764c denotch map converter can now parse without creating segfaults or unknown tag errors. admin@omencraft.com 2011-10-31 02:56:12 +00:00
  • 2e7781f7f0 More changes to the denotch map converter. Added some tags. Still debugging some parsing issues. admin@omencraft.com 2011-10-31 02:24:44 +00:00
  • e2f1cf51c7 Prepared some parts of the code for multi world support, I created lots of TODO's faketruth 2011-10-31 00:52:20 +00:00
  • 940d36d8a1 put the timer and quicksort functions into their own files. Made a few changes to the converter. Converter doesn't understand Entity tags and some chunks cause it to segfault for a currently unknown reason. admin@omencraft.com 2011-10-30 18:15:44 +00:00
  • ca1d98a7ba Changed long to long long so it works fine on 32bit systems Added printing for Byte array tags (the length is incorrect though) Structured the tags enums a bit more In cConvert.cpp the correct compounds are opened before accessing data Added VS2010 project so the converter can be compiled through VS2010 faketruth 2011-10-30 11:41:18 +00:00
  • 0673834955 Last changes to the converter before bed. admin@omencraft.com 2011-10-30 09:01:38 +00:00
  • 5134805bd7 More changes to the denotch map converter admin@omencraft.com 2011-10-30 08:04:40 +00:00