Mouse not working with DirectInput

Started by paolo, Sun 30/06/2013 08:29:48

Previous topic - Next topic

paolo

I've finally updated AGS from v2.72 to v3.0 and got my game building with very few changes needed. However I'm unable to run my game as I get the error "No mouse was detected on your system, or your mouse is not configured to work with DirectInput. You must have a mouse to play this game."

I've had a look at the other postings on this subject but they haven't helped. First of all, the obvious: I do have a mouse and it is working. I have updated to DirectX v9.0 (although I think I might already have had it). I have run DirectX Diagnostic Tool and the entry for my mouse device reads "Device Name: Mouse; Status: Attached; Controller ID: n/a; Vendor ID: n/a; Product ID: n/a; Force Feedback Driver: n/a

I am able to run AGS games that I download, just not my own when I build it, so my problem is not quite the same as the one that other people have had in the past.

I am running AGS on Windows XP SP 3. Device Manager gives these details about my mouse: HID-compliant; manufactured by Microsoft; connects via USB port; working properly.

Thanks for any help. I could keep slogging away with 2.72 but given all the advantages 3.0 has to offer (including a debugger - hurray!) I'd much rather use the newer version.

Khris

Just to clarify, when you say 3.0, do you actually mean 3.0, or do you mean the latest official version, 3.2.1?
Still, that's a weird error, given that other games do work.

paolo

Yes, it's v3.0 I've upgraded my game to.

Khris

I'm just thinking that maybe 3.0 has some weird bug. Try compiling a copy of the game with 3.2.1 and see if the error's still there.

paolo

#4
Thanks Khris, I'll try that. I'll also try building the default game to see whether that works. The game I ran successfully was The Bum - I take it this would have been built with v3.x as jt's a recent game, but I can check with the author. Another possibility - I tried updating my game to 3.0 once before but couldn't get it to work because I had a dll in the wrong place. I could try deleting all v3.0 files, reverting the backup and converting it again in case there are any out-of-date files.

UPDATE: My machine plays AGS v3.0 games without any problem. I tried reconverting the game from scratch, and also tried converting it in v3.2.1, but still no joy. So for now I'm stuck with continuing to develop in v2.72. Any other ideas?

Crimson Wizard

#5
Quote from: paolo on Mon 01/07/2013 12:23:00
UPDATE: My machine plays AGS v3.0 games without any problem. I tried reconverting the game from scratch, and also tried converting it in v3.2.1, but still no joy. So for now I'm stuck with continuing to develop in v2.72. Any other ideas?

Oh, I missed this one.
Do I understand correct that the mouse works well with ALL AGS games, except for your own built game?

Also, might be a redundant question, but where do you get AGS? Is it this website, or some other hosting?

E: Also, does your game use any plugins?

Wyz

A friend of mine had the same problem. It turned out he had some steam game running in the background; try closing all media related programs and try again I'd say.
Life is like an adventure without the pixel hunts.

paolo

Quote from: Crimson Wizard on Tue 23/07/2013 15:21:43
Quote from: paolo on Mon 01/07/2013 12:23:00
UPDATE: My machine plays AGS v3.0 games without any problem. I tried reconverting the game from scratch, and also tried converting it in v3.2.1, but still no joy. So for now I'm stuck with continuing to develop in v2.72. Any other ideas?

Oh, I missed this one.
Do I understand correct that the mouse works well with ALL AGS games, except for your own built game?

Also, might be a redundant question, but where do you get AGS? Is it this website, or some other hosting?

E: Also, does your game use any plugins?

Sorry for the late reply on this one.

Yes, I can play downloaded AGS games without any problems. I would imagine pretty much every recent game was built with AGS 3.x, and I've downloaded and played a few recently.

I got my version of AGS 3.0 from here, yes.

Yes, I am using some plugins: Scorpiorus's SnowRain plugin (ags_snowrain.dll). I'm not sure whether modules matter (they're not precompiled, I don't think), but for the record I'm using SSH's Credits module and Aapeli Kutila's Simple Save & Load. I thought plugins should work out of the box and didn't need to be recompiled for other versions of AGS.

Quote from: Wyz
A friend of mine had the same problem. It turned out he had some steam game running in the background; try closing all media related programs and try again I'd say.

No, no other media-related programs running, but thanks for the idea.

SMF spam blocked by CleanTalk