When cooking a plugin you might run into errors similar to these, stating filename is too long:
[2024.01.20-16.03.46:533][ 0]LogCook: Error: Couldn't save package, filename is too long (275 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/TrainLine/S_EHP_DB_ICE1_Zugsammelschiene_-1_0.uasset
[2024.01.20-16.03.46:536][ 0]LogCook: Error: Couldn't save package, filename is too long (267 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/TrainBrakeLever/S_EHP_DB_ICE1_FBrV_SB.uasset
[2024.01.20-16.03.46:541][ 0]LogCook: Error: Couldn't save package, filename is too long (277 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/TrainBrakeLever/S_EHP_DB_ICE1_FBrV_Füllstoß_1_0.uasset
[2024.01.20-16.03.46:545][ 0]LogCook: Error: Couldn't save package, filename is too long (277 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/TrainBrakeLever/S_EHP_DB_ICE1_FBrV_Füllstoß_0_1.uasset
[2024.01.20-16.03.46:548][ 0]LogCook: Error: Couldn't save package, filename is too long (268 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/TrainBrakeLever/S_EHP_DB_ICE1_FBrV_Auf.uasset
[2024.01.20-16.03.46:552][ 0]LogCook: Error: Couldn't save package, filename is too long (267 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/TrainBrakeLever/S_EHP_DB_ICE1_FBrV_Ab.uasset
[2024.01.20-16.03.46:556][ 0]LogCook: Error: Couldn't save package, filename is too long (270 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/Throttle/S_EHP_DB_ICE1_Fahrschalter_Voll.uasset
[2024.01.20-16.03.46:559][ 0]LogCook: Error: Couldn't save package, filename is too long (272 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/Throttle/S_EHP_DB_ICE1_Fahrschalter_Runter.uasset
[2024.01.20-16.03.46:563][ 0]LogCook: Error: Couldn't save package, filename is too long (270 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/Throttle/S_EHP_DB_ICE1_Fahrschalter_Raus.uasset
[2024.01.20-16.03.46:567][ 0]LogCook: Error: Couldn't save package, filename is too long (267 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/Throttle/S_EHP_DB_ICE1_Fahrschalter_F.uasset
[2024.01.20-16.03.46:572][ 0]LogCook: Error: Couldn't save package, filename is too long (267 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/Throttle/S_EHP_DB_ICE1_Fahrschalter_0.uasset
[2024.01.20-16.03.46:576][ 0]LogCook: Error: Couldn't save package, filename is too long (268 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/SifaPedal/S_EHP_DB_ICE1_SifaPedalOut04.uasset
[2024.01.20-16.03.46:579][ 0]LogCook: Error: Couldn't save package, filename is too long (268 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/SifaPedal/S_EHP_DB_ICE1_SifaPedalOut03.uasset
[2024.01.20-16.03.46:582][ 0]LogCook: Error: Couldn't save package, filename is too long (268 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/SifaPedal/S_EHP_DB_ICE1_SifaPedalOut02.uasset
[2024.01.20-16.03.46:586][ 0]LogCook: Error: Couldn't save package, filename is too long (268 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/SifaPedal/S_EHP_DB_ICE1_SifaPedalOut01.uasset
[2024.01.20-16.03.46:590][ 0]LogCook: Error: Couldn't save package, filename is too long (267 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/SifaPedal/S_EHP_DB_ICE1_SifaPedalIn04.uasset
[2024.01.20-16.03.46:594][ 0]LogCook: Error: Couldn't save package, filename is too long (267 >= 260): D:/Programme/TSW_PublicEditor/TrainSimWorld4MOD/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Saved/Cooked/WindowsNoEditor/TS2Prototype/Plugins/DLC/KWG_DB_ICE1_EnhancementPack/Content/Audio/Resources/Cab/CabControls/SifaPedal/S_EHP_DB_ICE1_SifaPedalIn03.uasset
To enable long file name/long path support you must change one key in the Windows Registry.
Open the Windows Registry-Editor. Either use the Windows Search or the Run Dialog accessed by pressing Win
+R
and open regedit.exe
. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
.
Double click on LongPathsEnabled
and change the value to 1
. You do not need to restart your PC for this change to become effective, simply retry cooking.