1
0
Commit Graph

9858 Commits

Author SHA1 Message Date
admin@omencraft.com
c10ba99d15 fixing svn directory
git-svn-id: http://mc-server.googlecode.com/svn/trunk@58 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 20:13:10 +00:00
admin@omencraft.com
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.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@57 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 19:39:46 +00:00
admin@omencraft.com
ef4ec35417 delete and reupload to reslve svn error.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@56 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 19:28:58 +00:00
admin@omencraft.com
563028f6db Changes to the denotch map converter. Now runs 20 times faster than before. Not done yet.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@55 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 16:27:11 +00:00
faketruth
7deed96d09 Added cRedstone to project file
Changed NetworkToHostFloat4(), maybe it works now on 64bit linux

git-svn-id: http://mc-server.googlecode.com/svn/trunk@54 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 16:05:18 +00:00
admin@omencraft.com
2ffedf16ae Changed use of deprecated function.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@53 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 07:50:18 +00:00
admin@omencraft.com
df976c3590 celeaning up the mess I made of cRedstone.h. >.>
git-svn-id: http://mc-server.googlecode.com/svn/trunk@52 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 05:17:46 +00:00
admin@omencraft.com
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.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@51 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-04 05:01:55 +00:00
admin@omencraft.com
ef99915447 Fixed some redstone items and a bug that prevented floats from client to server packets reading correctly on 64 bit linux.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@50 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-03 17:42:24 +00:00
admin@omencraft.com
301569a6c9 Added some redstone items.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@49 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-03 05:53:54 +00:00
admin@omencraft.com
39fd1697e4 Updated the thunderbolt packet. Lightning and rain can be tested with a workbench and a chest. >:)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@48 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-03 00:42:53 +00:00
admin@omencraft.com
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.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@47 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-02 20:40:39 +00:00
faketruth
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

git-svn-id: http://mc-server.googlecode.com/svn/trunk@46 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-02 20:19:57 +00:00
admin@omencraft.com
40b5574144 Fixed player spawn teleport postion.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@45 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-02 08:32:16 +00:00
faketruth
713c73970d Fixed crash when client only sends a space in the chat
git-svn-id: http://mc-server.googlecode.com/svn/trunk@44 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-02 01:20:40 +00:00
admin@omencraft.com
98aaa32394 Changed world gamemode location to world.ini for world based gamemodes.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@43 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-01 23:05:47 +00:00
admin@omencraft.com
bf2806dcb8 fixed player spawning in the ground.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@42 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-01 22:27:09 +00:00
faketruth
239d6c8d95 Accidentally removed a line of code
git-svn-id: http://mc-server.googlecode.com/svn/trunk@41 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-01 22:19:21 +00:00
faketruth
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
Players are now stored in separate folder /players instead of in the world folder (!so move the folder!)
Fixed a memory leak/error in cPickup.cpp
Multiple worlds are stored in cRoot
cClientHandle lists are taken out of cWorld and now stored in cServer
Worlds now have names to distinguish them by
Some functions in the Core plugin now distinguish between worlds

git-svn-id: http://mc-server.googlecode.com/svn/trunk@40 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-01 21:57:08 +00:00
admin@omencraft.com
4c4e9867eb forogt to update all of cPlayer.cpp for player based gamemode.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@39 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-01 20:26:11 +00:00
admin@omencraft.com
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.)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@38 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-01 20:09:13 +00:00
admin@omencraft.com
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)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@37 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-11-01 17:48:11 +00:00
admin@omencraft.com
dda41a0406 denotch map converter works! :D
git-svn-id: http://mc-server.googlecode.com/svn/trunk@36 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 22:02:04 +00:00
faketruth
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

git-svn-id: http://mc-server.googlecode.com/svn/trunk@35 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 21:30:14 +00:00
admin@omencraft.com
1979404815 denotch map converter can now successfully converter an mcr to a vaild pak file. Takes about 20 seconds per region file.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@34 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 18:49:07 +00:00
admin@omencraft.com
b696647010 denotch map convert successfully created a pak file from an mcr file. Still need to check if it's valid.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@33 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 09:04:14 +00:00
faketruth
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


