aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
blob: a36f5413f58f62c23f429cec61be2dba4f8c0383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include <iostream>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <IFileSystem.h>
#include "threading/mutex_auto_lock.h"
#include "util/auth.h"
#include "util/directiontables.h"
#include "util/pointedthing.h"
#include "util/serialize.h"
#include "util/string.h"
#include "util/srp.h"
#include "client.h"
#include "network/clientopcodes.h"
#include "filesys.h"
#include "mapblock_mesh.h"
#include "mapblock.h"
#include "minimap.h"
#include "mods.h"
#include "profiler.h"
#include "gettext.h"
#include "clientmap.h"
#include "clientmedia.h"
#include "version.h"
#include "drawscene.h"
#include "database-sqlite3.h"
#include "serialization.h"
#include "guiscalingfilter.h"
#include "script/scripting_client.h"
#include "game.h"

extern gui::IGUIEnvironment* guienv;

/*
	Client
*/

Client::Client(
		IrrlichtDevice *device,
		const char *playername,
		const std::string &password,
		const std::string &address_name,
		MapDrawControl &control,
		IWritableTextureSource *tsrc,
		IWritableShaderSource *shsrc,
		IWritableItemDefManager *itemdef,
		IWritableNodeDefManager *nodedef,
		ISoundManager *sound,
		MtEventManager *event,
		bool ipv6,
		GameUIFlags *game_ui_flags
):
	m_packetcounter_timer(0.0),
	m_connection_reinit_timer(0.1),
	m_avg_rtt_timer(0.0),
	m_playerpos_send_timer(0.0),
	m_ignore_damage_timer(0.0),
	m_tsrc(tsrc),
	m_shsrc(shsrc),
	m_itemdef(itemdef),
	m_nodedef(nodedef),
	m_sound(sound),
	m_event(event),
	m_mesh_update_thread(this),
	m_env(
		new ClientMap(this, control,
			device->getSceneManager()->getRootSceneNode(),
			device->getSceneManager(), 666),
		device->getSceneManager(),
		tsrc, this, device
	),
	m_particle_manager(&m_env),
	m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, ipv6, this),
	m_address_name(address_name),
	m_device(device),
	m_camera(NULL),
	m_minimap(NULL),
	m_minimap_disabled_by_server(false),
	m_server_ser_ver(SER_FMT_VER_INVALID),
	m_proto_ver(0),
	m_playeritem(0),
	m_inventory_updated(false),
	m_inventory_from_server(NULL),
	m_inventory_from_server_age(0.0),
	m_animation_time(0),
	m_crack_level(-1),
	m_crack_pos(0,0,0),
	m_map_seed(0),
	m_password(password),
	m_chosen_auth_mech(AUTH_MECHANISM_NONE),
	m_auth_data(NULL),
	m_access_denied(false),
	m_access_denied_reconnect(false),
	m_itemdef_received(false),
	m_nodedef_received(false),
	m_media_downloader(new ClientMediaDownloader()),
	m_time_of_day_set(false),
	m_last_time_of_day_f(-1),
	m_time_of_day_update_timer(0),
	m_recommended_send_interval(0.1),
	m_removed_sounds_check_timer(0),
	m_state(LC_Created),
	m_localdb(NULL),
	m_script(NULL),
	m_mod_storage_save_timer(10.0f),
	m_game_ui_flags(game_ui_flags),
	m_shutdown(false)
{
	// Add local player
	m_env.setLocalPlayer(new LocalPlayer(this, playername));

	if (g_settings->getBool("enable_minimap")) {
		m_minimap = new Minimap(device, this);
	}
	m_cache_save_interval = g_settings->getU16("server_map_save_interval");

	m_modding_enabled = g_settings->getBool("enable_client_modding");
	m_script = new ClientScripting(this);
	m_env.setScript(m_script);
	m_script->setEnv(&m_env);
}

void Client::initMods()
{
	m_script->loadMod(getBuiltinLuaPath() + DIR_DELIM "init.lua", BUILTIN_MOD_NAME);

	// If modding is not enabled, don't load mods, just builtin
	if (!m_modding_enabled) {
		return;
	}

	ClientModConfiguration modconf(getClientModsLuaPath());
	std::vector<ModSpec> mods = modconf.getMods();
	std::vector<ModSpec> unsatisfied_mods = modconf.getUnsatisfiedMods();
	// complain about mods with unsatisfied dependencies
	if (!modconf.isConsistent()) {
		modconf.printUnsatisfiedModsError();
	}

	// Print mods
	infostream << "Client Loading mods: ";
	for (std::vector<ModSpec>::const_iterator i = mods.begin();
		i != mods.end(); ++i) {
		infostream << (*i).name << " ";
	}

	infostream << std::endl;
	// Load and run "mod" scripts
	for (std::vector<ModSpec>::const_iterator it = mods.begin();
		it != mods.end(); ++it) {
		const ModSpec &mod = *it;
		if (!string_allowed(mod.name, MODNAME_ALLOWED_CHARS)) {
			throw ModError("Error loading mod \"" + mod.name +
				"\": Mod name does not follow naming conventions: "
					"Only characters [a-z0-9_] are allowed.");
		}
		std::string script_path = mod.path + DIR_DELIM + "init.lua";
		infostream << "  [" << padStringRight(mod.name, 12) << "] [\""
			<< script_path << "\"]" << std::endl;
		m_script->loadMod(script_path, mod.name);
	}
}

const std::string &Client::getBuiltinLuaPath()
{
	static const std::string builtin_dir = porting::path_share + DIR_DELIM + "builtin";
	return builtin_dir;
}

const std::string &Client::getClientModsLuaPath()
{
	static const std::string clientmods_dir = porting::path_share + DIR_DELIM + "clientmods";
	return clientmods_dir;
}

const std::vector<ModSpec>& Client::getMods() const
{
	static std::vector<ModSpec> client_modspec_temp;
	return client_modspec_temp;
}

const ModSpec* Client::getModSpec(const std::string &modname) const
{
	return NULL;
}

void Client::Stop()
{
	m_shutdown = true;
	// Don't disable this part when modding is disabled, it's used in builtin
	m_script->on_shutdown();
	//request all client managed threads to stop
	m_mesh_update_thread.stop();
	// Save local server map
	if (m_localdb) {
		infostream << "Local map saving ended." << std::endl;
		m_localdb->endSave();
	}

	delete m_script;
}

bool Client::isShutdown()
{
	return m_shutdown || !m_mesh_update_thread.isRunning();
}

Client::~Client()
{
	m_shutdown = true;
	m_con.Disconnect();

	m_mesh_update_thread.stop();
	m_mesh_update_thread.wait();
	while (!m_mesh_update_thread.m_queue_out.empty()) {
		MeshUpdateResult r = m_mesh_update_thread.m_queue_out.pop_frontNoEx();
		delete r.mesh;
	}


	delete m_inventory_from_server;

	// Delete detached inventories
	for (UNORDERED_MAP<std::string, Inventory*>::iterator
			i = m_detached_inventories.begin();
			i != m_detached_inventories.end(); ++i) {
		delete i->second;
	}

	// cleanup 3d model meshes on client shutdown
	while (m_device->getSceneManager()->getMeshCache()->getMeshCount() != 0) {
		scene::IAnimatedMesh *mesh =
			m_device->getSceneManager()->getMeshCache()->getMeshByIndex(0);

		if (mesh != NULL)
			m_device->getSceneManager()->getMeshCache()->removeMesh(mesh);
	}

	delete m_minimap;
}

void Client::connect(Address address, bool is_local_server)
{
	DSTACK(FUNCTION_NAME);

	initLocalMapSaving(address, m_address_name, is_local_server);

	m_con.SetTimeoutMs(0);
	m_con.Connect(address);
}

void Client::step(float dtime)
{
	DSTACK(FUNCTION_NAME);

	// Limit a bit
	if(dtime > 2.0)
		dtime = 2.0;

	if(m_ignore_damage_timer > dtime)
		m_ignore_damage_timer -= dtime;
	else
		m_ignore_damage_timer = 0.0;

	m_animation_time += dtime;
	if(m_animation_time > 60.0)
		m_animation_time -= 60.0;

	m_time_of_day_update_timer += dtime;

	ReceiveAll();

	/*
		Packet counter
	*/
	{
		float &counter = m_packetcounter_timer;
		counter -= dtime;
		if(counter <= 0.0)
		{
			counter = 20.0;

			infostream << "Client packetcounter (" << m_packetcounter_timer
					<< "):"<<std::endl;
			m_packetcounter.print(infostream);
			m_packetcounter.clear();
		}
	}

	// UGLY hack to fix 2 second startup delay caused by non existent
	// server client startup synchronization in local server or singleplayer mode
	static bool initial_step = true;
	if (initial_step) {
		initial_step = false;
	}
	else if(m_state == LC_Created) {
		float &counter = m_connection_reinit_timer;
		counter -= dtime;
		if(counter <= 0.0) {
			counter = 2.0;

			LocalPlayer *myplayer = m_env.getLocalPlayer();
			FATAL_ERROR_IF(myplayer == NULL, "Local player not found in environment.");

			u16 proto_version_min = g_settings->getFlag("send_pre_v25_init") ?
				CLIENT_PROTOCOL_VERSION_MIN_LEGACY : CLIENT_PROTOCOL_VERSION_MIN;

			if (proto_version_min < 25) {
				// Send TOSERVER_INIT_LEGACY
				// [0] u16 TOSERVER_INIT_LEGACY
				// [2] u8 SER_FMT_VER_HIGHEST_READ
				// [3] u8[20] player_name
				// [23] u8[28] password (new in some version)
				// [51] u16 minimum supported network protocol version (added sometime)
				// [53] u16 maximum supported network protocol version (added later than the previous one)

				char pName[PLAYERNAME_SIZE];
				char pPassword[PASSWORD_SIZE];
				memset(pName, 0, PLAYERNAME_SIZE * sizeof(char));
				memset(pPassword, 0, PASSWORD_SIZE * sizeof(char));

				std::string hashed_password = translate_password(myplayer->getName(), m_password);
				snprintf(pName, PLAYERNAME_SIZE, "%s", myplayer->getName());
				snprintf(pPassword, PASSWORD_SIZE, "%s", hashed_password.c_str());

				sendLegacyInit(pName, pPassword);
			}
			if (CLIENT_PROTOCOL_VERSION_MAX >= 25)
				sendInit(myplayer->getName());
		}

		// Not connected, return
		return;
	}

	/*
		Do stuff if connected
	*/

	/*
		Run Map's timers and unload unused data
	*/
	const float map_timer_and_unload_dtime = 5.25;
	if(m_map_timer_and_unload_interval.step(dtime, map_timer_and_unload_dtime)) {
		ScopeProfiler sp(g_profiler, "Client: map timer and unload");
		std::vector<v3s16> deleted_blocks;
		m_env.getMap().timerUpdate(map_timer_and_unload_dtime,
			g_settings->getFloat("client_unload_unused_data_timeout"),
			g_settings->getS32("client_mapblock_limit"),
			&deleted_blocks);

		/*
			Send info to server
			NOTE: This loop is intentionally iterated the way it is.
		*/

		std::vector<v3s16>::iterator i = deleted_blocks.begin();
		std::vector<v3s16> sendlist;
		for(;;) {
			if(sendlist.size() == 255 || i == deleted_blocks.end()) {
				if(sendlist.empty())
					break;
				/*
					[0] u16 command
					[2] u8 count
					[3] v3s16 pos_0
					[3+6] v3s16 pos_1
					...
				*/

				sendDeletedBlocks(sendlist);

				if(i == deleted_blocks.end())
					break;

				sendlist.clear();
			}

			sendlist.push_back(*i);
			++i;
		}
	}

	/*
		Handle environment
	*/
	// Control local player (0ms)
	LocalPlayer *player = m_env.getLocalPlayer();
	assert(player != NULL);
	player->applyControl(dtime);

	// Step environment
	m_env.step(dtime);
	m_sound->step(dtime);

	/*
		Get events
	*/
	while (m_env.hasClientEnvEvents()) {
		ClientEnvEvent envEvent = m_env.getClientEnvEvent();

		if (envEvent.type == CEE_PLAYER_DAMAGE) {
			if (m_ignore_damage_timer <= 0) {
				u8 damage = envEvent.player_damage.amount;

				if (envEvent.player_damage.send_to_server)
					sendDamage(damage);

				// Add to ClientEvent queue
				ClientEvent event;
				event.type = CE_PLAYER_DAMAGE;
				event.player_damage.amount = damage;
				m_client_event_queue.push(event);
			}
		}
		// Protocol v29 or greater obsoleted this event
		else if (envEvent.type == CEE_PLAYER_BREATH && m_proto_ver < 29) {
			u16 breath = envEvent.player_breath.amount;
			sendBreath(breath);
		}
	}

	/*
		Print some info
	*/
	float &counter = m_avg_rtt_timer;
	counter += dtime;
	if(counter >= 10) {
		counter = 0.0;
		// connectedAndInitialized() is true, peer exists.
		float avg_rtt = getRTT();
		infostream << "Client: avg_rtt=" << avg_rtt << std::endl;
	}

	/*
		Send player position to server
	*/
	{
		float &counter = m_playerpos_send_timer;
		counter += dtime;
		if((m_state == LC_Ready) && (counter >= m_recommended_send_interval))
		{
			counter = 0.0;
			sendPlayerPos();
		}
	}

	/*
		Replace updated meshes
	*/
	{
		int num_processed_meshes = 0;
		while (!m_mesh_update_thread.m_queue_out.empty())
		{
			num_processed_meshes++;

			MinimapMapblock *minimap_mapblock = NULL;
			bool do_mapper_update = true;

			MeshUpdateResult r = m_mesh_update_thread.m_queue_out.pop_frontNoEx();
			MapBlock *block = m_env.getMap().getBlockNoCreateNoEx(r.p);
			if (block) {
				// Delete the old mesh
				if (block->mesh != NULL) {
					delete block->mesh;
					block->mesh = NULL;
				}

				if (r.mesh) {
					minimap_mapblock = r.mesh->moveMinimapMapblock();
					if (minimap_mapblock == NULL)
						do_mapper_update = false;

					bool is_empty = true;
					for (int l = 0; l < MAX_TILE_LAYERS; l++)
						if (r.mesh->getMesh(l)->getMeshBufferCount() != 0)
							is_empty = false;

					if (is_empty)
						delete r.mesh;
					else
						// Replace with the new mesh
						block->mesh = r.mesh;
				}
			} else {
				delete r.mesh;
			}

			if (m_minimap && do_mapper_update)
				m_minimap->addBlock(r.p, minimap_mapblock);

			if (r.ack_block_to_server) {
				/*
					Acknowledge block
					[0] u8 count
					[1] v3s16 pos_0
				*/
				sendGotBlocks(r.p);
			}
		}

		if (num_processed_meshes > 0)
			g_profiler->graphAdd("num_processed_meshes", num_processed_meshes);
	}

	/*
		Load fetched media
	*/
	if (m_media_downloader && m_media_downloader->isStarted()) {
		m_media_downloader->step(this);
		if (m_media_downloader->isDone()) {
			delete m_media_downloader;
			m_media_downloader = NULL;
		}
	}

	/*
		If the server didn't update the inventory in a while, revert
		the local inventory (so the player notices the lag problem
		and knows something is wrong).
	*/
	if(m_inventory_from_server)
	{
		float interval = 10.0;
		float count_before = floor(m_inventory_from_server_age / interval);

		m_inventory_from_server_age += dtime;

		float count_after = floor(m_inventory_from_server_age / interval);

		if(count_after != count_before)
		{
			// Do this every <interval> seconds after TOCLIENT_INVENTORY
			// Reset the locally changed inventory to the authoritative inventory
			LocalPlayer *player = m_env.getLocalPlayer();
			player->inventory = *m_inventory_from_server;
			m_inventory_updated = true;
		}
	}

	/*
		Update positions of sounds attached to objects
	*/
	{
		for(UNORDERED_MAP<int, u16>::iterator i = m_sounds_to_objects.begin();
				i != m_sounds_to_objects.end(); ++i) {
			int client_id = i->first;
			u16 object_id = i->second;
			ClientActiveObject *cao = m_env.getActiveObject(object_id);
			if(!cao)
				continue;
			v3f pos = cao->getPosition();
			m_sound->updateSoundPosition(client_id, pos);
		}
	}

	/*
		Handle removed remotely initiated sounds
	*/
	m_removed_sounds_check_timer += dtime;
	if(m_removed_sounds_check_timer >= 2.32) {
		m_removed_sounds_check_timer = 0;
		// Find removed sounds and clear references to them
		std::vector<s32> removed_server_ids;
		for(UNORDERED_MAP<s32, int>::iterator i = m_sounds_server_to_client.begin();
				i != m_sounds_server_to_client.end();) {
			s32 server_id = i->first;
			int client_id = i->second;
			++i;
			if(!m_sound->soundExists(client_id)) {
				m_sounds_server_to_client.erase(server_id);
				m_sounds_client_to_server.erase(client_id);
				m_sounds_to_objects.erase(client_id);
				removed_server_ids.push_back(server_id);
			}
		}

		// Sync to server
		if(!removed_server_ids.empty()) {
			sendRemovedSounds(removed_server_ids);
		}
	}

	m_mod_storage_save_timer -= dtime;
	if (m_mod_storage_save_timer <= 0.0f) {
		verbosestream << "Saving registered mod storages." << std::endl;
		m_mod_storage_save_timer = g_settings->getFloat("server_map_save_interval");
		for (UNORDERED_MAP<std::string, ModMetadata *>::const_iterator
				it = m_mod_storages.begin(); it != m_mod_storages.end(); ++it) {
			if (it->second->isModified()) {
				it->second->save(getModStoragePath());
			}
		}
	}

	// Write server map
	if (m_localdb && m_localdb_save_interval.step(dtime,
			m_cache_save_interval)) {
		m_localdb->endSave();
		m_localdb->beginSave();
	}
}

