Jump to content

[Crash] Crash on startup: Lua "module 'strict' not found"


nrudzicz
 Share

Recommended Posts

Bug Submission

Please choose a category

[Crash]

Platform

  • Steam

Version Number

-

Issue title

Crash on startup: Lua "module 'strict' not found"

Steps to reproduce

Launch the game through Steam.

Windows error message pops up:

"dontstarve_steam.exe has stopped working"

Describe your issue

Pretty straightforward -- the game simply fails to start.

I've got my latest video drivers; I've tested the game in Chrome, and that also fails (though this time with the red-bordered image of Wilson at his typewriter and the "An error has occurred" message).

The log.txt file reads as follows:
Starting up

THREAD - started 'GAClient' (6952)

HttpClient::ClientThread::Main()

cGame::InitializeOnMainThread

cDontStarveGame::DoGameSpecificInitialize()

cGame::StartPlaying

LOADING LUA

DoLuaFile data/scripts/main.lua

DoLuaFile loading buffer data/scripts/main.lua

DoLuaFile Error: ...g_Make_Steam_Package\workspace\data\scripts\main.lua:62: module 'strict' not found:

no file 'C:/Libs/Lua/5.1' (checked with custom loader)

no field package.preload['strict']

no file 'C:\Libs\Lua\5.1'

no file 'C:\Program Files (x86)\Steam\steamapps\common\dont_starve\bin\lualib\strict.dll'

LUA ERROR stack traceback:

=[C] in function 'require'

c:\jenkins\workspace\jobs\DontStarve_Staging_Make_Steam_Package\workspace\data\scripts\main.lua(62,1) in main chunk

...g_Make_Steam_Package\workspace\data\scripts\main.lua:62: module 'strict' not found:

no file 'C:/Libs/Lua/5.1' (checked with custom loader)

no field package.preload['strict']

no file 'C:\Libs\Lua\5.1'

no file 'C:\Program Files (x86)\Steam\steamapps\common\dont_starve\bin\lualib\strict.dll'

LUA ERROR stack traceback:

=[C] in function 'require'

c:\jenkins\workspace\jobs\DontStarve_Staging_Make_Steam_Package\workspace\data\scripts\main.lua(62,1) in main chunk

Assert failure '0' at ..\source\simlib\luatools.cpp(72): Trace follows...

Seems to be a problem with Lua, but...I do believe I have the latest version of that, too. Hope it's not a simple library mixup on my end.

Link to comment
Share on other sites

  • Developer

Your installation is incomplete. Tell steam to verify the application files.

If that fails too, try to find a file called strict.lua under the data/scripts directory. If that's not there, something stranger is happening.

Link to comment
Share on other sites

I went through Properties -> Local Files -> Verify Integrity of Game Cache, and it didn't report any problems; however, I still got the same error starting up. I also made sure I wasn't on any Beta branch, then deleted and reinstalled the game -- no luck there either.

data/scripts/strict.lua is present.

Link to comment
Share on other sites

Alrighty.

So, I've got an environment variable called LUA_PATH already defined in Windows (had to define it myself for some dev work); the log file shows that DS is trying to run Lua from there (for instance, "No file c:/Libs/Lua/5.1"). If I delete the LUA_PATH environment variable, DS runs without any problems.

Link to comment
Share on other sites

 Share

×
×
  • Create New...