Reply To: Mafia 3 Modding (Mega Thread)

Download Mods for the Mafia Games Forums Mod Creation Mafia 3 Modding (Mega Thread) Reply To: Mafia 3 Modding (Mega Thread)

#162940
Barzakh
Participant

First of all: Thank you for your hard work on this! Sadly this version crashes the game when I run it. The previous version worked like a charm. Here’s the ScriptHook log: M3ScriptHook::M3ScriptHook PluginSystem::LoadPlugins PluginSystem::LoadPlugins loaded plugin ExampleDLLPlugin.dll M3ScriptHook::StartThreads LuaStateManager::StartThread M3ScriptHook::mainThread LuaFunctions::LuaFunctions LuaFunctions::LuaFunctions Game is not ready, script engine not initialized, retry LuaFunctions::LoadPointers m_pMainGameScriptMachine (7ff6f19b41b8) lua_pcall2 (7ff6efef3100) lua_tostring (7ff6ec5bb2d0) lua_isstring (7ff6ef00e7f5) lua_isstring (7ff6ef00e7f5) luaL_loadbuffer (7ff6eff51b93) plua_loadBuffer (7ff6efefd370) lua_newthread (7ff6efef2d30) lua_pushcclosure (7ff6efef51d0) lua_setfield (7ff6ec5bb090) LuaStateManager::StateChanged LuaFunctions::Setup

Alright this is my log

m_pMainGameScriptMachine (7ff7ef0e41b8)
lua_pcall2 (7ff7ed623100)
lua_tostring (7ff7e9ceb2d0)
lua_isstring (7ff7ec73e7f5)
lua_isstring (7ff7ec73e7f5)
luaL_loadbuffer (7ff7ed681b93)
plua_loadBuffer (7ff7ed62d370)
lua_newthread (7ff7ed622d30)
lua_pushcclosure (7ff7ed6251d0)
lua_setfield (7ff7e9ceb090)
LuaStateManager::StateChanged
LuaFunctions::Setup
LuaFunctions::Setup::<lambda_b200b67e7317fa8bad38b3b12cc28be3>::operator ()
LuaFunctions::Setup::<lambda_c766ceade28b194d58c2921e491dccd0>::operator ()
LuaFunctions::Setup::<lambda_50df289ee3f51bfa67048f7e179908b0>::operator ()

 

The reason why it crash must be lua_pushcclosure or lua_setfield, I’ll try to get a fix out as soon as possible. Thanks for sharing your information!