34 Commits

Author SHA1 Message Date
Quentin Bazin
3a2024d120 Last lighting issue almost fixed. 2020-01-22 09:22:47 +09:00
Quentin Bazin
ba3dfb3b7e [ServerWorld] Debug removed. 2020-01-22 09:22:47 +09:00
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
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
c7e23e61a0 [ServerWorld] Last torchlight issue fixed. 2019-12-30 20:18:52 +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
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
066d1a09f5 [ServerWorld] Half tree issue and lighting bugs fixed. 2019-01-21 21:51:18 +01:00
Quentin Bazin
8124cab3b6 Chunk loading optimized. 2019-01-20 15:07:45 +01:00
Quentin Bazin
104597a39d [Network] 'ChunkRequest' command added. 2019-01-20 15:07:45 +01:00
Quentin Bazin
03bffbb666 [Network] Server is now aware of placed blocks and can forward the info to other clients. 2019-01-20 15:07:45 +01:00
Quentin Bazin
824c6d30c0 [ChunkLightmap] Now handled by both client and server. 2019-01-20 15:07:45 +01:00
Quentin Bazin
70d6a94332 [ServerWorld] Worldgen fixed. 2019-01-20 15:07:45 +01:00
Quentin Bazin
d75d7b7f54 [ServerChunk] Buggy worldgen, but still a worldgen. 2019-01-20 15:07:45 +01:00
Quentin Bazin
c9ba346b4c [ServerChunk] Now using TerrainGenerator instead of a random gen. 2019-01-20 15:07:45 +01:00
Quentin Bazin
fce9eba630 [ClientWorld|ServerWorld] Added. Code cleaned a bit. 2019-01-20 15:07:45 +01:00