.xml Dateien #1[inputbinding.xml]

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Funktionsweise der .xml Datein im LS
    Moin
    In meiner Tutorialreihe der .xml Dateien stelle ich euch mal so die Grundlegenden xml's vor.
    Heute beginne ich mit der inputbinding.xml
    C:\Users\Name\Documents\My Games\FarmingSimulator2013\inputbinding.xml

    Dies ist die Datei im LS in der die komplette Spielsteuerung eingetragen ist.
    Sie ist in 2 Teile aufgebaut:
    Den orignalen LS Teil & den Modteil
    Alle Steuerungsbefehle stehen hier.
    z.B.

    inputbinding originaler Teil

    XML-Quellcode

    1. putBinding version="59">
    2. <input name="ENTER" category="ONFOOT VEHICLE" key1="KEY_e" key2="" button="" device="0" mouse="" />
    3. <input name="CAMERA_SWITCH" category="ONFOOT VEHICLE" key1="KEY_c" key2="" button="BUTTON_8" device="1" mouse="" />
    4. <input name="TOGGLE_LIGHTS" category="ONFOOT VEHICLE" key1="KEY_f" key2="" button="BUTTON_20" device="1" mouse="" />
    5. <input name="LOWER_IMPLEMENT" category="VEHICLE" key1="KEY_v" key2="" button="BUTTON_4" device="0" mouse="" />
    6. <input name="ATTACH" category="VEHICLE" key1="KEY_q" key2="" button="BUTTON_18" device="1" mouse="" />
    7. <input name="IMPLEMENT_EXTRA" category="VEHICLE" key1="KEY_b" key2="" button="BUTTON_3" device="0" mouse="" />
    8. <input name="IMPLEMENT_EXTRA2" category="VEHICLE" key1="KEY_x" key2="" button="BUTTON_5" device="0" mouse="" />
    9. <input name="IMPLEMENT_EXTRA3" category="VEHICLE" key1="KEY_o" key2="" button="" device="0" mouse="" />
    10. <input name="IMPLEMENT_EXTRA4" category="VEHICLE" key1="KEY_z" key2="" button="BUTTON_1" device="0" mouse="" />
    11. <input name="ACTIVATE_THRESHING" category="VEHICLE" key1="KEY_b" key2="" button="BUTTON_2" device="0" mouse="" />
    12. <input name="EMPTY_GRAIN" category="VEHICLE" key1="KEY_o" key2="" button="BUTTON_3" device="0" mouse="" />
    13. <input name="SWITCH_IMPLEMENT" category="VEHICLE" key1="KEY_g" key2="" button="BUTTON_6" device="0" mouse="" />
    14. <input name="SPEED_LEVEL1" category="VEHICLE" key1="KEY_1" key2="" button="BUTTON_4" device="1" mouse="" />
    15. <input name="SPEED_LEVEL2" category="VEHICLE" key1="KEY_2" key2="" button="BUTTON_2" device="1" mouse="" />
    16. <input name="SPEED_LEVEL3" category="VEHICLE" key1="KEY_3" key2="" button="BUTTON_1" device="1" mouse="" />
    17. <input name="SPEED_LEVEL4" category="VEHICLE" key1="KEY_4" key2="" button="BUTTON_3" device="1" mouse="" />
    18. <input name="TOGGLE_FINANCES" category="ONFOOT VEHICLE" key1="KEY_insert" key2="" button="" device="0" mouse="" />
    19. <input name="TOGGLE_AI" category="VEHICLE" key1="KEY_h" key2="" button="" device="0" mouse="" />
    20. <input name="TOGGLE_PDA" category="ONFOOT VEHICLE" key1="KEY_i" key2="" button="BUTTON_9" device="1" mouse="" />
    21. <input name="TOGGLE_PDA_ZOOM" category="ONFOOT VEHICLE" key1="KEY_9" key2="" button="" device="0" mouse="" />
    22. <input name="TOGGLE_STORE" category="ONFOOT VEHICLE" key1="KEY_p" key2="" button="BUTTON_10" device="1" mouse="" />
    23. <input name="TOGGLE_ADMIN" category="ONFOOT VEHICLE" key1="KEY_u" key2="" button="" device="0" mouse="" />
    24. <input name="TOGGLE_HELP_TEXT" category="ONFOOT VEHICLE" key1="KEY_f1" key2="" button="" device="0" mouse="" />
    25. <input name="SKIP_MESSAGE_BOX" category="ONFOOT VEHICLE" key1="" key2="" button="" device="0" mouse="MOUSE_BUTTON_LEFT" />
    26. <input name="CHAT" category="ONFOOT VEHICLE" key1="KEY_t" key2="" button="" device="0" mouse="" />
    27. <input name="BANK" category="ONFOOT VEHICLE" key1="KEY_l" key2="" button="" device="0" mouse="" />
    28. <input name="HONK" category="VEHICLE" key1="KEY_0" key2="" button="" device="0" mouse="" />
    29. <input name="TOGGLE_BEACON_LIGHTS" category="VEHICLE" key1="KEY_home" key2="" button="BUTTON_1" device="1" mouse="" />
    30. <input name="INCREASE_TIMESCALE" category="ONFOOT VEHICLE" key1="KEY_8" key2="" button="" device="0" mouse="" />
    31. <input name="DECREASE_TIMESCALE" category="ONFOOT VEHICLE" key1="KEY_7" key2="" button="" device="0" mouse="" />
    32. <input name="CAMERA_ZOOM_IN" category="ONFOOT VEHICLE" key1="KEY_pageup" key2="" button="BUTTON_11" device="0" mouse="MOUSE_BUTTON_WHEEL_UP" />
    33. <input name="CAMERA_ZOOM_OUT" category="ONFOOT VEHICLE" key1="KEY_pagedown" key2="" button="BUTTON_10" device="0" mouse="MOUSE_BUTTON_WHEEL_DOWN" />
    34. <input name="SWITCH_VEHICLE" category="ONFOOT VEHICLE" key1="KEY_tab" key2="" button="BUTTON_7" device="1" mouse="" />
    35. <input name="SWITCH_VEHICLE_BACK" category="ONFOOT VEHICLE" key1="KEY_lshift KEY_tab" key2="" button="BUTTON_7 BUTTON_8" device="1" mouse="" />
    36. <input name="ACTIVATE_OBJECT" category="ONFOOT VEHICLE" key1="KEY_r" key2="" button="BUTTON_7" device="0" mouse="" />
    37. <input name="JUMP" category="ONFOOT" key1="KEY_space" key2="" button="" device="0" mouse="" />
    38. <input name="RUN" category="ONFOOT" key1="KEY_lshift" key2="" button="" device="0" mouse="" />
    39. <input name="MENU" category="ONFOOT VEHICLE" key1="KEY_esc" key2="" button="" device="0" mouse="" />
    40. <input name="MENU_ACCEPT" category="MENU" key1="KEY_return" key2="" button="" device="0" mouse="" />
    41. <input name="MENU_CANCEL" category="MENU" key1="KEY_esc" key2="" button="" device="0" mouse="" />
    42. <input name="MENU_UP" category="MENU" key1="KEY_up" key2="" button="" device="0" mouse="" />
    43. <input name="MENU_DOWN" category="MENU" key1="KEY_down" key2="" button="" device="0" mouse="" />
    44. <input name="MENU_LEFT" category="MENU" key1="KEY_left" key2="" button="" device="0" mouse="" />
    45. <input name="MENU_RIGHT" category="MENU" key1="KEY_right" key2="" button="" device="0" mouse="" />
    46. <input name="SHOPLIST_UP" category="MENU" key1="KEY_pageup" key2="" button="" device="0" mouse="" />
    47. <input name="SHOPLIST_DOWN" category="MENU" key1="KEY_pagedown" key2="" button="" device="0" mouse="" />
    48. <input name="SHOPLIST_HOME" category="MENU" key1="KEY_home" key2="" button="" device="0" mouse="" />
    49. <input name="SHOPLIST_END" category="MENU" key1="KEY_end" key2="" button="" device="0" mouse="" />
    50. <input name="TAKE_SCREENSHOT" category="MENU ONFOOT VEHICLE" key1="KEY_f6" key2="" button="" device="0" mouse="" />
    51. <input name="TOGGLE_WORK_LIGHT_BACK" category="ONFOOT VEHICLE" key1="KEY_KP_6" key2="" button="BUTTON_19" device="1" mouse="" />
    52. <input name="TOGGLE_WORK_LIGHT_FRONT" category="ONFOOT VEHICLE" key1="KEY_KP_5" key2="" button="BUTTON_17" device="1" mouse="" />
    53. <input name="TOGGLE_HIGH_BEAM_LIGHT" category="ONFOOT VEHICLE" key1="KEY_lctrl KEY_f" key2="" button="BUTTON_8 BUTTON_20" device="1" mouse="" />
    54. <input name="TOGGLE_LIGHT_FRONT" category="ONFOOT VEHICLE" key1="" key2="" button="BUTTON_20" device="1" mouse="" />
    55. <axis name="AXIS_MOVE_FORWARD_PLAYER" category="ONFOOT" key1="KEY_s" key2="KEY_w" key3="" key4="" button="" axis="AXIS_2" device="1" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    56. <axis name="AXIS_MOVE_SIDE_PLAYER" category="ONFOOT" key1="KEY_d" key2="KEY_a" key3="" key4="" button="" axis="AXIS_1" device="1" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    57. <axis name="AXIS_LOOK_UPDOWN_PLAYER" category="ONFOOT" key1="KEY_down" key2="KEY_up" key3="" key4="" button="" axis="" device="0" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    58. <axis name="AXIS_LOOK_LEFTRIGHT_PLAYER" category="ONFOOT" key1="KEY_right" key2="KEY_left" key3="" key4="" button="" axis="" device="0" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    59. <axis name="AXIS_MOVE_FORWARD_VEHICLE" category="VEHICLE" key1="KEY_s" key2="KEY_w" key3="" key4="" button="" axis="AXIS_2" device="1" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    60. <axis name="AXIS_MOVE_SIDE_VEHICLE" category="VEHICLE" key1="KEY_d" key2="KEY_a" key3="" key4="" button="" axis="AXIS_1" device="1" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    61. <axis name="AXIS_LOOK_UPDOWN_VEHICLE" category="VEHICLE" key1="KEY_down" key2="KEY_up" key3="" key4="" button="" axis="" device="0" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    62. <axis name="AXIS_LOOK_LEFTRIGHT_VEHICLE" category="VEHICLE" key1="KEY_right" key2="KEY_left" key3="" key4="" button="" axis="" device="0" invert="false" button1="" button2="" mouse="" mouseAxis="" />
    63. <axis name="AXIS_FRONTLOADER_ARM" category="VEHICLE" key1="KEY_j" key2="KEY_n" key3="" key4="" button="" axis="AXIS_2" device="0" invert="false" mouse="MOUSE_BUTTON_LEFT" mouseAxis="y" button1="" button2="" />
    64. <axis name="AXIS_FRONTLOADER_TOOL" category="VEHICLE" key1="KEY_m" key2="KEY_k" key3="" key4="" button="" axis="AXIS_1" device="0" invert="false" mouse="MOUSE_BUTTON_LEFT" mouseAxis="x" button1="" button2="" />
    65. <axis name="AXIS_FRONTLOADER_TOOL2" category="VEHICLE" key1="KEY_lshift KEY_k" key2="KEY_lshift KEY_m" key3="" key4="" button="BUTTON_1" axis="AXIS_1" device="0" invert="false" mouse="MOUSE_BUTTON_RIGHT" mouseAxis="x" button1="" button2="" />
    66. <axis name="AXIS_TELEHANDLER_ARM" category="VEHICLE" key1="KEY_j" key2="KEY_n" key3="" key4="" button="" axis="AXIS_2" device="0" invert="false" mouse="MOUSE_BUTTON_LEFT" mouseAxis="y" button1="" button2="" />
    67. <axis name="AXIS_TELEHANDLER_TOOL" category="VEHICLE" key1="KEY_m" key2="KEY_k" key3="" key4="" button="" axis="AXIS_1" device="0" invert="false" mouse="MOUSE_BUTTON_LEFT" mouseAxis="x" button1="" button2="" />
    68. <axis name="AXIS_TELEHANDLER_INNER_ARM" category="VEHICLE" key1="KEY_lshift KEY_j" key2="KEY_lshift KEY_n" key3="" key4="" button="BUTTON_1" axis="AXIS_2" device="0" invert="false" mouse="MOUSE_BUTTON_RIGHT" mouseAxis="y" button1="" button2="" />
    69. <axis name="AXIS_TELEHANDLER_TOOL2" category="VEHICLE" key1="KEY_lshift KEY_k" key2="KEY_lshift KEY_m" key3="" key4="" button="BUTTON_1" axis="AXIS_1" device="0" invert="false" mouse="MOUSE_BUTTON_RIGHT" mouseAxis="x" button1="" button2="" />
    Alles anzeigen

    Zum verstehen hier mal ein Eintrag übersetzt

    <input name="ACTIVATE_THRESHING" category="VEHICLE" key1="KEY_b" key2="" button="BUTTON_2" device="0" mouse="" />
    Name der Funktion auf Englisch---> Activate Threshing= Dreschen
    Name der Kategorie. Diesen Eintrag gibt es nur bei den originalen Standart Einträgen, also nicht für Mods.
    Man unterscheidet zwischen:
    VEHICLE: Funktionen eines Fahrzeugs
    ONFOOT VEHICLES: Funktionen für die man kein Fahrzeug braucht(z.B. Zeit Schneller/langsamer)
    MENU: Steuerung in Menulisten wie Shop und PDA

    1. Taste für die Funktion auf der Tastatur
    2. Taste für die Tastatur
    Taste auf dem Gamepad/Lenkrad/Joystick
    Gerätenummer unter einzelnen Gamepads
    z.b. Lenkrad=1 Joystick=2

    Taste auf der Maus/>
    Hier noch ein paar Regeln
    key1="KEY_b"
    1. Taste muss immer zwischen den " " stehen
    2. Tastatur KEY_ Taste
    3. Numpad: KEY_KP_ Taste
    4.Gamepad: BUTTON_ Taste
    5. Bewegungen von z.b. Frontlader oder Fahren die mit Gamepad/Maus beeinflusst werden können Tragen zusätzlich den Eintrag AXIS

    20.625 mal gelesen