Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 74

Thread: Caster has gone Gold!

  1. #21
    Join Date
    Oct 2008
    Posts
    81

    Default

    Quote Originally Posted by Kano View Post
    @SolidSteel144

    Steam works perfectly with wine. No tricks needed at all. But that game is extra easy, when you diff the dirs between the demo versions you will find out what i mean.
    I really wouldn't say that. There are many things that don't work right. Fonts are messed up sometimes, mouse cursor is a little off, Steam Community in-game, etc.
    Last edited by SolidSteel144; 05-19-2009 at 09:14 AM.

  2. #22
    Join Date
    Jun 2006
    Location
    Poland
    Posts
    116

    Default

    Quote Originally Posted by Kano View Post
    jscal -q /dev/input/js0
    jscal: error getting button map: Invalid argument
    jscal -u 8,0,1,2,3,4,5,16,17,10,0,0,0,0,0,0,0,0,0,0 /dev/input/js0

    The problem seem to be the 0s which are invalid.
    What kernel version?
    I have tested 2.6.29 and didn't saw my bug again.
    I will test 2.6.26 and unpatched version.
    On 2.6.26 I was able to reproduce your problem with 0s and I believe that hack worked on kernel 2.6.28-rcsomething.
    As I said before I don't see that problem on 2.6.29 even with unpatched version.
    Can you try this version?
    Last edited by sobkas; 05-19-2009 at 09:31 AM.

  3. #23
    Join Date
    Aug 2007
    Posts
    6,625

    Default

    2.6.30-rc6 used here.

  4. #24
    Join Date
    Aug 2007
    Posts
    6,625

    Default

    @SolidSteel144

    Well i can play Half-Life with it, you just need Nvidia graphics cards or you lost in most cases.

  5. #25
    Join Date
    Jun 2006
    Location
    Poland
    Posts
    116

    Default

    Quote Originally Posted by Kano View Post
    jscal -q /dev/input/js0
    jscal: error getting button map: Invalid argument
    jscal -u 8,0,1,2,3,4,5,16,17,10,0,0,0,0,0,0,0,0,0,0 /dev/input/js0

    The problem seem to be the 0s which are invalid.
    I just wrote horrible hack for jscal to ignore buttons:
    http://pastebin.ca/1427568

    After patching it command:
    jscal -u 8,0,1,3,4,5,16,17,2,-1 /dev/input/js0
    should do the trick, but if there is still problem with camera movement(up-down is left-right) this command might help:
    jscal -u 8,0,1,4,3,5,16,17,2,-1 /dev/input/js0

    Just remember to set SDL_JOYSTICK_DEVICE to your js device.
    "SDL_JOYSTICK_DEVICE=/dev/input/js0 ./caster.bin"

  6. #26
    Join Date
    Aug 2007
    Posts
    6,625

    Default

    Your patch is really interesting, now it is possilbe to execute it. It works with:

    ./jscal -u 8,0,1,4,3,2,5,16,17,-1 /dev/input/js0

    ./jscal -c /dev/input/js0

    Would be nice when the calibration settings would be exchanged as well to skip the -c step. I have to run the game like:

    SDL_JOYSTICK_DEVICE=/dev/input/js0 ./caster-demo.bin

    Without SDL_JOYSTICK_DEVICE override the games uses the values without jscal it seems. But the game is more or less unplayable for me using a pad.
    Last edited by Kano; 05-19-2009 at 01:48 PM.

  7. #27
    Join Date
    Jun 2006
    Location
    Poland
    Posts
    116

    Default

    Quote Originally Posted by Kano View Post
    Your patch is really interesting, now it is possilbe to execute it. It works with:

    ./jscal -u 8,0,1,4,3,2,5,16,17,-1 /dev/input/js0

    ./jscal -c /dev/input/js0

    Would be nice when the calibration settings would be exchanged as well to skip the -c step.
    jscal -p /dev/input/js0 will print active calibration settings.
    Code:
    jscal -s 7,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,112,142,5534751,5534751,1,0,0,0,536870912,536870912,1,0,0,0,536870912,536870912 /dev/input/js0
    Quote Originally Posted by Kano View Post
    I have to run the game like:

    SDL_JOYSTICK_DEVICE=/dev/input/js0 ./caster-demo.bin

    Without SDL_JOYSTICK_DEVICE override the games uses the values without jscal it seems.
    It's SDL problem, it chooses event device before js one.

  8. #28
    Join Date
    Aug 2007
    Posts
    6,625

    Default

    Could you fix that directly in jscal -u command?

  9. #29
    Join Date
    Jun 2006
    Location
    Poland
    Posts
    116

    Default

    Quote Originally Posted by Kano View Post
    Could you fix that directly in jscal -u command?
    Can you try:
    http://www.pastebin.ca/1429321
    New patch with corrected -q option.
    Now -u will also remap calibration settings.
    For -u -1 is replaced by 0
    edit:
    Newer version2:
    http://www.pastebin.ca/1429802
    Last edited by sobkas; 05-21-2009 at 07:15 AM.

  10. #30
    Join Date
    Aug 2007
    Posts
    6,625

    Default

    Well done! Now i can use the pad without extra calibration. It is just very hard to play with it. With mouse aiming it is much easier.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •