Page 1 of 1

NPC's not executing script

Posted: 08 Mar 2018, 17:56
by Zobator
Currently I'm working on a mod for a slightly improved chargen. https://www.nexusmods.com/morrowind/mods/45510

For some reason, the orcs, argonians and imperials do not execute the scripts they have attached in OpenMW. They do so in vanilla MW. What's going on?

Re: NPC's not executing script

Posted: 08 Mar 2018, 18:41
by Chris
Is anything printed to the terminal or log? If a script doesn't execute that generally means it failed to compile, which should cause something to be printed to the terminal/log.

Re: NPC's not executing script

Posted: 08 Mar 2018, 19:12
by Zobator
Chris wrote: 08 Mar 2018, 18:41 Is anything printed to the terminal or log? If a script doesn't execute that generally means it failed to compile, which should cause something to be printed to the terminal/log.
I indeed get error-messages for the unexecuted scripts, which are all similar:

Code: Select all

error ZobCharGenBoatOrc line [last line of the script], column 4 (end)
    Unexpected keyword
Warning: compiling failed: ZobCharGenBoatOrc
Not sure what causes this though. I've been looking at those scripts many times, but can't find what makes them different from the ones that do work...

Re: NPC's not executing script

Posted: 08 Mar 2018, 19:53
by AnyOldName3
Maybe someone here could work it out if you posted them. It's also possible that the CS can point out the issue.

Re: NPC's not executing script

Posted: 08 Mar 2018, 23:36
by Zobator
Figured it out through the OpenMW CS. Apparently copy-pasted a 'else if', which compiles in vanilla, but doesn't in OpenMW.