bool Client::loadMedia(const std::string &data, const std::string &filename)
{
	// Silly irrlicht's const-incorrectness
	Buffer<char> data_rw(data.c_str(), data.size());

	std::string name;

	const char *image_ext[] = {
		".png", ".jpg", ".bmp", ".tga",
		".pcx", ".ppm", ".psd", ".wal", ".rgb",
		NULL
	};
	name = removeStringEnd(filename, image_ext);
	if(name != "")
	{
		verbosestream<<"Client: Attempting to load image "
		<<"file \""<<filename<<"\""<<std::endl;

		io::IFileSystem *irrfs = m_device->getFileSystem();
		video::IVideoDriver *vdrv = m_device->getVideoDriver();

		// Create an irrlicht memory file
		io::IReadFile *rfile = irrfs->createMemoryReadFile(
				*data_rw, data_rw.getSize(), "_tempreadfile");

		FATAL_ERROR_IF(!rfile, "Could not create irrlicht memory file.");

		// Read image
		video::IImage *img = vdrv->createImageFromFile(rfile);
		if(!img){
			errorstream<<"Client: Cannot create image from data of "
					<<"file \""<<filename<<"\""<<std::endl;
			rfile->drop();
			return false;
		}
		else {
			m_tsrc->insertSourceImage(filename, img);
			img->drop();
			rfile->drop();
			return true;
		}
	}

	const char *sound_ext[] = {
		".0.ogg", ".1.ogg", ".2.ogg", ".3.ogg", ".4.ogg",
		".5.ogg", ".6.ogg", ".7.ogg", ".8.ogg", ".9.ogg",
		".ogg", NULL
	};
	name = removeStringEnd(filename, sound_ext);
	if(name != "")
	{
		verbosestream<<"Client: Attempting to load sound "
		<<"file \""<<filename<<"\""<<std::endl;
		m_sound->loadSoundData(name, data);
		return true;
	}

	const char *model_ext[] = {
		".x", ".b3d", ".md2", ".obj",
		NULL
	};
	name = removeStringEnd(filename, model_ext);
	if(name != "")
	{
		verbosestream<<"Client: Storing model into memory: "
				<<"\""<<filename<<"\""<<std::endl;
		if(m_mesh_data.count(filename))
			errorstream<<"Multiple models with name \""<<filename.c_str()
					<<"\" found; replacing previous model"<<std::endl;
		m_mesh_data[filename] = data;
		return true;
	}

	errorstream<<"Client: Don't know how to load file \""
			<<filename<<"\""<<std::endl;
	return false;
}

// Virtual methods from con::PeerHandler
void Client::peerAdded(con::Peer *peer)
{
	infostream << "Client::peerAdded(): peer->id="
			<< peer->id << std::endl;
}
void Client::deletingPeer(con::Peer *peer, bool timeout)
{
	infostream << "Client::deletingPeer(): "
			"Server Peer is getting deleted "
			<< "(timeout=" << timeout << ")" << std::endl;

	if (timeout) {
		m_access_denied = true;
		m_access_denied_reason = gettext("Connection timed out.");
	}
}

/*
	u16 command
	u16 number of files requested
	for each file {
		u16 length of name
		string name
	}
*/
void Client::request_media(const std::vector<std::string> &file_requests)
{
	std::ostringstream os(std::ios_base::binary);
	writeU16(os, TOSERVER_REQUEST_MEDIA);
	size_t file_requests_size = file_requests.size();

	FATAL_ERROR_IF(file_requests_size > 0xFFFF, "Unsupported number of file requests");

	// Packet dynamicly resized
	NetworkPacket pkt(TOSERVER_REQUEST_MEDIA, 2 + 0);

	pkt << (u16) (file_requests_size & 0xFFFF);

	for(std::vector<std::string>::const_iterator i = file_requests.begin();
			i != file_requests.end(); ++i) {
		pkt << (*i);
	}

	Send(&pkt);

	infostream << "Client: Sending media request list to server ("
			<< file_requests.size() << " files. packet size)" << std::endl;
}

void Client::initLocalMapSaving(const Address &address,
		const std::string &hostname,
		bool is_local_server)
{
	if (!g_settings->getBool("enable_local_map_saving") || is_local_server) {
		return;
	}

	const std::string world_path = porting::path_user
		+ DIR_DELIM + "worlds"
		+ DIR_DELIM + "server_"
		+ hostname + "_" + std::to_string(address.getPort());

	fs::CreateAllDirs(world_path);

	m_localdb = new MapDatabaseSQLite3(world_path);
	m_localdb->beginSave();
	actionstream << "Local map saving started, map will be saved at '" << world_path << "'" << std::endl;
}

void Client::ReceiveAll()
{
	DSTACK(FUNCTION_NAME);
	u64 start_ms = porting::getTimeMs();
	for(;;)
	{
		// Limit time even if there would be huge amounts of data to
		// process
		if(porting::getTimeMs() > start_ms + 100)
			break;

		try {
			Receive();
			g_profiler->graphAdd("client_received_packets", 1);
		}
		catch(con::NoIncomingDataException &e) {
			break;
		}
		catch(con::InvalidIncomingDataException &e) {
			infostream<<"Client::ReceiveAll(): "
					"InvalidIncomingDataException: what()="
					<<e.what()<<std::endl;
		}
	}
}

void Client::Receive()
{
	DSTACK(FUNCTION_NAME);
	NetworkPacket pkt;
	m_con.Receive(&pkt);
	ProcessData(&pkt);
}

inline void Client::handleCommand(NetworkPacket* pkt)
{
	const ToClientCommandHandler& opHandle = toClientCommandTable[pkt->getCommand()];
	(this->*opHandle.handler)(pkt);
}

/*
	sender_peer_id given to this shall be quaranteed to be a valid peer
*/
void Client::ProcessData(NetworkPacket *pkt)
{
	DSTACK(FUNCTION_NAME);

	ToClientCommand command = (ToClientCommand) pkt->getCommand();
	u32 sender_peer_id = pkt->getPeerId();

	//infostream<<"Client: received command="<<command<<std::endl;
	m_packetcounter.add((u16)command);

	/*
		If this check is removed, be sure to change the queue
		system to know the ids
	*/
	if(sender_peer_id != PEER_ID_SERVER) {
		infostream << "Client::ProcessData(): Discarding data not "
			"coming from server: peer_id=" << sender_peer_id
			<< std::endl;
		return;
	}

	// Command must be handled into ToClientCommandHandler
	if (command >= TOCLIENT_NUM_MSG_TYPES) {
		infostream << "Client: Ignoring unknown command "
			<< command << std::endl;
		return;
	}

	/*
	 * Those packets are handled before m_server_ser_ver is set, it's normal
	 * But we must use the new ToClientConnectionState in the future,
	 * as a byte mask
	 */
	if(toClientCommandTable[command].state == TOCLIENT_STATE_NOT_CONNECTED) {
		handleCommand(pkt);
		return;
	}

	if(m_server_ser_ver == SER_FMT_VER_INVALID) {
		infostream << "Client: Server serialization"
				" format invalid or not initialized."
				" Skipping incoming command=" << command << std::endl;
		return;
	}

	/*
	  Handle runtime commands
	*/

	handleCommand(pkt);
}

void Client::Send(NetworkPacket* pkt)
{
	m_con.Send(PEER_ID_SERVER,
		serverCommandFactoryTable[pkt->getCommand()].channel,
		pkt,
		serverCommandFactoryTable[pkt->getCommand()].reliable);
}

// Will fill up 12 + 12 + 4 + 4 + 4 bytes
void writePlayerPos(LocalPlayer *myplayer, ClientMap *clientMap, NetworkPacket *pkt)
{
	v3f pf           = myplayer->getPosition() * 100;
	v3f sf           = myplayer->getSpeed() * 100;
	s32 pitch        = myplayer->getPitch() * 100;
	s32 yaw          = myplayer->getYaw() * 100;
	u32 keyPressed   = myplayer->keyPressed;
	// scaled by 80, so that pi can fit into a u8
	u8 fov           = clientMap->getCameraFov() * 80;
	u8 wanted_range  = MYMIN(255,
			std::ceil(clientMap->getControl().wanted_range / MAP_BLOCKSIZE));

	v3s32 position(pf.X, pf.Y, pf.Z);
	v3s32 speed(sf.X, sf.Y, sf.Z);

	/*
		Format:
		[0] v3s32 position*100
		[12] v3s32 speed*100
		[12+12] s32 pitch*100
		[12+12+4] s32 yaw*100
		[12+12+4+4] u32 keyPressed
		[12+12+4+4+4] u8 fov*80
		[12+12+4+4+4+1] u8 ceil(wanted_range / MAP_BLOCKSIZE)
	*/
	*pkt << position << speed << pitch << yaw << keyPressed;
	*pkt << fov << wanted_range;
}

