389 Commits

Author SHA1 Message Date
Ilya Zhuravlev
ffbc317d0f Fix hypen used as minus sign (manpages), fix spelling error (server.cpp) 2012-12-17 19:46:54 +04:00
Ilya Zhuravlev
f189ab2ccd Added ability to fetch media from remote server (using cURL library) 2012-12-16 15:20:18 +04:00
Kahrl
c9e7e8ba3c ShaderSource and silly example shaders 2012-12-02 00:46:18 +02:00
Perttu Ahola
1a0fdc06d0 Run scriptapi_on_shutdown() thread-safely and remove some old crap 2012-11-30 19:41:13 +02:00
Matthew I
056d277f53 Add shutdown hook interface to Lua API
Scripts can call minetest.register_on_shutdown() to register a
shutdown hook.

Document that minetest.register_on_shutdown() callbacks may not be run

If the server crashes, it is unlikely that callbacks registered using
minetest.register_on_shutdown() will be called.
2012-11-30 19:26:51 +02:00
Perttu Ahola
10014bbd62 Full protocol 13 compatibility on server side 2012-11-29 22:08:25 +02:00
Perttu Ahola
753ec084f3 Make strict and non-strict protocol version checking to work more like expected 2012-11-29 22:08:25 +02:00
Perttu Ahola
d0dff79761 Ranged support of protocol version on server side 2012-11-29 22:08:25 +02:00
Perttu Ahola
f098fda683 Support serialization of protocol 13 ContentFeatures 2012-11-29 22:08:25 +02:00
Perttu Ahola
449111ddc1 Default server step to 0.1s and sync object/player update intervals to it 2012-11-26 22:34:59 +02:00
Perttu Ahola
ee8f9f45ee Move util/serialize.h out from staticobject.h for smaller header dependencies 2012-11-26 11:18:34 +02:00
Perttu Ahola
8df104f311 New PROTOCOL_VERSION scheme (allow client to support a range of versions) 2012-11-26 09:49:07 +02:00
MirceaKitsune
60a331fe32 RealBadAngel's patch which allows the lua api to read pressed player keys. This should make it possible to change the player's animation based on what he is doing
Correct lua api version number

Always update animations and attachments after the entity is added to scene client side. Fixes animations not being applied in client initialization for some reason. Attachments should be re-tested now just to be safe.

Fix a segmentation fault caused by reaching materials that didn't exist in a loop for setting texture
2012-11-25 19:14:24 +02:00
MirceaKitsune
987a4e06dc Update attachments at the ending of the addToScene function for parents. And with this... *drum roll* Client-side attachments are at last functional and stick visibly.
Fix the last segmentation fault (apparently). So far attachments seem to be fully functional, although removing the parent causes children to go to origin 0,0,0 and possibly still cause such a fault (though this should already be addressed)

Fix a bug in falling code where entities get stuck

Also check if the parent has been removed server-side, and detach the child if so. Fixes children going to origin 0,0,0 when their parent is removed.

Unset all attachment properties when permanently detaching (on both the client and server). Also store less data we don't need

Create a separate function for detaching, and also update lua api documentation

When a child is detached, update its position from the server to clients. This WILL cause it to get positioned slightly differently client side, as the server attachment system only copies parent origin and knows not about mesh / bone transformation. This prevents different clients seeing the object detached in different spots which is most correct

Update the position of attached players to clients. An attached player will see himself move, but this is currently VERY ugly and laggy as it is done by the server (it probably must stay this way too)

Use a different approach for locally attached players. This allows for smooth positio transitions to work, as well at the player turning around freely. Still buggy however
2012-11-25 19:14:24 +02:00
MirceaKitsune
2c87133e8c Get the mesh working through the memory cache properly. Most credit goes to celeron55 for the help on this code
Get the texture from memory as well

Add .x to the list of supported formats

Update LUA API documentation
2012-11-25 18:14:15 +02:00
MirceaKitsune
0d72b91382 Add a subfolder for models and transfer models from server to client
(obj, md2 and md3 are currently allowed)

Get rid of the texture string and use the existing textures array. Segmented meshes have multiple materials, and this will allow us to texture each. Do not switch to this commit yet!

If a texture string is left empty in LUA, don't modify that material. Useful so a script can change specific textures without affecting others
2012-11-25 18:14:15 +02:00
Perttu Ahola
1db74a160f Fix github issue #224 2012-09-01 18:32:15 +03:00
Matthew I
d812f4de81 Move chat commands to Lua and remove servercommand.{cpp,h}
Commands moved:
 /me
 /status
 /time
 /shutdown
 /ban
 /clearobjects