git-svn-id: http://mc-server.googlecode.com/svn/trunk@32 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 05:12:21 +00:00
admin@omencraft.com
20d391764c denotch map converter can now parse without creating segfaults or unknown tag errors.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@31 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 02:56:12 +00:00
admin@omencraft.com
2e7781f7f0 More changes to the denotch map converter. Added some tags. Still debugging some parsing issues.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@30 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 02:24:44 +00:00
faketruth
e2f1cf51c7 Prepared some parts of the code for multi world support, I created lots of TODO's
git-svn-id: http://mc-server.googlecode.com/svn/trunk@29 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-31 00:52:20 +00:00
admin@omencraft.com
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.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@28 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 18:15:44 +00:00
faketruth
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

git-svn-id: http://mc-server.googlecode.com/svn/trunk@27 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 11:41:18 +00:00
admin@omencraft.com
0673834955 Last changes to the converter before bed.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@26 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 09:01:38 +00:00
admin@omencraft.com
5134805bd7 More changes to the denotch map converter
git-svn-id: http://mc-server.googlecode.com/svn/trunk@25 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 08:04:40 +00:00
admin@omencraft.com
87a7bfa9aa Added Long Tag. It'll now go through the entire NBT data without erroring out. I'm not sure that it's actually saving all tag 7 data though.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@24 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 07:10:22 +00:00
admin@omencraft.com
aead2e43c2 I think I got Tag 7 working, now I need to add tag 4 for the deNotch map converter.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@23 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 06:48:10 +00:00
admin@omencraft.com
07ac0492d0 More updates to denotch map converter for testing.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@22 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 02:55:10 +00:00
admin@omencraft.com
9f3b6fe838 Changed cChunkMat.cpp back to normal. Made more changes to the denotch map converter. Testing cNBTData parser.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@21 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-30 02:16:01 +00:00
admin@omencraft.com
625a4accda Added denotch map converter. Program currently reads the only mcr file in the region dir and writes the uncompressed chunk data in world/X0-Z0.pak. I compile in linux with "g++ cConvert.cpp -lz -o denotch"
git-svn-id: http://mc-server.googlecode.com/svn/trunk@20 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-29 21:19:06 +00:00
faketruth
3b291e19ce Fixed a memory leak
git-svn-id: http://mc-server.googlecode.com/svn/trunk@19 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 23:18:31 +00:00
admin@omencraft.com
88270be669 Made several recomended changes. Gamemode is now world based. Need to add it to player.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@18 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 20:52:19 +00:00
admin@omencraft.com
6062002d17 Moved GAMEMODE declaration to a single place... cPacket.h. Player can't take damage any more but can still sometimes die on spawn. Not sure why. Falling through the void does not kill you yet.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@17 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 19:13:49 +00:00
admin@omencraft.com
7b00d28157 Creative mode now breaks blocks without providing block drops. Need to work with Player's Inventory for proper creative mode support. GAMEMODE is declared and set twice.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@16 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 18:47:50 +00:00
admin@omencraft.com
acd537d533 Added CreateInventoryAction packet for creative mode. Used cPacketEntityEquipment as template. Forced server into Creative Mode. Can't break blocks yet. Player can stil be damaged in creative mode and dying takes you back to survival mode.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@15 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 16:49:01 +00:00
faketruth
8e64a5d9ff Updated VS2010 project files
Made monster spawning code in cWorld.cpp a bit more compact and readable
srand() is only supposed to be called once in the whole program, and it's already called in the constructor of cWorld so it doesn't have to be in cWorld::Tick()

git-svn-id: http://mc-server.googlecode.com/svn/trunk@14 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 13:27:16 +00:00
faketruth
bcc1450ba9 Fixed bug in cMakeDir where it would only create directories named "world"
The user input thread now properly stops when the server restarts or stops

git-svn-id: http://mc-server.googlecode.com/svn/trunk@13 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 13:07:39 +00:00
admin@omencraft.com
459554201b added simple code for server side item durabilty on tool items that have durabilty. need to add block destroyed durability modifier.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@12 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-26 03:22:43 +00:00
admin@omencraft.com
95d2c5febe changing port back to default
git-svn-id: http://mc-server.googlecode.com/svn/trunk@11 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-25 23:51:18 +00:00
admin@omencraft.com
a26a0e3825 git-svn-id: http://mc-server.googlecode.com/svn/trunk@10 0a769ca7-a7f5-676a-18bf-c427514a06d6 2011-10-25 23:46:01 +00:00
faketruth
625c30d8bd Using SSE instructions for noise (terrain generation)
Unfortunately the noise functions is only like 7% faster, so you won't even notice

git-svn-id: http://mc-server.googlecode.com/svn/trunk@9 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-25 18:57:38 +00:00