void Client::interact(u8 action, const PointedThing& pointed)
{
	if(m_state != LC_Ready) {
		errorstream << "Client::interact() "
				"Canceled (not connected)"
				<< std::endl;
		return;
	}

	LocalPlayer *myplayer = m_env.getLocalPlayer();
	if (myplayer == NULL)
		return;

	/*
		[0] u16 command
		[2] u8 action
		[3] u16 item
		[5] u32 length of the next item (plen)
		[9] serialized PointedThing
		[9 + plen] player position information
		actions:
		0: start digging (from undersurface) or use
		1: stop digging (all parameters ignored)
		2: digging completed
		3: place block or item (to abovesurface)
		4: use item
		5: perform secondary action of item
	*/

	NetworkPacket pkt(TOSERVER_INTERACT, 1 + 2 + 0);

	pkt << action;
	pkt << (u16)getPlayerItem();

	std::ostringstream tmp_os(std::ios::binary);
	pointed.serialize(tmp_os);

	pkt.putLongString(tmp_os.str());

	writePlayerPos(myplayer, &m_env.getClientMap(), &pkt);

	Send(&pkt);
}

void Client::deleteAuthData()
{
	if (!m_auth_data)
		return;

	switch (m_chosen_auth_mech) {
		case AUTH_MECHANISM_FIRST_SRP:
			break;
		case AUTH_MECHANISM_SRP:
		case AUTH_MECHANISM_LEGACY_PASSWORD:
			srp_user_delete((SRPUser *) m_auth_data);
			m_auth_data = NULL;
			break;
		case AUTH_MECHANISM_NONE:
			break;
	}
	m_chosen_auth_mech = AUTH_MECHANISM_NONE;
}


AuthMechanism Client::choseAuthMech(const u32 mechs)
{
	if (mechs & AUTH_MECHANISM_SRP)
		return AUTH_MECHANISM_SRP;

	if (mechs & AUTH_MECHANISM_FIRST_SRP)
		return AUTH_MECHANISM_FIRST_SRP;

	if (mechs & AUTH_MECHANISM_LEGACY_PASSWORD)
		return AUTH_MECHANISM_LEGACY_PASSWORD;

	return AUTH_MECHANISM_NONE;
}

void Client::sendLegacyInit(const char* playerName, const char* playerPassword)
{
	NetworkPacket pkt(TOSERVER_INIT_LEGACY,
			1 + PLAYERNAME_SIZE + PASSWORD_SIZE + 2 + 2);

	u16 proto_version_min = g_settings->getFlag("send_pre_v25_init") ?
		CLIENT_PROTOCOL_VERSION_MIN_LEGACY : CLIENT_PROTOCOL_VERSION_MIN;

	pkt << (u8) SER_FMT_VER_HIGHEST_READ;
	pkt.putRawString(playerName,PLAYERNAME_SIZE);
	pkt.putRawString(playerPassword, PASSWORD_SIZE);
	pkt << (u16) proto_version_min << (u16) CLIENT_PROTOCOL_VERSION_MAX;

	Send(&pkt);
}

void Client::sendInit(const std::string &playerName)
{
	NetworkPacket pkt(TOSERVER_INIT, 1 + 2 + 2 + (1 + playerName.size()));

	// we don't support network compression yet
	u16 supp_comp_modes = NETPROTO_COMPRESSION_NONE;

	u16 proto_version_min = g_settings->getFlag("send_pre_v25_init") ?
		CLIENT_PROTOCOL_VERSION_MIN_LEGACY : CLIENT_PROTOCOL_VERSION_MIN;

	pkt << (u8) SER_FMT_VER_HIGHEST_READ << (u16) supp_comp_modes;
	pkt << (u16) proto_version_min << (u16) CLIENT_PROTOCOL_VERSION_MAX;
	pkt << playerName;

	Send(&pkt);
}

void Client::startAuth(AuthMechanism chosen_auth_mechanism)
{
	m_chosen_auth_mech = chosen_auth_mechanism;

	switch (chosen_auth_mechanism) {
		case AUTH_MECHANISM_FIRST_SRP: {
			// send srp verifier to server
			std::string verifier;
			std::string salt;
			generate_srp_verifier_and_salt(getPlayerName(), m_password,
				&verifier, &salt);

			NetworkPacket resp_pkt(TOSERVER_FIRST_SRP, 0);
			resp_pkt << salt << verifier << (u8)((m_password == "") ? 1 : 0);

			Send(&resp_pkt);
			break;
		}
		case AUTH_MECHANISM_SRP:
		case AUTH_MECHANISM_LEGACY_PASSWORD: {
			u8 based_on = 1;

			if (chosen_auth_mechanism == AUTH_MECHANISM_LEGACY_PASSWORD) {
				m_password = translate_password(getPlayerName(), m_password);
				based_on = 0;
			}

			std::string playername_u = lowercase(getPlayerName());
			m_auth_data = srp_user_new(SRP_SHA256, SRP_NG_2048,
				getPlayerName().c_str(), playername_u.c_str(),
				(const unsigned char *) m_password.c_str(),
				m_password.length(), NULL, NULL);
			char *bytes_A = 0;
			size_t len_A = 0;
			SRP_Result res = srp_user_start_authentication(
				(struct SRPUser *) m_auth_data, NULL, NULL, 0,
				(unsigned char **) &bytes_A, &len_A);
			FATAL_ERROR_IF(res != SRP_OK, "Creating local SRP user failed.");

			NetworkPacket resp_pkt(TOSERVER_SRP_BYTES_A, 0);
			resp_pkt << std::string(bytes_A, len_A) << based_on;
			Send(&resp_pkt);
			break;
		}
		case AUTH_MECHANISM_NONE:
			break; // not handled in this method
	}
}

void Client::sendDeletedBlocks(std::vector<v3s16> &blocks)
{
	NetworkPacket pkt(TOSERVER_DELETEDBLOCKS, 1 + sizeof(v3s16) * blocks.size());

	pkt << (u8) blocks.size();

	u32 k = 0;
	for(std::vector<v3s16>::iterator
			j = blocks.begin();
			j != blocks.end(); ++j) {
		pkt << *j;
		k++;
	}

	Send(&pkt);
}

void Client::sendGotBlocks(v3s16 block)
{
	NetworkPacket pkt(TOSERVER_GOTBLOCKS, 1 + 6);
	pkt << (u8) 1 << block;
	Send(&pkt);
}

void Client::sendRemovedSounds(std::vector<s32> &soundList)
{
	size_t server_ids = soundList.size();
	assert(server_ids <= 0xFFFF);

	NetworkPacket pkt(TOSERVER_REMOVED_SOUNDS, 2 + server_ids * 4);

	pkt << (u16) (server_ids & 0xFFFF);

	for(std::vector<s32>::iterator i = soundList.begin();
			i != soundList.end(); ++i)
		pkt << *i;

	Send(&pkt);
}

void Client::sendNodemetaFields(v3s16 p, const std::string &formname,
		const StringMap &fields)
{
	size_t fields_size = fields.size();

	FATAL_ERROR_IF(fields_size > 0xFFFF, "Unsupported number of nodemeta fields");

	NetworkPacket pkt(TOSERVER_NODEMETA_FIELDS, 0);

	pkt << p << formname << (u16) (fields_size & 0xFFFF);

	StringMap::const_iterator it;
	for (it = fields.begin(); it != fields.end(); ++it) {
		const std::string &name = it->first;
		const std::string &value = it->second;
		pkt << name;
		pkt.putLongString(value);
	}

	Send(&pkt);
}

void Client::sendInventoryFields(const std::string &formname,
		const StringMap &fields)
{
	size_t fields_size = fields.size();
	FATAL_ERROR_IF(fields_size > 0xFFFF, "Unsupported number of inventory fields");

	NetworkPacket pkt(TOSERVER_INVENTORY_FIELDS, 0);
	pkt << formname << (u16) (fields_size & 0xFFFF);

	StringMap::const_iterator it;
	for (it = fields.begin(); it != fields.end(); ++it) {
		const std::string &name  = it->first;
		const std::string &value = it->second;
		pkt << name;
		pkt.putLongString(value);
	}

	Send(&pkt);
}

void Client::sendInventoryAction(InventoryAction *a)
{
	std::ostringstream os(std::ios_base::binary);

	a->serialize(os);

	// Make data buffer
	std::string s = os.str();

	NetworkPacket pkt(TOSERVER_INVENTORY_ACTION, s.size());
	pkt.putRawString(s.c_str(),s.size());

	Send(&pkt);
}

void Client::sendChatMessage(const std::wstring &message)
{
	NetworkPacket pkt(TOSERVER_CHAT_MESSAGE, 2 + message.size() * sizeof(u16));

	pkt << message;

	Send(&pkt);
}

void Client::sendChangePassword(const std::string &oldpassword,
        const std::string &newpassword)
{
	LocalPlayer *player = m_env.getLocalPlayer();
	if (player == NULL)
		return;

	std::string playername = player->getName();
	if (m_proto_ver >= 25) {
		// get into sudo mode and then send new password to server
		m_password = oldpassword;
		m_new_password = newpassword;
		startAuth(choseAuthMech(m_sudo_auth_methods));
	} else {
		std::string oldpwd = translate_password(playername, oldpassword);
		std::string newpwd = translate_password(playername, newpassword);

		NetworkPacket pkt(TOSERVER_PASSWORD_LEGACY, 2 * PASSWORD_SIZE);

		for (u8 i = 0; i < PASSWORD_SIZE; i++) {
			pkt << (u8) (i < oldpwd.length() ? oldpwd[i] : 0);
		}

		for (u8 i = 0; i < PASSWORD_SIZE; i++) {
			pkt << (u8) (i < newpwd.length() ? newpwd[i] : 0);
		}
		Send(&pkt);
	}
}


void Client::sendDamage(u8 damage)
{
	DSTACK(FUNCTION_NAME);

	NetworkPacket pkt(TOSERVER_DAMAGE, sizeof(u8));
	pkt << damage;
	Send(&pkt);
}

void Client::sendBreath(u16 breath)
{
	DSTACK(FUNCTION_NAME);

	// Protocol v29 make this obsolete
	if (m_proto_ver >= 29)
		return;

	NetworkPacket pkt(TOSERVER_BREATH, sizeof(u16));
	pkt << breath;
	Send(&pkt);
}

void Client::sendRespawn()
{
	DSTACK(FUNCTION_NAME);

	NetworkPacket pkt(TOSERVER_RESPAWN, 0);
	Send(&pkt);
}

void Client::sendReady()
{
	DSTACK(FUNCTION_NAME);

	NetworkPacket pkt(TOSERVER_CLIENT_READY,
			1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash));

	pkt << (u8) VERSION_MAJOR << (u8) VERSION_MINOR << (u8) VERSION_PATCH
		<< (u8) 0 << (u16) strlen(g_version_hash);

	pkt.putRawString(g_version_hash, (u16) strlen(g_version_hash));
	Send(&pkt);
}

void Client::sendPlayerPos()
{
	LocalPlayer *myplayer = m_env.getLocalPlayer();
	if(myplayer == NULL)
		return;

	ClientMap &map = m_env.getClientMap();

	u8 camera_fov    = map.getCameraFov();
	u8 wanted_range  = map.getControl().wanted_range;

	// Save bandwidth by only updating position when something changed
	if(myplayer->last_position        == myplayer->getPosition() &&
			myplayer->last_speed        == myplayer->getSpeed()    &&
			myplayer->last_pitch        == myplayer->getPitch()    &&
			myplayer->last_yaw          == myplayer->getYaw()      &&
			myplayer->last_keyPressed   == myplayer->keyPressed    &&
			myplayer->last_camera_fov   == camera_fov              &&
			myplayer->last_wanted_range == wanted_range)
		return;

	myplayer->last_position     = myplayer->getPosition();
	myplayer->last_speed        = myplayer->getSpeed();
	myplayer->last_pitch        = myplayer->getPitch();
	myplayer->last_yaw          = myplayer->getYaw();
	myplayer->last_keyPressed   = myplayer->keyPressed;
	myplayer->last_camera_fov   = camera_fov;
	myplayer->last_wanted_range = wanted_range;

	//infostream << "Sending Player Position information" << std::endl;

	u16 our_peer_id;
	{
		//MutexAutoLock lock(m_con_mutex); //bulk comment-out
		our_peer_id = m_con.GetPeerID();
	}

	// Set peer id if not set already
	if(myplayer->peer_id == PEER_ID_INEXISTENT)
		myplayer->peer_id = our_peer_id;

	assert(myplayer->peer_id == our_peer_id);

	NetworkPacket pkt(TOSERVER_PLAYERPOS, 12 + 12 + 4 + 4 + 4 + 1 + 1);

	writePlayerPos(myplayer, &map, &pkt);

	Send(&pkt);
}

