Commit Graph

182 Commits (main)

Author SHA1 Message Date
mckaygerhard 55028bc300 try to sinc by consider mapgen version
* This will allow pyramids to find some desert sand, but
  the astute will notice those are the v7 Heat Noise Parameters,
  the (5349, 3, 0.7, 500), and the Humidity for those inclined
  to tinker are (842, 3, 0.55, 500), cos mods that rely on
  the perlin noise must be in sync.
* try to detect the older simplev7 mod and sync with guessed values
* also detect the multicraft v7 plus mapgen
2024-04-29 15:06:51 -04:00
mckaygerhard 9f69de44c0 improved the information of the mod and provides the info about this fork 2024-04-29 14:49:27 -04:00
mckaygerhard 4297ae029d Fixed a crash due to vague or illogical comparisons for mummies
* seems the mummy is a mob, and `get_objects_inside_radius` also
  gets players, dropped items, etc... cos this function checks
  for all loaded entities on the server, so you'll need to check
  for that mummy around if those objects are only mobs, or not mobs
  or players or nodes.. this check is not made by upstream stupid developer,
  he just said "works for me"! and close the issue
* that function may returns nil/null if the name of the object is
  not EXACT the same, as made `if lua.name == "tsm_pyramids:mummy_spawmer"`
  then that the name could fails in rare cases becouse is used as index
  also the comparison is made with same olbject that seems
  do not have much effect
* The error of a nul vector is related only to the engine!
* Closes https://codeberg.org/minetest-stuffs/minetest-mod-tsm_pyramids/issues/4
* Closes https://github.com/EdenLostMinetest/tsm_pyramids/issues/1
* Closes https://codeberg.org/Wuzzy/minetest_tsm_pyramids/issues/4
2024-04-29 10:35:00 -04:00
mckaygerhard 2c9ea6faca workaround for bulk_set_node newer implementations on onder engines
* the `bulk_set_node` seems the function is since minetest 5.0 but
  it seems does not show in the git-shit-hub search, so found it
  manually at 584d00a01c
  that is only an optimized bulk way of `set_node` using a list of positions
  now with this pyramids will work in older versions of minetest too
* Closes https://codeberg.org/minetest-stuffs/minetest-mod-tsm_pyramids/issues/5
* incorporate a detection of 5.4+ versions of engine
2024-04-29 10:29:47 -04:00
mckaygerhard 762b2d7838 fix perlin noise returns null on some rarte cases as reported in minetest
* i was first checked at https://forum.minetest.net/viewtopic.php?t=8157
  as "minetest.get_perlin() and minetest.get_perlin_map() Return nil" by prestidigitator
  The `minetest.get_perlin()` function returns nil since 0.4.8+ until 5.1.0
  The `PerlinNoise()` constructor does return a valid object, on the other hand,
  barely documented as alternatrive cos is internally used only and not api public
  cos can only call it after the environment is created, so the code
  must bne inside `minetest.after(0, ...)` it only works the first time,
  or must be used an alternative
* was reported also https://github.com/minetest/minetest/issues/10385 that
  does not properly handle large world seeds
* Close https://codeberg.org/Wuzzy/minetest_tsm_pyramids/issues/2
* Close https://codeberg.org/minetest-stuffs/minetest-mod-tsm_pyramids/issues/2
* Also uses older get2d vs get_2d for newer engines older pre 5.0.0
  as seen on https://github.com/minetest-LOTR/Lord-of-the-Test/issues/139
  detect newer engine and uses proper method to get agains perlin object
  Closes https://codeberg.org/minetest-stuffs/minetest-mod-tsm_pyramids/issues/2
2024-04-29 10:17:25 -04:00
general 6b53a21c96 backguard compatibility for 4.X on translator and noisebuffer loading
* the wrokaround is done waithing until mod loads using minetest.after,
 at older engines we only can callit one time at load, but now the error
 generates in other place..  check for more elaborate solution
 at https://codeberg.org/minetest-stuffs/minetest-mod-tsm_pyramids/issues/2#issuecomment-1712924
* reported at https://codeberg.org/Wuzzy/minetest_tsm_pyramids/issues/2
* related to https://github.com/minetest/minetest/issues/10385#issuecomment-1674162787
2024-03-24 18:48:20 -04:00
general fd60628a52 backguard compatibility add for older mod idetification 2024-03-24 18:48:05 -04:00
mckaygerhard f46a9ae4f7 return back original chest fill but leave the refill on 30 minutes
* this was due the change from commit 1eb0bc363e
  of sys4 <sys4@sys4.fr> at Fri Dec 27 01:22:46 2019 +0100
  that said: Ajoute remplissage des coffres 30 minutes après ouverture
  et modifie les items générés par ceux de nalc_trm
  merged at commit dfd03b56c6
2024-03-21 06:14:09 -04:00
mckaygerhard ffdc7cd035 Consider mapgen v7. Add max height.
* set a maximun height and use the parameters on mapgen v7 from poikilos,
  seems oldcoder already does that! this was taken from old fork
  from commit e970ff7955
* the commit only takes the max height part.. the node detection
  suggestion was omited (few 3 lines around sand_cnt_max_id check)
  cos is already added on the previous function `select_pyramid_type(min, max)`
2024-03-21 06:04:04 -04:00
mckaygerhard 4fc72e39ad get back a proper git attibutes to use only linux format files 2024-03-21 05:46:12 -04:00
mckaygerhard e947488c24 use check_for_falling if 5.0.0-dev
* takend from poikilos fork of oldcoder fix on older engines using 0.4.15
  commit 955a6e3dc4
2024-03-21 05:43:04 -04:00
mckaygerhard dfd03b56c6 Merge master from https://github.com/ronoaldo/tsm_pyramids into main: fix crashes
* Fix crash caused by lack of luaentity nil check and minetest 5.6
  from commit d4d89c5cc4
* Add refill to chests 30 minutes after opening; and modify the items
  generated by those of nalc_trm (we must change this later)
  from commit 1eb0bc363e
2024-03-21 05:31:37 -04:00
Wuzzy 34359b250f Merge pull request 'Fix deprecation warnings' (#3) from frostsnow/minetest_tsm_pyramids:5.8.0-fixes into master
Reviewed-on: https://codeberg.org/Wuzzy/minetest_tsm_pyramids/pulls/3
2024-01-07 17:31:13 +00:00
Wade T. Cline 699012db80 Fix deprecation warnings
Move defined object properties into the initial_properties table.
2024-01-06 20:01:14 -08:00
Wuzzy 408e33b76f Add missing 'than' in comment 2023-08-12 09:53:23 +02:00
Wuzzy 57b07b18e5 Fix missing = signs in template.txt 2023-03-14 03:23:02 +01:00
Wuzzy 84bea1052e Version 1.0.4 2022-10-16 17:06:50 +02:00
Wuzzy 303d3cf45c Respawn spawner entity on punch/load 2022-10-16 17:06:03 +02:00
Wuzzy ac9a442a07 Add min_minetest_version 2022-10-16 16:26:55 +02:00
Wuzzy a17725133e Rename one of the engraving stones (Man→Human) 2022-10-16 16:24:16 +02:00
Wuzzy 041a4c5dcc Add .mailmap for Wuzzy 2022-10-16 16:20:37 +02:00
Wuzzy 36fc4d2639 Remove giant useless .gitignore 2022-10-16 16:18:45 +02:00
Wuzzy 111639b778 Remove useless .gitattributes 2022-10-16 16:18:23 +02:00
Wuzzy 3fc59c9010 Fix crash if mummy dies in fire 2022-10-16 16:17:14 +02:00
sys4 d4d89c5cc4 Fix crash caused by lack of luaentity nil check and minetest 5.6 2022-09-04 19:00:44 +02:00
sys4 c8ecf77255 Merge remote-tracking branch 'upstream/master' 2022-03-05 11:28:23 +01:00
Wuzzy 61ebaab55e Version 1.0.3 2022-02-19 23:27:55 +01:00
Wuzzy 8a449ea8a8 Fix crash if on_punch was called w/ nil damage 2022-02-19 23:27:23 +01:00
sys4 d8ece75bee Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-12 21:51:55 +02:00
Wuzzy 0abcd7960a Version 1.0.2 2020-04-06 14:59:36 +02:00
Wuzzy f5fef5118d Fix broken mummy hit texture 2020-04-06 14:59:11 +02:00
Wuzzy 0974de93e4 Fix occassional crash when mummy dies 2020-04-06 14:41:48 +02:00
Wuzzy 0629d3b6ed Version 1.0.1 2020-04-06 00:47:39 +02:00
Wuzzy 5e9cd77fdc Use TRUE ephemeral sounds 2020-04-06 00:47:00 +02:00
Wuzzy 1b3f948daa Use ephemeral sounds 2020-04-06 00:19:56 +02:00
sys4 1eb0bc363e Ajoute remplissage des coffres 30 minutes après ouverture
et modifie les items générés par ceux de nalc_trm
2019-12-27 01:22:46 +01:00
Wuzzy 63572c5c23 Fix crash 2019-10-01 13:06:20 +02:00
Wuzzy 2538680eea Fix undeclared global warnings 2019-09-26 14:31:24 +02:00
Wuzzy 85da5073b9 Version 1.0.0 2019-09-02 20:45:11 +02:00
Wuzzy d995fd381a Spawn egg: Make node on_rightclick take precedence 2019-08-25 18:47:10 +02:00
Wuzzy 355aa1d40d Add mummy description field (CMI) 2019-08-25 18:21:12 +02:00
Wuzzy 44482f6268 Add basic CMI support (experimental) 2019-08-25 18:04:16 +02:00
Wuzzy ae4fc9135c Add _cmi_is_mob 2019-08-25 17:35:56 +02:00
Wuzzy 22b0823de4 Version 0.8 2019-08-25 17:30:10 +02:00
Wuzzy e0f929d8dd Refactor pyramid type selection 2019-08-25 16:41:22 +02:00
Wuzzy 5abc9c1e47 Fix some bugs with traps generating 2019-08-25 16:33:14 +02:00
Wuzzy 47b32ecae1 Simplify trap stone definition 2019-08-25 16:02:25 +02:00
Wuzzy c2167e305a Add new trap type: Deep drop 2019-08-25 15:17:04 +02:00
Wuzzy f71ca591c9 More treasure variety 2019-08-25 14:00:03 +02:00
Wuzzy 9d5dace4fb Guarantee 1 chest with treasures 2019-08-25 12:37:36 +02:00