2012-08-12 16:45:58 +03:00
Matthew I
a85321a7a3 Remove trailing comma after player list in server status string 2012-08-12 16:44:54 +03:00
Perttu Ahola
b39e2b3549 Add enable_rollback_recording setting, defaulting to false 2012-07-28 03:08:09 +03:00
Perttu Ahola
97457f079f Properly rollback chat command triggered things 2012-07-27 02:37:04 +03:00
Perttu Ahola
3303470fbc Experimental-ish rollback functionality 2012-07-27 02:27:18 +03:00
Perttu Ahola
4183fdbe70 Remove special handling of creative mode 2012-07-25 14:07:45 +03:00
Perttu Ahola
c2cb98c1a6 Detached inventories 2012-07-24 20:57:17 +03:00
Perttu Ahola
b5b4cc17ea darkrose should work at a nuclear power plant.
It'd take years to figure out what caused the accident.
2012-07-24 16:36:50 +03:00
darkrose
92a389f848 Increase node id/param0 to 16 bits, leaving param2 always with 8 bits 2012-07-23 08:18:39 +03:00
darkrose
e5bebe42e9 Implement node timers 2012-07-23 08:18:37 +03:00
Perttu Ahola
243d9fb7d6 minetest.register_on_player_receive_fields() 2012-07-22 17:40:48 +03:00
Matthew I
b320cc2d74 Add minetest.get_modnames() to Lua API 2012-07-22 13:36:03 +03:00
Perttu Ahola
abeb2a72f8 Server-side checking of digging; disable_anticheat setting 2012-07-21 14:38:49 +03:00
Perttu Ahola
5dd94a9b44 Define M_PI on MSVC 2012-07-21 03:36:34 +03:00
darkrose
c081e8c9d3 Add support for "textures/all" (and thus texture packs) to server 2012-07-21 02:33:19 +03:00
Calinou
6bb059ec5c Message cleanups (consistency) and prevent /me when not allowed to shout 2012-07-21 02:27:58 +03:00
Perttu Ahola
7564aae27e Allow defining player's inventory form in Lua 2012-07-19 14:09:16 +03:00
Perttu Ahola
ec937ecdd8 Properly and efficiently use split utility headers 2012-06-17 02:40:36 +03:00
Perttu Ahola
e05f1af484 Initially split utility.h to multiple files in util/ 2012-06-17 01:29:13 +03:00
Perttu Ahola
3946557a18 Node placement client-side prediction 2012-06-10 12:46:48 +03:00
Perttu Ahola
1aa908b332 Add disallow_empty_password setting 2012-06-07 02:11:28 +03:00
Perttu Ahola
e70b6545b1 Switch the license to be LGPLv2/later, with small parts still remaining as GPLv2/later, by agreement of major contributors 2012-06-05 18:54:07 +03:00
Perttu Ahola
d77fc9ac99 Add ignore_world_load_errors configuration option and provide better error messages 2012-06-04 22:34:40 +03:00
Perttu Ahola
42c7767361 Implement sign using form field protocol 2012-06-03 22:31:01 +03:00
Kahrl
20492dbc41 WIP node metadata, node timers 2012-06-03 22:31:00 +03:00
Perttu Ahola
9d7e453a76 Catch VersionMismatchException while loading world data 2012-06-03 20:42:49 +03:00
Perttu Ahola
c19a70ed9a Check password hash validity 2012-06-03 20:32:44 +03:00
Perttu Ahola
4ae9a38fd5 Fix continuing to process TOSERVER_INIT2 even if player doesn't exist 2012-04-14 18:46:10 +03:00
Perttu Ahola
78708786b1 Fix unhandled InvalidPositionException 2012-04-10 18:16:03 +03:00
Perttu Ahola
e3bf724785 Make client know about reverted disallowed diggings 2012-04-09 21:13:22 +03:00
Perttu Ahola
aea727787e Fix segfault when setting privileges of a non-connected player 2012-04-07 18:46:10 +03:00
Perttu Ahola
3e649e170a Don't apply player movement cheat detection in singleplayer 2012-04-01 13:19:50 +03:00
Perttu Ahola
260d45f0b5 Allow getting the path of builtin.lua using minetest.get_modpath("__builtin") 2012-04-01 12:38:14 +03:00