-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Destroying and splitting cars may make some untouched car parts disappearing. #78833
Comments
Confirmed. For a simple test, take damaged cars and a hammer (+20 strength). After that smash the center of the car to split it into pieces. Guided by memory. You can also pick up shards from where the missing piece should be. |
Likely a type conversion error, though the behavior is erratic. |
I'll try making the vehicle caches behave like the other level caches given that wants doing anyway bc it's not shiftable rn and see if that conveniently fixes it at the same time |
This unfortunately appears unrelated to |
Based on what? |
I've patched in a the ability to call The attached save file has a grid of vehicles which looks like this beforehand: Destroying two tiles seems more likely than three, and three more likely than four, but there otherwise appears to be no correlation. I have attached the patch for the debug menu, the save file and vehicle structure in case anyone wants to take a look. Help would be much appreciated. EDIT: I've done a bit of work, and there's to be a strong correlation between number of debug_menu.patch |
|
Considering there's no call to |
Re-testing shows that it fails sometimes but not most of the time. I now wonder if the failures were introduced earlier, they're just rarer? |
Describe the bug
If you bash a car, destroying one tile of it and splitting some parts apart, the split parts ocassionally disappear.
I believe this is also the reason why vehicle splitting test is failing now.There must be something wrong with the level_cache, like
map::rebuild_vehicle_level_caches()
.Attach save file
Kremmling-trimmed.tar.gz
Steps to reproduce
1.Load the save, debug spawn a 4x4 car.
2.Bash it until the top left corner is split, and it may disappear. If failed to reproduce, quit without saving and restart the game to test again.
3.Keep bashing until another part is split, see the top left corner returned. The newly split may also disappear.
4.Reload the save should also make the disappeared parts return.
Expected behavior
No bug while splitting cars .
Screenshots
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth]
]
Additional context
No response
The text was updated successfully, but these errors were encountered: