Commit Graph

40 Commits

Author SHA1 Message Date
Lars Mueller df5bd3c4ec Fix dynamic media race condition
Wait for *all* players to receive the texture before using it.
Previously this would wait for *any* player to receive the texture.
This works fine in singleplayer (or on pre-5.5,
where dynamic_add_media would block until all players have received the texture),
but it may fail otherwise:
Either entity textures won't be available in time,
or, even worse, the HUD texture is unavailable.
Both produce an error in chat for clients.
2023-04-08 20:10:43 +02:00
Nils Dagsson Moskopp 4fa5c94515
Add tiny player position marker 2022-05-22 15:54:25 +02:00
Nils Dagsson Moskopp be3bb494fb
Fix placed maps in Minetest 5.5+
Due to a race condition, textures for placed maps were not loading in
Minetest 5.5+ unless a player was holding a map with the same texture.
2022-05-22 05:13:16 +02:00
Nils Dagsson Moskopp 78b27ce22b
Fix crash on map creation 2022-05-22 02:24:22 +02:00
Nils Dagsson Moskopp 741f9ede21
Fix variable naming
The variable “color” was not holding a color, but a pixel.
2022-05-21 23:18:29 +02:00
Nils Dagsson Moskopp 13789550e8
Mention placed maps in README.md 2022-05-21 22:14:59 +02:00
Nils Dagsson Moskopp 9ef748bcec
Draw X on placed maps 2022-05-21 22:11:08 +02:00
Nils Dagsson Moskopp a4261aa369
Make it possible to place maps 2022-05-21 21:43:45 +02:00
Nils Dagsson Moskopp b7a5f69dc0
Change name from “maps” to “xmaps” 2022-05-20 20:53:41 +02:00
Nils Dagsson Moskopp 6a72901159
Add screenshot 2022-05-20 20:11:46 +02:00
Nils Dagsson Moskopp dde90cc9cd
Add README.md 2022-05-20 19:59:18 +02:00
Nils Dagsson Moskopp 5f654566a0
Add LICENSE 2022-05-20 19:16:39 +02:00
Nils Dagsson Moskopp 7d339bb78d
Make dependency on map mod optional 2022-05-20 19:14:53 +02:00
Nils Dagsson Moskopp 4538171d56
Apply light level to player position marker 2022-05-20 19:12:41 +02:00
Nils Dagsson Moskopp bc34ba34e8
Refactor map item creation for API extensibility 2022-05-20 18:51:44 +02:00
Nils Dagsson Moskopp 9879745ca2
Allow creation of maps with or without X 2022-05-20 18:40:19 +02:00
Nils Dagsson Moskopp 1df6f7dca4
Update map item meta less often 2022-05-20 15:53:47 +02:00
Nils Dagsson Moskopp 458e9dd87d
Properly update map item meta 2022-05-20 15:42:05 +02:00
Nils Dagsson Moskopp 6cb1b4cd64
Fix crash on map creation 2022-05-20 15:05:27 +02:00
Nils Dagsson Moskopp e086e749fc
When not holding map, forget player marker 2022-05-20 15:02:55 +02:00
Nils Dagsson Moskopp 9f7432b824
Fix map loading error message 2022-05-20 03:55:49 +02:00
Nils Dagsson Moskopp d0fb97c3a1
Remove map from creative inventory 2022-05-20 01:19:17 +02:00
Nils Dagsson Moskopp 6a4c32b754
Fix dependencies in mod.conf 2022-05-20 00:50:24 +02:00
Nils Dagsson Moskopp ead238c376
Add wieldable maps (like mcl_maps) 2022-05-20 00:37:15 +02:00
Nils Dagsson Moskopp 67c75b061c
Draw flower icons on map 2022-05-19 19:32:47 +02:00
Nils Dagsson Moskopp 5c7ddf881d
Generate arrow textures 2022-05-19 19:09:23 +02:00
Nils Dagsson Moskopp 94523cbef6
Draw arrow for player holding map 2022-05-19 17:56:33 +02:00
Nils Dagsson Moskopp 42ea5635f4
Draw house icons on map 2022-05-19 15:09:08 +02:00
Nils Dagsson Moskopp 88d90cfa20
Fill land with checkerboard pattern 2022-05-19 14:20:28 +02:00
Nils Dagsson Moskopp 8626175ed4
Distinguish color from pixel in base color fill 2022-05-19 14:05:20 +02:00
Nils Dagsson Moskopp f0480f3105
Do not render underground water 2022-05-19 06:05:33 +02:00
Nils Dagsson Moskopp 5ccfcd922d
Ensure tree icons do not touch 2022-05-19 03:46:40 +02:00
Nils Dagsson Moskopp 0ac4ce19fd
Draw grass icons on map 2022-05-19 03:45:53 +02:00
Nils Dagsson Moskopp 9dea792ca8
Refactor map icon blitting 2022-05-19 03:34:30 +02:00
Nils Dagsson Moskopp af983dbe38
Do not draw trees in water 2022-05-18 22:20:43 +02:00
Nils Dagsson Moskopp c5f87c5129
Draw non-overlapping trees on map 2022-05-18 21:29:17 +02:00
Nils Dagsson Moskopp 0882a48751
Improve treasure map water depiction 2022-05-17 20:31:14 +02:00
Nils Dagsson Moskopp 70e3c534e4
Encode map in treasure map style 2022-05-17 17:15:04 +02:00
Nils Dagsson Moskopp f47d59fc4a
Make map size configurable 2022-05-17 13:00:47 +02:00
Nils Dagsson Moskopp d70a251c3b
Initial import 2022-05-17 06:49:56 +02:00