• View unanswered postsView active topics

  • Wolf4SDL on retropie

    Discuss Wolf3D and Wolf3D modding/ports

    Postby DoomJedi 19 Oct 2018, 17:37

    Would be so cool to play SplitWolf with 2 players on the same screen on retropie, this can give SplitWolf a whole new life. >0<
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 12992
    Location: Israel

        

    Postby DoomJedi 19 Oct 2018, 17:44

    I've uninstalled Wolf4SDL from retropie since, mostly because it didn't look well with my other menu layout, but I can install it again and try with your files. Sure if we can get SplitWolf working, that would be fantastic, 2 player coop like that. I'll definitely announce it on retropie groups then.

    Unfortunately, with your gamepad only having a single axis, you won't be able to turn (doh!). Maybe the wireless gamepads you bought have multiple axes?
    SNES-like I like and use the most, but I have other analog joysticks (that I like less), wireless ps-type ones and arcade ones. I ordered wired ones too, but they got lost on the way, didn't reorder those.

    From my calculation - it's totally possible to make full Wolf3D actions with just dpad-type joystick, especially as I myself don't use strafing at all.
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 12992
    Location: Israel

        

    Postby lazd 19 Oct 2018, 18:59

    DoomJedi wrote:From my calculation - it's totally possible to make full Wolf3D actions with just dpad-type joystick, especially as I myself don't use strafing at all.


    You're right, I'm on it! Without adding the ability to remap axes, I can just check for the number of axes and assign turning to the X axis instead of strafing if there is only one.

    I just pushed a fresh commit that will let you control it Gravis Gamepad style if your controller has less than 4 axes. Bonus: you can remap your strafe button to next weapon so you can actually switch weapons with your gamepad (not possible before my changes!)
    lazd

     
    Posts: 23

       

    Postby DoomJedi 19 Oct 2018, 22:55

    That is most cool! 8)

    I need to reinstall Wolf4SDL I guess *Joystick*
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 12992
    Location: Israel

        

    Postby linuxwolf 20 Oct 2018, 10:24

    You're about to make wolf3d history if you manage to pull this off.
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5115
    Location: Australia

        

    Postby lazd 20 Oct 2018, 18:19

    @linuxwolf, unfortunately, I'm actually struggling to get Splitwolf to run. It compiles fine (with a few warnings ), but I get a segfault when I try to start a game, and gdb gives me "During startup program terminated with signal SIGTRAP, Trace/breakpoint trap" when I try to start it. I think the GDB issue is due to macOS code signing. I should probably just spin up a VM with Ubuntu on it instead of trying to fight macOS... If I can get it working, I will definitely start hacking on separate controllers for Splitwolf!

    macOS: 10.13.2 (17C89)
    GNU Make 3.81
    Apple LLVM version 9.1.0 (clang-902.0.39.1)
    Target: x86_64-apple-darwin17.3.0
    SDL 1.2.15
    Wolf3d Full v1.4 GT/ID/Activision (CARMACIZED/GOODTIMES)

    Meanwhile @DoomJedi, I'm still working on my wofl4sdl fork, polishing my skills working with Wolf's UI and control schemes. I added UI to disable movement with the mouse and to remap the keyboard keys for strafe left/right and prev/next weapon to my fork last night: https://github.com/lazd/wolf4sdl/tree/sdl2remap
    lazd

     
    Posts: 23

       

    Postby lazd 20 Oct 2018, 18:40

    Alright, I got gdb to behave and found where it's segfaulting. Luckily, it's right up my alley:

    Code: Select all
    0x000000010006a02e in PollKeyboardButtons () at wl_play.cpp:346
    346           if (Keyboard[buttonscan_mp[i]])


    Also getting another segfault when trying to customize controls:

    Code: Select all
    0x00000001000683a2 in IN_GetScanName (scan=1073742049) at wl_menu.cpp:4342
    4342       return (ScanNames[scan]);


    I'll start hacking on this next week!
    lazd

     
    Posts: 23

       

    Postby DoomJedi 20 Oct 2018, 23:01

    You'll make history, keep it up! All retropie community will love it. :good:

    sudo su
    cd RetroPie-Setup/
    ./retropie_packages.sh wolf4sdl depends
    ./retropie_packages.sh wolf4sdl sources
    cd ~/RetroPie-Setup/tmp/build/wolf4sdl/
    git remote add lazd "https://github.com/lazd/wolf4sdl.git"
    git fetch lazd
    git checkout sdl2remap
    git submodule init
    git submodule update
    cd RetroPie-Setup/
    ./retropie_packages.sh wolf4sdl get_opts
    ./retropie_packages.sh wolf4sdl get_bins
    ./retropie_packages.sh wolf4sdl build
    ./retropie_packages.sh wolf4sdl install
    ./retropie_packages.sh wolf4sdl configure
    rm ~/.wolf4sdl/config.wl*


    Can you tell me how to do it with WinSCP?
    Or do I have to manually do it line by line directly from retropie?
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 12992
    Location: Israel

        

    Postby lazd 21 Oct 2018, 10:35

    The segfaults are fixed and I've got it running on macOS! https://bitbucket.org/lazd/split_wolf4s ... ommits/all

    The hacking starts next week.
    lazd

     
    Posts: 23

       

    Postby lazd 21 Oct 2018, 10:43

    DoomJedi wrote:Can you tell me how to do it with WinSCP?
    Or do I have to manually do it line by line directly from retropie?


    You can definitely SSH in to your RetroPie and run these commands, you don't have to type 'em manually.

    I just snagged my iNNEXT SNES controllers and tried the fork, it looks like it's not working (it seems to lock up keyboard input, and it's not detecting axes as hats either). It's late, I'll look into this next week. In the mean time, don't bother testing those update just yet unless you have a controller with 2 axes.
    lazd

     
    Posts: 23

       

    The following user would like to thank lazd for this post
    DoomJedi

    PreviousNext

    Return to General Wolf3D/modding Discussion and tutorials


    Who is online

    Users browsing this forum: No registered users and 1 guest

    cron