void Client::sendPlayerItem(u16 item)
{
	LocalPlayer *myplayer = m_env.getLocalPlayer();
	if(myplayer == NULL)
		return;

	u16 our_peer_id = m_con.GetPeerID();

	// Set peer id if not set already
	if(myplayer->peer_id == PEER_ID_INEXISTENT)
		myplayer->peer_id = our_peer_id;
	assert(myplayer->peer_id == our_peer_id);

	NetworkPacket pkt(TOSERVER_PLAYERITEM, 2);

	pkt << item;

	Send(&pkt);
}

void Client::removeNode(v3s16 p)
{
	std::map<v3s16, MapBlock*> modified_blocks;

	try {
		m_env.getMap().removeNodeAndUpdate(p, modified_blocks);
	}
	catch(InvalidPositionException &e) {
	}

	for(std::map<v3s16, MapBlock *>::iterator
			i = modified_blocks.begin();
			i != modified_blocks.end(); ++i) {
		addUpdateMeshTaskWithEdge(i->first, false, true);
	}
}

MapNode Client::getNode(v3s16 p, bool *is_valid_position)
{
	return m_env.getMap().getNodeNoEx(p, is_valid_position);
}

void Client::addNode(v3s16 p, MapNode n, bool remove_metadata)
{
	//TimeTaker timer1("Client::addNode()");

	std::map<v3s16, MapBlock*> modified_blocks;

	try {
		//TimeTaker timer3("Client::addNode(): addNodeAndUpdate");
		m_env.getMap().addNodeAndUpdate(p, n, modified_blocks, remove_metadata);
	}
	catch(InvalidPositionException &e) {
	}

	for(std::map<v3s16, MapBlock *>::iterator
			i = modified_blocks.begin();
			i != modified_blocks.end(); ++i) {
		addUpdateMeshTaskWithEdge(i->first, false, true);
	}
}

void Client::setPlayerControl(PlayerControl &control)
{
	LocalPlayer *player = m_env.getLocalPlayer();
	assert(player != NULL);
	player->control = control;
}

void Client::selectPlayerItem(u16 item)
{
	m_playeritem = item;
	m_inventory_updated = true;
	sendPlayerItem(item);
}

// Returns true if the inventory of the local player has been
// updated from the server. If it is true, it is set to false.
bool Client::getLocalInventoryUpdated()
{
	bool updated = m_inventory_updated;
	m_inventory_updated = false;
	return updated;
}

// Copies the inventory of the local player to parameter
void Client::getLocalInventory(Inventory &dst)
{
	LocalPlayer *player = m_env.getLocalPlayer();
	assert(player != NULL);
	dst = player->inventory;
}

Inventory* Client::getInventory(const InventoryLocation &loc)
{
	switch(loc.type){
	case InventoryLocation::UNDEFINED:
	{}
	break;
	case InventoryLocation::CURRENT_PLAYER:
	{
		LocalPlayer *player = m_env.getLocalPlayer();
		assert(player != NULL);
		return &player->inventory;
	}
	break;
	case InventoryLocation::PLAYER:
	{
		// Check if we are working with local player inventory
		LocalPlayer *player = m_env.getLocalPlayer();
		if (!player || strcmp(player->getName(), loc.name.c_str()) != 0)
			return NULL;
		return &player->inventory;
	}
	break;
	case InventoryLocation::NODEMETA:
	{
		NodeMetadata *meta = m_env.getMap().getNodeMetadata(loc.p);
		if(!meta)
			return NULL;
		return meta->getInventory();
	}
	break;
	case InventoryLocation::DETACHED:
	{
		if (m_detached_inventories.count(loc.name) == 0)
			return NULL;
		return m_detached_inventories[loc.name];
	}
	break;
	default:
		FATAL_ERROR("Invalid inventory location type.");
		break;
	}
	return NULL;
}

void Client::inventoryAction(InventoryAction *a)
{
	/*
		Send it to the server
	*/
	sendInventoryAction(a);

	/*
		Predict some local inventory changes
	*/
	a->clientApply(this, this);

	// Remove it
	delete a;
}

float Client::getAnimationTime()
{
	return m_animation_time;
}

int Client::getCrackLevel()
{
	return m_crack_level;
}

v3s16 Client::getCrackPos()
{
	return m_crack_pos;
}

void Client::setCrack(int level, v3s16 pos)
{
	int old_crack_level = m_crack_level;
	v3s16 old_crack_pos = m_crack_pos;

	m_crack_level = level;
	m_crack_pos = pos;

	if(old_crack_level >= 0 && (level < 0 || pos != old_crack_pos))
	{
		// remove old crack
		addUpdateMeshTaskForNode(old_crack_pos, false, true);
	}
	if(level >= 0 && (old_crack_level < 0 || pos != old_crack_pos))
	{
		// add new crack
		addUpdateMeshTaskForNode(pos, false, true);
	}
}

u16 Client::getHP()
{
	LocalPlayer *player = m_env.getLocalPlayer();
	assert(player != NULL);
	return player->hp;
}

bool Client::getChatMessage(std::wstring &message)
{
	if(m_chat_queue.size() == 0)
		return false;
	message = m_chat_queue.front();
	m_chat_queue.pop();
	return true;
}

void Client::typeChatMessage(const std::wstring &message)
{
	// Discard empty line
	if(message == L"")
		return;

	// If message was ate by script API, don't send it to server
	if (m_script->on_sending_message(wide_to_utf8(message))) {
		return;
	}

	// Send to others
	sendChatMessage(message);

	// Show locally
	if (message[0] != L'/')
	{
		// compatibility code
		if (m_proto_ver < 29) {
			LocalPlayer *player = m_env.getLocalPlayer();
			assert(player != NULL);
			std::wstring name = narrow_to_wide(player->getName());
			pushToChatQueue((std::wstring)L"<" + name + L"> " + message);
		}
	}
}

void Client::addUpdateMeshTask(v3s16 p, bool ack_to_server, bool urgent)
{
	// Check if the block exists to begin with. In the case when a non-existing
	// neighbor is automatically added, it may not. In that case we don't want
	// to tell the mesh update thread about it.
	MapBlock *b = m_env.getMap().getBlockNoCreateNoEx(p);
	if (b == NULL)
		return;

	m_mesh_update_thread.updateBlock(&m_env.getMap(), p, ack_to_server, urgent);
}

void Client::addUpdateMeshTaskWithEdge(v3s16 blockpos, bool ack_to_server, bool urgent)
{
	try{
		addUpdateMeshTask(blockpos, ack_to_server, urgent);
	}
	catch(InvalidPositionException &e){}

	// Leading edge
	for (int i=0;i<6;i++)
	{
		try{
			v3s16 p = blockpos + g_6dirs[i];
			addUpdateMeshTask(p, false, urgent);
		}
		catch(InvalidPositionException &e){}
	}
}

void Client::addUpdateMeshTaskForNode(v3s16 nodepos, bool ack_to_server, bool urgent)
{
	{
		v3s16 p = nodepos;
		infostream<<"Client::addUpdateMeshTaskForNode(): "
				<<"("<<p.X<<","<<p.Y<<","<<p.Z<<")"
				<<std::endl;
	}

	v3s16 blockpos          = getNodeBlockPos(nodepos);
	v3s16 blockpos_relative = blockpos * MAP_BLOCKSIZE;

	try{
		addUpdateMeshTask(blockpos, ack_to_server, urgent);
	}
	catch(InvalidPositionException &e) {}

	// Leading edge
	if(nodepos.X == blockpos_relative.X){
		try{
			v3s16 p = blockpos + v3s16(-1,0,0);
			addUpdateMeshTask(p, false, urgent);
		}
		catch(InvalidPositionException &e){}
	}

	if(nodepos.Y == blockpos_relative.Y){
		try{
			v3s16 p = blockpos + v3s16(0,-1,0);
			addUpdateMeshTask(p, false, urgent);
		}
		catch(InvalidPositionException &e){}
	}

	if(nodepos.Z == blockpos_relative.Z){
		try{
			v3s16 p = blockpos + v3s16(0,0,-1);
			addUpdateMeshTask(p, false, urgent);
		}
		catch(InvalidPositionException &e){}
	}
}

ClientEvent Client::getClientEvent()
{
	FATAL_ERROR_IF(m_client_event_queue.empty(),
			"Cannot getClientEvent, queue is empty.");

	ClientEvent event = m_client_event_queue.front();
	m_client_event_queue.pop();
	return event;
}

float Client::mediaReceiveProgress()
{
	if (m_media_downloader)
		return m_media_downloader->getProgress();
	else
		return 1.0; // downloader only exists when not yet done
}

typedef struct TextureUpdateArgs {
	IrrlichtDevice *device;
	gui::IGUIEnvironment *guienv;
	u64 last_time_ms;
	u16 last_percent;
	const wchar_t* text_base;
	ITextureSource *tsrc;
} TextureUpdateArgs;

void texture_update_progress(void *args, u32 progress, u32 max_progress)
{
		TextureUpdateArgs* targs = (TextureUpdateArgs*) args;
		u16 cur_percent = ceil(progress / (double) max_progress * 100.);

		// update the loading menu -- if neccessary
		bool do_draw = false;
		u64 time_ms = targs->last_time_ms;
		if (cur_percent != targs->last_percent) {
			targs->last_percent = cur_percent;
			time_ms = porting::getTimeMs();
			// only draw when the user will notice something:
			do_draw = (time_ms - targs->last_time_ms > 100);
		}

		if (do_draw) {
			targs->last_time_ms = time_ms;
			std::basic_stringstream<wchar_t> strm;
			strm << targs->text_base << " " << targs->last_percent << "%...";
			draw_load_screen(strm.str(), targs->device, targs->guienv, targs->tsrc, 0,
				72 + (u16) ((18. / 100.) * (double) targs->last_percent), true);
		}
}

void Client::afterContentReceived(IrrlichtDevice *device)
{
	infostream<<"Client::afterContentReceived() started"<<std::endl;
	assert(m_itemdef_received); // pre-condition
	assert(m_nodedef_received); // pre-condition
	assert(mediaReceived()); // pre-condition

	const wchar_t* text = wgettext("Loading textures...");

	// Clear cached pre-scaled 2D GUI images, as this cache
	// might have images with the same name but different
	// content from previous sessions.
	guiScalingCacheClear(device->getVideoDriver());

	// Rebuild inherited images and recreate textures
	infostream<<"- Rebuilding images and textures"<<std::endl;
	draw_load_screen(text,device, guienv, m_tsrc, 0, 70);
	m_tsrc->rebuildImagesAndTextures();
	delete[] text;

	// Rebuild shaders
	infostream<<"- Rebuilding shaders"<<std::endl;
	text = wgettext("Rebuilding shaders...");
	draw_load_screen(text, device, guienv, m_tsrc, 0, 71);
	m_shsrc->rebuildShaders();
	delete[] text;

	// Update node aliases
	infostream<<"- Updating node aliases"<<std::endl;
	text = wgettext("Initializing nodes...");
	draw_load_screen(text, device, guienv, m_tsrc, 0, 72);
	m_nodedef->updateAliases(m_itemdef);
	std::string texture_path = g_settings->get("texture_path");
	if (texture_path != "" && fs::IsDir(texture_path))
		m_nodedef->applyTextureOverrides(texture_path + DIR_DELIM + "override.txt");
	m_nodedef->setNodeRegistrationStatus(true);
	m_nodedef->runNodeResolveCallbacks();
	delete[] text;

	// Update node textures and assign shaders to each tile
	infostream<<"- Updating node textures"<<std::endl;
	TextureUpdateArgs tu_args;
	tu_args.device = device;
	tu_args.guienv = guienv;
	tu_args.last_time_ms = porting::getTimeMs();
	tu_args.last_percent = 0;
	tu_args.text_base =  wgettext("Initializing nodes");
	tu_args.tsrc = m_tsrc;
	m_nodedef->updateTextures(this, texture_update_progress, &tu_args);
	delete[] tu_args.text_base;

	// Start mesh update thread after setting up content definitions
	infostream<<"- Starting mesh update thread"<<std::endl;
	m_mesh_update_thread.start();

	m_state = LC_Ready;
	sendReady();

	if (g_settings->getBool("enable_client_modding")) {
		m_script->on_client_ready(m_env.getLocalPlayer());
		m_script->on_connect();
	}

	text = wgettext("Done!");
	draw_load_screen(text, device, guienv, m_tsrc, 0, 100);
	infostream<<"Client::afterContentReceived() done"<<std::endl;
	delete[] text;
}

float Client::getRTT()
{
	return m_con.getPeerStat(PEER_ID_SERVER,con::AVG_RTT);
}

float Client::getCurRate()
{
	return (m_con.getLocalStat(con::CUR_INC_RATE) +
			m_con.getLocalStat(con::CUR_DL_RATE));
}

