WIP NXQuake2 - a Quake II port

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by fgsfds, Sep 4, 2018.

  1. fgsfds
    OP

    fgsfds Member

    Newcomer
    3
    Aug 28, 2018
    Russia
    I ported Yamagi Quake II to the Switch.
    Github repo: /fgsfdsfgs/nxquake2
    Latest version: 0.2.0 (Sep 16, 2018)

    Warning: Spoilers inside!

    Some of the features of the port:
    • hardware accelerated rendering using YQ2's GL3 renderer;
    • sound and OGG music support;
    • multiplayer (not really tested);
    • analog controls and shit.

    To install it, just unzip nxquake2_020.zip to the root of your SD card, then copy the baseq2 folder from your Quake II installation to /switch/nxquake2/. If you want to use the config file included with the release, don't forget to select "no" when asked if you want to overwrite it. You can then run the game using the Homebrew Launcher.
    You can use the Quake II demo for this, read the README on Github for details.

    Some notes:
    • if it crashes and exits back to HBL/Horizon silently, check /switch/nxquake2/crash.log to find out what caused it;
    • music works the same way as it does in regular Yamagi Quake II: put the OGG music tracks (named 02.ogg - 11.ogg) into /switch/nxquake2/baseq2/music/;
    • mods or mission packs are not supported yet;
    • analog controls are a little bit wonky, especially when FPS dips;
    • better exit the game using the Quit option in the menu;
    • there's no real way to connect anywhere except editing the address book manually on PC, or maybe LAN discovery, which I haven't tested;
    • you might notice that this is an almost exact copy of the NXQuake thread's OP;
    • if you want pixelated textures, change gl_texturemode in config.cfg to GL_NEAREST_MIPMAP_NEAREST;
    • right analog sensitivity is controlled by the console variables joy_pitchsensitivity (up/down) and joy_yawsensitivity (left/right), you can edit their values in config.cfg;
    • reboot into orange screen means a GPU crash happened, report this;
    • port is pretty barebones, so if you have any suggestions or bug reports, please post them here or in the Github issues.

    Credits:
    • Yamagi for Yamagi Quake II;
    • fincs, Armada651, Subv and probably others for their work on the OpenGL/mesa/libdrm stuff;
    • some nice people in the ReiSwitched Discord for help and testing;
    • id Software for Quake II itself.
     

    Attached Files:

    Last edited by fgsfds, Sep 20, 2018 at 4:00 AM
    x0x0, iw0rm3r, 877 and 24 others like this.
  2. seanp2500

    seanp2500 GBAtemp Advanced Fan

    Member
    4
    Jun 2, 2010
    United States
    great port

     
    lordelan likes this.
  3. fgsfds
    OP

    fgsfds Member

    Newcomer
    3
    Aug 28, 2018
    Russia
    Didn't even know the videos work. Thanks.
     
  4. Dontwait00

    Dontwait00 Dev

    Member
    3
    Sep 3, 2017
    Italy
    Error 404
    You made my day bro!
     
  5. Milenko

    Milenko GBAtemp Maniac

    Member
    6
    Oct 16, 2017
    Australia
    You're a beast, thanks heaps!
    Got anything else planned? Keep up the good work!
     
  6. fgsfds
    OP

    fgsfds Member

    Newcomer
    3
    Aug 28, 2018
    Russia
    Right now no. If you know of any other open source games that utilize software rendering, I might consider porting those. "Porting" Quake and QuakeII was a very simple process though, since SDL and shit.
     
  7. szczuru

    szczuru GBAtemp Regular

    Member
    3
    May 3, 2014
    Poland
    Poland
    Heroes 3? (Using VCMI engine).
     
  8. Milenko

    Milenko GBAtemp Maniac

    Member
    6
    Oct 16, 2017
    Australia
    ccprodigy and T-Error like this.
  9. swisstoni

    swisstoni Newbie

    Newcomer
    2
    Aug 22, 2017
    United Kingdom
    Thanks for this Shadow Warrior, Hexen, Heretic and Blood would be good if they could be ported.
     
    phreaksho likes this.
  10. Adran_Marit

    Adran_Marit Walküre's Hacker

    Member
    3
    Oct 3, 2015
    Australia
    42*South
    gotta love the old ID soft and 3d Realms games
     
  11. Mikep90

    Mikep90 Advanced Member

    Newcomer
    2
    May 29, 2018
    United States
    Can you try to do a redneck rampage
     
    phreaksho and Pippin666 like this.
  12. Admiral-Purple

    Admiral-Purple Member

    Newcomer
    2
    May 25, 2018
    United States
    Thanks for this I love quake 2. You should try to port xash3d engine. I’m pretty sure it can use software rendering. I would love to be able to play half life on the switch.
     
  13. Brunz514

    Brunz514 Member

    Newcomer
    1
    Sep 4, 2018
    Canada
    Good work dude, going to test this after work!
     
  14. Idaho

    Idaho GBAtemp Advanced Fan

    Member
    5
    Oct 3, 2013
    France
    Good work, I did not expect to see Quake2 on the switch while the GPU libraries are still not available ^^

    What do you think of AlephOne to play the Marathon games? it's a game that we rarely see ported to hacked consoles (I only remember seeing a port of an old version on the PSP and it was a bit buggy per say), though I think this series of games really deserves to be available on the switch with an up to date port and good rendering...

    What's also cool about it is that you can ship the game files with the engine port because these have also been made free...

    Here's the games website :
    https://alephone.lhowon.org/

    While xash3d might be possible with software rendering, I think it would be wiser to wait for the GPU libraries to be available for better optimization and not having to rework the code later on if software rendering hits the hardware limits of the console...
     
    Last edited by Idaho, Sep 5, 2018
    phreaksho likes this.
  15. sj33

    sj33 GBAtemp Psycho!

    Member
    11
    Oct 22, 2013
    Japan
    Fantastic stuff with this! Quick work and already pretty feature complete. And doesn't have the weird loading bugs that the Vita port suffers from.

    Another vote for Xash3D here!
     
  16. dc9884

    dc9884 Newbie

    Newcomer
    1
    Jul 9, 2018
    United States
    I second this. Marathon would be incredible, and a unique addition to the Switch.
     
    phreaksho, Idaho and Memoir like this.
  17. fgsfds
    OP

    fgsfds Member

    Newcomer
    3
    Aug 28, 2018
    Russia
    Xash3D does not have a software renderer. I will attempt to port it as soon as we get OpenGL support in libnx homebrews.
    I will look into porting AlephOne, however I don't think it will be as easy as porting Quake was, so don't get your hopes up too much.
     
  18. Purple_Shyguy

    Purple_Shyguy GBAtemp Advanced Fan

    Member
    5
    Nov 8, 2008
    Republic of Ireland
    Always wanted to play Quake but was just too lazy to.

    Definitely gonna check these out. Thanks for this!
     
  19. Brunz514

    Brunz514 Member

    Newcomer
    1
    Sep 4, 2018
    Canada
    Port is pretty good for software acceleration! Hopefully we get opengl soon, i loved this game on my 3dfx video card aeons ago!

    For whatever reason on sx os there is no proper icon for the game, its just a question mark. Is that normal?
     
  20. Milenko

    Milenko GBAtemp Maniac

    Member
    6
    Oct 16, 2017
    Australia
    Yeah you'll have to make your own

    https://gbatemp.net/threads/nro-asset-editor.499003/
     
    Brunz514 likes this.
Loading...