Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ FF8 ] Vibration support #81

Closed
julianxhokaxhiu opened this issue Jul 12, 2020 · 1 comment · Fixed by #415
Closed

[ FF8 ] Vibration support #81

julianxhokaxhiu opened this issue Jul 12, 2020 · 1 comment · Fixed by #415
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@julianxhokaxhiu
Copy link
Owner

This topic has been a hot potato across various communities and forums. It seems that the game does not simply provide a vibration functionality OOB.

But...the engine on the other hand, it seems it has all the wires connected to actually do the vibration ( aka Force Feedback, talking in Direct Input language ).

In order to trigger it, the engine loads two files: icon.sp1 and vibration.vib. While both files seems to be there inside of the menu.fs file, they seems to be actually zeroed/non-valid.

The function at 0x4A29A0 seems to be the one which is triggered everytime the controller is supposed to vibrate ( GF summons, Gunblade trigger, etc. ), although it does not because at a certain point it checks for a value in a struct, which it happens to be the vibrate.vib file in memory. As this file is mostly zeroed, the game thinks there's no vibration and so it moves on.

If we manage to pull out this file from the PSX release, there's a good chance we could get the vibration functionality back and/or implement only the missing bits to actually vibrate the controller.

@julianxhokaxhiu julianxhokaxhiu added enhancement New feature or request help wanted Extra attention is needed labels Jul 12, 2020
@julianxhokaxhiu julianxhokaxhiu linked a pull request Mar 17, 2022 that will close this issue
@myst6re
Copy link
Contributor

myst6re commented Mar 18, 2022

In fact vibrate.vib is fine, the game just does not implement directinput support for vibration. Most of the code is still here, except for few zeroed subs.

I made a pull request to activate vibrations on xinput devices, this works fine on battle. I also reenabled the old pause menu from the PSX version, with a vibration on/off option, this menu will appear on field or worldmap, only if a compatible gamepad is plugged.
2022-03-15 22_46_18-Window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants