Advertisement
Frash

Grim Fandango on Linux with xboxdrv and residualVM

Oct 30th, 2013
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ############################## GRIM.XBOXDRV
  2. ############################### by Frash Pikass, 2013
  3. #
  4. # I wanted to play some Grim Fandango on Linux with residualVM but the keyboard
  5. # in that game is painful... So I thought
  6. # "Why not making an xboxdrv script for it to work with my new Xbox360
  7. # controller?"
  8. #
  9. # Works just fine both in camera relative perspective and character relative
  10. # perspective!
  11. #
  12. # Maps the Xbox360 controller like this:
  13. #   -Left analog stick: arrow keys
  14. #   -D-Pad: arrow keys (duh)
  15. #   -Left shoulder button: examine
  16. #   -A: use, select, enter
  17. #   -B: pick, put away
  18. #   -X: run
  19. #   -Y: inventory
  20. #   -Start: pause
  21. #   -Back: Esc (exit from menus)
  22. #   -Home (big Xbox button): main menu
  23. #
  24. # If you don't like it, you can easily change it with your favourite
  25. # configuration (or just screw yourself: that is free too!).
  26. #
  27. #~############################# INGREDIENTS
  28. #
  29. #   - a Linux machine
  30. #
  31. #   - residualVM    Install it with the following terminal command in most
  32. #           linux distros:
  33. #               sudo apt-get install residualvm
  34. #
  35. #   - xboxdrv   Install it with the following terminal command in most
  36. #           linux distros:
  37. #               sudo apt-get install xboxdrv
  38. #           NOTE: Mind that you might need to disable xpad before you
  39. #                 install/run xboxdrv. Do it this way:
  40. #               sudo rmmod xpad
  41. #
  42. #   - Xbox360 pad   Buy it from your favourite retailer, preferably NOT
  43. #           one of those big chains like Gamestop. They are EVIL
  44. #
  45. #   - Grim Fandango Buy the game from a Childhood Reseller (TM)
  46. #           Estract the *.LAB files from both disks in a folder.
  47. #           Save the version 1.0.1 Grim Fandango patch in the same
  48. #           folder (http://demos.residualvm.org/patches/gfupd101.exe)
  49. #           More info available at
  50. #           http://wiki.residualvm.org/index.php/Grim_Fandango
  51. #
  52. #~############################# INSTRUCTIONS
  53. #
  54. # - Save the script in a file called grim.xboxdrv
  55. #
  56. # - Open up your favourite terminal
  57. #
  58. # - Plug the controller in a spare USB port
  59. #
  60. # - Eventually disable xpad
  61. #   sudo rmmod xpad
  62. #
  63. # - Launch xboxdrv with the script with the following command:
  64. #   sudo xboxdrv -d --config grim.xboxdrv
  65. #
  66. # - Launch residualVM, load Grim Fandango and have fun
  67. #
  68. # - When you're done playing, terminate the script with Ctrl-C in the terminal
  69. #
  70. #~############################# ENJOY!
  71.  
  72. [xboxdrv]
  73. ui-clear=true
  74. trigger-as-button = true
  75. dpad-as-button = true
  76. #four-way-restrictor = true
  77. silent = true
  78.  
  79. [ui-axismap]
  80. x1=KEY_LEFT:KEY_RIGHT
  81. y1=KEY_UP:KEY_DOWN
  82.  
  83. [ui-buttonmap]
  84. #use
  85. a=KEY_ENTER
  86. #pick
  87. b=KEY_P
  88. #run
  89. x=KEY_LEFTSHIFT
  90. #inventory
  91. y=KEY_I
  92.  
  93. #examine
  94. lb = KEY_E
  95.  
  96. #unused
  97. #lt = BTN_RIGHT
  98. #rt = BTN_LEFT
  99. # rb = KEY_PAGEDOWN
  100. # tl = KEY_BACKSPACE
  101. # tr = KEY_SPACE
  102. # lt = KEY_VOLUMEDOWN
  103. # rt = KEY_VOLUMEUP
  104.  
  105. [ui-buttonmap]
  106. dl = KEY_LEFT
  107. dr = KEY_RIGHT
  108. du = KEY_UP
  109. dd = KEY_DOWN
  110.  
  111. [ui-buttonmap]
  112. start = KEY_PAUSE
  113. back  = KEY_ESC
  114. guide = KEY_F1
  115.  
  116. # EOF #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement