Games with joystick problems with high cycle counts

Here you can discuss the development of patches.

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Qbix » 2006-5-09 @ 07:42

Moved to patches.
Before I add I would like more feedback, especially on the older games.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10522
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby hullan » 2006-5-16 @ 04:40

Qbix wrote:Moved to patches.
Before I add I would like more feedback, especially on the older games.


Privateer and the default .conf file lock up Dosbox when i have CH flightstick configured under W98. If I remove the joystick from the w98 settings dosbox runs. I tried adding the [bios] to the config file as it wasn't there. That didn't help. Also tried runnning it using the latest D-Fend. Same results. what other info do you need?
hullan
Newbie
 
Posts: 1
Joined: 2006-5-16 @ 04:36

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Qbix » 2006-5-22 @ 14:21

increasing the cycles with this patch breaks at least keen4 and tyrian. (both move to right bottom)
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10522
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby h-a-l-9000 » 2006-5-22 @ 15:26

Should happen to any game that doesn't use the timer method. I don't think both methods can be satisfied together considering cycle changes which weren't possible on real computers - maybe it would be best to really add the range in conf file, when < 100 it uses the old method, >100 the new one. Defaults to current value.

(The attached patch makes Alley Cat work with Joystick.)
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Qbix » 2006-5-22 @ 15:31

ah yes. I got a few changes for the detection as well.
Will clean up my source and post it here.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10522
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Qbix » 2006-5-22 @ 15:35

Here they are.
Some debugging messages are still there though.
You do not have the required permissions to view the files attached to this post.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10522
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Qbix » 2006-5-23 @ 10:28

hal: Can't that bit always be set ?
as we always have a gameport. Maybe not always a joystick attached to it though, but your current patch doesn't take that in account as well. (the constructor doesn't exist on no joystick)
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10522
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby h-a-l-9000 » 2006-5-23 @ 14:56

Yes, gameport will read 0xFF without joystick anyway.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Dominus » 2006-5-27 @ 23:15

did something in CVS change? Crusader seems to work now with unpatched CVS.
User avatar
Dominus
DOSBox Moderator
 
Posts: 7536
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby h-a-l-9000 » 2006-5-27 @ 23:46

Timer did.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby h-a-l-9000 » 2006-8-24 @ 19:34

I've put things together a bit...

Options for dosbox.conf:

autofire (thx to wd)
swap34 (swaps axes 3 and 4)
timed (use alternative joystick emulation else the original one)

timed provides better emulation for some games. But for the other games it is cycles dependent.

Example (having a 3 axis joystick with hat):

[bios]

(Terminal Velocity)
joysticktype=ch swap34

(Overkill)
joysticktype=2axis autofire

(Armada)
joysticktype=fcs timed
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Dominus » 2006-8-25 @ 00:18

that sound like nice options. This might also look good if it were runtime configurable and in the menu patch :)
User avatar
Dominus
DOSBox Moderator
 
Posts: 7536
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby wd » 2006-8-26 @ 10:08

Nice :)
Is the 34 swapping really vital? Might be better done at the
host level (where you can do all kinds of remapping).
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby h-a-l-9000 » 2006-8-26 @ 11:27

I can't use emulated CH (throttle) without it. I don't know about other joysticks but maybe in CH it should be swapped by default? Swapping might still be good because I've read that sombody had a 4-axis joystick with throttle and rudder which were swapped in Dosbox and thus useless.

> Might be better done at the host level
Yea I was just a bit lazy there...
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby wd » 2006-8-26 @ 11:35

Yes, prompt said this as well (axis of rudder and throttle swapped).
I tracked this in SDL, and they seem to forward it quite orthogonal,
but maybe something before is swapping it for some reason.

Does it WORK for somebody correctly?? If not, it might be considered
to have axis34 swapped by default.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby HoustonDragon » 2006-8-27 @ 08:31

Just FYI, WC3 had a variety of joystick problems, which are non-DosBox related. Try the following fix below first, and see if it corrects your problem:

http://download.wcnews.com/files/wing3/wc3joy.exe Alternate Joystick Routines For Common Joystick Issues

Download, and extract the new file into your WC3 directory. You can recalibrate your joystick by starting the game with WC3 -i
User avatar
HoustonDragon
Newbie
 
Posts: 15
Joined: 2006-8-22 @ 05:41

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby wd » 2006-8-27 @ 10:37

The later talkings in this thread are about general joystick behaviour.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Darkknight2280 » 2006-9-22 @ 10:32

I was wondering (although I havent tried it yet) does the joystick config fix work for WC Privateer? I havent played it with a joystick yet. Infact i have only been using DOSBox for 3 days now. I have fixed all of the other problems with it (i.e sound issues, and jumpy game play) But I was wondering if using a USB joystick is possible? And if so will the Config fix that was posted ealier in this thread work for Privateer as well If I have that same issue?
GB Money
User avatar
Darkknight2280
Newbie
 
Posts: 13
Joined: 2006-9-21 @ 15:19
Location: Grove City, Ohio USA

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby h-a-l-9000 » 2006-9-22 @ 11:50

Privateer does not need this patch. If you have a gameport joystick then better use a Dosbox CVS build.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Wing Commander III (and possibly other games) joystick problem at high cycle counts

Postby Darkknight2280 » 2006-9-22 @ 13:36

I have a gameport joystick but I need to buy an adapter to use it thru my usb port. Or I may just buy a USB joystick (wouldbe cheaper then buying the adapter) So would a USB joystick work after I use the CVS build?
GB Money
User avatar
Darkknight2280
Newbie
 
Posts: 13
Joined: 2006-9-21 @ 15:19
Location: Grove City, Ohio USA

PreviousNext

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 2 guests