Force Feedback plugin (updated)

Blitz3D Forums/Blitz3D Programming/Force Feedback plugin (updated)

Nordvall(Posted 2004) [#1]
Our force feedback plugin available at http://www.twinno.com/FFPlugin has been updated with some fixes and does now support two FF joysticks.

To create force feedback effect files (.ffe) you can use DirectX SDK available from Microsoft. They have a "Force Editor" which can be found at "(SDK root)\Bin\Dxutils\Fedit.exe".

Two sample .ffe files are included in the download of the plugin.


Barton(Posted 2004) [#2]
If I start the example, an error message comes to the Screen later. (after Click on "OK" Button in Splash Screen "This is a DEMO..."). Error Message: "Blitzcc.exe Error in Aplication... in MemoryAdress bla bla..."
I have copied the dcls and DLL in the B3D Lib Directory.
-Blitz3D Version 1.87

PS: I have no FFB Joystick :)

Bug in FFB Init ?


Nordvall(Posted 2004) [#3]
We will look into this ASAP.

Please tell us what joystick you are using. Is it an USB or an older device?


LAB[au](Posted 2004) [#4]
How/when registered users will get it?


Barton(Posted 2004) [#5]
@Nordvall: Is a USB Joystick Type: Thrust-Predator QZ 500

I think it has to do what with the Command "input_initforce()". If I ignore this line, the program starts. However, breaks off later (Error: Memory Acess ...). But without FFB Init well logical.
If I change the Command Line so, no error message comes at the beginning.

Original:

If input_initforce() Then
Print "Force inited"
Else
Print "Failed when initializing force"
Goto done
EndIf
input_releaseforce()

Modifed: (without Result evaluation, If Then Removed)
-------
.
..
input_initforce()
input_releaseforce()
...
....

(well input_initforce() Simply without Result evaluation.)
Then, break the Aplication with "Memory Acess ..." after Printing
"Force Inited"
"Failed when initializing force"
"Number of Joystick: 1"
"Here are the names..."

after 3 Seconds then Error Message, Memory Acess.

perhaps it is helpful to you.


Nordvall(Posted 2004) [#6]
OGI: Thank you for your testing. Yes, it is something wierd with the input_initforce() instruction. It should print "Failed when initializing force" and then goto .done label.

LAB[au]: The registered users will receive the dll by email.
To become a registered user, use the following URL: http://www.twinno.com/FFPlugin


Nordvall(Posted 2004) [#7]
If you download the demo again we have changed a few things.

The input_initforce() now returns 0 if no force feedback joysticks were found.


Barton(Posted 2004) [#8]
Ok, it works now!
good work :)