Tiger Wang
e2aaf202ab
Fifth round of fixes
...
* Enumerated Villager spawning
2013-10-11 20:57:22 +01:00
Tiger Wang
fe6fa23a97
Second round of fixes
...
* Implemented suggestions
2013-10-09 21:02:59 +01:00
Tiger Wang
5db6213f34
Initial Metadata Commit [SEE DESC]
...
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and
Horses have metadata
+ Base code on taming wolves, shearing sheep, and taming horses
+ Sheep and horses have different colours when spawned
2013-10-08 19:20:49 +01:00
Tiger Wang
198ac1892c
Fixed pickups
2013-09-18 22:20:08 +01:00
Tiger Wang
3e698d7b72
Added moar mobs!
...
+ Added dragons
+ Added golems
+ Added giants
+ Added horses
+ Added some missing items
+ Added missing spawn egg metas
2013-09-18 22:17:43 +01:00
madmaxoft
40d295da26
cWorld:QueueTickBlock takes the delay in ticks.
2013-09-16 09:25:23 +02:00
madmaxoft
a6b3c560a2
Fixed doxycomments of cWorld plant-growing code
2013-09-15 22:11:02 +02:00
madmaxoft
5cde7d8a29
Merge branch 'pickups' of git://github.com/tigerw/MCServer into tigerw-pickups
...
Conflicts:
source/BlockID.cpp
source/Entities/Entity.cpp
2013-09-15 20:49:08 +02:00
madmaxoft
6dbe3296e0
Fixed codepage conversion
2013-09-10 22:03:11 +02:00
Tiger Wang
30ac3f5838
Added a few changes [SEE DESC]
...
* Revised pickup comments
* SlotArea pickup tossing now reflects Player.cpp
* Removed unneeded ItemShears comment (was working already)
* Sand and gravel pickups spawn with correct speed
2013-09-09 19:28:50 +01:00
madmaxoft
3b1c83acf8
Renamed cWorld::DoExplosiontAt() to cWorld::DoExplosionAt()
2013-09-07 18:12:22 +02:00
Tiger Wang
ad89a0d460
Pickups spawn with correct speed and position
...
Added a comment-space as well.
2013-09-04 18:26:00 +01:00
madmaxoft
83811b6929
Merged branch 'master' into Projectiles.
2013-08-25 17:06:51 +02:00
madmaxoft
de3aae5c75
Slight performance improvement in cWorld::FindClosestPlayer()
2013-08-24 22:43:17 +02:00
madmaxoft
73afb1507d
Added skeleton code for projectile spawning.
2013-08-22 08:55:58 +02:00
madmaxoft
fdbe835131
Fixed WorldTickThread reporting wrong time durations for each tick.
...
This had caused food eating to fail and players unable to collect pickups on Linux.
2013-08-19 22:23:25 +02:00
madmaxoft
1a7912744f
Moved entities into the Entities subfolder.
2013-08-19 11:39:13 +02:00
madmaxoft
dd030fa892
Implemented the OnWorldTick hook.
...
Triggerred for each world every time it ticks, parameters are the cWorld and the previous tick length (a_Dt)
2013-08-19 09:28:22 +02:00
madmaxoft
7b10068370
Implemented cWorld:QueueSetBlock(), as requested for delayed blocksetting.
...
Untested yet, so might not work.
2013-08-18 22:44:22 +02:00
madmaxoft
861d5c75c9
Removed SetServerBlock griefing.
2013-08-18 20:00:50 +02:00
Tiger Wang
8a3174164b
Properly fixed piston non-animation
...
Fixes #57
2013-08-18 14:52:38 +01:00
Tiger Wang
9e0b8b5bee
Enhancements to Tabcompletion and Compile Fix
...
Tab complete now finds the last word and matches accordingly, with a 20%
increase in speed!
Fixed missing comma breaking compilation
2013-08-18 11:58:19 +01:00
Tiger Wang
679085b520
Bugfix Update [SEE DESC}
...
Added stained clay, coal block, and hardened clay Block IDs
Added stained clay and carpet block Metas
Fixed bug with sticky retract bailing out but not unsetting arm
Fixed autocomplete not working when not at the first character, fixes
#64
Added furnace recipes for hardened clay and coal and coal blocks
2013-08-18 00:33:14 +01:00
madmaxoft
0cb00996de
Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.
...
Also slightly improved the spawning algorithm.
2013-08-16 10:48:30 +02:00
Mattes D
1a52e89177
Merge pull request #93 from mc-server/PerWorldThreads
...
Per world threads
2013-08-15 01:56:52 -07:00
Tiger Wang
d4f8a057dd
Generation and simulation defaults
...
...are no longer set, instead, the server operator is told to set them.
2013-08-14 22:26:15 +01:00
madmaxoft
f93d13c419
Fixed world's a_Dt parameter getting time values in wrong units.
2013-08-14 22:36:34 +02:00
madmaxoft
e2ff4a2e5c
Clients are deleted when the world is stopped.
...
This fixes #92 .
2013-08-14 19:56:29 +02:00
madmaxoft
f8757d3606
Fixed crashes in world's clientlist manipulators
2013-08-14 13:43:55 +02:00
Tiger Wang
303b1a9c45
Buncha bugfixes [SEE DESC]
...
Fixed generation values not being written
Fixed piston being able to push water
Fixed ice creating a non-source block (still doesn't update though)
Removed problematic piston code
2013-08-14 11:44:02 +01:00
madmaxoft
9020dc9932
Clients are now ticked in cServer first, then in cWorld once they get assigned a world.
2013-08-13 22:45:29 +02:00
madmaxoft
c628ab03e9
Removed cServer::BroadcastChat() and cServer::SendMessage().
...
These two functions make it difficult to move to the new ticking system, and they aren't used anyway. If so required, they can be emulated by ForEachWorld / ForEachPlayer calls.
2013-08-12 08:35:13 +02:00
madmaxoft
79ece8eb0d
Merge branch 'master' into PerWorldThreads
2013-08-12 07:46:41 +02:00
tonibm19
67351d7d7b
Now Endermans spawn in The End
2013-08-11 21:54:39 +02:00
madmaxoft
829cc866cd
Added cWorld:QueueSaveAllChunks() function for saving chunks asynchronously.
...
The cWorld:SaveAllChunks() is therefore deprecated in the API and will be removed soon, use QueueSaveAllChunks() instead.
2013-08-11 21:05:44 +02:00
madmaxoft
4c5590636c
Each world now ticks in a separate thread.
2013-08-11 20:16:41 +02:00
madmaxoft
eb9d45e906
Moved MaxPlayers and Description from cWorld to cServer.
...
Also started creating a new cWorld::cTickThread class, but not used yet.
2013-08-11 19:18:06 +02:00
madmaxoft
d4a3c451c4
Added OnExploding() and OnExploded() hooks.
...
As requested in FS 413, with extra parameters:
World, BlockX, BlockY, BlockZ, Size, CanCauseFire, Source, SourceData
OnExploding() can return 3 values:
StopHook, CanCauseFire, ExplosionSize
2013-08-09 14:58:43 +02:00
madmaxoft
3f4abe8c95
Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.
...
As requested in FS 418.
2013-08-08 09:13:13 +02:00
madmaxoft
3d027a8928
Merge pull request #48 from mc-server/BlockTracing
...
Block tracing
2013-08-07 06:46:43 -07:00
tonibm19
d48ff88e07
Now zombies spawn in Overworld during night
2013-08-06 21:38:32 +02:00
madmaxoft
e21ed58d5f
cWorld: Added a self-test for LineBlockTracer, disabled by an #ifdef.
2013-08-04 16:08:09 +02:00
madmaxoft
4f26f11dc7
Added cWorld::DoWithChunk() function.
...
This will be used by the blocktracers to gain direct access to chunk data.
2013-08-03 20:26:50 +02:00
madmaxoft
e8a907d89e
Implemented the actual tab completion for commands and playernames.
...
Each command is reported only if the player has the permission to use it.
2013-07-31 11:16:11 +02:00
madmaxoft
e9f18f8b4f
Tab completion packet is handled and sent.
...
This only handles the network comm and the overall design logic, the actual completion is not yet implemented, only dummy values are returned for now.
2013-07-30 22:48:59 +02:00
madmaxoft@gmail.com
a3c8b12ee9
Mobs are assigned MaxHealth from monsters.ini; reading monsters.ini doesn't need settings.ini values anymore.
...
Fixes FS #409 .
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1662 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-07 15:09:05 +00:00
madmaxoft@gmail.com
b1d05b0f57
Improved function names for protocol packet sending; alpha-sorted the function lists
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1659 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-07 13:06:06 +00:00
madmaxoft@gmail.com
f7b8a301f8
Fixed player moving between worlds.
...
Fixes FS #407 .
Also fixes a few possible deadlocks between SocketThreads and TickThread
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1641 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-03 07:47:35 +00:00
madmaxoft@gmail.com
37276a4430
Rewritten entity-on-fire management ("forever on fire" bugs)
...
Fixes FS #297 and part of FS #403 .
Added sizes to all entities.
Moved all damage-related functions from cPawn to cEntity
API change: renamed cPawn:TeleportTo() to cEntity:TeleportToCoords()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1635 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-01 10:39:56 +00:00
madmaxoft@gmail.com
4fe7801cfc
Unified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code.
...
Should fix FS #400 and partially fix FS #381
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1626 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-25 06:36:59 +00:00