
更好的升级附加组件 - 技能兼容性修复
修复游戏启动时出现的“REDScript compilation has failed - This error has been caused by: Better Leveling Addon”错误
查看大图[size=5][b]Better Leveling Addon - Skillful Compatibility Fix[/b][/size]
Fixes the [b]"REDScript compilation has failed - This error has been caused by: Better Leveling Addon"[/b] error on game launch.
[size=4][b]The Problem[/b][/size] The file [i]BetterLeveling And Skillful Compatibility.reds[/i] shipped with [url=https://www.nexusmods.com/cyberpunk2077/mods/24723]Better Leveling Addon - Skill Progression[/url] contains three bugs that break the redscript compiler - which means [b]every[/b] script mod in your game stops working, not just Better Leveling:
[list=1] [][font=Courier New]import SkillfulConfig.[/font] is missing its [font=Courier New]@if(ModuleExists("SkillfulConfig"))[/font] guard. If you don't have the Skillful mod installed, compilation fails with [font=Courier New]UNRESOLVED_IMPORT[/font].[/] []The method [font=Courier New]ModifyCyberwareCapacity_Skillful[/font] is added via [font=Courier New]@addMethod[/font] without a guard, but its signature references the Skillful-only type [font=Courier New]SBA_Skillful[/font] ([font=Courier New]UNRESOLVED_TYPE[/font] without Skillful).[/] []If you [i]do[/i] have Skillful installed: its [font=Courier New]CWCapAmount_*[/font] config fields are [font=Courier New]Int32[/font], but the compat file assigns them to a [font=Courier New]Float[/font] without a cast ([font=Courier New]TYPE_ERR: can't coerce 'Int32' into 'Float'[/font], 6 occurrences).[/*] [/list]
[size=4][b]The Fix[/b][/size] One file, three surgical changes: [list] []Added [font=Courier New]@if(ModuleExists("SkillfulConfig"))[/font] before the import[/] []Added the same guard before [font=Courier New]ModifyCyberwareCapacity_Skillful[/font][/] []Wrapped all six [font=Courier New]CWCapAmount_[/font] assignments in [font=Courier New]Cast<Float>(...)[/font][/*] [/list]No gameplay changes. Works [b]with and without[/b] the Skillful mod installed.
[size=4][b]Installation[/b][/size] Install with Vortex/MO2 like any other mod, or extract manually into your game folder so the file lands at: [font=Courier New]Cyberpunk 2077\r6\scripts\Better Leveling Addon\BetterLeveling And Skillful Compatibility.reds[/font] Overwrite when prompted. Load order doesn't matter - it simply replaces the broken file.
[size=4][b]Requirements[/b][/size] [list] [][url=https://www.nexusmods.com/cyberpunk2077/mods/22784]Better Leveling (Revamp of Custom Level Cap)[/url][/] [][url=https://www.nexusmods.com/cyberpunk2077/mods/24723]Better Leveling Addon - Skill Progression[/url][/] []redscript (which you already have if you run these mods)[/] [/list]
[size=4][b]Credits[/b][/size] All credit for Better Leveling and its addons goes to [url=https://next.nexusmods.com/profile/BiasNil]BiasNil[/url] - this upload only fixes three compiler-level bugs in one file of their addon. Will be taken down if the fix gets merged upstream or the author requests it.
还没有人评论,去客户端里说两句吧。
评论在新手盒子客户端中发表,这里同步展示。