Gedemon / Civ6-YnAMP

Yet (not) Another Maps Pack for Civilization VI
184 stars 122 forks source link

Attempt to index nil value on Linux #110

Open jyavorska opened 5 years ago

jyavorska commented 5 years ago

Using Steam version of YnAMP on latest Linux build. Linux still requires the workaround described at https://github.com/Gedemon/Civ6-YnAMP/issues/56#issuecomment-449607039 to work, but now has an additional error:

Test: Test.LUA loaded!
MainMenu: Checking Mods status for MainMenu Media...
JoiningRoom: OnFinishedGameplayContentConfigure() g_waitingForContentConfigure=true
AdvancedSetup: loading AdvancedSetup for Yet (not) Another Maps Pack...
Runtime Error: \home\jason\.local\share\Steam\steamapps\workshop\content\289070\871861883\Override\advancedsetup.lua:872: attempt to index a nil value
stack traceback:
        \home\jason\.local\share\Steam\steamapps\workshop\content\289070\871861883\Override\advancedsetup.lua:872: in function 'Initialize'
        \home\jason\.local\share\Steam\steamapps\workshop\content\289070\871861883\Override\advancedsetup.lua:892: in function '(main chunk)'
        [C]: in function '(anonymous)'^M
Lua callstack:^M
Error loading file where=, file=\home\jason\.local\share\Steam\steamapps\workshop\content\289070\871861883\Override\advancedsetup.lua
Runtime Error: \home\jason\.local\share\Steam\steamapps\workshop\content\289070\871861883\Override\advancedsetup.lua:661: attempt to index a nil value
stack traceback:
        \home\jason\.local\share\Steam\steamapps\workshop\content\289070\871861883\Override\advancedsetup.lua:661: in function 'OnShow'^M
Lua callstack:^M
MainMenu: Checking Mods status for MainMenu Media...
JoiningRoom: OnFinishedGameplayContentConfigure() g_waitingForContentConfigure=true
jyavorska commented 5 years ago

Looks possibly related to https://github.com/Gedemon/Civ6-YnAMP/commit/411d0c5f557bec6fede276054a58985b388d31a4 though there were a lot of things going on in that commit and it's hard to figure out what's related or not.

hartmark commented 5 years ago

I have made the mods-folder an fat-partition that is mounted as an img. The fat-partition is case insensitive so such issues is gone.

https://forums.civfanatics.com/threads/tutorial-getting-mods-to-work-in-linux-most-of-the-steps-are-no-longer-needed.528742/