lua scripts/omwscripts not working?

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
velomous
Posts: 4
Joined: 11 Mar 2024, 08:51

lua scripts/omwscripts not working?

Post by velomous »

I'm on OMW version 0.48, I followed the documentation

I have the omwscripts file referring to the lua script file, I enabled it in the launcher, I launch the game and press X but nothing happens. I know scripts do work, for instance the shield unequipper script does work. So i'm not sure why this is not working.

Edit: I've pretty much confirmed the problem has to be within player.lua.

I tried changing it to this:

Code: Select all

local ui = require('openmw.ui')

local function onUpdate()
	ui.showMessage('Update')
end
It never shows me any messages
velomous
Posts: 4
Joined: 11 Mar 2024, 08:51

Re: lua scripts/omwscripts not working?

Post by velomous »

I've fixed it, I copy-pasted the code from the documentation again and it just started working.

I think what happened was some weird unidentified and invisible symbol came in with the text when I pasted it the first time that made the whole thing not work.
Post Reply