n2pital Posted July 24, 2025 Share Posted July 24, 2025 It's just a simple function with a few lines of code. None of my other mods have such issues. Link to comment https://forums.kleientertainment.com/forums/topic/167186-modmy-mod-will-cause-room-demand-translation-to-fail/ Share on other sites More sharing options...
jdd1111 Posted July 24, 2025 Share Posted July 24, 2025 一样的,我加的模组Fast Track版本v0.16.1.0,加了以后就会显示英文,关闭了就好了。 Link to comment https://forums.kleientertainment.com/forums/topic/167186-modmy-mod-will-cause-room-demand-translation-to-fail/#findComment-1828507 Share on other sites More sharing options...
SGT_Imalas Posted July 24, 2025 Share Posted July 24, 2025 Your mod causes the game class to load too early. The class has room descriptions defined directly, this causes them to be assigned when the class is referenced for the first time. These assignments also dont store locstring keys, so they just assign the value of the string at that moment. (This is an issue with the game code, translatable strings should never be referenced in default initializers) The only way for you to solve that is to not directly reference that class until translations are loaded. The issue with that is that it is affected by transitive dependencies (you reference class A, class A references class B which in turn references the room descriptor class). Game settings names+descriptions are another area that experiences the same issue Link to comment https://forums.kleientertainment.com/forums/topic/167186-modmy-mod-will-cause-room-demand-translation-to-fail/#findComment-1828511 Share on other sites More sharing options...
n2pital Posted July 29, 2025 Author Share Posted July 29, 2025 On 7/24/2025 at 4:24 PM, jdd1111 said: 一样的,我加的模组Fast Track版本v0.16.1.0,加了以后就会显示英文,关闭了就好了。 我是作者 Link to comment https://forums.kleientertainment.com/forums/topic/167186-modmy-mod-will-cause-room-demand-translation-to-fail/#findComment-1829373 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now