diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index b399220b3..38b87ba83 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -109,6 +109,7 @@ public: static constexpr ScriptCallbackData callbacks[]{ {"Main", Function()}, {"OnServerInit", Function()}, + {"OnServerPostInit", Function()}, {"OnServerExit", Function()}, {"OnPlayerConnect", Function()}, {"OnPlayerDisconnect", Function()}, diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index e21005e14..5f5508da2 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -251,6 +251,8 @@ int main(int argc, char *argv[]) networking.getMasterClient()->Start(); } + Script::Call(); + int code = networking.mainLoop(); RakNet::RakPeerInterface::DestroyInstance(peer);