70 Commits

Author SHA1 Message Date
Quentin Bazin
6e0f7ddda5 Multiplayer infinite world: OK using 'ChunkRequest' packet. 2020-01-22 09:22:47 +09:00
Quentin Bazin
1b1c94455f [ServerWorld] Second client can now receive chunks, but it's reaaaally slow. 2020-01-22 09:22:47 +09:00
Quentin Bazin
89f77b08b5 [ServerWorld] First attempt to send chunks depending on player position. 2020-01-22 09:22:47 +09:00
Quentin Bazin
1a8698b97b [ServerWorld|ChunkLightmap|ServerChunk] Removed useless updateLight() calls. 2020-01-22 09:22:47 +09:00
Quentin Bazin
978a989ecf Lighting issues finally fixed. Yay. 2020-01-22 09:22:47 +09:00
Quentin Bazin
4bda292fa4 Almost fixed the lighting issue, found the problem. 2020-01-22 09:22:47 +09:00
Quentin Bazin
a651e37c6a Small tweaks. 2020-01-22 09:22:47 +09:00
Quentin Bazin
6315216e66 Removed useless code. 2020-01-22 09:22:47 +09:00
Quentin Bazin
f09dbcc8e6 [ServerChunk] 'update' renamed into 'updateLights'. 2020-01-22 09:22:47 +09:00
Quentin Bazin
fc9c60e2b9 [ClientWorld] Now waiting all neighbours of a chunk before updating/displaying it. 2020-01-22 09:22:47 +09:00
Quentin Bazin
aa38e17378 [ClientWorld|ServerWorld] Spawn data sending is now working. 2020-01-22 09:22:47 +09:00
Quentin Bazin
1dc66fd9e2 [ServerWorld] New function added to send spawn data to connecting clients. 2020-01-22 09:22:47 +09:00
Quentin Bazin
12dcb38ebd Infinite world: First attempt. 2020-01-22 09:22:47 +09:00
Quentin Bazin
2f790ec723 [ChunkBuilder] Small improvement. 2020-01-10 16:53:44 +09:00
Quentin Bazin
f45050ba59 [ServerLoadingState] Now used before login when using 'ServerWorld::sendWorldData'. 2020-01-10 16:08:57 +09:00
Quentin Bazin
4d069f0301 [ServerWorld] Small optimization. 2020-01-02 17:35:28 +09:00
Quentin Bazin
d45f7d88aa [ChunkLightmap] Lighting propagation improved. This fix slowed chunk generation though. 2020-01-02 16:06:20 +09:00
Quentin Bazin
b6d5611355 [TerrainGenerator] Sunlight downward propagation fixed. 2019-12-31 19:55:53 +09:00
Quentin Bazin
e8f0198c3c [Text] Now able to display multiple lines. 2019-12-30 20:19:16 +09:00
Quentin Bazin
c7e23e61a0 [ServerWorld] Last torchlight issue fixed. 2019-12-30 20:18:52 +09:00
Quentin Bazin
b070e58b0e [CraftingRecipe] Fixed shaped recipe matching. 2019-12-30 18:09:22 +09:00
Quentin Bazin
44ea538282 [ChunkBuilder|ChunkLightmap] Sunlight problems fixed. Closes #21. 2019-12-30 10:34:20 +09:00
Quentin Bazin
cf236576ec Now syncing player position between clients. But client is authoritative. 2019-04-08 15:29:19 +02:00
Quentin Bazin
41155f7fd0 [ServerApplication] Now handles multiple players. 2019-04-07 18:20:15 +02:00
Quentin Bazin
19ea5c152f [ServerCommandHandler] 'PlayerPosUpdate' callback added. 2019-04-07 17:20:35 +02:00
Quentin Bazin
58043344f1 [ClientCommandHandler|ServerCommandHandler] Added. 2019-03-17 17:22:53 +01:00
Quentin Bazin
197ec07d12 [PlayerBox] Added to display players. [Network] New server-emitted 'PlayerSpawn' command. 2019-03-17 16:56:26 +01:00
Quentin Bazin
2c8878bf49 [GameState|ServerApplication] Moved callbacks setup into its own function. 2019-03-17 15:04:00 +01:00
Quentin Bazin
14ca959fe1 [LuaGUI] C++14 migration. 2019-02-26 16:04:08 +01:00
Quentin Bazin
23be33492e Small fixes. 2019-02-21 09:45:02 +01:00
Quentin Bazin
9226ce4f42 [ServerBlock] Now sending 'data' attribute. 2019-01-26 20:55:22 +01:00
Quentin Bazin
b1d327ba14 [furnace.lua] Fixed. 2019-01-26 20:46:38 +01:00
Quentin Bazin
11f9365675 [Network] BlockInvUpdate and BlockDataUpdate packets added. Furnace almost done. 2019-01-26 20:29:13 +01:00
Quentin Bazin
5e62cf07a1 [TerrainGenerator] New world gen. 2019-01-26 16:57:25 +01:00
Quentin Bazin
7cb8a51c3f [ServerBlock] Now sending BlockUpdate packet when needed. 2019-01-26 11:04:44 +01:00
Quentin Bazin
6e4e8c0547 [ServerChunk] Ticking blocks re-enabled. WIP. 2019-01-26 10:05:37 +01:00
Quentin Bazin
dee8dc7d97 [Chunk|World] Block inventory enabled. WIP. 2019-01-25 23:47:45 +01:00
Quentin Bazin
077c93d15b [LuaGUI] Now shows Workbench and Furnace GUI. [ServerBlock] Added. 2019-01-25 13:59:57 +01:00
Quentin Bazin
b8fa100e99 [ServerApplication] Now using Lua 'init()' to give items at spawn. 2019-01-23 21:51:19 +01:00
Quentin Bazin
2035f9123f [Block] onTick and onBlockActivated re-enabled. 2019-01-23 00:38:08 +01:00
Quentin Bazin
156915cfa8 [World] Now used as main class for ClientWorld and ServerWorld. 2019-01-23 00:15:47 +01:00
Quentin Bazin
e2816324a8 [Player] Server now keep track of the inventory. 2019-01-23 00:04:03 +01:00
Quentin Bazin
e21160a56e [ClientApplication|ServerApplication] Now using gk::ArgumentParser. 2019-01-21 23:59:43 +01:00
Quentin Bazin
066d1a09f5 [ServerWorld] Half tree issue and lighting bugs fixed. 2019-01-21 21:51:18 +01:00
Quentin Bazin
f9393c5316 [ScriptEngine] Moved to server. 2019-01-20 17:08:44 +01:00
Quentin Bazin
3105fe9339 [ClientWorld|ServerWorld] Increased world size. [Player] Sprint added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
29c518631b [.travis.yml] Added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
8124cab3b6 Chunk loading optimized. 2019-01-20 15:07:45 +01:00
Quentin Bazin
f146e2d5da [Config] No clip mode added. [SettingsMenuState] Small refactoring. 2019-01-20 15:07:45 +01:00
Quentin Bazin
104597a39d [Network] 'ChunkRequest' command added. 2019-01-20 15:07:45 +01:00