Raan / DivineDivinity_ScriptEditor

3 stars 0 forks source link

Freezing at the start npc Joram #1

Open gustuser opened 3 months ago

gustuser commented 3 months ago

Using the original version of the script, it was freezing at the Joram NPC. Using the original code below of the NPC, you can see when you enter the Joram region, it calls "Hold(NPC_Hero);" and just releases at "Hold(NPC_Hero, 0);" after the dialog ends. I'm probably suspecting the dialog is the problem. Yet I can see the character rotating, so it's not a freezing of the engine.

After compiling without the "Hold(NPC_Hero);", the character didn't stop and moved normally, but the dialog didn't start. Tested inside a virtual box worked, but outside, it didn't. My solution: After using the DLL recommended from where the project was based, https://github.com/usernameak/OsirisRE?tab=readme-ov-file Downloaded the DLL https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases, bink2w32.dll (x86), and it started working normally so far.

I don't know what that DLL does, but it has solved the problem so far.

KB { IF NpcEntersRegion(NPC_Hero, REGION_table_joram) THEN Hold(NPC_Hero); SetAndStartDialog(NPC_Joram);

IF DialogEnds(DIALOGYoram, , _) THEN EnableDefaultBehavior(NPC_Joram, 1); Hold(NPC_Hero, 0); GoalCompleted;

IF Dead(NPC_Joram) THEN GoalCompleted;

}

Raan commented 3 months ago

Thank for feedback. I do not experience this problem on two copies of the game (61A and 62A versions), neither of them uses bink2w32.dll. It's good that installing this library solved the problem.