10 posts / 0 new
Last post
ponyrider0
ponyrider0's picture
Contributor
Offline
Last seen: 3 years 7 months ago
Joined: 07/22/2016 - 05:01
Karma: 1214
[Merged] Workaround fix for Levitation (OBSE issue?)

Hi, I don't know if I'm the only one, but levitation does not seem to be working for me with Morroblivion v064 and Oblivion Script Extender v0021 from nexusmods.  When I cast levitation, I begin floating but the movement keys don't seem to work.  I've tracked the problem down to OBSE not detecting my "IsControlPressed" game events.  If I modify the JDLevitate script to use hardcoded key presses, then it seems to work quite well.

Some background: From what I can figure, "IsControlPressed" events are script events generated by OBSE which detect the key/button assigned to move the character forward, backward, etc.  By default, these are assigned to the WASD keys, but if you change those key bindings, (in theory) OBSE should recognize whatever key or button you've assigned the movement controls.  However, OBSE doesn't seem to be doing this (at least not for me). 

The work around which appears to fix my issue is to change this script to use "IsKeyPressed2" events, which will detect raw keyboard presses.  For now, I've hardcoded the WASD keys into the script.  Making this substitution appears to make Levitation work for me.  If you are having trouble moving around when casting Levitation, you should try this fix.

 

Edit: The Fix on this Page has been merged into the latest release. mwMasterUpdate

 

AttachmentSize
Binary Data jdlevitate-fix.esp5.52 KB
Edited by: Daggers on 11/11/2021 - 13:10
llde
llde's picture
Contributor
Offline
Last seen: 2 weeks 3 days ago
Joined: 09/17/2013 - 07:04
Karma: 378
It may be an obse bug. I will
It may be an obse bug. I will look into it obse side.
qwertyasdfgh
qwertyasdfgh's picture
Moderator
Offline
Last seen: 5 years 9 months ago
Joined: 12/15/2011 - 05:50
Karma: 1989
Are you using Realistic

Are you using Realistic Gravity, by any chance? This mod interferes with levitation scripts in exactly the way you describe.

ponyrider0
ponyrider0's picture
Contributor
Offline
Last seen: 3 years 7 months ago
Joined: 07/22/2016 - 05:01
Karma: 1214
No, just the base

No, just the base Morroblivion install as per your detailed installation instructions post (thanks for those by the way).

Although I should mention that I am running the steam version of Oblivion with the release (non-beta) steam client.  I've tried it with steam overlay on and off, without any change.  I've also tried with a wired USB keyboard vs wireless USB keyboard.  I've even tried assigning movement keys to a gamepad.  They all produce the same behavior of floating without much movement.  The only thing that seems to make a difference is hardcoding the WASD keys into JDLevitate.

Brainslasher
Brainslasher's picture
Contributor
Offline
Last seen: 6 years 3 months ago
Joined: 05/19/2013 - 11:46
Karma: 725
The obse says this which

The obse says this which might be helpful or not. At least it's worth a try. It's definitely a problem on your end though, it's working with v21 for me.

I'm using Windows 2000 and some mods (specifically mods using IsKeyPressed) don't work correctly. What should I do?

- Open your Oblivion.ini (found in My Documents/My Games/Oblivion) and change the "bBackground Keyboard=0" line to "bBackground Keyboard=1".

ponyrider0
ponyrider0's picture
Contributor
Offline
Last seen: 3 years 7 months ago
Joined: 07/22/2016 - 05:01
Karma: 1214
Thanks for the suggestion!  I

Thanks for the suggestion!  I tried it out immediately but, unfortunately, no luck for me.  The regular JDLevitate script definitely worked at one time for me, but perhaps it was on an earlier version of the steam client or before one of the windows 10 auto-updates.  In any case, hardcoding the WASD seems to work, and I can enable/disable it as simply as check-boxing the ESP.  For now, that's fine with me and perhaps someone else might find it helpful as well.

Caedes
Caedes's picture
Offline
Last seen: 4 years 11 months ago
Joined: 09/08/2021 - 12:53
Karma: 2
I made an account just to say

I made an account just to say this, necrocing or not, this mod fixed my Morroblivion 065 levitate issues while using NorthernUI Gamepad configuration. 

Thank you so much for this addition!

Daggers
Daggers's picture
Moderator
Offline
Last seen: 3 days 1 hour ago
Joined: 06/03/2014 - 15:53
Karma: 516
Donor
Awesome, Great to hear! Thank

Awesome, Great to hear! Thank you for reporting, That the Workaround fix for Levitation works on v065 with NorthernUI enabled.

oracus0
oracus0's picture
Moderator
Offline
Last seen: 1 year 1 month ago
Joined: 12/15/2016 - 13:58
Karma: 121
I use Northern UI +

I use Northern UI + controller too, and have just used the keyboard to move around when levitating.  But I will definitely try this!  Thanks for the suggestion, and no worries necroposting when it's something relevant!

Bullfrog
Bullfrog's picture
Member
Offline
Last seen: 1 year 9 months ago
Joined: 06/21/2015 - 01:32
Karma: 160
I'm using Realistic Gravity

I'm using Realistic Gravity and levitation spells don't work.

Because of that, I made a compatibility patch that fixes this problem. It also restores the ability to use the regular movement keys instead of hard-coded WASD. Feel free to include this patch in a future Morroblivion release.