4394 Commits

Author SHA1 Message Date
paramat
91a0d2f7ca Mgv5: Remove blobgen. Remove crumble and wetness noises
Add large pseudorandom caves below -256
De-link terrain level from water_level
Cavegen: Mgv5 large cave code
2015-02-21 01:43:25 +00:00
Ner'zhul
d764dd8156 update README.txt
* prefix apt-get with sudo
* git clone minetest_game without going to folder
* execute minetest binary without going into bin folder
2015-02-20 10:35:39 +01:00
Ner'zhul
7020fe2941 Typo fix in networkprotocol.h
InventoryAction is in inventorymanager.h
2015-02-19 20:03:22 +01:00
BlockMen
ed5471043e Uncomment version patch field 2015-02-18 23:52:51 +01:00
Perttu Ahola
bb4840d977 Bump version to 0.4.12 2015-02-18 23:50:01 +01:00
Novatux
c9e6dde91e Add modname convention checking
Fixes #2037
2015-02-18 16:48:58 +01:00
est31
22ea6a5d81 Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist
Client now informs about incompatible servers from the list, this permits to prevent the protocol movements.
Server announces its supported protocol versions to master server
2015-02-18 16:09:59 +01:00
BlockMen
cdb7014321 Increase default font_size 2015-02-18 12:51:17 +01:00
BlockMen
b691b97ab1 Fix font_size under windows 2015-02-18 12:39:23 +01:00
Perttu Ahola
fdf974e4fd Use fixed size for builtin menus on non-android platforms 2015-02-18 12:33:40 +02:00
Loic Blot
1ebc81ec2e Update missing files for Android.mk 2015-02-18 09:53:43 +01:00
Loic Blot
ad693a80de Fix unused (and so, broken) enable_rollback_recording. This option must be reloaded at server loop but loaded when server starts, for data consistency (not a hot load variable)
ok @ShadowNinja
2015-02-18 09:28:39 +01:00
Loic Blot
e42d1a71cf Android build fix 2015-02-18 09:23:24 +01:00
fz72
714e41c831 Fix map_seed not changed when creating a new world after login to another 2015-02-18 08:57:14 +01:00
Loic Blot
13ff792b19 Change many useless std::list into Environment class (m_players), ABMHandler and ActiveBlockList::update
This improve looping performances.
2015-02-17 16:50:03 +01:00
Kahrl
f83b58891c Grab GUIChatConsole::m_font, fixes segfault when changing font_size 2015-02-18 00:38:57 +10:00
Loic Blot
aa1d7043a5 Replace std::list by std::vector into ClientMap::updateDrawList, Map::timerUpdate and ServerMap::save().
This will speedup the loop reading into those functions
2015-02-17 15:28:49 +01:00
Loic Blot
f764ef3076 Replace std::list by std::vector into timerUpdate calls 2015-02-17 15:08:37 +01:00
Novatux
433e91fc9a Ignore old entities from 0.3. 2015-02-17 15:07:05 +01:00
Loic Blot
ba3e67271c Remove old comment from Network Rework Patch 2/4 2015-02-17 14:49:21 +01:00
Loic Blot
5abc50f077 Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap::listAllLoadedBlocks and their database backends.
This adds a speedup on database migration and /clearobjects command
2015-02-17 14:35:44 +01:00
Loic Blot
bde70b6d78 SAO: re-add old ActiveObjectTypes for a future migration layer 2015-02-17 11:37:55 +01:00
Loic Blot
1905f12b61 SAO work: ActiveObject types & SAO cleanup * Replace u8 types with ActiveObjectType. * Merge content_object.h into activeobject.h * Remove DummyLoadSAO, it's now unused. * Remove ItemSAO, it's also unused 2015-02-17 09:09:50 +01:00
Yaman
b6ae645080 Add player direction to on-screen debug text
(PR Modified slightly)
2015-02-17 01:56:21 +10:00
sfan5
6782943673 Add LevelDB and redis to Travis Linux builds 2015-02-16 11:55:12 +01:00
Loic Blot
eb9db33a62 Performance Improvement: Use a cache which caches result for getFacePositions.
This greatly reduce the number of std::list generated by caching the result, which is always constant for each radius selected.
In the callgrind map, you will see original:
  * 3.3M calls to std::list for 9700 calls to getFacePositions
In the modified version, you will see:
  * 3.3K calls to std::list for 6900 call to getFacePositions
Callgrind map is here: #2321

it's a huge performance improvement to l_find_node_near
2015-02-16 11:27:44 +01:00
Loic Blot
416ba2b408 [Patch 2/4] Network rework: packet writing, sending and cleanups
NetworkPacket.cpp:
* Remove some deprecated functions, we must use streaming interface
* m_data converted from u8* to std::vector<u8>
* Add an exporter to forge packet to Connection object
* implement operator << std::wstring. n
* implement operator << std::string
* dynamic resize when write packet content.
* fix string writing and performances.
* create ServerCommandFactory, used by client to get useful informations about packet processing (sending).
  * Reliability
  * Transmit channel
