MWEdit Script Revisions

Type: 

Bug

Severity: 

Minor

Game version: 

Morrowind

Concerns: 

TR_Preview

Found in Version: 

Status: 

Description: 

I don't think that any of these script warnings/errors actually target game-breaking bugs, but fixing them might help making debugging scripts via MWEdit simpler.

Proposed revisions include the line number (or the script ID itself) and the suggested fix:
- Replacing hyphens with underscores in script IDs (doesn't the vanilla CS sometimes complain about this, too?)
- Adding correct spacing within parentheses
- Fixing conditional checks outside of parentheses (only in TR_m3_OE_removeBowlScript)
- Changing PlaySound to PlaySoundVP and vice versa, where appropriate


Old Ebonheart Section DONE

 

 


Roryn's Bluff Section / Hlaalu-Thirr Section / TR_InDev

 

 

 


Indoril-Thirr Section

 

 

 

 


 
 
Hyphens:

 

 

 


 

Comments

I agree that veryfing scripts

abot's picture

I agree that veryfing scripts syntax to be MWEdit/OpenMW compatible when possible (e.g. barring object.variable or other legit syntax problems with MWEdit) would really be something useful.

regarding door scripts, why not remove unneeded variables also? original Bethesda scripts are not to be considered a model of perfection, some of them are not optimized due to release time constrains, or evolved engine with Tribunal/Bloodmoon release,  or simply not being made by programmers knowing scripting quirks.

e.g. 2 variables should be enough

 [EDIT]sorry can't find a way to properly format the script with this editor

https://pastebin.com/CuKi45RH  applied to section

(revised as it is related to TR_act_m3-770_gatecrank_script)

Aren't hyphens in IDs also

Rot's picture

Aren't hyphens in IDs also just a MWEdit syntax problem? they don't cause errors in the engine or in OpenMW as long as they're not at the beginning or end of the name. I wouldn't bother with them, but then again I don't use MWedit...

I've tried to divide the rest of the list into sections so they can be fixed in the files

EDIT: hyphens were once an issue in script IDs because of OpenMW, and that was fixed a long time ago. However, OpenMW's CS might still have issues with compiling such scripts, so changing them in Preview might still be worth considering.

Closing. Mostly because of

Evil Eye's picture

Closing. Mostly because of this issue's age.

I've gone over the every script in Mainland a few times using openmw --script-all and openmw --script-all-dialogue, which is something that should be done prior to every release. It'd be nice to have a good linter, but MWEdit isn't it and the problem is non-trivial on account of Bethesda's compiler being ass. Until we get one we'll have to make do with OpenMW's compiler and the validator, I think.