Cataclysm-dda: Negative water drag on super-heavy death fortress

Created on 30 Jun 2019  路  3Comments  路  Source: CleverRaven/Cataclysm-DDA

Describe the bug

So I own about 37 ton death fortress. I added boat hull to every fields and edited existing vehicle parts that I would consider "Float"(fluid tanks and trunks, which are sealed and would float) and make it barely sea-worthy. And at some point, I got negative water drags.
image

Driving this vehicle on water will make the vehicle accelerate. Forever. Until you hit something.
Deceleration is disabled during this part.

Steps to reproduce the behavior:

  1. Make incredibly heavy vehicle. (mine is 6x10)
  2. Make this vehicle to "Swim" level.

Expected behavior

Negative water drag value is outside of Newtonian physics this game is simulating.

(S4 - Invalid) Mods

Most helpful comment

Do I understand you correctly that you edited the game data and then the game stopped working correctly?

All 3 comments

This is because the calculation compares number of tiles for vehicle vs number of objects with floats flag, and if you have more than numtiles floating objects, the math goes below zero. Currently your vehicle is simply too heavy and you have to reduce the weight or expand it further to fit more boat boards. There are plans to eventually have fully-sealed vehicles, but that is a fair ways off.

Do I understand you correctly that you edited the game data and then the game stopped working correctly?

This is because the calculation compares number of tiles for vehicle vs number of objects with floats flag, and if you have more than numtiles floating objects, the math goes below zero. Currently your vehicle is simply too heavy and you have to reduce the weight or expand it further to fit more boat boards. There are plans to eventually have fully-sealed vehicles, but that is a fair ways off.

Makes sense. Thank you.

Was this page helpful?
0 / 5 - 0 ratings