void Client::makeScreenshot(IrrlichtDevice *device)
{
	irr::video::IVideoDriver *driver = device->getVideoDriver();
	irr::video::IImage* const raw_image = driver->createScreenShot();

	if (!raw_image)
		return;

	time_t t = time(NULL);
	struct tm *tm = localtime(&t);

	char timetstamp_c[64];
	strftime(timetstamp_c, sizeof(timetstamp_c), "%Y%m%d_%H%M%S", tm);

	std::string filename_base = g_settings->get("screenshot_path")
			+ DIR_DELIM
			+ std::string("screenshot_")
			+ std::string(timetstamp_c);
	std::string filename_ext = "." + g_settings->get("screenshot_format");
	std::string filename;

	u32 quality = (u32)g_settings->getS32("screenshot_quality");
	quality = MYMIN(MYMAX(quality, 0), 100) / 100.0 * 255;

	// Try to find a unique filename
	unsigned serial = 0;

	while (serial < SCREENSHOT_MAX_SERIAL_TRIES) {
		filename = filename_base + (serial > 0 ? ("_" + itos(serial)) : "") + filename_ext;
		std::ifstream tmp(filename.c_str());
		if (!tmp.good())
			break;	// File did not apparently exist, we'll go with it
		serial++;
	}

	if (serial == SCREENSHOT_MAX_SERIAL_TRIES) {
		infostream << "Could not find suitable filename for screenshot" << std::endl;
	} else {
		irr::video::IImage* const image =
				driver->createImage(video::ECF_R8G8B8, raw_image->getDimension());

		if (image) {
			raw_image->copyTo(image);

			std::ostringstream sstr;
			if (driver->writeImageToFile(image, filename.c_str(), quality)) {
				sstr << "Saved screenshot to '" << filename << "'";
			} else {
				sstr << "Failed to save screenshot '" << filename << "'";
			}
			pushToChatQueue(narrow_to_wide(sstr.str()));
			infostream << sstr.str() << std::endl;
			image->drop();
		}
	}

	raw_image->drop();
}

bool Client::shouldShowMinimap() const
{
	return !m_minimap_disabled_by_server;
}

void Client::showGameChat(const bool show)
{
	m_game_ui_flags->show_chat = show;
}

void Client::showGameHud(const bool show)
{
	m_game_ui_flags->show_hud = show;
}

void Client::showMinimap(const bool show)
{
	m_game_ui_flags->show_minimap = show;
}

void Client::showProfiler(const bool show)
{
	m_game_ui_flags->show_profiler_graph = show;
}

void Client::showGameFog(const bool show)
{
	m_game_ui_flags->force_fog_off = !show;
}

void Client::showGameDebug(const bool show)
{
	m_game_ui_flags->show_debug = show;
}

// IGameDef interface
// Under envlock
IItemDefManager* Client::getItemDefManager()
{
	return m_itemdef;
}
INodeDefManager* Client::getNodeDefManager()
{
	return m_nodedef;
}
ICraftDefManager* Client::getCraftDefManager()
{
	return NULL;
	//return m_craftdef;
}
ITextureSource* Client::getTextureSource()
{
	return m_tsrc;
}
IShaderSource* Client::getShaderSource()
{
	return m_shsrc;
}
scene::ISceneManager* Client::getSceneManager()
{
	return m_device->getSceneManager();
}
u16 Client::allocateUnknownNodeId(const std::string &name)
{
	errorstream << "Client::allocateUnknownNodeId(): "
			<< "Client cannot allocate node IDs" << std::endl;
	FATAL_ERROR("Client allocated unknown node");

	return CONTENT_IGNORE;
}
ISoundManager* Client::getSoundManager()
{
	return m_sound;
}
MtEventManager* Client::getEventManager()
{
	return m_event;
}

ParticleManager* Client::getParticleManager()
{
	return &m_particle_manager;
}

scene::IAnimatedMesh* Client::getMesh(const std::string &filename)
{
	StringMap::const_iterator it = m_mesh_data.find(filename);
	if (it == m_mesh_data.end()) {
		errorstream << "Client::getMesh(): Mesh not found: \"" << filename
			<< "\"" << std::endl;
		return NULL;
	}
	const std::string &data    = it->second;
	scene::ISceneManager *smgr = m_device->getSceneManager();

	// Create the mesh, remove it from cache and return it
	// This allows unique vertex colors and other properties for each instance
	Buffer<char> data_rw(data.c_str(), data.size()); // Const-incorrect Irrlicht
	io::IFileSystem *irrfs = m_device->getFileSystem();
	io::IReadFile *rfile   = irrfs->createMemoryReadFile(
			*data_rw, data_rw.getSize(), filename.c_str());
	FATAL_ERROR_IF(!rfile, "Could not create/open RAM file");

	scene::IAnimatedMesh *mesh = smgr->getMesh(rfile);
	rfile->drop();
	// NOTE: By playing with Irrlicht refcounts, maybe we could cache a bunch
	// of uniquely named instances and re-use them
	mesh->grab();
	smgr->getMeshCache()->removeMesh(mesh);
	return mesh;
}

bool Client::registerModStorage(ModMetadata *storage)
{
	if (m_mod_storages.find(storage->getModName()) != m_mod_storages.end()) {
		errorstream << "Unable to register same mod storage twice. Storage name: "
				<< storage->getModName() << std::endl;
		return false;
	}

	m_mod_storages[storage->getModName()] = storage;
	return true;
}

void Client::unregisterModStorage(const std::string &name)
{
	UNORDERED_MAP<std::string, ModMetadata *>::const_iterator it = m_mod_storages.find(name);
	if (it != m_mod_storages.end()) {
		// Save unconditionaly on unregistration
		it->second->save(getModStoragePath());
		m_mod_storages.erase(name);
	}
}

std::string Client::getModStoragePath() const
{
	return porting::path_user + DIR_DELIM + "client" + DIR_DELIM + "mod_storage";
}

