Better Script Compiling

Feedback on past, current, and future development.
Post Reply
trymeout
Posts: 9
Joined: 24 Jul 2019, 06:07

Better Script Compiling

Post by trymeout »

I find that I have some mods that do not work in OpenMW that are simple and some that are more complex

For example, I use LegoManIAm94's weather rings mod which you can get on Morrowind Nexus. These rings allow you to change the weather by equipping them. I found that the ring to control the weather for Bloodmoon works but not the ring to control Vvardenfell weather since when I equip it the settings do not appear when I exit my inventory.

To my understand it is the script itself and how it is written. If there are spaces, no brackets, capitalization, tabs, etc that are off it may work in Vanilla Morrowind but not OpenMW.
User avatar
AnyOldName3
Posts: 2666
Joined: 26 Nov 2015, 03:25

Re: Better Script Compiling

Post by AnyOldName3 »

If the mod doesn't require MWSE, this sounds like something that should be on our issue tracker, so can you make a bug report there, please? It's not likely to be something as simple as a missing space (as we should be handling everything like that just fine by now), but instead, a script function being used in a weird way.
trymeout
Posts: 9
Joined: 24 Jul 2019, 06:07

Re: Better Script Compiling

Post by trymeout »

Loriel
Posts: 179
Joined: 28 May 2015, 00:44

Re: Better Script Compiling

Post by Loriel »

Script Error.
Line 21 in WeatherControlMorrowind has a spurious ",0" at the end.
ModRegion, "Ascadian Isles Region", 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Delete that and the error disappears.

To debug similar problems for yourself:
Open the CS
Select "Edit a content file", and select the problem esp
File/Verify
Check down the (excessively long) list of errors and warnings - what you want will usually be an error in the scripts section.

Loriel
trymeout
Posts: 9
Joined: 24 Jul 2019, 06:07

Re: Better Script Compiling

Post by trymeout »

Loriel wrote: 27 Jul 2019, 21:32 Script Error.
Line 21 in WeatherControlMorrowind has a spurious ",0" at the end.
ModRegion, "Ascadian Isles Region", 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Delete that and the error disappears.

To debug similar problems for yourself:
Open the CS
Select "Edit a content file", and select the problem esp
File/Verify
Check down the (excessively long) list of errors and warnings - what you want will usually be an error in the scripts section.

Loriel
I cannot find any "Edit a content file" option anywhere in the CS or OpenMW CS. Where do you see this option?
User avatar
AnyOldName3
Posts: 2666
Joined: 26 Nov 2015, 03:25

Re: Better Script Compiling

Post by AnyOldName3 »

It's like the first thing that shows up.
Image
Post Reply