Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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  
  JInput 2 Problems  (Read 2416 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Posted 2006-05-01 18:51:53 »

Got someone trying out the latest version of my game (which is now using JInput 2, woot!) on win2k sp4. They get this when starting:

1  
The process-entry-point "RegisterRawInputDevices" wasnt found in the DLL "USER32.dll"


in a dialog that pops up from windows system. Accompanied by the standard:

1  
Caused by: java.lang.UnsatisfiedLinkError: C:\Dokumente und Einstellungen\pyo\Anwendungsdaten\Sun\Java\Deployment\cache\javaws\http\Dwww.cokeandcode.com\P80\DMtilt2000\RNnatives-win32.jar\jinput-raw.dll: Die angegebene Prozedur wurde nicht gefunden


The dlls are definitely downloaded and in the cache - I'm willing to accept their corrupt along the way. However, I've never seen anything like the dialog message above in relation to DLLs/JNI in Java.

Any ideas...

Kev

PS. http://kaioa.com/k/jinputdialog.png
PPS. Bonus points for those who can guess who the user was Smiley

Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #1 - Posted 2006-05-01 22:44:31 »

I have a feeling that the RAW stuff only works on windows XP

Endolf

Offline elias

Senior Member





« Reply #2 - Posted 2006-05-02 16:58:27 »

Ah, good old Onyx and his doze 9<something>, right? Anyway, yes, rawinput only works on XP, which is the reason I made two dlls (one -raw and one -directx). The raw one should simply fail to load and be ignored. Is that not the case or is the entire program failing?

 - elias

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #3 - Posted 2006-05-02 17:02:55 »

I think he's upgraded all the way up to 2k now  Shocked

In this case the program doesn't fail (since I don't fail on controller creation failure) - but the controllers don't work at all.

Kev

Offline elias

Senior Member





« Reply #4 - Posted 2006-05-02 17:13:57 »

It's fixed in SVN now. Endolf: there's now two svn revisions with fixes (this fix and a build fix to mac os x to merge libjinput-legacy.jnilib with libjinput.jnilib) so you might want to merge with CVS again. Jeff: please approve my developer status to help endolf Smiley

 - elias

Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #5 - Posted 2006-05-02 20:49:23 »

Hi

CVS was updated some time ago with the commented out raw pluging loading. In jinput 1 I was very lazy and hadn't put in the isSupported method on a plugin. I had done it internally on the linux one I think. If we put this back in, then the raw one would not load, but wouldn't fail either, and jinput would work, under xp it would be fine.

How does this sound?

P.S. what revision was the mac build fix done in?, i may need to merge again, but might not Smiley

Endolf

Offline elias

Senior Member





« Reply #6 - Posted 2006-05-03 11:01:40 »

The mac os x build fix was rev. 10, the raw plugin fix is rev 11. I've fixed the raw plugin by simply catching all exceptions at load time and ignore the plugin if it throws. Much easier, IMHO.

 - elias

Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #7 - Posted 2006-05-03 13:43:17 »

I think I have revision 3 in cvs, so it's well out of date Smiley

I'll give it a prod at some point Smiley

Endolf

Offline Jeff

JGO Coder




Got any cats?


« Reply #8 - Posted 2006-05-03 23:23:32 »

When I had raw problems, btw, I was able to force it to only load the non-raw one with command line options.

If the current fix still doesn't solve your problem I could post the  -D Im using...

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #9 - Posted 2006-05-04 19:53:00 »

Yes please Smiley

Endolf

Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline Jeff

JGO Coder




Got any cats?


« Reply #10 - Posted 2006-07-13 21:57:19 »

Sorry, this dropped off my queue.

is this fixed or should I go find those -D flags?

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (128 views)
2013-05-17 21:29:12

alaslipknot (135 views)
2013-05-16 21:24:48

gouessej (166 views)
2013-05-16 00:53:38

gouessej (158 views)
2013-05-16 00:17:58

theagentd (170 views)
2013-05-15 15:01:13

theagentd (155 views)
2013-05-15 15:00:54

StreetDoggy (199 views)
2013-05-14 15:56:26

kutucuk (223 views)
2013-05-12 17:10:36

kutucuk (222 views)
2013-05-12 15:36:09

UnluckyDevil (226 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.139 seconds with 21 queries.