179 Commits

Author SHA1 Message Date
Diego Martínez
cf39a2950a Added support for alignment in HUD items 2013-04-23 09:34:10 +03:00
kwolekr
45409b509b Split HUD code off to hud.cpp, make into a class, extensive Lua HUD modification 2013-04-18 02:19:31 -04:00
Jonathon Anderson
2cb3f5eb6b Lua HUD 2013-04-18 02:14:33 -04:00
sapier
66872b7884 fix memory leak in loadMedia 2013-04-07 23:40:33 -04:00
sapier
acf94e90b4 fix 3d model mesh leak 2013-04-07 21:51:35 -04:00
PilzAdam
7d5d34de34 Fix nick completion 2013-04-05 02:31:58 +02:00
Jeija
a8562392b0 Allow spawning particles from the server, from lua
Spawn single particles or make use of ParticleSpawner for many randomly spawned particles.
Accessible in Lua using minetest.spawn_particle and minetest.add_particlespawner.
Increase Protocol Version to 17.

Conflicts:
	src/clientserver.h
2013-03-23 23:16:29 +01:00
Ilya Zhuravlev
a12df55f29 Migrate to STL containers/algorithms. 2013-03-11 19:08:39 -04:00
Sfan5
3fab3825aa Update Copyright Years 2013-02-24 20:15:24 +01:00
PilzAdam
269f01224b Change Minetest-c55 to Minetest 2013-02-24 18:49:03 +01:00
MirceaKitsune
f0f07b20f0 Improved Player Physics 2013-02-14 06:21:30 +10:00
sapier
59ab6e50b5 Fix buttons not working for Lua-triggered formspecs 2013-01-07 19:00:33 +02:00
sapier
2683dde4e8 Add TOCLIENT_SHOW_FORMSPEC to display formspecs at client from lua 2013-01-02 20:59:37 +02:00
PilzAdam
bdfd5da1f4 Fix 'longjmp causes uninitialized stack frame' in cURL 2012-12-26 21:41:00 +01:00
Ilya Zhuravlev
e910464bc6 Make m_media_fetch_threads to contain MediaFetchThread* instead of MediaFetchThread 2012-12-17 20:56:59 +04:00
Ilya Zhuravlev
f189ab2ccd Added ability to fetch media from remote server (using cURL library) 2012-12-16 15:20:18 +04:00
MirceaKitsune
c294d6809c Don't send player position from client to server if the player hasn't moved 2012-12-02 20:22:02 +02:00
Kahrl
c9e7e8ba3c ShaderSource and silly example shaders 2012-12-02 00:46:18 +02:00
Perttu Ahola
7e50a0f75d Add setting preload_item_visuals 2012-12-02 00:46:10 +02:00
Perttu Ahola
e187e834c3 On-demand item meshes and textures 2012-12-02 00:38:26 +02:00
Perttu Ahola
f47ab33cfd Modify some client log message levels 2012-12-02 00:24:11 +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
348ceb211f A bunch of fixes
No longer hide players who are dead. With models, a death animation should be used instead

Some changes requested by celeron55

Rename a lot of things in the code, and use better lua api function names

Minor code corrections

Bump protocol version up, since the models / animations / attachments code creates new client<->server messages
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
c2cb98c1a6 Detached inventories 2012-07-24 20:57:17 +03:00
Perttu Ahola
243d9fb7d6 minetest.register_on_player_receive_fields() 2012-07-22 17:40:48 +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
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
42c7767361 Implement sign using form field protocol 2012-06-03 22:31:01 +03:00
Perttu Ahola
493dc3e9e7 Log more stuff in Client::afterContentReceived() 2012-05-19 17:11:41 +03:00
Perttu Ahola
75f0bdbdd2 Allow looping of local and positional sounds 2012-04-08 14:35:57 +03:00
Perttu Ahola
0abf89eb12 Add 'fly' and 'fast' privileges and the underlying privileges-to-client system 2012-03-31 16:25:02 +03:00
Kahrl
bbb2502894 added PlayerSAO and RemotePlayer, removed ServerRemotePlayer 2012-03-29 14:05:45 +03:00
Perttu Ahola
bb391c62ce Switch sound randomizer postfixes from N.ogg to .N.ogg 2012-03-25 16:21:34 +03:00
Perttu Ahola
4be45a2c43 Almost support loading sounds from server 2012-03-25 14:48:22 +03:00
Perttu Ahola
335f1cf600 Texture cache -> Media cache WIP 2012-03-25 11:51:33 +03:00
Jonathan Neuschäfer
eb952feb6f Cache textures by checksum 2012-03-25 11:51:00 +03:00
Perttu Ahola
026f4f2fc8 Lua API for playing sounds 2012-03-24 19:01:26 +02:00
Perttu Ahola
753a1999e6 Add event manager and use it to trigger sounds 2012-03-24 04:24:26 +02:00
Perttu Ahola
cb281450b1 c55sound continued 2012-03-24 04:24:25 +02:00
Perttu Ahola
48359ec57f celeron55's sound system initial framework 2012-03-24 04:24:23 +02:00
Perttu Ahola
0f3d56fd8c Profiler graph 2012-03-21 15:06:41 +02:00
Perttu Ahola
2e90ed07ac Dynamic sky, fog and cloud colors; sun and moon 2012-03-18 13:42:18 +02:00
Perttu Ahola
58bed83d03 Move ClientMap to clientmap.{h,cpp} 2012-03-16 00:25:18 +02:00