REGoth-project / REGoth

OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
630 stars 63 forks source link

[G2] Roadblock after coming back from the valley of mines #280

Closed ataulien closed 6 years ago

ataulien commented 6 years ago

The scripte variable Kapitel (engl. chapter) isn't set to 3, which is part of the condition to talk to Lord Hagen.

markusobi commented 6 years ago

I found the cause: wrong initialization/import order: m_ScriptEngine.importScriptEngine(scriptEngine) is called after initializeScriptEngineForZenWorld. Which means all the global vars (like Kapitel) are imported after (INIT_NewWorld)initializeScriptEngineForZenWorld. INIT_NewWorld sets the chapter. I'm currently working on a fix.