Menu

Help editing controls

Help
2016-12-17
2016-12-17
  • Eric Kukenberger

    I usually play games like this with WASD instead of arrow keys so I tried editing the trigger.config and found this:

    <controls>
    
            <keyboard enable="yes">
                <key action="forward" code="273" />
                <key action="back" code="274" />
                <key action="left" code="276" />
                <key action="right" code="275" />
                <key action="handbrake" code="32" />
    
                <key action="recover" code="114" />
    
                <key action="cammode" code="99" />
                <key action="camleft" code="44" />
                <key action="camright" code="46" />
    
                <key action="showmap" code="109" />
            </keyboard>
    

    I found a previous support topic that had the values but the link is broken so I don't know what codes the WASD keys are to be able to change them.

     
  • Andrei

    Andrei - 2016-12-17

    Since version 0.6.3, the keycodes from SDL are to be used instead:

    0.6.3, 0.6.4: SDL 1.2 SDLKey: https://www.libsdl.org/release/SDL-1.2.15/docs/html/sdlkey.html

    0.6.5 (released tomorrow) SDL 2 SDL_Keycode: http://wiki.libsdl.org/SDL_Keycode

    Example:

    <keyboard enable="yes">
        <key action="forward" id="SDLK_w" />
        <key action="back" id="SDLK_s" />
        <key action="left" id="SDLK_a" />
        <key action="right" id="SDLK_d" />
        <key action="handbrake" id="SDLK_SPACE" />
        <key action="recover" id="SDLK_r" />
        <key action="recoveratcheckpoint" id="SDLK_q" />
        <key action="cammode" id="SDLK_c" />
        <key action="camleft" id="SDLK_PERIOD" />
        <key action="camright" id="SDLK_COMMA" />
        <key action="showmap" id="SDLK_m" />
        <key action="pauserace" id="SDLK_p" />
        <key action="showui" id="SDLK_n" />
        <key action="showcheckpoint" id="SDLK_k" />
        <key action="next" id="SDLK_COMMA" />
    </keyboard>
    

    If you're stuck with previous version of Trigger Rally, 0.6.2-, then you're SOL. I guess I, or better the people from the SDL Forums, could write a program to give you the exact numeric codes but what's the point? You should upgrade the game anyway.

     
  • Eric Kukenberger

    Thanks for the reply. I am quite new to Ubuntu so I tried downloading the TR_NSIS-0.6.5.ZIP and extracted it and I didn't know how to run it from there. So I tried installing through terminal using
    sudo apt-get install trigger-rally-data
    and apparently that installed 0.6.2. I am sorry I am incredibly new to Ubuntu and Linux in general so I really know nothing. So how do I run Trigger Rally from the extracted TR_NSIS-0.6.5 files?

     
  • Andrei

    Andrei - 2016-12-17

    No, the file TR_NSIS-0.6.5.ZIP is from the DevKit and is only for Windows repackaging. It is NOT the game itself.

    You can download the 0.6.5 version early from FileConvoy (link below) then follow the build instructions in doc/BUILDING.txt.

    https://sourceforge.net/p/trigger-rally/discussion/527953/thread/187eaa3a/#3a8b

    In short, to build Trigger Rally, you will need to install development libraries for SDL2, SDL2_image, PhysFS, ALUT, OpenAL, GL, GLU and GLEW, and then run make in the src/ directory.

    Please read the Building documentation, and if you need more help post again here.

     

Log in to post a comment.