linuxgurugamer / HullcamVDSContinued

GNU General Public License v3.0
26 stars 18 forks source link

Variable not Found, impactTolerance #15

Open 7ranceaddic7 opened 5 years ago

7ranceaddic7 commented 5 years ago

As Apaseall noted in the forums ...

PartLoader: Compiling Part 'HullCameraVDS/Parts/aerocam/part/aerocam'

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

PartLoader Warning: Variable impactTolerance not found in Part

... occurs for all camera parts.

The variable impactTolerance is a member of ModuleWheels.ModuleWheelDamage Class Reference. A non-wheel (Pods, Tanks, Engines) PART{} will have crashTolerance. Meanwhile, a "wheeled" (wheels, skids, landing legs) PART{} will have both crashTolerance for the part directly and impactTolerance as a variable in the MODULE{ModuelWheelDamage}.

Solution: Remove impactTolerance from camera parts.

7ranceaddic7 commented 5 years ago

Question: Would you be opposed to changing the filename for these from part.cfg to .cfg?

linuxgurugamer commented 5 years ago

Actually, yes. They are already in individual directories, and this can make it easier to do a mass edit/change if I need to. It's not a big deal, but I'd rather not change something just for the sake of changing it. Think about what happens if someone updates by hand and doesn't delete the old directory