590: API change in set_physics_override #6733

Closed
opened 2024-04-28 00:57:02 +02:00 by AliasAlreadyTaken · 8 comments

Looks like the API doesn't accept a call like set_physics_override(1,1,1) anymore but demands a table instead. Happens in

your-land/bugtracker#6726

Also affected: cottages sleeping mat and maybe more mods

Looks like the API doesn't accept a call like set_physics_override(1,1,1) anymore but demands a table instead. Happens in your-land/bugtracker#6726 Also affected: cottages sleeping mat and maybe more mods
AliasAlreadyTaken added the
1. kind/bug
2. prio/critical
labels 2024-04-28 00:57:10 +02:00
AliasAlreadyTaken added this to the minetest 5.9.0 milestone 2024-04-28 00:57:12 +02:00
Collaborator

Crosspost from the Archtec bugtracker https://github.com/Archtec-io/bugtracker/issues/179

Crosspost from the Archtec bugtracker https://github.com/Archtec-io/bugtracker/issues/179
Author
Owner

We probably should ask rubenwardy to read out from the content DB where the "old" (read: wrong) style is used and then poke maintainers.

We probably should ask rubenwardy to read out from the content DB where the "old" (read: wrong) style is used and then poke maintainers.
Author
Owner

In the YL solution, set_physics_override is used in 31 places:

  • 3d_armor looks ok
  • airutils looks ok
  • beds looks ok
  • cheese looks ok
  • cottages NOK
  • cucina_vegana looks ok
  • digistuff looks ok
  • limit-physics-monoid looks ok
  • smartshop looks ok
  • petz looks ok
  • pipeworks: only adds that for the fake player
  • player-monoids: looks ok
  • stamina: looks ok
  • ts_furniture: NOK
In the YL solution, set_physics_override is used in 31 places: * [ ] 3d_armor looks ok * [ ] airutils looks ok * [ ] beds looks ok * [ ] cheese looks ok * [ ] cottages NOK * [ ] cucina_vegana looks ok * [ ] digistuff looks ok * [ ] limit-physics-monoid looks ok * [ ] smartshop looks ok * [ ] petz looks ok * [ ] pipeworks: only adds that for the fake player * [ ] player-monoids: looks ok * [ ] stamina: looks ok * [x] ts_furniture: NOK
Collaborator

We probably should ask rubenwardy to read out from the content DB where the "old" (read: wrong) style is used and then poke maintainers.

I linked already to a zipgrep on the Archtec bugtracker two days ago 🙃

> We probably should ask rubenwardy to read out from the content DB where the "old" (read: wrong) style is used and then poke maintainers. I linked already to a zipgrep on the Archtec bugtracker two days ago 🙃
Author
Owner

We are using set_physics_override in 34 places over 19 files:

  • airutils/lib_planes/utilities.lua:139: --player:set_physics_override({speed = 1, jump = 1, gravity = 1, sneak = true})
  • 3d_armor/3d_armor/README.md:344:Note: The player physics modifications won't be applied via set_physics_override if player_physics_locked is set to 1 in the respective player's meta.
  • 3d_armor/3d_armor/api.lua:520: player:set_physics_override(physics)
  • yl_commons/bugfixes/eye_height.lua:50: player:set_physics_override({speed = 0, jump = 0, gravity = 0})
  • yl_commons/bugfixes/eye_height.lua:79: player:set_physics_override({speed = 1, jump = 1, gravity = 1})
  • cheese/fantasy_effects.lua:11: player:set_physics_override({[attribute]=value})
  • cheese/fantasy_effects.lua:18: player:set_physics_override({[attribute]=1})
  • cheese/player_effect_init.lua:129: player:set_physics_override({[attribute]=value})
  • cheese/player_effect_init.lua:136: player:set_physics_override({[attribute]=1})
  • ts_furniture/init.lua:44: player:set_physics_override({speed = 0, jump = 0, gravity = 0})
  • ts_furniture/init.lua:71: player:set_physics_override({speed = 1, jump = 1, gravity = 1})
  • minetest-limit_physics_monoids/init.lua:53: player:set_physics_override(ov)
  • minetest-limit_physics_monoids/init.lua:63: player:set_physics_override(ov)
  • minetest-limit_physics_monoids/init.lua:73: player:set_physics_override(ov)
  • stamina/init.lua:290: player:set_physics_override(def)
  • beds/functions.lua:77: player:set_physics_override({
  • beds/functions.lua:129: player:set_physics_override({speed = 0, jump = 0, gravity = 0})
  • petz/petz/misc/lycanthropy.lua:187: player:set_physics_override(lycanthropy.werewolf.override_table)
  • petz/petz/misc/lycanthropy.lua:209: player:set_physics_override(minetest.deserialize(override_table))
  • fakelib/player.lua:464: "set_nametag_attributes", "set_physics_override",
  • player_monoids/README.md:51: player:set_physics_override(override)
  • player_monoids/standard_monoids.lua:48: player:set_physics_override(ov)
  • player_monoids/standard_monoids.lua:62: player:set_physics_override(ov)
  • player_monoids/standard_monoids.lua:74: player:set_physics_override(ov)
  • digistuff/controller.lua:32: player:set_physics_override({speed = 1,jump = 1,})
  • cottages/nodes_furniture.lua:405: clicker:set_physics_override(1, 1, 1)
  • cottages/nodes_furniture.lua:423: clicker:set_physics_override(0, 0, 0)
  • cottages/nodes_furniture.lua:453: clicker:set_physics_override(1, 1, 1)
  • cottages/nodes_furniture.lua:554: clicker:set_physics_override(1, 1, 1)
  • cottages/nodes_furniture.lua:565: clicker:set_physics_override(0, 0, 0)
  • cucina_vegana/lib.lua:109: playerobject:set_physics_override({speed = highspeed})
  • cucina_vegana/lib.lua:124: playerobject:set_physics_override({speed = normalspeed})
  • minetest-smartshop/tests/initialize.lua:43: player:set_physics_override({
We are using `set_physics_override` in 34 places over 19 files: * [x] airutils/lib_planes/utilities.lua:139: --player:set_physics_override({speed = 1, jump = 1, gravity = 1, sneak = true}) * [x] 3d_armor/3d_armor/README.md:344:*Note: The player physics modifications won't be applied via `set_physics_override` if `player_physics_locked` is set to 1 in the respective player's meta.* * [x] 3d_armor/3d_armor/api.lua:520: player:set_physics_override(physics) * [x] yl_commons/bugfixes/eye_height.lua:50: player:set_physics_override({speed = 0, jump = 0, gravity = 0}) * [x] yl_commons/bugfixes/eye_height.lua:79: player:set_physics_override({speed = 1, jump = 1, gravity = 1}) * [x] cheese/fantasy_effects.lua:11: player:set_physics_override({[attribute]=value}) * [x] cheese/fantasy_effects.lua:18: player:set_physics_override({[attribute]=1}) * [x] cheese/player_effect_init.lua:129: player:set_physics_override({[attribute]=value}) * [x] cheese/player_effect_init.lua:136: player:set_physics_override({[attribute]=1}) * [x] ts_furniture/init.lua:44: player:set_physics_override({speed = 0, jump = 0, gravity = 0}) * [x] ts_furniture/init.lua:71: player:set_physics_override({speed = 1, jump = 1, gravity = 1}) * [x] minetest-limit_physics_monoids/init.lua:53: player:set_physics_override(ov) * [x] minetest-limit_physics_monoids/init.lua:63: player:set_physics_override(ov) * [x] minetest-limit_physics_monoids/init.lua:73: player:set_physics_override(ov) * [x] stamina/init.lua:290: player:set_physics_override(def) * [x] beds/functions.lua:77: player:set_physics_override({ * [x] beds/functions.lua:129: player:set_physics_override({speed = 0, jump = 0, gravity = 0}) * [x] petz/petz/misc/lycanthropy.lua:187: player:set_physics_override(lycanthropy.werewolf.override_table) * [x] petz/petz/misc/lycanthropy.lua:209: player:set_physics_override(minetest.deserialize(override_table)) * [x] fakelib/player.lua:464: "set_nametag_attributes", "set_physics_override", * [x] player_monoids/README.md:51: player:set_physics_override(override) * [x] player_monoids/standard_monoids.lua:48: player:set_physics_override(ov) * [x] player_monoids/standard_monoids.lua:62: player:set_physics_override(ov) * [x] player_monoids/standard_monoids.lua:74: player:set_physics_override(ov) * [x] digistuff/controller.lua:32: player:set_physics_override({speed = 1,jump = 1,}) * [ ] cottages/nodes_furniture.lua:405: clicker:set_physics_override(1, 1, 1) * [ ] cottages/nodes_furniture.lua:423: clicker:set_physics_override(0, 0, 0) * [ ] cottages/nodes_furniture.lua:453: clicker:set_physics_override(1, 1, 1) * [ ] cottages/nodes_furniture.lua:554: clicker:set_physics_override(1, 1, 1) * [ ] cottages/nodes_furniture.lua:565: clicker:set_physics_override(0, 0, 0) * [x] cucina_vegana/lib.lua:109: playerobject:set_physics_override({speed = highspeed}) * [x] cucina_vegana/lib.lua:124: playerobject:set_physics_override({speed = normalspeed}) * [x] minetest-smartshop/tests/initialize.lua:43: player:set_physics_override({
Author
Owner

The only mod that was not fixed at the time of QA was cottages, which is pending a huge PR by flux. So I fixed in the yl_stable branch.

The only mod that was not fixed at the time of QA was cottages, which is pending a huge PR by flux. So I fixed in the yl_stable branch.
AliasAlreadyTaken added the
4. step/ready to QA test
4. step/QA OK
labels 2024-08-15 19:54:46 +02:00
Author
Owner

QA

At least it doesn't crash anymore :D

QA At least it doesn't crash anymore :D
Author
Owner

All positions were replaced, cottages has a PR. At least it doesn't crash anymore :D

All positions were replaced, cottages has a PR. At least it doesn't crash anymore :D
AliasAlreadyTaken added the
5. result/fixed
label 2025-03-08 18:07:26 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6733
No description provided.