Loic Blot
045cc40d91
[CSM] Client side modding
...
* rename GameScripting to ServerScripting
* Make getBuiltinLuaPath static serverside
* Add on_shutdown callback
* Add on_receiving_chat_message & on_sending_chat_message callbacks
* ScriptApiBase: use IGameDef instead of Server
This permits to share common attribute between client & server
* Enable mod security in client side modding without conditions
2017-03-13 23:56:05 +01:00
Loic Blot
4e008ba0bb
Move ServerEnvironment to dedicated cpp/header files
...
* also cleanup some unneeded inclusions
2017-01-08 12:16:06 +01:00
Rogier
18bdc18f75
Move PP() and PP2() macros to basic_macros.h
...
Instead of redefining them everywhere.
2016-12-24 00:32:50 +00:00
ShadowNinja
3592feb875
Clean up Strfnd
...
Changes:
* Fix indentation.
* Pass strings by const reference.
* Merge Strfnd and WStrfnd into one class instead of copying them.
* Remove trailing spaces.
* Fix variable names.
* Move to util.
* Other miscellaneous style fixes.
2016-03-19 21:27:57 -04:00
ShadowNinja
85dbe50ec1
Rename macros with two leading underscores
...
These names are reserved for the compiler/library implementations.
2015-10-14 02:39:37 -04:00
David Jones
9d1284b324
Change i++ to ++i
2015-08-25 18:33:52 -04:00
est31
78d8a57fd5
Fix inventory replace bug
2015-08-19 03:42:00 +02:00
est31
1e3af421f2
MoveItemSomewhere double bugfix
...
-> Fix bug where MoveSomewhere from an infinite source would fill the destination inventory with copies of itself.
-> Fix bug where MoveSomewhere would needlessly call callbacks.
-> Remove trailing whitespaces
2015-07-19 06:23:41 +02:00
est31
d55de46a1d
Inventory manager style cleanup and further checks
2015-07-01 17:03:02 +02:00
est31
f4cc4ddc30
Add MoveSomewhere inventory action
...
Improve shift+click experience
2015-06-23 20:18:41 +02:00
TeTpaAka
af7af11b4a
Fix bug when craft input isn't replaced
2015-06-22 19:30:35 +02:00
Craig Robbins
0731f9ed2a
Move globals from main.cpp to more sane locations
...
Move debug streams to log.cpp|h
Move GUI-related globals to clientlauncher
Move g_settings and g_settings_path to settings.cpp|h
Move g_menuclouds to clouds.cpp|h
Move g_profiler to profiler.cpp|h
2015-04-01 23:04:25 +10:00
Loic Blot
6450ca41ec
Don't send an InventoryAction at each setInventoryModified, we only need one SendInventory per inventory modification
...
Client doesn't like to receive multiples SendInventory for one action, this can trigger glitches on clients (sometimes due to incorrect UDP packet ordering due to UDP protocol)
This fix issue #2544
2015-03-24 14:13:17 +01:00
Craig Robbins
27791ee1aa
For usages of assert() that are meant to persist in Release builds (when NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07 22:41:47 +10:00
onkrot
c91dbf8ad2
Performance fixes.
2015-01-13 23:48:56 +10:00
ShadowNinja
416c5c8339
Clean up rollback
2014-11-19 16:21:59 -05:00
ShadowNinja
dbf9e444b1
Split settings into seperate source and header files
...
This also cleans up settings a bit
2014-09-21 14:39:35 -04:00
Novatux
0f0a497d0f
Add a callback: minetest.register_on_craft(itemstack, player,
...
old_craft_grid, craft_inv) and
minetest.register_craft_predict(itemstack, player, old_craft_grid,
craft_inv)
2013-11-01 15:55:34 +01:00
Kahrl
ee90d438b8
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
sapier
2dceda8890
Move scriptapi to separate folder (by sapier)
...
On the lua side, notably minetest.env:<function>(<args>) should now
be replaced by minetest.<function>(<args>).
The old way is and will stay supported for a long time.
Also:
Update and clean up lua_api.txt (by celeron55)
Move EnvRef to lua and remove add_rat and add_firefly (by kahrl)
Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
2013-05-25 00:51:02 +02: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
Perttu Ahola
8a5debac9b
Fix moving stuff into a mismatched stack in a "infinite" inventory
2012-09-02 23:01:42 +03:00
Perttu Ahola
c10d6f12a9
Make inventory GUI do sane things when server-side inventory acts unusually
2012-09-02 22:51:38 +03:00
Ilya Zhuravlev
d7cc000a0c
Add InventoryList width property & allow custom crafting grids.
2012-09-01 10:01:41 +03:00
Perttu Ahola
d7f8cdd07a
Fix wrong amount of nodes being dropped from inventory
2012-08-12 15:49:23 +03:00
Perttu Ahola
ecff847d29
Remove unwanted ! from ifs in inventory record-for-rollback code
2012-08-12 11:20:36 +03:00
Perttu Ahola
e6e88c5ce7
Fix inventory segfault when rollback recording is disabled
2012-07-28 14:44:18 +03:00
Perttu Ahola
3303470fbc
Experimental-ish rollback functionality
2012-07-27 02:27:18 +03:00
Perttu Ahola
4548b1cef5
Add special return value -1 to inventry callbacks
2012-07-25 16:52:00 +03:00
Perttu Ahola
a1d678f021
Improve inventory callbacks a bit
2012-07-25 15:39:39 +03:00
Perttu Ahola
4183fdbe70
Remove special handling of creative mode
2012-07-25 14:07:45 +03:00
Perttu Ahola
1b2ae34ed4
Detached inventory callbacks and reworked node metadata callbacks
2012-07-25 02:36:54 +03:00
Perttu Ahola
c2cb98c1a6
Detached inventories
2012-07-24 20:57:17 +03:00
Perttu Ahola
ec937ecdd8
Properly and efficiently use split utility headers
2012-06-17 02:40:36 +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
48b94da624
Properly handle dropping of items from nodes, and disallow moving items directly between nodes
2012-06-03 22:31:01 +03:00
Perttu Ahola
242091e336
on_metadata_inventory_{move,offer,take}
2012-06-03 22:31:01 +03: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
c920df748b
Inventory menu changes: Tooltips; dragging; drop from menu. Lag is a bit annoying (even in single player).
2012-01-13 12:35:55 +01: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
103173fc9b
Add InvRef and InvStack (currently untested and unusable)
2012-01-02 01:49:38 +02:00