RELEASE OpenTTD (Transport Tycoon Deluxe) for Switch v1.0.

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by rsn8887, Mar 5, 2019.


    4,737

    44
    Front-page RELEASE
    EDIT: New update v1.02. Some minor improvements to controls etc.

    Download and more information: http://github.com/rsn8887/openttd/releases/latest

    # OpenTTD port for Switch

    This is my Switch port of OpenTTD, a re-implementation of Transport Tycoon Deluxe.

    Port by @rsn8887, based on the Vita port by @angguss. I made some control enhancements and I also enabled sound on the Vita port, too (pull request to @angguss made).

    openttd_1.

    More Screenshots:
    openttd_4. openttd_2. openttd_3.

    # Thanks

    Thanks to the many developers who worked on this game.

    Thanks to @angguss for his excellent Vita port, on which this Switch port is based.

    Thanks to my supporters on Patreon: Andyways, CountDuckula, Greg Gibson, Jesse Harlin, Özgür Karter, Matthew Machnee, and RadicalR.

    # Installation

    - Download (see `assets` below), and unzip openttd_switch.zip and copy the contents over to the `/switch/` folder on your sd card, so that you have a folder `/switch/openttd` with many folders and files inside.

    - Use you favorite homebrew launcher to start the game. It comes with everything you need to start playing right away.

    - Note: This game takes quite long to load (~15 seconds). But it is worth the wait!

    - The public domain graphics and sound sets from www.openttd.org are included.

    - If you want the choice to also use the original dos game graphics and sounds, copy over the files
    ```
    SAMPLE.CAT
    TRHCOM.GRF
    TREND.GRF
    TRTITLE.GRF
    TRG1.GRF
    TRGC.GRF
    TRGH.GRF
    TRGI.GRF
    TRGT.GRF
    ```
    from an original TTD game to `/switch/openttd/baseset/`.

    - To install the original music, copy over all files
    ```
    gm/gm_ttxx.gm (xx are numbers)
    ```

    from the folder `gm` from the original windows version of the game to `/switch/openttd/gm/`.

    You then get the choice to select `original dos` graphics, sounds, and music when you go to the game settings dialog.

    # Controls

    - Left analog stick = mouse pointer control
    - D-Pad or right analog stick = scrolling the map.
    - A/right trigger = left mouse click
    - B/left trigger = right mouse click
    - Y = zoom-in
    - X = zoom-out
    - Hold ZL = speed up analog joystick mouse
    - Hold ZR = slow down analog joystick mouse, useful to precisely position the pointer
    - Minus = switch button mappings between two presets: ZL/ZR = slow/fast mouse and Y/X = zoom, or ZL/ZR = zoom and Y/X = slow/fast mouse
    - Double click A / double click right trigger over a text field = bring up on-screen keyboard
    - The touch screen is used for indirect mouse input, like on a laptop touchpad. Move a single finger to move the mouse pointer. Use short tap for left click. Hold a single finger while tapping a second finger for right click. Drag with two fingers to drag and drop.

    # Current Limitations

    - No network support

    # Building

    libtimidity:
    ```
    git clone https://github.com/rsn8887/libtimidity
    cd libtimidity/src/
    make -f Makefile.switch
    cp libtimidity.a $DEVKITPRO/portlibs/switch/lib/
    cp timidity.h $DEVKITPRO/portlibs/switch/include/
    cp ../libtimidity.pc $DEVKITPRO/portlibs/lib/pkgconfig/
    ```

    liblzo2:
    Download https://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz and extract, then
    ```
    cd lzo-2.10
    ./configure CFLAGS='-fPIC' CXXFLAGS='-fPIC' --host aarch64-none-elf --prefix $DEVKITPRO/portlibs/switch/ --disable-shared --enable-static
    make clean
    make -j12
    make install
    ```

    liblzma:
    Download and extract xz-5.2.4.tar.gz from https://tukaani.org/xz/ , then
    ```
    cd xz-5.2.4
    ./configure CFLAGS='-fPIC' CXXFLAGS='-fPIC' --enable-threads=no --host aarch64-none-elf --prefix $DEVKITPRO/portlibs/switch/ --disable-shared --enable-static
    cd src/liblzma
    make clean
    make -j12
    make install
    ```

    Then configure and build OpenTTD from my switch branch:
    ```
    git clone https://github.com/rsn8887/openttd
    git checkout switch
    PKG_CONFIG_PATH=$DEVKITPRO/portlibs/switch/lib/pkgconfig ./configure --os=SWITCH --host aarch64-none-elf --enable-static --prefix=/opt/devkitpro --with-sdl="pkg-config sdl2" --without-fontconfig --disable-strip --without-threads --with-libtimidity --enable-debug=0
    make -j12
    cd os/switch
    git clean -f
    cmake ./
    make openttd_switch.zip
    ```

    openttd_switch.zip can be found in __cmake/__


    # Changelog

    1.02

    - compile with lzma and lzo2 compression libraries to allow loading old compressed savegames/scenarios
    - hold ZR / ZL for slow / fast mouse to make it easier to position the pointer with the left stick
    - correctly display free disk space in load/save dialogs
    - press minus to switch button mappings between two presets: ZL/ZR = slow/fast mouse, Y/X = zoom, or ZL/ZR = zoom, Y/X = slow/fast mouse

    1.01

    - music is now working
    - improve smoothness of mouse pointer motion
    - reduce analog joystick deadzone for better mouse pointer control
    - update graphics and sound files to latest freeware versions from www.openttd.org
    - enable cursor key map scrolling on USB keyboard
    - enabled mouse wheel zoom

    1.00

    - initial Switch release based on latest nightly
     
    Discussion (44 replies)
  1. sj33

    sj33 GBAtemp Psycho!

    Member
    12
    Oct 22, 2013
    Japan
    Amazing! Been waiting for this one!
     
    DayVeeBoi likes this.
  2. Issac

    Issac I

    Supervisor
    13
    GBAtemp Patron
    Issac is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Apr 10, 2004
    Sweden
    Sweden
    If my Switch would have been hacked, I wouldn't wait 5 seconds until installing this.

    This game is AMAZING!!!! AAAAAH!
     
  3. Kubas_inko

    Kubas_inko "Something funny goes here."

    Member
    13
    Feb 3, 2017
    Czech Republic
    I gues on earth.
    Great job. Love this game.
    .
    .
    .
    But I want my mouse...
     
    Last edited by Kubas_inko, Mar 5, 2019
  4. Milenko

    Milenko GBAtemp Advanced Maniac

    Member
    9
    Oct 16, 2017
    Australia
    Thought it crashed the first few times as it black screened for a bit, but then worked fine! Good job!

    Now someone just needs to port open rollercoaster tycoon 2 and my life is complete
     
  5. Scarlet

    Scarlet A Convenient Oddity

    pip Reporter
    15
    GBAtemp Patron
    Scarlet is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jan 7, 2015
    United Kingdom
    Middleish North-Left
    Holy heck this is the best thing wjat
     
  6. rsn8887
    OP

    rsn8887 GBAtemp Advanced Fan

    Member
    8
    Oct 8, 2015
    United States
    Yes the game takes a long time to load with black screen.

    You should be able to use usb mouse and keyboard on Switch. The game supports it. But I tried four different mouse models and only one worked on my Switch. Only my Logitech M187 worked. The other three didn’t work (pressed erroneous buttons very quickly when moving mouse etc)
     
    x65943 likes this.
  7. Charli

    Charli Advanced Member

    Newcomer
    4
    GBAtemp Patron
    Charli is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Feb 16, 2011
    Germany
    this is great! :)
    Been playing some Multiplayer OpenRCT (Rollercoaster Tycoon) lately. It's incerdibly fun to build a theme park together with a few friends. An OpenRCT-Port for the Switch would also be great ;P Although I don't know if these two project actually have much in common.

    Hah, interesting to know that the switch supports a PC mouse and keyboard. Do you know of any uses other than playing OpenTTD? :)
     
    Last edited by Charli, Mar 5, 2019
  8. luk_pop

    luk_pop GBAtemp Regular

    Member
    3
    Apr 30, 2017
    Poland
    mytown
    Gr8 job, my favorite game of '90.
     
  9. Idontknowwhattoputhere

    Idontknowwhattoputhere Spider

    Member
    2
    Jan 19, 2019
    United Kingdom
  10. BlastedGuy9905

    BlastedGuy9905 where's the updated autopsy report

    Member
    10
    Apr 13, 2017
    United States
    under your desk
    HOLY SHIT!! Could this be done with OpenRCT?
     
  11. Sumandora

    Sumandora GBAtemp Regular

    Member
    2
    Nov 13, 2018
    Germany
    FINALLY!!
     
  12. p1n0YsWicH3r

    p1n0YsWicH3r Newbie

    Newcomer
    1
    Feb 25, 2019
    Philippines
    been waiting for this!!! thanks a bunch!
     
  13. Scarlet

    Scarlet A Convenient Oddity

    pip Reporter
    15
    GBAtemp Patron
    Scarlet is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jan 7, 2015
    United Kingdom
    Middleish North-Left
    Had a quick play about, amazing work. My only complaints come from playing with a mouse and keyboard, where the arrow keys don't scroll the map, and the scroll wheel doesn't zoom in/out. Any way to alter the controls? Minor things in the grand scheme of things though, I'm blown away it runs so well in the first place lol
     
    rsn8887 likes this.
  14. mathew77

    mathew77 Member

    Newcomer
    1
    Jan 19, 2019
    Norway
    Thanks for your great work! Can't wait for BG music support. :)

    Non-english languages are also works well, here's the little tweak for them:
    for non-english users
     

    Attached Files:

    Last edited by mathew77, Mar 5, 2019
    rsn8887 likes this.
  15. Tinnetju

    Tinnetju Member

    Newcomer
    1
    Jul 31, 2018
    Netherlands
    Does everything work? Even multiplayer?
     
  16. m4xw

    m4xw Ancient Deity

    Member
    14
    May 25, 2018
    Germany
     
    Tinnetju likes this.
  17. Tinnetju

    Tinnetju Member

    Newcomer
    1
    Jul 31, 2018
    Netherlands
    Oh my bad dude. The formatting is a bit off which makes it very hard to read on mobile.
     
  18. rsn8887
    OP

    rsn8887 GBAtemp Advanced Fan

    Member
    8
    Oct 8, 2015
    United States
    I will try to fix this in the next release, soon.
     
    mathew77 and Scarlet like this.
  19. Wellington2k

    Wellington2k DO YOU HAS?

    Member
    6
    Nov 1, 2010
    United States
    Somewhere in this world of ours
    Rollercoaster Tycoon next???? :ph34r:
     
    BlastedGuy9905 likes this.
Loading...