CleverRaven / Cataclysm-DDA

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

Folding solar panel throws error on deployment and duplicates* on disassembly. #73976

Open Brambor opened 2 months ago

Brambor commented 2 months ago

Describe the bug

Deploy folding solar panel get this:

 DEBUG    : new base 'folding_solar_panel' doesn't match part type 'ap_folding_solar_panel', this is a bug

 FUNCTION : set_base
 FILE     : C:\GitHub\Cataclysm-DDA\src\vehicle_part.cpp
 LINE     : 106
 VERSION  : 0.G-9614-gf522d7df2d-dirty

Take it down, you get these: image

Place them down. The folding solar panel throws an error again and the cycle repeats.

The other thing is a bonus solar panel, that works as expected, except that it has an internal battery of 1kJ and it is spawned by taking down the deployed folding solar panel.

Attach save file

Paradise-trimmed.tar.gz

Steps to reproduce

  1. Load attached save.
  2. The rest is in the bug description.

Expected behavior

No duplication.

No errors on deployment.

Screenshots

No response

Versions and configuration

Additional context

I bet this is reported already and I just couldn't find it.

Void-Seeker commented 1 month ago

Can confirm, happened for me too.

TheMurderUnicorn commented 1 month ago

Yeah, I tested this when you (or whoever) brought it up on discord, I was able to duplicate it but couldn't figure out how to fix it with my limited knowledge.