CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.33k stars 4.15k forks source link

Trying to place makeshift chemical crafting appliances instead places different appliances, sometimes gives errors #60995

Closed AmarinReyny closed 2 years ago

AmarinReyny commented 2 years ago

Describe the bug

When I try to place an any appliances related to ammonia production, I get an error message saying "item ammonia_machine_reactor is not base item of any appliance!", or a similar error for the corresponding item of whichever other appliance I am trying to place. After pressing either space or i, I find that, instead of the appliance I was trying to place, I have instead placed a standing lamp.

Something similar happens with nitrogen generators: while it doesn't give me any error messages, it does place a makeshift water electrolyzer instead of a makeshift nitrogen generator.

Steps to reproduce

  1. Try to place any appliances related to ammonium production
  2. See the error message
  3. See a lamp where your desired machine should be

OR

  1. Try to place a makeshift nitrogen generator
  2. See a makeshift water electrolyzer where your makeshift nitrogen generator should be.

Expected behavior

I expect that, when I try to place the intended appliance, I will get the intended appliance where I place it.

Screenshots

No response

Versions and configuration

Additional context

No response

irwiss commented 2 years ago

https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/json/furniture_and_terrain/appliances.json#L486-L601 all the ammonia related appliances have "item": "ammonia_machine_reactor", instead of their corresponding base item set

AmarinReyny commented 2 years ago

https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/json/furniture_and_terrain/appliances.json#L486-L601 all the ammonia related appliances have "item": "ammonia_machine_reactor", instead of their corresponding base item set

So, should I change it to the corresponding base item set?

irwiss commented 2 years ago

Yep, they should match the component in the construction.json - e.g. ap_electrolyzer_makeshift should have electrolyzer_makeshift as it's "item"

AmarinReyny commented 2 years ago

Yep, they should match the component in the construction.json - e.g. ap_electrolyzer_makeshift should have electrolyzer_makeshift as it's "item"

Excellent. Thank you! I'd upload the fix as a PR, but I don't know how to do that...

anoobindisguise commented 2 years ago

60104

I already had a fix for this pending for awhile

AmarinReyny commented 2 years ago

60104 I already had a fix for this pending for awhile

Ah, okay. Thank you!