ferram4 / Ferram-Aerospace-Research

Aerodynamics model for Kerbal Space Program
Other
239 stars 131 forks source link

Non-English KSP can not repack parachute #238

Open tinygrox opened 4 years ago

tinygrox commented 4 years ago

KSP version

1.9.1.2788

Language

zh-cn Simplified Chinese

FAR version

3:0.15.11.4

Description

image

After using the parachute, assign a level 2 engineer to repackage the parachute. Keep showing message: "只有1级以上的工程师能重新打包降落伞" which means "Only a level 1 and higher engineer can repack a parachute" in English.

Playing in English does not have this problem.

My conclusion

The cause of this problem is the code on line 139 of file RealChuteLite\RealChuteFAR.cs

https://github.com/ferram4/Ferram-Aerospace-Research/blob/787a30bc9deab0bde87591f0cc973ec3b0dd2de9/FerramAerospaceResearch/RealChuteLite/RealChuteFAR.cs#L139

When I change it to kerbal.experienceTrait.Title == Localizer.Format("#autoLOC_500103") && kerbal.experienceLevel >= 1; and compile it on my computer, problem solved.