Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Rumble Problems  (Read 2662 times)
0 Members and 1 Guest are viewing this topic.
Offline giles7777

Senior Newbie




Java games rock!


« Posted 2006-11-07 22:19:52 »

Just moved our code(Xj3D) to the latest Jinput.  In general went well.

Were having an issue with Rumble though.   This controller used to work in the previous version, doesn't now.

When I run rumble test I get this:

Buildfile: build.xml

rumbletest:

runtest:
     [java] Scanning Mouse
     [java] Found 0 rumblers
     [java] Scanning Keyboard
     [java] Found 0 rumblers
     [java] Scanning Logitech WingMan RumblePad USB
     [java] Found 5 rumblers
     [java] Rumbler null on axis null
     [java] Rumbling with intensity: 0.5
     [java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
     [java] Rumbling with intensity: 1.0
     [java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
     [java] Fading rumble to -1
     [java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
     [java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)
     [java] Failed to set rumbler gain: Failed to set effect gain (0x80040205)

Its a Logitech Wingman RumblePad.  ControllerReadTest runs fine.   Changing between modes on the controller has no affect.

Windows XP, Service Pack 1
Java 1.5.0_06
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2006-11-08 08:20:49 »

Hi

i'll take a look tonight if I get time, thats about 12 hours from now Smiley.

Endolf

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #2 - Posted 2006-11-08 23:21:37 »

Right

That messages is saying that it can't set the gain on the effect because some other app has a lock on the device, so we don't have exclusive access. What else do you have running?

I know it doesn't help, but for me, with (it looks) the same device, it works fine.

Endolf

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline giles7777

Senior Newbie




Java games rock!


« Reply #3 - Posted 2006-11-09 19:00:58 »

ok.  Seems the fact that I was specifying the plugin explictly caused the plugin to load twice and hence lock itself out of the rumble.  Thank you for the debug support.
Offline giles7777

Senior Newbie




Java games rock!


« Reply #4 - Posted 2006-11-09 19:47:51 »

I used to get names for the rumbers.  Now when I call .getAxisName I just get a null. I've tested this on a Logitech Wingman Rumblepad and a Logitech Nascar Racing Wheel.  I can rumble the axis but don't a useful name.   Calling getIdentifier also returns null.

On the subject of axis names.  I get very different names for an axis on Windows verses a Mac.  Should I expect similar names?
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #5 - Posted 2006-11-09 20:06:29 »

Hi

Can't say I've studied the rumbler names in version 2, I'll take a look at some point. As for the axis names, how different is different?. The identifiers (different to names) should be the same accross platforms (although it's up to the driver to identify the axis type, we just map it), the names are free form. I don't have access to a mac so I'd be interested to see what falls out Smiley

Endolf

Offline Gandurash

Senior Newbie





« Reply #6 - Posted 2007-02-08 03:56:14 »

Hi...

I'm using Playstation2 analog-controller (SCPH-10010) as my game-controller. from the output of ControllerReadText test-program I can tell that all the button and analog sticks are working. But I can't get it rumbles with the RumbleTest test-program.

I need the rumble function for my implementation, should I change the game-controller or is there anything I can do to make it works?

Thank you...
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #7 - Posted 2007-02-08 09:09:22 »

What OS are you on?

Which version of JInput are you using?, whats the file name it came from for binaries, or when did you do the CVS checkout if you did a source build?.

Thanks

Endolf

Offline Gandurash

Senior Newbie





« Reply #8 - Posted 2007-02-09 14:22:12 »

Hi...

OS is Linux (Fedora Core 6).

I dont know what version my jinput is (please tell me how to check the jinput version). but I download it from "document & files" section on <https://jinput.dev.java.net/>. The file name is <jinput_combined_dist_20061029.zip>, inside "combined" folder.

thanks
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #9 - Posted 2007-02-09 14:52:49 »

The file name is <jinput_combined_dist_20061029.zip>, inside "combined" folder

Thats the version information I needed Smiley

On linux, you need write permissions to the /dev/input/event* device nodes if you want rumblers enabled. Check you have this. If they are read only, then jinput can't write the force effect information to the device, and it's useless as a FF device. We just treat it as a read only device if we can't open it read/write, and thus no rumblers get reported.

HTH

Endolf

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (25 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!