65 Commits

Author SHA1 Message Date
Quentin Bazin
22ef44e12c Moved ChunkUnload sending from client to server. 2021-05-22 16:14:47 +02:00
Quentin Bazin
be4ff6c9da Various fixes. 2021-05-22 16:14:47 +02:00
Quentin Bazin
b4f210de3a Seems to be working, but some trees are incomplete. 2021-05-22 16:14:47 +02:00
Quentin Bazin
ecdf504bef 2nd attempt. 2021-05-22 16:14:47 +02:00
Quentin Bazin
fc29b17188 [ServerCommandHandler] Small fix. 2020-07-31 19:27:13 +02:00
Quentin Bazin
36bcbf2aee [ServerCommandHandler] Spawn area is 16x16 chunks instead of a single chunk. 2020-07-31 17:24:02 +02:00
Quentin Bazin
4eb3b6fe5f [TerrainGenerator|ServerCommandHandler] Small fix. 2020-07-30 00:59:41 +02:00
Quentin Bazin
6065c98481 [Heightmap] Small fixes. [ServerCommandHandler] Now spawning player safely. Fixed #117. 2020-07-30 00:46:58 +02:00
Pedro Gimeno
89274f906a Improve /time command to allow time in h:m and omitting set
`/time set N` and `/time add N` work like before. The following extensions were added:

- `/time N`, `/time str`
  - same as `/time set N` and `/time set str` respectively
- `/time h:m`, `/time set h:m`
  - allows setting a specific time in hour:minutes format
- `/time add h:m`
  - adds a specific number of hours and minutes to the time
