6 posts / 0 new
Last post
ponyrider0
ponyrider0's picture
Member
Offline
Last seen: 11 hours 27 min ago
Joined: 07/22/2016 - 05:01
Karma: 710
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.

AttachmentSize
Binary Data jdlevitate-fix.esp5.52 KB
Edited by: ponyrider0 on 07/22/2016 - 14:25
llde
llde's picture
Member
Offline
Last seen: 3 months 1 week ago
Joined: 09/17/2013 - 07:04
Karma: 361
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 months 2 weeks ago
Joined: 12/15/2011 - 05:50
Karma: 1820
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
Member
Offline
Last seen: 11 hours 27 min ago
Joined: 07/22/2016 - 05:01
Karma: 710
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: 5 months 14 min ago
Joined: 05/19/2013 - 11:46
Karma: 718
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
Member
Offline
Last seen: 11 hours 27 min ago
Joined: 07/22/2016 - 05:01
Karma: 710
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.