Closed OlegPrymas closed 1 year ago
Good question!
The line with the 'invalid pattern capture' error is:
local temp = i3d_path:gsub(g_modsDirectory, "")
If you can edit the main UAL file to inlcude these lines (around line 4759), maybe we will see what is causing the error:
function UniversalAutoload.getEnvironmentNameFromPath(i3d_path)
if i3d_path == nil then
return
end
-- ADD THIS LINE
print("i3d_path: " .. tostring(i3d_path))
--END ADD
local customEnvironment = nil
if i3d_path:find(g_modsDirectory) then
-- ALSO ADD THIS LINE
print(" found in " .. tostring(g_modsDirectory))
-- END ADD
local temp = i3d_path:gsub(g_modsDirectory, "")
customEnvironment, _ = temp:match( "^(.-)/(.+)$" )
else
for i = 1, #g_dlcsDirectories do
local dlcsDirectory = g_dlcsDirectories[i].path
if dlcsDirectory:find(":") and i3d_path:find(dlcsDirectory) then
-- AND ADD THIS LINE JUST IN CASE
print(" found in " .. tostring(dlcsDirectory))
-- END ADD
local temp = i3d_path:gsub(dlcsDirectory, "")
customEnvironment, _ = "pdlc_"..temp:match( "^(.-)/(.+)$" )
end
end
end
return customEnvironment
end
Should there be empty lines between them?
Empty lines don't matter, and the comments don't matter either, but comments must begin with --
so that they are ignored.
Коментарии не писал,только строки вставил.Ничего не поменялось в лог то что и было
вот что получилось
I think something went wrong with adding the lines - can you try this version please: FS22_UniversalAutoload.zip
Спасибо,попробую отпишусь!
это карта от Dajnet, PVcanyoncrossing Может дело в полетах в карте,в оригинальной игре нет ошибок
Попробуй у себя ее установить и запустить с твоим модом
It could be because there is a round bracket )
in your windows user name path:
C:/Users/Dimonza)/Documents/My Games/FarmingSimulator2022/mods/
Ты был прав.проблема была в этом ).Спасибо за помощь!
How to solve a problem with a critical error?
log.txt