Page 2 of 2

Re: Wolf4SDL on retropie

PostPosted: 20 Oct 2018, 18:19
by lazd
@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

Re: Wolf4SDL on retropie

PostPosted: 20 Oct 2018, 18:40
by lazd
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!

Re: Wolf4SDL on retropie

PostPosted: 20 Oct 2018, 23:01
by DoomJedi
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?

Re: Wolf4SDL on retropie

PostPosted: 21 Oct 2018, 10:35
by lazd
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.

Re: Wolf4SDL on retropie

PostPosted: 21 Oct 2018, 10:43
by lazd
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.

Re: Wolf4SDL on retropie

PostPosted: 22 Oct 2018, 06:29
by lazd
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.

Re: Wolf4SDL on retropie

PostPosted: 22 Oct 2018, 07:11
by DoomJedi
Good news, keep it up! :Bravo:

Re: Wolf4SDL on retropie

PostPosted: 22 Oct 2018, 08:07
by lazd
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.

Re: Wolf4SDL on retropie

PostPosted: 22 Oct 2018, 09:23
by DoomJedi
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.

Re: Wolf4SDL on retropie

PostPosted: 22 Oct 2018, 10:42
by lazd
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 :)

Re: Wolf4SDL on retropie

PostPosted: 22 Oct 2018, 10:54
by DoomJedi
Won't announce it before you say it's ready :)

Re: Wolf4SDL on retropie

PostPosted: 22 Oct 2018, 15:45
by linuxwolf
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.

Re: Wolf4SDL on retropie

PostPosted: 23 Oct 2018, 08:13
by lazd
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