"Povolit použití vzdáleného media serveru (je-li poskytnut serverem).\n" "Vzdálené servery nabízejí výrazně rychlejší způsob, jak stáhnout\n" "média (např. textury) při připojování k serveru." #: src/settings_translation_file.cpp msgid "" "Enable/disable running an IPv6 server. An IPv6 server may be restricted\n" "to IPv6 clients, depending on system configuration.\n" "Ignored if bind_address is set." msgstr "" #: src/settings_translation_file.cpp msgid "Enables animation of inventory items." msgstr "" #: src/settings_translation_file.cpp msgid "" "Enables bumpmapping for textures. Normalmaps need to be supplied by the " "texture pack\n" "or need to be auto-generated.\n" "Requires shaders to be enabled." msgstr "" #: src/settings_translation_file.cpp msgid "Enables caching of facedir rotated meshes." msgstr "" #: src/settings_translation_file.cpp #, fuzzy msgid "Enables filmic tone mapping" msgstr "Povolit minimapu." #: src/settings_translation_file.cpp msgid "Enables minimap." msgstr "Povolit minimapu." #: src/settings_translation_file.cpp msgid "" "Enables on the fly normalmap generation (Emboss effect).\n" "Requires bumpmapping to be enabled." msgstr "" #: src/settings_translation_file.cpp msgid "" "Enables parallax occlusion mapping.\n" "Requires shaders to be enabled." msgstr "" #: src/settings_translation_file.cpp msgid "" "Experimental option, might cause visible spaces between blocks\n" "when set to higher number than 0." msgstr "" #: src/settings_translation_file.cpp msgid "FPS in pause menu" msgstr "FPS v menu pauzy" #: src/settings_translation_file.cpp msgid "FSAA" msgstr "FSAA" #: src/settings_translation_file.cpp msgid "Fall bobbing" msgstr "" #: src/settings_translation_file.cpp msgid "Fallback font" msgstr "Záložní písmo" #: src/settings_translation_file.cpp msgid "Fallback font shadow" msgstr "Stín záložního písma" #: src/settings_translation_file.cpp msgid "Fallback font shadow alpha" msgstr "Průhlednost stínu záložního písma" #: src/settings_translation_file.cpp msgid "Fallback font size" msgstr "Velikost záložního písma" #: src/settings_translation_file.cpp msgid "Fast key" msgstr "Klávesa pro přepnutí turbo režimu" #: src/settings_translation_file.cpp msgid "Fast mode acceleration" msgstr "Zrychlení v turbo režimu" #: src/settings_translation_file.cpp msgid "Fast mode speed" msgstr "Rychlost v turbo režimu" #: src/settings_translation_file.cpp msgid "Fast movement" msgstr "Turbo režim pohybu" #: src/settings_translation_file.cpp msgid "" "Fast movement (via use key).\n" "This requires the \"fast\" privilege on the server." msgstr "" "Turbo režim pohybu (pomocí klávesy použít).\n" "Vyžaduje na serveru přidělené právo \"fast\"." #: src/settings_translation_file.cpp msgid "Field of view" msgstr "" #: src/settings_translation_file.cpp msgid "Field of view in degrees." msgstr "" #: src/settings_translation_file.cpp msgid "" "File in client/serverlist/ that contains your favorite servers displayed in " "the Multiplayer Tab." msgstr "" #: src/settings_translation_file.cpp msgid "Filler Depth" msgstr "" #: src/settings_translation_file.cpp msgid "Filmic tone mapping" msgstr "" #: src/settings_translation_file.cpp msgid "" "Filtered textures can blend RGB values with fully-transparent neighbors,\n" "which PNG optimizers usually discard, sometimes resulting in a dark or\n" "light edge to transparent textures. Apply this filter to clean that up\n" "at texture load time." msgstr "" #: src/settings_translation_file.cpp msgid "Filtering" msgstr "Filtrování" #: src/settings_translation_file.cpp msgid "Fixed map seed" msgstr "Fixované seedové čislo" #: src/settings_translation_file.cpp msgid "Fly key" msgstr "Klávesa létání" #: src/settings_translation_file.cpp msgid "Flying" msgstr "Létání" #: src/settings_translation_file.cpp msgid "Fog" msgstr "Mlha" #: src/settings_translation_file.cpp msgid "Fog toggle key" msgstr "Klávesa pro přepnutí mlhy" #: src/settings_translation_file.cpp msgid "Font path" msgstr "Cesta k písmu" #: src/settings_translation_file.cpp msgid "Font shadow" msgstr "Stín písma" #: src/settings_translation_file.cpp msgid "Font shadow alpha" msgstr "Průhlednost stínu písma" #: src/settings_translation_file.cpp msgid "Font shadow alpha (opaqueness, between 0 and 255)." msgstr "Neprůhlednost stínu písma (od 0 do 255)." #: src/settings_translation_file.cpp msgid "Font shadow offset, if 0 then shadow will not be drawn." msgstr "Odsazení stínu písma, pokud je nastaveno na 0, stín nebude vykreslen." #: src/settings_translation_file.cpp msgid "Font size" msgstr "Velikost písma" #: src/settings_translation_file.cpp msgid "Forward key" msgstr "Vpřed" #: src/settings_translation_file.cpp msgid "Freetype fonts" msgstr "Písma Freetype" #: src/settings_translation_file.cpp msgid "" "From how far blocks are generated for clients, stated in mapblocks (16 " "nodes)." msgstr "" #: src/settings_translation_file.cpp msgid "" "From how far blocks are sent to clients, stated in mapblocks (16 nodes)." msgstr "" #: src/settings_translation_file.cpp msgid "" "From how far clients know about objects, stated in mapblocks (16 nodes)." msgstr "" #: src/settings_translation_file.cpp msgid "Full screen" msgstr "Celá obrazovka" #: src/settings_translation_file.cpp msgid "Full screen BPP" msgstr "Bitová hloubka v celoobrazovkovém režimu" #: src/settings_translation_file.cpp msgid "Fullscreen mode." msgstr "Celoobrazovkový režim." #: src/settings_translation_file.cpp msgid "GUI scaling" msgstr "Měřítko GUI" #: src/settings_translation_file.cpp msgid "GUI scaling filter" msgstr "Měřítko GUI" #: src/settings_translation_file.cpp msgid "GUI scaling filter txr2img" msgstr "Filtr měřítka GUI txr2img" #: src/settings_translation_file.cpp msgid "Gamma" msgstr "Gamma" #: src/settings_translation_file.cpp msgid "General" msgstr "" #: src/settings_translation_file.cpp msgid "Generate normalmaps" msgstr "Generovat normálové mapy" #: src/settings_translation_file.cpp msgid "" "Global map generation attributes.\n" "In Mapgen v6 the 'decorations' flag controls all decorations except trees\n" "and junglegrass, in all other mapgens this flag controls all decorations.\n" "Flags that are not specified in the flag string are not modified from the " "default.\n" "Flags starting with \"no\" are used to explicitly disable them." msgstr "" #: src/settings_translation_file.cpp msgid "Graphics" msgstr "Grafika" #: src/settings_translation_file.cpp msgid "Gravity" msgstr "Gravitace" #: src/settings_translation_file.cpp #, fuzzy msgid "HTTP Mods" msgstr "Mody" #: src/settings_translation_file.cpp msgid "HUD toggle key" msgstr "Klávesa pro přepnutí HUD (Head-Up Display)" #: src/settings_translation_file.cpp msgid "" "Handling for deprecated lua api calls:\n" "- legacy: (try to) mimic old behaviour (default for release).\n" "- log: mimic and log backtrace of deprecated call (default for debug).\n" "- error: abort on usage of deprecated call (suggested for mod developers)." msgstr "" #: src/settings_translation_file.cpp msgid "Height component of the initial window size." msgstr "" #: src/settings_translation_file.cpp msgid "Height on which clouds are appearing." msgstr "" #: src/settings_translation_file.cpp msgid "High-precision FPU" msgstr "Výpočty ve FPU s vysokou přesností" #: src/settings_translation_file.cpp msgid "Homepage of server, to be displayed in the serverlist." msgstr "" #: src/settings_translation_file.cpp msgid "How deep to make rivers" msgstr "" #: src/settings_translation_file.cpp msgid "" "How large area of blocks are subject to the active block stuff, stated in " "mapblocks (16 nodes).\n" "In active blocks objects are loaded and ABMs run." msgstr "" #: src/settings_translation_file.cpp msgid "" "How many blocks are flying in the wire simultaneously for the whole server." msgstr "" #: src/settings_translation_file.cpp msgid "How many blocks are flying in the wire simultaneously per client." msgstr "" #: src/settings_translation_file.cpp msgid "" "How much the server will wait before unloading unused mapblocks.\n" "Higher value is smoother, but will use more RAM." msgstr "" #: src/settings_translation_file.cpp msgid "How wide to make rivers" msgstr "" #: src/settings_translation_file.cpp msgid "IPv6" msgstr "IPv6" #: src/settings_translation_file.cpp msgid "IPv6 server" msgstr "IPv6 server" #: src/settings_translation_file.cpp msgid "IPv6 support." msgstr "Podpora IPv6." #: src/settings_translation_file.cpp msgid "" "If FPS would go higher than this, limit it by sleeping\n" "to not waste CPU power for no benefit." msgstr "" #: src/settings_translation_file.cpp msgid "" "If disabled \"use\" key is used to fly fast if both fly and fast mode are " "enabled." msgstr "" #: src/settings_translation_file.cpp msgid "" "If enabled together with fly mode, player is able to fly through solid " "nodes.\n" "This requires the \"noclip\" privilege on the server." msgstr "" #: src/settings_translation_file.cpp msgid "" "If enabled, \"use\" key instead of \"sneak\" key is used for climbing down " "and descending." msgstr "" #: src/settings_translation_file.cpp msgid "" "If enabled, actions are recorded for rollback.\n" "This option is only read when server starts." msgstr "" #: src/settings_translation_file.cpp msgid "If enabled, disable cheat prevention in multiplayer." msgstr "" #: src/settings_translation_file.cpp msgid "" "If enabled, invalid world data won't cause the server to shut down.\n" "Only enable this if you know what you are doing." msgstr "" #: src/settings_translation_file.cpp msgid "If enabled, new players cannot join with an empty password." msgstr "" #: src/settings_translation_file.cpp msgid "" "If enabled, you can place blocks at the position (feet + eye level) where " "you stand.\n" "This is helpful when working with nodeboxes in small areas." msgstr "" #: src/settings_translation_file.cpp msgid "If this is set, players will always (re)spawn at the given position." msgstr "" #: src/settings_translation_file.cpp msgid "Ignore world errors" msgstr "" #: src/settings_translation_file.cpp msgid "In-Game" msgstr "Ve hře" #: src/settings_translation_file.cpp msgid "In-game chat console background alpha (opaqueness, between 0 and 255)." msgstr "" #: src/settings_translation_file.cpp msgid "In-game chat console background color (R,G,B)." msgstr "" #: src/settings_translation_file.cpp msgid "Interval of saving important changes in the world, stated in seconds." msgstr "" #: src/settings_translation_file.cpp msgid "Interval of sending time of day to clients." msgstr "" #: src/settings_translation_file.cpp msgid "Inventory items animations" msgstr "" #: src/settings_translation_file.cpp msgid "Inventory key" msgstr "Klávesa inventáře" #: src/settings_translation_file.cpp msgid "Invert mouse" msgstr "" #: src/settings_translation_file.cpp msgid "Invert vertical mouse movement." msgstr "" #: src/settings_translation_file.cpp msgid "Item entity TTL" msgstr "" #: src/settings_translation_file.cpp msgid "" "Iterations of the recursive function.\n" "Controls the amount of fine detail." msgstr "" #: src/settings_translation_file.cpp msgid "" "Julia set only: W component of hypercomplex constant determining julia " "shape.\n" "Has no effect on 3D fractals.\n" "Range roughly -2 to 2." msgstr "" #: src/settings_translation_file.cpp msgid "" "Julia set only: X component of hypercomplex constant determining julia " "shape.\n" "Range roughly -2 to 2." msgstr "" #: src/settings_translation_file.cpp msgid "" "Julia set only: Y component of hypercomplex constant determining julia " "shape.\n" "Range roughly -2 to 2." msgstr "" #: src/settings_translation_file.cpp msgid "" "Julia set only: Z component of hypercomplex constant determining julia " "shape.\n" "Range roughly -2 to 2." msgstr "" #: src/settings_translation_file.cpp msgid "Jump key" msgstr "Skok" #: src/settings_translation_file.cpp msgid "Jumping speed" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for decreasing the viewing range.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for dropping the currently selected item.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for increasing the viewing range.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for jumping.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for moving fast in fast mode.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for moving the player backward.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for moving the player forward.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for moving the player left.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for moving the player right.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for opening the chat console.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for opening the chat window to type commands.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for opening the chat window.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for opening the inventory.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for printing debug stacks. Used for development.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for sneaking.\n" "Also used for climbing down and descending in water if aux1_descends is " "disabled.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for switching between first- and third-person camera.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for taking screenshots.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling cinematic mode.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling display of minimap.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling fast mode.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling flying.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling noclip mode.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling the camrea update. Only used for development\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling the display of debug info.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling the display of the HUD.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling the display of the chat.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling the display of the fog.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling the display of the profiler. Used for development.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "" "Key for toggling unlimited view range.\n" "See http://irrlicht.sourceforge.net/docu/namespaceirr." "html#a54da2a0e231901735e3da1b0edf72eb3" msgstr "" #: src/settings_translation_file.cpp msgid "Key use for climbing/descending" msgstr "" #: src/settings_translation_file.cpp msgid "Language" msgstr "Jazyk" #: src/settings_translation_file.cpp msgid "Large cave depth" msgstr "" #: src/settings_translation_file.cpp msgid "Lava Features" msgstr "" #: src/settings_translation_file.cpp msgid "Leaves style" msgstr "" #: src/settings_translation_file.cpp msgid "" "Leaves style:\n" "- Fancy: all faces visible\n" "- Simple: only outer faces, if defined special_tiles are used\n" "- Opaque: disable transparency" msgstr "" #: src/settings_translation_file.cpp msgid "Left key" msgstr "Doleva" #: src/settings_translation_file.cpp msgid "" "Length of a server tick and the interval at which objects are generally " "updated over network." msgstr "" #: src/settings_translation_file.cpp msgid "" "Level of logging to be written to debug.txt:\n" "- <nothing> (no logging)\n" "- none (messages with no level)\n" "- error\n" "- warning\n" "- action\n" "- info\n" "- verbose" msgstr "" #: src/settings_translation_file.cpp msgid "Limit of emerge queues on disk" msgstr "" #: src/settings_translation_file.cpp msgid "Limit of emerge queues to generate" msgstr "" #: src/settings_translation_file.cpp msgid "" "Limits number of parallel HTTP requests. Affects:\n" "- Media fetch if server uses remote_media setting.\n" "- Serverlist download and server announcement.\n" "- Downloads performed by main menu (e.g. mod manager).\n" "Only has an effect if compiled with cURL." msgstr "" #: src/settings_translation_file.cpp msgid "Liquid fluidity" msgstr "" #: src/settings_translation_file.cpp msgid "Liquid fluidity smoothing" msgstr "" #: src/settings_translation_file.cpp msgid "Liquid loop max" msgstr "" #: src/settings_translation_file.cpp msgid "Liquid queue purge time" msgstr "" #: src/settings_translation_file.cpp msgid "Liquid sink" msgstr "" #: src/settings_translation_file.cpp msgid "Liquid update interval in seconds." msgstr "" #: src/settings_translation_file.cpp msgid "Liquid update tick" msgstr "" #: src/settings_translation_file.cpp msgid "Main menu game manager" msgstr "" #: src/settings_translation_file.cpp msgid "Main menu mod manager" msgstr "" #: src/settings_translation_file.cpp msgid "Main menu script" msgstr "Skript hlavní nabídky" #: src/settings_translation_file.cpp msgid "" "Make fog and sky colors depend on daytime (dawn/sunset) and view direction." msgstr "" #: src/settings_translation_file.cpp msgid "Makes DirectX work with LuaJIT. Disable if it causes troubles." msgstr "" #: src/settings_translation_file.cpp msgid "Map directory" msgstr "" #: src/settings_translation_file.cpp msgid "" "Map generation attributes specific to Mapgen Valleys.\n" "Flags that are not specified in the flag string are not modified from the " "default.\n" "Flags starting with \"no\" are used to explicitly disable them.\n" "\"altitude_chill\" makes higher elevations colder, which may cause biome " "issues.\n" "\"humid_rivers\" modifies the humidity around rivers and in areas where " "water would tend to pool. It may interfere with delicately adjusted biomes." msgstr "" #: src/settings_translation_file.cpp msgid "" "Map generation attributes specific to Mapgen flat.\n" "Occasional lakes and hills added to the flat world.\n" "Flags that are not specified in the flag string are not modified from the " "default.\n" "Flags starting with \"no\" are used to explicitly disable them." msgstr "" #: src/settings_translation_file.cpp msgid "" "Map generation attributes specific to Mapgen v6.\n" "When snowbiomes are enabled jungles are enabled and the jungles flag is " "ignored.\n" "Flags that are not specified in the flag string are not modified from the " "default.\n" "Flags starting with \"no\" are used to explicitly disable them." msgstr "" #: src/settings_translation_file.cpp msgid "" "Map generation attributes specific to Mapgen v7.\n" "'ridges' are the rivers.\n" "Flags that are not specified in the flag string are not modified from the " "default.\n" "Flags starting with \"no\" are used to explicitly disable them." msgstr "" #: src/settings_translation_file.cpp msgid "Map generation limit" msgstr "" #: src/settings_translation_file.cpp msgid "Map save interval" msgstr "" #: src/settings_translation_file.cpp msgid "Mapblock limit" msgstr "" #: src/settings_translation_file.cpp msgid "Mapblock unload timeout" msgstr "" #: src/settings_translation_file.cpp #, fuzzy msgid "Mapgen Valleys" msgstr "Jméno generátoru mapy" #: src/settings_translation_file.cpp msgid "Mapgen biome heat noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen biome humidity blend noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen biome humidity noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen debug" msgstr "Ladění generátoru mapy" #: src/settings_translation_file.cpp msgid "Mapgen flags" msgstr "" #: src/settings_translation_file.cpp #, fuzzy msgid "Mapgen flat" msgstr "Jméno generátoru mapy" #: src/settings_translation_file.cpp msgid "Mapgen flat cave1 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat cave2 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat filler depth noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat flags" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat ground level" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat hill steepness" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat hill threshold" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat lake steepness" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat lake threshold" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat large cave depth" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen flat terrain noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal cave1 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal cave2 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal filler depth noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal fractal" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal iterations" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal julia w" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal julia x" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal julia y" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal julia z" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal offset" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal scale" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal seabed noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen fractal slice w" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen heat blend noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen name" msgstr "Jméno generátoru mapy" #: src/settings_translation_file.cpp msgid "Mapgen v5" msgstr "Mapgen v5" #: src/settings_translation_file.cpp msgid "Mapgen v5 cave1 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v5 cave2 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v5 factor noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v5 filler depth noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v5 height noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6" msgstr "Mapgen v6" #: src/settings_translation_file.cpp msgid "Mapgen v6 apple trees noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 beach frequency" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 beach noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 biome noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 cave noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 desert frequency" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 flags" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 height select noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 humidity noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 mud noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 steepness noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 terrain altitude noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 terrain base noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v6 trees noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7" msgstr "Mapgen v7" #: src/settings_translation_file.cpp msgid "Mapgen v7 cave1 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 cave2 noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 filler depth noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 flags" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 height select noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 mount height noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 mountain noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 ridge noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 ridge water noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 terrain altitude noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 terrain base noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Mapgen v7 terrain persistation noise parameters" msgstr "" #: src/settings_translation_file.cpp msgid "Massive cave depth" msgstr "" #: src/settings_translation_file.cpp msgid "Massive cave noise" msgstr "" #: src/settings_translation_file.cpp msgid "Massive caves form here." msgstr "" #: src/settings_translation_file.cpp msgid "Max block generate distance" msgstr "" #: src/settings_translation_file.cpp msgid "Max block send distance" msgstr "" #: src/settings_translation_file.cpp msgid "Max liquids processed per step." msgstr "" #: src/settings_translation_file.cpp msgid "Max. clearobjects extra blocks" msgstr "" #: src/settings_translation_file.cpp msgid "Max. packets per iteration" msgstr "" #: src/settings_translation_file.cpp msgid "Maximum FPS" msgstr "" #: src/settings_translation_file.cpp msgid "Maximum FPS when game is paused." msgstr "" #: src/settings_translation_file.cpp msgid "Maximum forceloaded blocks" msgstr "" #: src/settings_translation_file.cpp msgid "Maximum hotbar width" msgstr "" #: src/settings_translation_file.cpp msgid "Maximum number of blocks that can be queued for loading." msgstr "" #: src/settings_translation_file.cpp msgid "" "Maximum number of blocks to be queued that are to be generated.\n" "Set to blank for an appropriate amount to be chosen automatically." msgstr "" #: src/settings_translation_file.cpp msgid "" "Maximum number of blocks to be queued that are to be loaded from file.\n" "Set to blank for an appropriate amount to be chosen automatically." msgstr "" #: src/settings_translation_file.cpp msgid "Maximum number of forceloaded mapblocks." msgstr "" #: src/settings_translation_file.cpp msgid "" "Maximum number of mapblocks for client to be kept in memory.\n" "Set to -1 for unlimited amount." msgstr "" #: src/settings_translation_file.cpp msgid "" "Maximum number of packets sent per send step, if you have a slow connection\n" "try reducing it, but don't reduce it to a number below double of targeted\n" "client number." msgstr "" #: src/settings_translation_file.cpp msgid "Maximum number of players that can connect simultaneously." msgstr "" #: src/settings_translation_file.cpp msgid "Maximum number of statically stored objects in a block." msgstr "" #: src/settings_translation_file.cpp msgid "" "Maximum proportion of current window to be used for hotbar.\n" "Useful if there's something to be displayed right or left of hotbar." msgstr "" #: src/settings_translation_file.cpp msgid "Maximum simultaneously blocks send per client" msgstr "" #: src/settings_translation_file.cpp msgid "Maximum simultaneously bocks send total" msgstr "" #: src/settings_translation_file.cpp msgid "Maximum time in ms a file download (e.g. a mod download) may take." msgstr "" #: src/settings_translation_file.cpp msgid "Maximum users" msgstr "" #: src/settings_translation_file.cpp msgid "Maxmimum objects per block" msgstr "" #: src/settings_translation_file.cpp msgid "Menus" msgstr "Nabídky" #: src/settings_translation_file.cpp msgid "Mesh cache" msgstr "" #: src/settings_translation_file.cpp msgid "Message of the day" msgstr "" #: src/settings_translation_file.cpp msgid "Message of the day displayed to players connecting." msgstr "" #: src/settings_translation_file.cpp msgid "Method used to highlight selected object." msgstr "" #: src/settings_translation_file.cpp msgid "Minimap" msgstr "" #: src/settings_translation_file.cpp msgid "Minimap key" msgstr "" #: src/settings_translation_file.cpp msgid "Minimap scan height" msgstr "" #: src/settings_translation_file.cpp msgid "Minimum texture size for filters" msgstr "" #: src/settings_translation_file.cpp msgid "Mipmapping" msgstr "Mip-mapování" #: src/settings_translation_file.cpp msgid "Mod profiling" msgstr "" #: src/settings_translation_file.cpp msgid "Modstore details URL" msgstr "" #: src/settings_translation_file.cpp msgid "Modstore download URL" msgstr "" #: src/settings_translation_file.cpp msgid "Modstore mods list URL" msgstr "" #: src/settings_translation_file.cpp msgid "Monospace font path" msgstr "" #: src/settings_translation_file.cpp msgid "Monospace font size" msgstr "" #: src/settings_translation_file.cpp msgid "Mouse sensitivity" msgstr "" #: src/settings_translation_file.cpp msgid "Mouse sensitivity multiplier." msgstr "" #: src/settings_translation_file.cpp msgid "" "Multiplier for fall bobbing.\n" "For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double." msgstr "" #: src/settings_translation_file.cpp msgid "" "Multiplier for view bobbing.\n" "For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double." msgstr "" #: src/settings_translation_file.cpp msgid "" "Name of map generator to be used when creating a new world.\n" "Creating a world in the main menu will override this." msgstr "" #: src/settings_translation_file.cpp msgid "" "Name of the player.\n" "When running a server, clients connecting with this name are admins.\n" "When starting from the main menu, this is overridden." msgstr "" #: src/settings_translation_file.cpp msgid "" "Name of the server, to be displayed when players join and in the serverlist." msgstr "" #: src/settings_translation_file.cpp msgid "Network" msgstr "" #: src/settings_translation_file.cpp msgid "" "Network port to listen (UDP).\n" "This value will be overridden when starting from the main menu." msgstr "" #: src/settings_translation_file.cpp msgid "New users need to input this password." msgstr "" #: src/settings_translation_file.cpp msgid "Noclip" msgstr "" #: src/settings_translation_file.cpp msgid "Noclip key" msgstr "" #: src/settings_translation_file.cpp msgid "Node highlighting" msgstr "Zvýraznění označených bloků" #: src/settings_translation_file.cpp msgid "Noise parameters for biome API temperature, humidity and biome blend." msgstr "" #: src/settings_translation_file.cpp msgid "Noises" msgstr "" #: src/settings_translation_file.cpp msgid "Normalmaps sampling" msgstr "" #: src/settings_translation_file.cpp msgid "Normalmaps strength" msgstr "" #: src/settings_translation_file.cpp msgid "Number of emerge threads" msgstr "" #: src/settings_translation_file.cpp msgid "" "Number of emerge threads to use. Make this field blank, or increase this " "number\n" "to use multiple threads. On multiprocessor systems, this will improve mapgen " "speed greatly\n" "at the cost of slightly buggy caves." msgstr "" #: src/settings_translation_file.cpp msgid "" "Number of extra blocks that can be loaded by /clearobjects at once.\n" "This is a trade-off between sqlite transaction overhead and\n" "memory consumption (4096=100MB, as a rule of thumb)." msgstr "" #: src/settings_translation_file.cpp msgid "Number of parallax occlusion iterations." msgstr "" #: src/settings_translation_file.cpp msgid "Overall bias of parallax occlusion effect, usually scale/2." msgstr "" #: src/settings_translation_file.cpp msgid "Overall scale of parallax occlusion effect." msgstr "" #: src/settings_translation_file.cpp msgid "Parallax occlusion" msgstr "Paralaxní okluze" #: src/settings_translation_file.cpp #, fuzzy msgid "Parallax occlusion Scale" msgstr "Škála paralaxní okluze" #: src/settings_translation_file.cpp msgid "Parallax occlusion bias" msgstr "Náklon paralaxní okluze" #: src/settings_translation_file.cpp msgid "Parallax occlusion iterations" msgstr "Počet iterací paralaxní okluze" #: src/settings_translation_file.cpp msgid "Parallax occlusion mode" msgstr "Režim paralaxní okluze" #: src/settings_translation_file.cpp msgid "Parallax occlusion strength" msgstr "Síla paralaxní okluze" #: src/settings_translation_file.cpp msgid "Path to TrueTypeFont or bitmap." msgstr "" #: src/settings_translation_file.cpp msgid "Path to save screenshots at." msgstr "" #: src/settings_translation_file.cpp msgid "Path to texture directory. All textures are first searched from here." msgstr "" #: src/settings_translation_file.cpp msgid "Physics" msgstr "Fyzika" #: src/settings_translation_file.cpp msgid "" "Player is able to fly without being affected by gravity.\n" "This requires the \"fly\" privilege on the server." msgstr "" #: src/settings_translation_file.cpp msgid "Player name" msgstr "Jméno hráče" #: src/settings_translation_file.cpp msgid "Player transfer distance" msgstr "" #: src/settings_translation_file.cpp msgid "Player versus Player" msgstr "Hráč proti hráči (PvP)" #: src/settings_translation_file.cpp msgid "" "Port to connect to (UDP).\n" "Note that the port field in the main menu overrides this setting." msgstr "" #: src/settings_translation_file.cpp msgid "Prevent mods from doing insecure things like running shell commands." msgstr "" #: src/settings_translation_file.cpp msgid "Profiler data print interval. 0 = disable. Useful for developers." msgstr "" #: src/settings_translation_file.cpp msgid "Profiler toggle key" msgstr "" #: src/settings_translation_file.cpp msgid "Profiling print interval" msgstr "" #: src/settings_translation_file.cpp msgid "" "Radius of cloud area stated in number of 64 node cloud squares.\n" "Values larger than 26 will start to produce sharp cutoffs at cloud area " "corners." msgstr "" #: src/settings_translation_file.cpp msgid "Raises terrain to make valleys around the rivers" msgstr "" #: src/settings_translation_file.cpp msgid "Random input" msgstr "Náhodný vstup" #: src/settings_translation_file.cpp msgid "Range select key" msgstr "Klávesa pro označení většího počtu věcí" #: src/settings_translation_file.cpp msgid "Remote media" msgstr "Vzdálená média" #: src/settings_translation_file.cpp msgid "Remote port" msgstr "Vzdálený port" #: src/settings_translation_file.cpp msgid "Replaces the default main menu with a custom one." msgstr "" #: src/settings_translation_file.cpp msgid "Right key" msgstr "Klávesa doprava" #: src/settings_translation_file.cpp msgid "Rightclick repetition interval" msgstr "" #: src/settings_translation_file.cpp msgid "River Depth" msgstr "" #: src/settings_translation_file.cpp msgid "River Noise" msgstr "" #: src/settings_translation_file.cpp msgid "River Size" msgstr "" #: src/settings_translation_file.cpp msgid "River noise -- rivers occur close to zero" msgstr "" #: src/settings_translation_file.cpp msgid "Rollback recording" msgstr "" #: src/settings_translation_file.cpp msgid "Round minimap" msgstr "Kulatá minimapa" #: src/settings_translation_file.cpp msgid "Save the map received by the client on disk." msgstr "" #: src/settings_translation_file.cpp msgid "Saving map received from server" msgstr "" #: src/settings_translation_file.cpp msgid "" "Scale gui by a user specified value.\n" "Use a nearest-neighbor-anti-alias filter to scale the GUI.\n" "This will smooth over some of the rough edges, and blend\n" "pixels when scaling down, at the cost of blurring some\n" "edge pixels when images are scaled by non-integer sizes." msgstr "" #: src/settings_translation_file.cpp msgid "Screen height" msgstr "Výška obrazovky" #: src/settings_translation_file.cpp msgid "Screen width" msgstr "Šířka obrazovky" #: src/settings_translation_file.cpp msgid "Screenshot" msgstr "Snímek obrazovky" #: src/settings_translation_file.cpp msgid "Screenshot folder" msgstr "Složka se snímky obrazovky" #: src/settings_translation_file.cpp msgid "Security" msgstr "Zabezpečení" #: src/settings_translation_file.cpp msgid "See http://www.sqlite.org/pragma.html#pragma_synchronous" msgstr "" #: src/settings_translation_file.cpp msgid "Selection box border color (R,G,B)." msgstr "" #: src/settings_translation_file.cpp msgid "Selection box color" msgstr "" #: src/settings_translation_file.cpp msgid "Selection box width" msgstr "" #: src/settings_translation_file.cpp msgid "Server / Singleplayer" msgstr "Server / Místní hra" #: src/settings_translation_file.cpp msgid "Server URL" msgstr "URL serveru" #: src/settings_translation_file.cpp msgid "Server address" msgstr "Adresa serveru" #: src/settings_translation_file.cpp msgid "Server description" msgstr "Popis serveru" #: src/settings_translation_file.cpp msgid "Server name" msgstr "Jméno serveru" #: src/settings_translation_file.cpp msgid "Server port" msgstr "Port serveru" #: src/settings_translation_file.cpp msgid "Serverlist URL" msgstr "Adresa seznamu veřejných serverů" #: src/settings_translation_file.cpp msgid "Serverlist file" msgstr "Soubor se seznamem veřejných serverů" #: src/settings_translation_file.cpp msgid "" "Set the language. Leave empty to use the system language.\n" "A restart is required after changing this." msgstr "" #: src/settings_translation_file.cpp msgid "" "Set to true enables waving leaves.\n" "Requires shaders to be enabled." msgstr "" #: src/settings_translation_file.cpp msgid "" "Set to true enables waving plants.\n" "Requires shaders to be enabled." msgstr "" #: src/settings_translation_file.cpp msgid "" "Set to true enables waving water.\n" "Requires shaders to be enabled." msgstr "" #: src/settings_translation_file.cpp msgid "" "Shaders allow advanced visul effects and may increase performance on some " "video cards.\n" "Thy only work with the OpenGL video backend." msgstr "" #: src/settings_translation_file.cpp msgid "Shape of the minimap. Enabled = round, disabled = square." msgstr "" #: src/settings_translation_file.cpp msgid "Show debug info" msgstr "Zobrazit ladící informace" #: src/settings_translation_file.cpp msgid "Shutdown message" msgstr "" #: src/settings_translation_file.cpp msgid "" "Size of chunks to be generated at once by mapgen, stated in mapblocks (16 " "nodes)." msgstr "" #: src/settings_translation_file.cpp msgid "Slope and fill work together to modify the heights" msgstr "" #: src/settings_translation_file.cpp msgid "Smooth lighting" msgstr "Plynulé osvětlení" #: src/settings_translation_file.cpp msgid "" "Smooths camera when moving and looking around.\n" "Useful for recording videos." msgstr "" #: src/settings_translation_file.cpp msgid "Smooths rotation of camera in cinematic mode. 0 to disable." msgstr "" #: src/settings_translation_file.cpp msgid "Smooths rotation of camera. 0 to disable." msgstr "" #: src/settings_translation_file.cpp msgid "Sneak key" msgstr "Klávesa plížení" #: src/settings_translation_file.cpp msgid "Sound" msgstr "Zvuk" #: src/settings_translation_file.cpp msgid "" "Specifies URL from which client fetches media instead of using UDP.\n" "$filename should be accessible from $remote_media$filename via cURL\n" "(obviously, remote_media should end with a slash).\n" "Files that are not present will be fetched the usual way." msgstr "" #: src/settings_translation_file.cpp msgid "Static spawnpoint" msgstr "" #: src/settings_translation_file.cpp msgid "Strength of generated normalmaps." msgstr "Síla vygenerovaných normálových map." #: src/settings_translation_file.cpp msgid "Strength of parallax." msgstr "" #: src/settings_translation_file.cpp msgid "Strict protocol checking" msgstr "" #: src/settings_translation_file.cpp msgid "Synchronous SQLite" msgstr "" #: src/settings_translation_file.cpp msgid "Terrain Height" msgstr "" #: src/settings_translation_file.cpp msgid "" "Terrain noise threshold for hills.\n" "Controls proportion of world area covered by hills.\n" "Adjust towards 0.0 for a larger proportion." msgstr "" #: src/settings_translation_file.cpp msgid "" "Terrain noise threshold for lakes.\n" "Controls proportion of world area covered by lakes.\n" "Adjust towards 0.0 for a larger proportion." msgstr "" #: src/settings_translation_file.cpp msgid "Texture path" msgstr "Cesta k texturám" #: src/settings_translation_file.cpp msgid "The altitude at which temperature drops by 20C" msgstr "" #: src/settings_translation_file.cpp msgid "The depth of dirt or other filler" msgstr "" #: src/settings_translation_file.cpp msgid "The network interface that the server listens on." msgstr "" #: src/settings_translation_file.cpp msgid "" "The privileges that new users automatically get.\n" "See /privs in game for a full list on your server and mod configuration." msgstr "" #: src/settings_translation_file.cpp msgid "The rendering back-end for Irrlicht." msgstr "" #: src/settings_translation_file.cpp msgid "" "The strength (darkness) of node ambient-occlusion shading.\n" "Lower is darker, Higher is lighter. The valid range of values for this\n" "setting is 0.25 to 4.0 inclusive. If the value is out of range it will be\n" "set to the nearest valid value." msgstr "" #: src/settings_translation_file.cpp msgid "" "The time (in seconds) that the liquids queue may grow beyond processing\n" "capacity until an attempt is made to decrease its size by dumping old queue\n" "items. A value of 0 disables the functionality." msgstr "" #: src/settings_translation_file.cpp msgid "" "The time in seconds it takes between repeated right clicks when holding the " "right mouse button." msgstr "" #: src/settings_translation_file.cpp msgid "This font will be used for certain languages." msgstr "" #: src/settings_translation_file.cpp msgid "" "Time in seconds for item entity (dropped items) to live.\n" "Setting it to -1 disables the feature." msgstr "" #: src/settings_translation_file.cpp msgid "Time send interval" msgstr "" #: src/settings_translation_file.cpp msgid "Time speed" msgstr "" #: src/settings_translation_file.cpp msgid "Timeout for client to remove unused map data from memory." msgstr "" #: src/settings_translation_file.cpp msgid "" "To reduce lag, block transfers are slowed down when a player is building " "something.\n" "This determines how long they are slowed down after placing or removing a " "node." msgstr "" #: src/settings_translation_file.cpp msgid "Toggle camera mode key" msgstr "" #: src/settings_translation_file.cpp #, fuzzy msgid "Tone Mapping" msgstr "Mip-mapování" #: src/settings_translation_file.cpp msgid "Tooltip delay" msgstr "" #: src/settings_translation_file.cpp msgid "Trilinear filtering" msgstr "Trilineární filtrování" #: src/settings_translation_file.cpp msgid "" "True = 256\n" "False = 128\n" "Useable to make minimap smoother on slower machines." msgstr "" #: src/settings_translation_file.cpp msgid "Trusted mods" msgstr "" #: src/settings_translation_file.cpp msgid "URL to the server list displayed in the Multiplayer Tab." msgstr "" #: src/settings_translation_file.cpp msgid "Unlimited player transfer distance" msgstr "" #: src/settings_translation_file.cpp msgid "Unload unused server data" msgstr "" #: src/settings_translation_file.cpp msgid "Use 3D cloud look instead of flat." msgstr "" #: src/settings_translation_file.cpp msgid "Use a cloud animation for the main menu background." msgstr "" #: src/settings_translation_file.cpp msgid "Use anisotropic filtering when viewing at textures from an angle." msgstr "" #: src/settings_translation_file.cpp msgid "Use bilinear filtering when scaling textures." msgstr "" #: src/settings_translation_file.cpp msgid "Use key" msgstr "Klávesa použít" #: src/settings_translation_file.cpp msgid "Use mip mapping to scale textures. May slightly increase performance." msgstr "" #: src/settings_translation_file.cpp msgid "Use trilinear filtering when scaling textures." msgstr "" #: src/settings_translation_file.cpp msgid "Useful for mod developers." msgstr "Užitečné pro vývojáře modů." #: src/settings_translation_file.cpp msgid "V-Sync" msgstr "Vertikální synchronizace" #: src/settings_translation_file.cpp msgid "VBO" msgstr "" #: src/settings_translation_file.cpp msgid "Valley Depth" msgstr "" #: src/settings_translation_file.cpp msgid "Valley Fill" msgstr "" #: src/settings_translation_file.cpp msgid "Valley Profile" msgstr "" #: src/settings_translation_file.cpp msgid "Valley Slope" msgstr "" #: src/settings_translation_file.cpp msgid "Valleys C Flags" msgstr "" #: src/settings_translation_file.cpp msgid "Vertical screen synchronization." msgstr "" #: src/settings_translation_file.cpp msgid "Video driver" msgstr "Ovladač grafiky" #: src/settings_translation_file.cpp msgid "View bobbing" msgstr "" #: src/settings_translation_file.cpp msgid "" "View distance in nodes.\n" "Min = 20" msgstr "" #: src/settings_translation_file.cpp msgid "View range decrease key" msgstr "" #: src/settings_translation_file.cpp msgid "View range increase key" msgstr "" #: src/settings_translation_file.cpp msgid "Viewing range" msgstr "" #: src/settings_translation_file.cpp msgid "Volume" msgstr "Hlasitost" #: src/settings_translation_file.cpp msgid "" "W co-ordinate of the generated 3D slice of a 4D fractal.\n" "Determines which 3D slice of the 4D shape is generated.\n" "Has no effect on 3D fractals.\n" "Range roughly -2 to 2." msgstr "" #: src/settings_translation_file.cpp msgid "Walking speed" msgstr "Rychlost chůze" #: src/settings_translation_file.cpp #, fuzzy msgid "Water Features" msgstr "Textury věcí..." #: src/settings_translation_file.cpp msgid "Water level" msgstr "" #: src/settings_translation_file.cpp msgid "Water surface level of the world." msgstr "" #: src/settings_translation_file.cpp msgid "Waving Nodes" msgstr "Vlnění bloků" #: src/settings_translation_file.cpp msgid "Waving leaves" msgstr "Vlnění listů" #: src/settings_translation_file.cpp msgid "Waving plants" msgstr "Vlnění rostlin" #: src/settings_translation_file.cpp msgid "Waving water" msgstr "Vlnění vody" #: src/settings_translation_file.cpp msgid "Waving water height" msgstr "Výška vodních vln" #: src/settings_translation_file.cpp msgid "Waving water length" msgstr "Délka vodních vln" #: src/settings_translation_file.cpp msgid "Waving water speed" msgstr "Rychlost vodních vln" #: src/settings_translation_file.cpp msgid "" "When gui_scaling_filter is true, all GUI images need to be\n" "filtered in software, but some images are generated directly\n" "to hardware (e.g. render-to-texture for nodes in inventory)." msgstr "" #: src/settings_translation_file.cpp msgid "" "When gui_scaling_filter_txr2img is true, copy those images\n" "from hardware to software for scaling. When false, fall back\n" "to the old scaling method, for video drivers that don't\n" "propery support downloading textures back from hardware." msgstr "" #: src/settings_translation_file.cpp msgid "" "When using bilinear/trilinear/anisotropic filters, low-resolution textures\n" "can be blurred, so automatically upscale them with nearest-neighbor\n" "interpolation to preserve crisp pixels. This sets the minimum texture size\n" "for the upscaled textures; higher values look sharper, but require more\n" "memory. Powers of 2 are recommended. Setting this higher than 1 may not\n" "have a visible effect unless bilinear/trilinear/anisotropic filtering is\n" "enabled." msgstr "" #: src/settings_translation_file.cpp msgid "" "Where the map generator stops.\n" "Please note:\n" "- Limited to 31000 (setting above has no effect)\n" "- The map generator works in groups of 80x80x80 nodes (5x5x5 MapBlocks).\n" "- Those groups have an offset of -32, -32 nodes from the origin.\n" "- Only groups which are within the map_generation_limit are generated" msgstr "" #: src/settings_translation_file.cpp msgid "" "Whether freetype fonts are used, requires freetype support to be compiled in." msgstr "" #: src/settings_translation_file.cpp msgid "Whether node texture animations should be desynchronized per mapblock." msgstr "" #: src/settings_translation_file.cpp msgid "" "Whether players are shown to clients without any range limit.\n" "Deprecated, use the setting player_transfer_distance instead." msgstr "" #: src/settings_translation_file.cpp msgid "Whether to allow players to damage and kill each other." msgstr "" #: src/settings_translation_file.cpp msgid "" "Whether to ask clients to reconnect after a (Lua) crash.\n" "Set this to true if your server is set up to restart automatically." msgstr "" #: src/settings_translation_file.cpp msgid "Whether to fog out the end of the visible area." msgstr "" #: src/settings_translation_file.cpp msgid "" "Whether to show the client debug info (has the same effect as hitting F5)." msgstr "" #: src/settings_translation_file.cpp msgid "Width component of the initial window size." msgstr "" #: src/settings_translation_file.cpp msgid "Width of the selectionbox's lines around nodes." msgstr "" #: src/settings_translation_file.cpp msgid "" "World directory (everything in the world is stored here).\n" "Not needed if starting from the main menu." msgstr "" #: src/settings_translation_file.cpp msgid "Y of flat ground." msgstr "" #: src/settings_translation_file.cpp msgid "Y of upper limit of large pseudorandom caves." msgstr "" #: src/settings_translation_file.cpp msgid "cURL file download timeout" msgstr "" #: src/settings_translation_file.cpp msgid "cURL parallel limit" msgstr "cURL limit paralelních stahování" #: src/settings_translation_file.cpp msgid "cURL timeout" msgstr "cURL timeout" #~ msgid "\"" #~ msgstr "\"" #~ msgid "If disabled " #~ msgstr "Je-li zakázáno " #~ msgid "If enabled, " #~ msgstr "Je-li povoleno, " #~ msgid "Rendering:" #~ msgstr "Renderování:" #~ msgid "Restart minetest for driver change to take effect" #~ msgstr "Aby se změna ovladače projevila, restartujte Minetest" #~ msgid "Left click: Move all items, Right click: Move single item" #~ msgstr "" #~ "Levý klik: Přesunout všechny předměty, Pravý klik: Přesunout jeden předmět" #~ msgid "Local install" #~ msgstr "Místní instalace" #~ msgid "Add mod:" #~ msgstr "Přidat mod:" #~ msgid "MODS" #~ msgstr "MODY" #~ msgid "TEXTURE PACKS" #~ msgstr "BALÍČKY TEXTUR" #~ msgid "SINGLE PLAYER" #~ msgstr "HRA JEDNOHO HRÁČE" #~ msgid "Finite Liquid" #~ msgstr "Konečná voda" #~ msgid "Preload item visuals" #~ msgstr "Přednačíst textury předmětů" #~ msgid "SETTINGS" #~ msgstr "NASTAVENÍ" #~ msgid "Password" #~ msgstr "Heslo" #~ msgid "Name" #~ msgstr "Jméno" #~ msgid "START SERVER" #~ msgstr "MÍSTNÍ SERVER" #~ msgid "Favorites:" #~ msgstr "Oblíbené:" #~ msgid "CLIENT" #~ msgstr "KLIENT" #~ msgid "<<-- Add mod" #~ msgstr "<<-- Přidat mod" #~ msgid "Remove selected mod" #~ msgstr "Odstranit vybraný mod" #~ msgid "EDIT GAME" #~ msgstr "UPRAVIT HRU" #~ msgid "new game" #~ msgstr "nová hra" #~ msgid "Mods:" #~ msgstr "Mody:" #~ msgid "GAMES" #~ msgstr "HRY" #~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\"" #~ msgstr "Gamemgr: Nepovedlo se zkopírovat mod \"$1\" do hry \"$2\"" #~ msgid "Game Name" #~ msgstr "Název hry" #~ msgid "Downloading" #~ msgstr "Stahuji" #~ msgid " MB/s" #~ msgstr " MB/s" #~ msgid " KB/s" #~ msgstr " KB/s" #~ msgid "Touch free target" #~ msgstr "Středový kurzor" #~ msgid "Scaling factor applied to menu elements: " #~ msgstr "Měřítko aplikované na prvky menu: " #~ msgid "Reset singleplayer world" #~ msgstr "Reset místního světa" #~ msgid "Preload inventory textures" #~ msgstr "Přednačíst inventářové textury"