• View unanswered postsView active topics

  • Wolf4SDL on retropie

    Discuss Wolf3D and Wolf3D modding/ports

    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: 14051
    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

    Postby lazd 22 Oct 2018, 06:29

    Quick update: I have SplitWolf working with SDL2, and after copying in the lwmp/ folder from the SplitWolf, everything looks right and seems to work! I'm going to set to work on SDL2 GameController support and customizing controls now.
    lazd

     
    Posts: 23

       

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

    Postby DoomJedi 22 Oct 2018, 07:11

    Good news, keep it up! :Bravo:
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby lazd 22 Oct 2018, 08:07

    I have basic support for multiple joysticks done and tested, and I'm happy to report you can control each player with a different joystick. It's hacky, but it works!

    Now I'm going to set out to do the same SDL2 GameController changes from my other fork, plus the complete remapping UI.
    lazd

     
    Posts: 23

       

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

    Postby DoomJedi 22 Oct 2018, 09:23

    Are you part of facebook retropie community?

    If not, tell me when "SplitWolfPie" ready, I'll make big announcement there. Othewise you can do it yourself.
    I think it'll bring much attention.
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby lazd 22 Oct 2018, 10:42

    DoomJedi wrote:Are you part of facebook retropie community?

    If not, tell me when "SplitWolfPie" ready, I'll make big announcement there. Othewise you can do it yourself.
    I think it'll bring much attention.


    Sound good, I'll let you know! Though it was quick work to get basic 2 player gamepad control working, we'll want to package it up nicely so it's an easy install on RetroPie before making any kind of announcement.

    I'm still busy working on remapping for multiple controllers, then we need to code review and test it, get cross compilation working again, etc. Hopefully I can get you a build to test soon :)
    lazd

     
    Posts: 23

       

    Postby DoomJedi 22 Oct 2018, 10:54

    Won't announce it before you say it's ready :)
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby linuxwolf 22 Oct 2018, 15:45

    This is all very hopeful and promising. Keep up the good work! I'm excited to see SplitWolf running on a new platform with dedicated and separate controllers. It's ground breaking and historic.
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5675
    Location: Australia

        

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

    Postby lazd 23 Oct 2018, 08:13

    SplitWolf with separate game controllers is ready for testing! I went ahead and made a separate topic to discuss it: viewtopic.php?f=7&t=1019
    lazd

     
    Posts: 23

       

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

    Previous

    Return to General Wolf3D/modding Discussion and tutorials


    Who is online

    Users browsing this forum: No registered users and 1 guest

    cron