aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/common.lua
AgeCommit message (Collapse)Author
2022-06-03Rework main menu confirmation dialogs (#12356)ROllerozxa
2022-01-09Mainmenu game-related changes (#11887)sfan5
fixes: * Switching between games does not immediately hide creative mode / damage buttons if so specified * World creation menu has a game selection list even though the menu already provides a gamebar * Showing gameid in world list is unnecessary * Choice of mapgen parameters in menu persists between games (and was half-broken)
2021-10-07Move archive extraction in content store to async jobsfan5
2021-03-20Mainmenu: Improve "Join Game" tab (#11078)sfan5
2021-02-07Use consistent temp folder path (#10892)rubenwardy
2021-01-22Use JSON for favorites, move server list code to Lua (#10085)rubenwardy
Co-authored-by: sfan5 <sfan5@live.de>
2021-01-10Sanitize server IP field in mainmenu (#10793)Zughy
2019-08-06Add luacheck to check builtin (#7895)rubenwardy
2018-06-13Make os.tempfolder work correctly for MinGW & MSVC (#7443)nOOb3167
2018-06-05Fix builtin lua function os.tempfolder (#7368)nOOb3167
* Fix builtin lua function os.tempfolder
2018-04-19Add online content repositoryrubenwardy
Replaces mods and texture pack tabs with a single content tab
2017-09-12Fix core.wrap_text and make its behaviour consistent with the docssfan5
Code based on initial implementation by @dsohler.
2017-05-16CSM: Document forgotten functionsSmallJoker
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2017-02-18Multiplayer menu: fix attempt to open nonexistant imagekilbith
Since local servers and local favorites have no ping value (these are only provided by the server) we shouldn't load a broken image filename. Fixes #5238
2017-02-03Serverlist: Add ping indicators (#5164)kilbith
2017-01-15Add keyword based search to serverlistred-001
2016-08-22Client: disable pre v25 init sending by defaultest31
Disable the ability to connect to old servers by default to improve password security. If people still want to connect to old (0.4.12 and earlier) servers, they can flip the send_pre_v25_init setting. Add the ability to detect if we've tried to connect to a server which only supports the pre v25 init protocol, and show an apropriate error message. Most times the error will already be catched at the serverlist level, the detection mechanism only acts as last resort, because the "Connection timed out" error message that would be shown otherwise would be very confusing. Automatic "fixing" of this condition is not desired, as it would allow for downgrade attacks. As already 161 of the 167 servers on the serverlist support the new srp based auth protocol (> 96%), the breakage should be minimal. Follow up of commit af30183124d40a969040d7de4b3a487feec466e4 "Add option to not send pre v25 init packet" Also change the pessimistic assumption of masterlist server versions to optimistic, in order to avoid buggy behaviour (favourites not in the serverlist would be denied to connect to, etc).
2016-04-22Fix mainmenu code downloading the public serverlist twice.Ekdohibs
Also, fix a nil error that can happen sometimes in menu_handle_key_up_down
2016-04-20Mainmenu: Code cleaningkilbith
2016-04-20Mainmenu: Unify favorite servers with main serverlistkilbith
2016-04-15Mainmenu: Still support favorites if send_pre_v25_init is disabledest31
@SmallJoker has noted a bug that servers from the (local) main menu favorites list can't be opened. This commit fixes the bug by disabling any main menu based protocol checks for servers from the favorite list. Also, it fixes a second bug that happens when a server from the public serverlist doesn't send its supported protocol versions, most likely because its running a minetest older than commit [1]. Then we have shown an error msg that the server has enforced one specific protocol version. This was most likely not the case. Of course, we can't do anything better than do an assumption on the protocol versions if they are not known. That assumption should however be closest to the most often occuring case as possible. Also, some little cleanups. [1]: 5a0ed780f56a5225b3d7c5f64099586e390e5f39 "Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist"
2016-04-15mainmenu: Tidy up logic in is_server_protocol_compat() (#3997)SmallJoker
Apply de morgan to simplify the logic.
2016-03-15Add option to not send pre v25 init packetest31
The legacy init packet (pre v25) sends information about the client's password that a server could use to log in to other servers if the username and password are the same. All the other benefits of SRP of protocol v25 are missed if the legacy init packet is still sent during connection creation. This patch adds an option to not send the v25 init packet. Not sending the v25 packet means breaking compat with pre v25 servers, but as the option is not enabled by default, no servers are affected unless the user explicitly flips the switch. More than 90% of the servers on the serverlist support post v25 protocols. The patch also fixes a bug with greying out of non compliant servers being done wrongly, the min and max params were mixed.
2016-03-06Faster insertion into tableRui914
2015-10-24Better gettext support for protocol version mismatch messagesest31
Previously, xgettext failed to resolve the dynamic call. Thanks to @JakubVanek for pointing this out.
2015-08-14Don't do formspec escaping twice for loading descriptionest31
2015-07-02Set server_announce to world.mt and respect modes when changing subgameSokomine
2015-07-01Fix world.mt not written when selecting modeSokomine
2015-06-30Fix single click world selectest31
2015-06-30Fix bugs in mainmenujeanpatrick.guerrero@gmail.com
2015-06-09More reliable serverlist behaviourHybridDog
-> remember the previously loaded serverlist, and use if new one failed -> show a "loading" serverlist
2015-03-25Remove duplicate code since 8ca08a850ff2494652aa0ac2daa3d00f03aa4e7aLoic Blot
2015-03-18Save creative_mode and enable_damage setting for each world in world.mtfz72
Create Parameters on world initialisation and set settings of old worlds
2015-02-18Server: announce MIN/MAX protocol version supported to serverlist. Client: ↵est31
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-01-04Fix forgotten favourite list image update of simple menusapier
2014-12-30Ignore downloaded public serverlist if public_serverlist is falseKahrl
Fixes #1807: When the server list finishes downloading, the local server list resets in certain conditions
2014-12-13Display serverlist flags as iconsKahrl
2014-05-16Add formspec toolkit and refactor mainmenu to use itsapier
Fix crash on using cursor keys in client menu without selected server Add support for non fixed size tabviews