RELEASE Xash3D (Half-Life) - Custom Goldsrc Engine for Switch

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by sj33, Nov 9, 2018.

  1. sj33
    OP

    sj33 GBAtemp Psycho!

    Member
    11
    Oct 22, 2013
    Japan
    [​IMG]

    This was NOT ported by me, it was ported by Datamats who gave me the go-ahead to make this thread.

    This is a port of Xash3D to the Nintendo Switch. It is an open-source re-implementation of Valve's Goldsrc engine. To put it simply, this allows you to play Half-Life on your Nintendo Switch.

    Information

    Xash3D Engine is a custom Gold Source engine rewritten from scratch. Xash3D is compatible with many of the Gold Source games and mods and should be able to run almost any existing singleplayer Half-Life mod without a hitch. The multiplayer part is not yet completed, multiplayer mods should work just fine, but bear in mind that some features may not work at all or work not exactly the way they do in Gold Source Engine.

    Installation

    1. Drop the nro downloaded from releases file in your /switch folder
    2. Get a copy of half life that contains the valve folder.
    3. Make a xash3d on the root of your SD card and copy the valve game folder into there.
    4. Download the extras.pak files from https://github.com/FWGS/xash-extras/releases and put it in the valve folder for all the menu assets.

    Download

    https://github.com/switchports/xash3d-switch/releases

    Latest Release 0.2.0

    Make sure the /valve/ folder you copy across is a clean folder as existing config files may cause graphical issues.

    Changelog
    • The timestamp of saves are now saved into a own file as a temporarily workaround until libnx gains timestamps. (Now you will go back to the last autosave when you die instead of having to start over)
    • Increased the buffer for file copies, this makes saving in some cases multiple times faster
    • Fixed the screenshots for saves being broken due to the dynamic resolution system
    • More work trying to fix crashes (hbmenu will still crash when you quit from the mainui, this is being worked on)
    • Added a working icon
    NOTE

    • While Blue Shift and Opposing Force should start, they are unlikely to be completable at this point due custom entities unique to those games being missing.
    • This port does currently suffer from long pauses during level loading, saving and loading due to slow file operations. You can reduce the instances of long pauses by disabling auto-saving. Open config.cfg and add 'sv_autosave 0'. You will have to remember to save manually, but this will result in no pauses when auto-saving and thus a smoother experiences.
     
    Last edited by sj33, Nov 17, 2018 at 12:11 AM
  2. Owenge

    Owenge *Autistic Screams*

    Member
    4
    Feb 13, 2017
    United States
    ◤__◥
    Glad this came to the switch, the Vita version is amazing :grog:
     
    Itzumi likes this.
  3. masagrator

    masagrator Member

    Newcomer
    1
    Oct 14, 2018
    Poland
    Blue Shift is working too on this. Can someone confirm Opposing force?
     
    Itzumi likes this.
  4. tpax

    tpax GBAtemp Regular

    Member
    4
    Nov 16, 2014
    Gambia, The
    Hell yeah! I love me some portable HL.

    I also hope for the HL2 Shield version to somehow make it to the Switch.
     
  5. radicalwookie

    radicalwookie GBAtemp Regular

    Member
    2
    Sep 15, 2018
    United States
    Gentlemen, it's time to gyrate our pelvises in honor of this gentleman that goes by the name Mats.
     
    Last edited by radicalwookie, Nov 9, 2018
    x65943, swabbo, Tinnetju and 2 others like this.
  6. hippy dave

    hippy dave BBMB

    Member
    12
    Apr 30, 2012
    United Kingdom
    Nice, I never played half life, maybe this is the time. Thank for sharing and thanks to the porter.
     
  7. notimp

    notimp GBAtemp Maniac

    Member
    7
    Sep 18, 2007
    Half Life played in xash3d on the Switch. :)



    Joystick sensitivity is a little high, and I havent found a way to change it in game yet, maybe ini tweaks are up next.. :)
     
    Odb718 likes this.
  8. kikongokiller

    kikongokiller GBAtemp Advanced Fan

    Member
    7
    Jan 12, 2017
    Australia
    there's a file called config.cfg that has joy_pitch and joy_yaw, you're also able to use a negative number in joy_yaw to invert look.
     
    SmashinGit and hippy dave like this.
  9. notimp

    notimp GBAtemp Maniac

    Member
    7
    Sep 18, 2007
    Thank you very much. :) Inverting the joystick worked from in menu, but the sensitivity sliders wouldnt interact at first try - so thank you for the pointers for where to change the values in the cfg file. :)

    (Yay! :) )
     
    kikongokiller likes this.
  10. ShadowOne333

    ShadowOne333 GBAtemp Guru

    Member
    17
    Jan 17, 2013
    Mexico
    Damn, this is too good to be true.
    Half Life on the go sounds like something out of a dream haha.
    Next up... Half Life 2 and Counter Strike, bbys ( ͡° ͜ʖ ͡°)
     
  11. kikongokiller

    kikongokiller GBAtemp Advanced Fan

    Member
    7
    Jan 12, 2017
    Australia
    Once online works, I've got no doubt that we'll have CS 1.6 at our fingertips.
     
    Vorde, Switcyswachty and ShadowOne333 like this.
  12. fgsfds

    fgsfds GBAtemp Regular

    Member
    4
    Aug 28, 2018
    Russia
    Blue Shift might not be working correctly, the telltale sign is the absence of the kevlar vest at the point where you have to get one to progress.
    Opposing Force and CS1.6 will not work right now. Making them work is possible, but it would require adapting the appropriate game libraries I used for the Vita port to be able to statically link them.
    I haven't checked if the multiplayer works if you enter your nickname in the config prior to entering the multiplayer menu, but it might.
     
  13. notimp

    notimp GBAtemp Maniac

    Member
    7
    Sep 18, 2007
    A few 30 sec switch videos from the first few minutes combined into one. Ah, the nostalgia. :)

    (If you see a black screen for several seconds, keep watching.. ;))

     
    Last edited by notimp, Nov 9, 2018
    kikongokiller likes this.
  14. radicalwookie

    radicalwookie GBAtemp Regular

    Member
    2
    Sep 15, 2018
    United States
    You mean...multiplayer...like...you seriously mean it could work?
    I'm spazzing out here man tell me I misread that
     
  15. fgsfds

    fgsfds GBAtemp Regular

    Member
    4
    Aug 28, 2018
    Russia
    I don't really see why it wouldn't. If it doesn't, then most likely it'll be a simple fix to make it so.
    UPD: The server list does not appear to get any servers. It still might be possible to connect to a server by putting "connect some.server.com:27015" or something into autoexec.cfg.
     
    Last edited by fgsfds, Nov 9, 2018
  16. Milenko

    Milenko GBAtemp Maniac

    Member
    7
    Oct 16, 2017
    Australia
    What other games could be potentially playable?
     
  17. GerryTheLeper

    GerryTheLeper Member

    Newcomer
    1
    May 5, 2018
    Ireland
    Half-Life worked fine for me using the steam files. Opposing Force has lots of black textures though. Is there any way to edit the look sensitivity without having to edit the config file on PC and transfer it over. NXShell doesn't have a text editor. Is there one that works?
     
  18. Mikep90

    Mikep90 GBAtemp Regular

    Member
    3
    May 29, 2018
    United States
    whats wrong with the nro. I try to put an image with it using nro-asset-editor. I get an error
    Exception in Tkinter callback
    Traceback (most recent call last):
    File "tkinter\__init__.py", line 1699, in __call__
    File "maker.py", line 218, in browse
    File "site-packages\PIL\Image.py", line 2585, in open
    OSError: cannot identify image file <_io.BytesIO object at 0x038C2840>

    trying to use this image
     

    Attached Files:

  19. GerryTheLeper

    GerryTheLeper Member

    Newcomer
    1
    May 5, 2018
    Ireland
    I don't have any "joy_pitch" and "joy_yaw" lines in my config.cfg in the valve folder.
     
  20. Brunz514

    Brunz514 Member

    Newcomer
    2
    Sep 4, 2018
    Canada
    Dude you guys are my heroes cant wait to play this!
     
Loading...