Differences in PositionCell behavior between Morrowind.exe and OpenMW
In the mod Apothecary's Demise, there is an item _AA_teleportation_amulet
with the following script attached:
;This script teleports the player to the abode once they equip the amulet.
Begin _AA_abode_amulet
short OnPCEquip
if ( OnPCEquip == 1 )
Player->PositionCell, 7.91 57.74 126.00 0 "Apothecary's Abode"
endif
set OnPCEquip to 0
End _AA_abode_amulet
The coordinates are wrong, as they point of out bounds of the interior (Z should be -126.00 instead), but the teleport script still works "as intended" in Morrowind.exe, but doesn't in OpenMW.
If you use the amulet on Morrowind.exe with MCP (not sure if that's relevant, just pointing that out), a fade to black transition appears and the player is transported to the interior at 7.91 57.74 -126.00 coordinates (so, to the floor of the interior), so from player's PoV everything work as it should.
If you use the the amulet on OpenMW, the player is teleported above the ceiling to the 7.91 57.75 97.00 coordinates, without a fade to black transition:
- Is the problem OpenMW specific or does it also happen in vanilla Morrowind?
- OpenMW specific
- What is your operating system?
- Windows 10
- What version of OpenMW are you using? If you used a bleeding edge build, state the exact revision used.
- 0.49 819aace8
- What version of Morrowind are you using (i.e. retail CD or Steam)? What addons (Tribunal, Bloodmoon) do you have installed? What language is your Morrowind install?
- Not relevant, but English GOG version
- Do you use any mods? If so, does the problem also occur in a clean vanilla install without any mods?
- Problem is mod specific to the Apothecary's Demise mod
- What are the exact steps to reproduce the problem?
- Equip the amulet
- What did you expect to happen? What happened instead?
- Described above
- Are there any error messages in your
openmw.log
file? If you're not an OpenMW team member, it's best to upload it.- Not relevant
- What settings do you use? If you're not an OpenMW team member, it's best to upload your
settings.cfg
.- Not relevant
- Where is the in-game location this problem can be observed? Avoid vague statements such as "west of town X". Instead, open the console (
`
key by default, the key above Tab), click on the problematic object, then use the betacomment (bc
) instruction to get useful information about the object that you can copy and paste into the bugreport:- Apothecary's Abode cell