2020-07-27 20:57:09 +02:00
Quentin Bazin
55d2bdab72 [ChatCommandHandler] '/time add <value>' now allows negative values. 2020-07-20 21:30:00 +02:00
Quentin Bazin
7eaac50d48 Now saving last hotbar slot. 2020-07-17 23:32:50 +02:00
Quentin Bazin
886aba1d0f Small fixes. 2020-07-17 19:58:45 +02:00
Quentin Bazin
30e3ae2054 [ChatCommandHandler] '/time <add|set>' command added.
[CelestialObject|Skybox] Moon changes its phase everyday.
2020-07-17 19:58:45 +02:00
Quentin Bazin
0f015ee75d [DebugInfoWidget] Added 'Ticks' and 'Game time'.
[GameTime] The day now starts at 6 AM.
2020-07-17 19:58:45 +02:00
Quentin Bazin
07f86b9e10 [GameTime] 'getCurrentTime' now uses the new tick system.
[DebugOverlay] Added client TPS info.
[Network] Packet 'ServerTick' added. Sent at the beginning of every tick.
2020-07-17 19:58:45 +02:00
Quentin Bazin
556941f553 [GameTime] Tick system added.
[ChatCommandHandler] Added '/tps' command to get ticks per second.
[ServerWorld] Fixed world generation speed.
2020-07-17 19:58:45 +02:00
Quentin Bazin
79e0794389 [Lua API] Screen size and gui scale are now available from ClientInfo. 2020-07-13 12:50:16 +02:00
Quentin Bazin
f5f586980d 'use_alt_tiles' replaced by block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
4884b7c1d9 [ScriptEngine] 'BlockState' and 'BlockParam' added. 2020-07-10 22:43:50 +02:00
Quentin Bazin
7750154b22 [BlockState] Added. First stop of block states. 2020-07-10 22:43:50 +02:00
Quentin Bazin
70f58e7b5b [LuaGUI] Now allows defining a closing key. 2020-07-09 00:11:54 +02:00
Quentin Bazin
4ac67eedd4 [GameKey] 'Up' and 'Down' renamed to 'Forward' and 'Back'. 2020-07-08 04:19:36 +02:00
Quentin Bazin
7497b6b2a8 Added 'Farmland' block, which is possible to create with any hoe. 2020-07-05 20:55:23 +02:00
Quentin Bazin
4dc89eb6a0 [PlayerList] In singleplayer mode the username doesn't matter anymore. 2020-06-26 06:14:46 +02:00
Quentin Bazin
5aa2a22a23 [GameState] Now using 'Player' as a default username if empty. [ServerCommandHandler] Now checking username on connection. 2020-06-26 06:14:46 +02:00
Quentin Bazin
e23603cf6e [PlayerList] Now refusing players that are already online. 2020-06-26 06:14:46 +02:00
Quentin Bazin
057753f1d2 [WorldSaveBasicBackend] Now saving player position, rotation and inventory. 2020-06-26 06:14:46 +02:00
Quentin Bazin
93a396e926 [ServerConnectState] Text input added to select an username. 2020-06-26 06:14:46 +02:00
Quentin Bazin
0cdb08060a [WorldController] Now saving block inventory and metadata. 2020-06-23 19:12:15 +02:00
Quentin Bazin
21bafc046e [ChatCommandHandler] '/save' and '/load' commands removed. '/help' command added. 2020-06-23 19:12:15 +02:00
Quentin Bazin
7981c4525d Fixed #125. 2020-06-23 19:12:15 +02:00
Quentin Bazin
00d1cb84d5 Mod-defined server config options. Fixes #105.
[Chat] History system with up/down arrow keys.
[ChatCommandHandler] '/option' command added.
2020-06-20 01:07:28 +02:00
Quentin Bazin
cc85f5f050 [docs/network-protocol.md] Added. 2020-06-19 17:18:18 +02:00
Quentin Bazin
fc3fafc1a8 [Lua API] Key definition: OK. Can't be remapped yet. 2020-06-19 16:20:35 +02:00
Quentin Bazin
c1176a438d [ChatCommandHandler] '/stop' command added. 2020-06-19 02:51:33 +02:00
Quentin Bazin
9f01a538cb [Network] 'PlayerRotUpdate' packet added. Fixed #86. 2020-06-04 17:36:09 +02:00
Quentin Bazin
a7c72d7f2d [ServerConfig] 'maxPlayers' added. 2020-06-02 16:28:16 +02:00
Quentin Bazin
742b1f2092 Replaced std::cerr usage with gkError() and gkWarning(). 2020-06-02 06:32:14 +02:00
Quentin Bazin
301d33fa5d Server is now aware of each player's held item. Closed #110. 2020-06-02 05:51:10 +02:00
Quentin Bazin
cdfecd4310 Now using entt::registry::visit to serialize entities. Closed #102. 2020-06-01 21:31:14 +02:00
Quentin Bazin
f440525ed7 [Network] 'ServerClosed' packet added. Fixed #106. 2020-05-26 17:51:04 +02:00
Quentin Bazin
3f2908a6b3 [CMakeLists.txt] Improved 'sol2' integration. 2020-05-22 20:55:17 +02:00
Quentin Bazin
b34480565c [LuaCore] New event 'PlayerConnected' added. 2020-05-22 05:34:02 +02:00
Quentin Bazin
b789fc3d9b [ScriptEngine] Code splitted into multiple files, improving compilation speed. 2020-05-22 04:54:34 +02:00
Quentin Bazin
4ff7714ece Now using ServerConfig in Lua + Collision callback: OK. 2020-05-20 13:39:06 +02:00
Quentin Bazin
5e6103d00d Working on entity Lua API. 2020-05-20 13:39:06 +02:00
Quentin Bazin
dc1b7147c8 Completely removed unused code about UDP sockets. 2020-05-10 22:35:05 +02:00
Quentin Bazin
f9da65ac31 [Server] Fixed singleplayer mode. 2020-05-10 20:14:20 +02:00
Quentin Bazin
c277dc7d87 Packets are now compressed using zlib. Legacy and unused UDP code removed. 2020-05-10 19:36:39 +02:00
Quentin Bazin
9f09a0af55 [LuaCore] New event 'OnBlockDigged' added. 2020-05-04 11:39:01 +02:00