* Implement putRawString for some ugly char (_INIT packet), and use it.
* Many packet read and write migrated
* Implement oldForgePacket to interface writing with current connection
* fix U8/char/bool writing
* fix string writing and performances.
* add some missing functions
* Use v3s16 read instead of reading x,y,z separately
* Add irr::video::SColor support into packets
* Add some missing handlers
* Add a template function to increase offset
* Throw a serialization error on packet reading (must be improved)

PacketFactories:
* Create ServerCommandFactory, used by client to get useful informations about packet processing (sending).
* Create ClientCommandFactory, used by server to get useful informations about packet processing (sending).

Client.cpp:
* implement NetworkPacket ::Send interface.
* Move packet handlers to a dedicated file
* Remove Client::Send(SharedBuffer)

Server.cpp:
* implement NetworkPacket ::Send interface.
* Rewrite all packets using NetworkPacket
* Move packet handlers to a dedicated file
* Remove Server::Send(SharedBuffer)

ClientIface.cpp:
* Remove sendToAll(SharedBuffer<u8>)

Connection.hpp rework:
* Remove duplicate include
* Remove duplicate negation
* Remove a useless variable
* Improve code performance by using a m_peers_list instead of scanning m_peers map
* Remove Connection::Send(SharedBuffer)
* Fix useafterfree into NetworkPacket Sending
* Remove unused Connection::sendToAll

Test.cpp:
* Remove dead code
* Update tests to use NetworkPackets

Misc:
* add new wrappers to Send packets in client, using NetworkPacket
* Add NetworkPacket methods for Connection
* coding style fix
* dead code since changes cleanup
* Use v3s16 read instead of reading x,y,z separately in some packets
* Use different files to handle packets received by client and server
* Cleanup: Remove useless includes

ok @Zeno-
Tested by @Zeno- @VanessaE and @nerzhul on running servers
2015-02-16 11:00:55 +01:00
rubenwardy
14ad8f26bb Fix minetest.item_eat's replace_with_item, fixes #2292 2015-02-16 10:24:19 +01:00
Loic Blot
0f943ab03d Fix unit test if there isn't a localhost address (for example FreeBSD jails), second part 2015-02-15 14:30:34 +00:00
Loic Blot
b660410de1 Fix unit test if there isn't a localhost address (for example FreeBSD jails) 2015-02-15 13:11:03 +01:00
Loic Blot
967adfd9b7 Only do the IPv6 unit test if IPv6 is enabled 2015-02-15 12:20:37 +01:00
ngosang
14d900a523 Updated Spanish translations 2015-02-15 09:36:28 +01:00
Loic Blot
b1eecde7ba Fix issue #2278, Connection sent before address data loading 2015-02-14 23:23:54 +01:00
Loic Blot
d6dc782591 Re-apply 4a6582c13c36cab457b78f32338c6bb4ab9ea58b broken since 146f77fdb750833c649de7159a0833c398e14a4d 2015-02-14 09:21:04 +01:00
est31
c1efb227cb Fix crash on passing false as value in table to table.copy(t)
Fixes #2293.
2015-02-14 15:18:11 +10:00
Craig Robbins
d30b5bc9cf Suppress CGUITTFONT build warnings 2015-02-13 23:54:05 +10:00
Loic Blot
e2a599b121 Add german and french translation for minetest.desktop
This fixes #1573
2015-02-12 19:36:02 +01:00
Jakub Vaněk
3a531f5cec Update czech translation 2015-02-12 16:41:44 +01:00
ngosang
9b423f94f5 Minor fixes in translations 2015-02-12 16:41:40 +01:00
BlockMen
8351fbdc9a Fix gettext on MSVC 2015-02-12 16:03:55 +01:00
ngosang
b19cbb43a0 Fix .zip extraction (mod store) 2015-02-12 15:27:20 +01:00
Loic Blot
0a1c212974 main.cpp rework * Move ClientLauncher class to a dedicated file * ClientLauncher now owns print_video_modes and speed_tests functions (they are only called by him) * Move GameParams to shared/gameparams.h because it's shared between server and client and launcher need to know it * Move InputHandlers class to client/inputhandler.h * Cleanup includes 2015-02-12 15:00:03 +01:00
Rui
d072d2c41c Fix store.lua bug: default screenshot 2015-02-12 11:32:42 +01:00
Rui
cb3bffd751 Fix tab_mods.lua: default screenshot patch
https://forum.minetest.net/viewtopic.php?f=6&t=11201
Fixed this bug.
2015-02-12 11:31:34 +01:00
Loic Blot
690c0d8f3f Remove unused variables to make clang happy 2015-02-12 11:13:27 +01:00
ngosang
2ec8c63202 Small changes in the style of controls 2015-02-12 09:54:48 +01:00
Loic Blot
1672d70491 Make Clang happy with lua lauxlib.c.
No functionnal change
2015-02-12 08:00:22 +01:00
est31
5d2ce03d23 Enable LUA_USE_POSIX if possible in bundled Lua
Fixes warning:
src/lua/src/loslib.c:60: Warning: the use of `tmpnam' is dangerous, better use `mkstemp'
2015-02-12 16:14:12 +10:00
Craig Robbins
4faa195051 Fix Android compile warning 2015-02-12 13:16:38 +10:00
ngosang
db3b845b7b Fix 'Download complete' dialog in the mods store 2015-02-11 19:58:48 +01:00