Perttu Ahola
19ed3bb193
Move share/builtin.lua to share/builtin/builtin.lua
2012-03-19 21:37:27 +02:00
Perttu Ahola
1f56d71f19
Rework directory structure
2012-03-19 20:44:07 +02:00
Perttu Ahola
1ff20da5b6
Add the mod search path user/mods/gameid
2012-03-19 08:34:38 +02:00
Perttu Ahola
2e90ed07ac
Dynamic sky, fog and cloud colors; sun and moon
2012-03-18 13:42:18 +02:00
Perttu Ahola
5957fed9a7
Fix and improve Server's privilege get/setters
2012-03-15 15:38:59 +02:00
Perttu Ahola
6298878bfa
Add "simple singleplayer mode"; Fix a number of GUI things
2012-03-15 15:20:20 +02:00
Perttu Ahola
591527d878
World creation button and dialog and functionality
2012-03-13 00:06:37 +02:00
Perttu Ahola
618314985d
Proper handling of failing to bind server socket
2012-03-11 20:45:43 +02:00
Perttu Ahola
45f78bdf40
Mention world location at server startup at action level
2012-03-11 15:49:14 +02:00
Perttu Ahola
6a1b6d0344
world.mt creation
2012-03-11 15:04:50 +02:00
Perttu Ahola
7f7fb9750d
command-line/world game selection
2012-03-11 14:54:23 +02:00
Perttu Ahola
d330430336
Prettify --help output
2012-03-11 11:02:22 +02:00
Perttu Ahola
f1d9880006
Clean up log messages everywhere
2012-03-11 04:15:45 +02:00
Perttu Ahola
e80bc6ef58
Tidy up server log output a bit
2012-03-10 17:10:16 +02:00
Perttu Ahola
030b63c3d2
Add and tidy up some Server log output for declined connections
2012-03-10 17:10:16 +02:00
Perttu Ahola
1020707918
Fix addon and configuration file paths
2012-03-10 17:10:16 +02:00
Perttu Ahola
c89d1cf072
Initial directory structure rework
2012-03-10 17:10:10 +02:00
Perttu Ahola
e9cdb938fe
Entity damage system WIP; Remove C++ mobs
2012-03-10 11:28:13 +02:00
Perttu Ahola
562ac3bce9
Digging time groups WIP
2012-03-10 11:28:12 +02:00
Perttu Ahola
11716825fc
Move profiler measurements into inside of mutex locking for more useful results
2012-03-07 21:54:18 +02:00
Perttu Ahola
0309021359
Add dedicated_server_step setting
2012-03-07 21:44:53 +02:00
Kahrl
88cdd3a363
Players stay in environment even when dead, damage flash and fall damage fixes
...
Don't set m_removed on dead players (dead players are indicated by hp == 0). Local
damage flash is shown whatever the cause was (even from Lua set_hp). PlayerCAO
damage flash matches duration of local damage flash. Fall damage is dealt much more consistently (this is done by disallowing jumping when speed.Y is very negative, up to now jumping could sometimes negate fall damage)
2012-02-05 12:06:55 +02:00
Kahrl
b4dd5d3bd7
Client-side prediction of inventory changes, and some inventory menu fixes
2012-01-22 17:31:20 +02:00
Kahrl
1efdc36b22
Inventory menu (with dragging) improved. Crafting is now handled via a IACTION_CRAFT inventory action.
2012-01-22 17:31:12 +02:00
Kahrl
157a4cf18c
Node placement / mineral / serialization / iron freq / node_dig callback
...
- Node placement code moved to Lua
- Mineral system removed (added default:stone_with_coal and default:stone_with_iron).
- MapBlock and MapNode serialization updated.
- Mapgen: Frequency of iron increased.
- node_dig callback and related changes.
2012-01-22 17:24:50 +02:00
Kahrl
6a76c226e1
The huge item definition and item namespace unification patch (itemdef), see http://c55.me/minetest/wiki/doku.php?id=changes:itemdef
2012-01-12 06:10:39 +01:00
Perttu Ahola
4f2c1e36a1
Implement minetest.register_on_dieplayer()
2012-01-06 00:12:33 +02:00
Perttu Ahola
bc743ca7ce
Add missing checks to texture caching
2012-01-04 00:37:46 +02:00
Perttu Ahola
3e6f824e6c
Use free rather than delete for malloc'd memory
2012-01-02 21:42:33 +02:00
Perttu Ahola
cd0019acd2
Fix server sending stuff before textures have been sent
2012-01-02 17:44:00 +02:00
Perttu Ahola
0e1f448b61
Texture cache on client (mostly made by sapier) (breaks network compatibility)
2012-01-02 13:31:50 +02:00
Perttu Ahola
103173fc9b
Add InvRef and InvStack (currently untested and unusable)
2012-01-02 01:49:38 +02:00
Perttu Ahola
81d3485109
Fix segfault when generating stuff on world boundaries
2012-01-01 21:01:55 +02:00
Perttu Ahola
bd21f00f0a
Add minetest.get_modpath(modname)
2011-12-11 16:49:40 +02:00
Perttu Ahola
4cc117ddf6
Properly use time_from_last_punch for limiting PvP punch damage
2011-12-04 14:43:01 +02:00
Perttu Ahola
bc5cc638fc
Fix player not dying when beated to death by other player
2011-12-04 03:56:22 +02:00
Perttu Ahola
bff8be8b76
Fix getting two old-style minerals per digged node
2011-12-04 03:47:55 +02:00
Kahrl
275a348b75
Do not broadcast an empty chat message when someone tries to log in with the wrong password
2011-12-03 11:47:19 +02:00
Perttu Ahola
c6dd75ccfb
Add usermods/ to mod search paths and print out the paths at server startup
2011-12-03 03:43:20 +02:00
Perttu Ahola
6b2023dc3e
Properly handle mod name conflicts
2011-12-03 03:32:30 +02:00
Perttu Ahola
2f4a92d701
Better mod loading error handling
2011-12-03 03:23:14 +02:00
Perttu Ahola
324c544922
Add world/mods to mod search path
2011-12-03 02:55:54 +02:00
Perttu Ahola
d96cd236f3
Enforced mod global naming convention and better error reporting
2011-12-03 02:45:55 +02:00
Perttu Ahola
581f950e10
Fix script error reporting a bit
2011-12-02 22:49:54 +02:00
Perttu Ahola
9344816bd6
Fix ActiveObject creation for fast player respawns
2011-12-02 17:30:22 +02:00
Perttu Ahola
67c21fc42f
Fix sending of player hp (was sent all the time)
2011-12-02 17:19:42 +02:00
Perttu Ahola
b9e8e20c9c
Script-defined creative inventory
2011-12-02 12:43:57 +02:00
Perttu Ahola
932988af46
Rename "build" privilege to "interact" (backwards-compatibly, of course)
2011-12-02 12:18:19 +02:00
Perttu Ahola
2dc9a0c724
Fix player double damage
2011-12-02 11:16:51 +02:00
Perttu Ahola
09010410cf
Print out PROTOCOL_VERSIONs if server is incompatible with client
2011-12-02 01:24:54 +02:00
Perttu Ahola
9d67037570
Don't send objects or map data before definitions have been sent
2011-12-02 01:18:25 +02:00
Perttu Ahola
08a10b8a6a
Remove stuff made obsolete by making players more ActiveObject-like and raise protocol version number by one (because it is not compatible at all anymore)
2011-12-01 23:55:57 +02:00
Perttu Ahola
af32240545
Players are more like objects + related stuff
2011-12-01 23:33:48 +02:00
Perttu Ahola
ee0d3bacbc
Player-is-SAO WIP
2011-12-01 18:23:58 +02:00
Kahrl
2ca00fa585
Fix processing of the default_password setting. It is now actually used as the plaintext password for new users. Also add /setpassword and /clearpassword server commands that can be used by admins with the PRIV_PASSWORD privilege, and update the /help message.
2011-12-01 12:06:39 +02:00
Perttu Ahola
347216d654
Reworked the inventory move handling code, hopefully fixed more problems than caused
2011-11-30 19:49:34 +02:00
Perttu Ahola
e109ed5cef
Proper player inventory and hp modification tracking and sending accordingly
2011-11-29 23:18:20 +02:00
Perttu Ahola
4bcff65ad0
Better version match fail messages from server
2011-11-29 22:23:03 +02:00
Perttu Ahola
2a610b011a
Handle items with m_count==0 sanely when placing
2011-11-29 21:05:53 +02:00
Kahrl
d6b30dd3a5
CraftItem rework and Lua interface
2011-11-29 19:13:58 +02:00
Perttu Ahola
705f142b8d
GenericNodeMetadata and an example furnace
2011-11-29 19:13:57 +02:00
Perttu Ahola
0f2b932e92
Initial NodeMetaRef stuff
2011-11-29 19:13:56 +02:00
Perttu Ahola
842eb5da28
Replace old active block random node modifying things with actual ActiveBlockModifiers
2011-11-29 19:13:56 +02:00
Perttu Ahola
05df2ee8a4
Add chat message callback and send functions
2011-11-29 19:13:56 +02:00
Perttu Ahola
c449e5f20a
Use log_deregister_thread in EmergeThread
2011-11-29 19:13:56 +02:00
Perttu Ahola
2e42391b86
Fix mod dependency sort
2011-11-29 19:13:55 +02:00
Perttu Ahola
fd8b9a3a44
Warn about unsatisfied dependencies
2011-11-29 19:13:55 +02:00
Perttu Ahola
5c1cb01936
Make blocks to be loaded from disk when the active block area reaches them
2011-11-29 19:13:55 +02:00
Perttu Ahola
a8a82e0b21
Sort mods by dependencies defined by modpath/depends.txt in each mod (not mandatory)
2011-11-29 19:13:55 +02:00
Perttu Ahola
218b626016
Fix and tune player movement checks (make them very loose)
2011-11-29 19:13:55 +02:00
Kahrl
f42c57d9a8
Add IDropAction and related stuff
2011-11-29 19:13:54 +02:00
Perttu Ahola
b2ccbdffc1
Make map generator as much threaded as possible (not much benefit with current generator because of small generator chunk size (a single MapBlock))
2011-11-29 19:13:54 +02:00
Perttu Ahola
769cc9879f
Add on_generated hook
2011-11-29 19:13:54 +02:00
Perttu Ahola
0dbb31afeb
Improve player movement speed checking
2011-11-29 19:13:54 +02:00
Perttu Ahola
1bfc3c1eb9
Player movement speed and node access distance checking
2011-11-29 19:13:54 +02:00
Perttu Ahola
945d01fd9e
on_newplayer and on_respawnplayer callbacks
2011-11-29 19:13:53 +02:00
Perttu Ahola
77337271fc
Remove give_initial_stuff
2011-11-29 19:13:52 +02:00
Kahrl
c1479a2732
Add node definitions in Lua and do not use content_mapnode_init anymore (except in test.cpp)
2011-11-29 19:13:52 +02:00
Perttu Ahola
61ffe1eac4
builtin.lua
2011-11-29 19:13:52 +02:00
Perttu Ahola
9e7ad1e2aa
Add object reference to Lua on_place/dig/punchnode parameters
2011-11-29 19:13:52 +02:00
Perttu Ahola
ae9f183cda
Fix "warning: comparison between signed and unsigned integer expressions"
2011-11-29 19:13:52 +02:00
Perttu Ahola
fdf6eecd59
Make map generator more responsive
2011-11-29 19:13:51 +02:00
Perttu Ahola
6a8f9135de
Store metadata as metadata name in node definition
2011-11-29 19:13:51 +02:00
Perttu Ahola
704d8a62bf
Set block modified flag when node metadata inventory is modified
2011-11-29 19:13:50 +02:00
Perttu Ahola
941176cd65
Default to saving stuff more often to minimize lag caused by a single save
2011-11-29 19:13:50 +02:00
Perttu Ahola
1b765b9740
Add reason parameter to setModified and print it out to verbosestream when saving block
2011-11-29 19:13:49 +02:00
Perttu Ahola
0ce0c8fcfb
Improve LuaEntity velocity/acceleration handling (by kahrl); implement staticdata interface to Lua
2011-11-29 19:13:49 +02:00
Perttu Ahola
cc03718d3c
Node place/dig Lua callbacks
2011-11-29 19:13:49 +02:00
Perttu Ahola
9d5b458479
Crafting definition in scripts
2011-11-29 19:13:48 +02:00
Perttu Ahola
df8346ef4d
Do not expose CONTENT_* stuff in content_mapnode.h and use a name converter wrapper in old code
2011-11-29 19:13:47 +02:00
Perttu Ahola
c0f6395cf0
Node definition names
2011-11-29 19:13:46 +02:00
Perttu Ahola
26abf6fd82
Cut down content transfer verbosity
2011-11-29 19:13:45 +02:00
Perttu Ahola
7696a38543
Improve loading screen and protocol
2011-11-29 19:13:45 +02:00
Perttu Ahola
6da8cb00e2
Node definitions transfer
2011-11-29 19:13:44 +02:00
Perttu Ahola
eed727c61b
Completely generalized mesh generation; ContentFeatures serialization
2011-11-29 19:13:44 +02:00
Perttu Ahola
cf6e22e9a6
Better node texture generation
2011-11-29 19:13:43 +02:00
Perttu Ahola
45fc45a49e
Sending of textures WIP
2011-11-29 19:13:43 +02:00
Perttu Ahola
e71744b918
Modify mod and texture directory hierarchies
2011-11-29 19:13:43 +02:00
Perttu Ahola
9e1c4533b8
Move tool definitions to script
2011-11-29 19:13:43 +02:00
Perttu Ahola
4b8e4dae58
Tool definition transfer to client
2011-11-29 19:13:42 +02:00
Perttu Ahola
c6fd2986d4
GameDef compiles
2011-11-29 19:13:42 +02:00
Perttu Ahola
abceeee92f
Create framework for getting rid of global definitions of node/tool/item/whatever types
2011-11-29 19:13:41 +02:00
Perttu Ahola
64996422c0
Move ContentFeatures to mapnode_contentfeatures.{h,cpp} and clean stuff
2011-11-29 19:13:40 +02:00
Perttu Ahola
1320d07068
Scripting WIP: dynamic object stuff
2011-11-29 19:13:40 +02:00
Perttu Ahola
0b97ad8384
ServerRemotePlayer implements ServerActiveObject
2011-11-29 19:13:40 +02:00
Perttu Ahola
75a0ca6bd6
Scripting WIP
2011-11-29 19:13:40 +02:00
Perttu Ahola
f145d498a6
Scripting WIP
2011-11-29 19:13:39 +02:00
Perttu Ahola
a6a1e6ed1a
random scripting work-in-progress
2011-11-29 19:13:39 +02:00
Perttu Ahola
bfc68d3151
Scripting WIP
2011-11-29 19:13:38 +02:00
Perttu Ahola
ee8b6d3444
Move images to data/textures and fix some path stuff; hope that installation still works
2011-11-29 19:11:04 +02:00
Perttu Ahola
7372282a72
Better spawn position finding and checking
2011-11-13 03:17:42 +02:00
Kahrl
1c98ec94da
Make Connection::Receive return the data via a SharedBuffer reference, so the caller doesn't have to choose the right buffer size in advance.
...
Conflicts:
src/test.cpp
2011-11-07 11:21:42 +02:00
Perttu Ahola
4b6138e69b
Improve Connection with threading and some kind of congestion control
2011-10-20 23:04:09 +03:00
Perttu Ahola
3a06fb8831
Fix and tune block sending
2011-10-19 02:17:23 +03:00
Perttu Ahola
78f4142f4f
Add /clearobjects
2011-10-18 00:01:50 +03:00
Perttu Ahola
2419d0029a
Some more profiler stuff to get the hang on what really uses CPU
2011-10-16 22:39:35 +03:00
Perttu Ahola
b8f2dcea4d
Improve debug profiler usage for investigating CPU usage of server
2011-10-16 21:16:44 +03:00
Perttu Ahola
07d000cc54
When granting or revoking privileges, notify the target player too
2011-10-16 20:03:43 +03:00
Perttu Ahola
143dce6672
When player times out, log the action as a timeout rather than regular quitting
2011-10-16 19:38:56 +03:00
Perttu Ahola
96b2d1fd29
Check NULL pointer properly in some new code trying to log new stuff
2011-10-16 18:50:30 +03:00
Perttu Ahola
0bf533f753
Switch more stuff to use the logging thing and fix segfault on player leave from server as introduced in a previous switch-to-logging commit
2011-10-16 16:28:12 +03:00
Perttu Ahola
b65a5aceb0
Use the logger; also, default to not showing much crap in console. Use --info-on-stderr to enable crap.
2011-10-16 14:57:53 +03:00
Perttu Ahola
94dfececf6
strict_protocol_version_checking setting; PROTOCOL_VERSION in clientserver.h; clean up defaultsettings.cpp and minetest.conf.example
2011-10-15 15:02:28 +03:00
Perttu Ahola
74febd5c31
Handle death and respawn better
2011-10-15 14:46:59 +03:00
Perttu Ahola
5341bf59c2
Improve mobv2
2011-10-15 12:17:21 +03:00
Perttu Ahola
43a28f04fa
mobv2
2011-10-15 02:28:57 +03:00
Perttu Ahola
080002f8ed
Lock mutex when accessing m_env in Server::~Server
2011-10-14 12:39:25 +03:00
Perttu Ahola
9e46cbf7ea
Header file tweaking; mainly for speed
2011-10-12 13:53:38 +03:00
Perttu Ahola
b60b58b627
Saner block modification flag operation for not saving everything always
2011-10-12 10:53:37 +03:00
Perttu Ahola
a7833cca22
Merge remote-tracking branch 'marktraceur/master'
2011-09-26 22:41:06 +03:00
Perttu Ahola
061d4b4202
Merge branch 'view_bobbing_and_vielded_tool'
2011-09-26 15:10:02 +03:00
Perttu Ahola
b9e680d06c
Server user limit configuration option
2011-09-26 11:57:51 +03:00
Perttu Ahola
0ccc0ac927
Merge remote-tracking branch 'darkrose/master'
2011-09-26 11:57:28 +03:00
Joshua Beck
ae561d705f
Fixed null pointer dereference errors found by cppcheck
2011-09-24 02:11:43 -05:00
Mark Holmquist
85f119e1e6
Adding (most) of the sapling functionality. It has yet to work, since MEET_OTHER was not implemented at the time of this commit. Hopefully it will work when merged with celeron's latest.
2011-09-23 18:13:53 -07:00
Perttu Ahola
bdf54908aa
Make client report a newer version number to the server than 2011-07-31 does and make the server enforce it
2011-09-22 20:47:47 +03:00
darkrose
582e450bad
added locking chests - clean patch
2011-09-22 19:11:48 +10:00
Kahrl
acfb2bb8bc
Revert some changes that could lead to slower map transfer and increaed network load.
2011-09-16 18:03:58 +02:00
Kahrl
e4cb004460
trying something else... also replaced M_PI by PI everywhere
2011-09-08 16:10:44 +02:00
Kahrl
baf7da9d4a
Collected and moved existing camera infrastructure from game.cpp to camera.cpp and camera.h. Introduced configuration settings 'fov' which chooses the camera's (vertical) field of view and 'view_bobbing' which currently does nothing. Other code refactored to not expect the FOV to be a build time constant.
2011-09-08 01:08:47 +02:00
Perttu Ahola
87b9e5467d
Merge remote-tracking branch 'queatz/furnace-is-not-out-nor-can-rat-escape'
2011-08-30 14:24:07 +03:00
JacobF
134e49cc8e
Merged 2 branches because they relied on each other.
...
This one contains these changes from main c55:
* Adds a function to check if there is room for a specific item
* Using that, you can now pick up rats if you have a full inventory and a not full rat stack
* Furnace would cook only 1 item if that item used the last available result slot, now it will continue
* Furnace will say it's overloaded
* Furnace won't wait until the next step to start on the next item
- This caused small fuels to cook slower than meant to
- Also caused furnaces to say they were out of fuel after finishing the last fuel item
2011-08-25 19:27:50 -04:00
JacobF
2e82268a67
If a user doesn't have build rights, don't allow them to move items to and from their inventory
2011-08-23 22:08:09 -04:00
Perttu Ahola
d4df20a913
if creative mode and player has no build privileges, cannot drop items.
2011-08-22 22:55:17 +03:00
Perttu Ahola
4acad897cf
Fixed some protocol comment errors in clientserver.h and elsewhere
...
-- TOCLIENT_OBJECTDATA: peer ID field is missing
-- TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD: added: init length should be u32, not u16
2011-08-22 22:04:46 +03:00
Perttu Ahola
a99450ab72
Possibly fixed the extremely rare PeerNotFound loop bug.
...
See explanation in http://2pktfkt.de/irc/minetest-delta/2011-08-22.html
2011-08-22 21:27:11 +03:00
Giuseppe Bilotta
da19aee307
Server now supports replies without prefix
2011-08-22 13:02:08 +02:00
Giuseppe Bilotta
d2c0b4905a
Defines for server command context flags
2011-08-22 13:02:08 +02:00
Giuseppe Bilotta
153f07fdfb
Remove distinction between /# and / commands
...
No need to make the server command syntax more complicated than
necessary. If the need ever arise, we'll find some other way to
distinguish the client commands. Also, the /# syntax is deprecated and
will be made obsolete in time.
2011-08-22 13:02:08 +02:00
Perttu Ahola
29c9d3d5f4
Implemented MEET_OTHER
2011-08-16 12:23:19 +03:00