#Descent 1/2

2365 messages Ā· Page 3 of 3 (latest)

naive anvil
#

Or comment the line in the game code doggokek

inland forge
stable kayak
#

In jelos on x55 at least descent.hmp fails to play music due to missing libmodplug.so.a. This is a static library that other cfws do not require.

#

Arkos and Amber play the music without issues with libmodplug.so.1.

unborn chasm
# stable kayak In jelos on x55 at least descent.hmp fails to play music due to missing libmodpl...
Music descent.hmp could not be loaded: Failed loading libmodplug.a: libmodplug.a: cannot open shared object file: No such file or directory
rga_api version 1.3.0_[1] (RGA is compiling with meson base: $PRODUCT_BASE)
      9195:    find library=libreadline.so.8 [0]; searching
      9195:     search path=/roms/ports/descent2/libs        (LD_LIBRARY_PATH)
      9195:      trying file=/roms/ports/descent2/libs/libreadline.so.8
      9195:     search path=/usr/lib        (system search path)
      9195:      trying file=/usr/lib/libreadline.so.8```
stable kayak
#

Yeah those paths are correct

#

Why's it looking for libreadline? That's new.

unborn chasm
#

do you have the libmodplug.a in your build folder?

stable kayak
#

No?

unborn chasm
stable kayak
unborn chasm
stable kayak
#

Is it integrated with alsa maybe?

unborn chasm
#

libSDL2_mixer-2.0.so.0 => /usr/lib/libSDL2_mixer-2.0.so.0 (0x0000007f81220000)

or
libasound.so.2 => /usr/lib/libasound.so.2 (0x0000007f807d0000)

maybe

stable kayak
#

No those are for sound effects, not music.

unborn chasm
#

So from these ldd

x55:/roms/ports # ldd descent2/d2x-rebirth
        linux-vdso.so.1 (0x0000007f81e72000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x0000007f81300000)
        libphysfs.so.1 => not found
        libSDL2_image-2.0.so.0 => /usr/lib/libSDL2_image-2.0.so.0 (0x0000007f812a0000)
        libSDL2_mixer-2.0.so.0 => /usr/lib/libSDL2_mixer-2.0.so.0 (0x0000007f81220000)
        libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x0000007f81050000)
        libGL.so.1 => /usr/lib/gl4es/libGL.so.1 (0x0000007f80eb0000)
        libGLU.so.1 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000007f80c90000)
        libm.so.6 => /usr/lib/libm.so.6 (0x0000007f80be0000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x0000007f80ba0000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000007f80b70000)
        libc.so.6 => /usr/lib/libc.so.6 (0x0000007f80960000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0000007f80920000)
        librga.so.2 => /usr/lib/librga.so.2 (0x0000007f808e0000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x0000007f807d0000)
        /lib/ld-linux-aarch64.so.1 => /usr/lib/ld-linux-aarch64.so.1 (0x0000007f81e35000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x0000007f80790000)

Which is responsible for music?

stable kayak
#

Music is not a dependency for the game, it will boot without it.

#

The music comes from a .hmp file which modplug decodes.

unborn chasm
#

grep it

stable kayak
#

Let me see if I still have the build log

#

I used default linker flags

#

Nope don't have it

#

I'll grab and rebuild

stable kayak
#

Nothing about modplug in build log.

stable kayak
#

I've updated this port to work with muOS. Feel free to test by using the files in the repo: https://github.com/JeodC/PortMaster-Descent

I plan on making a PR once I know armhf works and when gptokeyb2 is working with the level select stuff.

unborn chasm
stable kayak
#

Whatever cfw still only has armhf then

inland forge
#

My log.txt is verging on a megabyte doggokek

stable kayak
#

Delete it then

inland forge
#

Just did. That was since I del'd last time

stable kayak
#

If anyone has a jelos or rocknix system, please try this libmodplug file and see if Descent properly plays the built-in .hmp music via soundfont. To test this properly you should have no .dxa music add-ons present in the data directory.

stable kayak
#

@inland forge

inland forge
stable kayak
#

Need testing

inland forge
#

I don't have a jelos/rocknix system

stable kayak
#

Welp

sterile bridge
#

I have jelos but descent don't work for me at all šŸ˜„

sterile bridge
#

I tried clean install of descent 2 from portmaster. It should contain demo files afaik. It doesn't work too. I can show some logs later this evening.

stable kayak
#

Jelos

#

Is it a mainline device?

sterile bridge
#

yes

stable kayak
#

You can try my GitHub package above but I might need to add something else to the sh

#

@unborn chasm am I missing anything either the current repo?

#

The libGL stuff is in modular cfw files right?

unborn chasm
#

mainline needs the mod_jelos and the libgl line

#

else it won'T work

#

i hope you're not using some fancy non supported ogu or rgb max3 šŸ˜„

sterile bridge
#

I am waiting for my ogu that travels Canada -> Spain -> Belarus. Will use it left and right

unborn chasm
#

or ogs

#

šŸ˜›

stable kayak
#

What’s the libgl line again?

sterile bridge
stable kayak
#

Ah I see it

#

Ok I’ll look at that after work

unborn chasm
#

and they needs this :dri export

stable kayak
unborn chasm
# stable kayak Wat

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"``

#

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

stable kayak
#

Oh I have that

unborn chasm
#

in there is export LIBGL_DRIVERS_PATH=/usr/lib32/dri:/usr/lib/dri

paper quest
#

...gl4es? You can build SDL2/GLES here

#

I recall upstreaming a fix specially for this a while ago, unless it regressed you should be able to just use that

stable kayak
#
#!/bin/bash

if [ -d "/opt/system/Tools/PortMaster/" ]; then
  controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
  controlfolder="/opt/tools/PortMaster"
else
  controlfolder="/roms/ports/PortMaster"
fi

source $controlfolder/control.txt
source $controlfolder/device_info.txt
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
if [ -f "${controlfolder}/libgl_${CFW_NAME}.txt" ]; then 
  source "${controlfolder}/libgl_${CFW_NAME}.txt"
else
  source "${controlfolder}/libgl_default.txt"
fi
get_controls

GAMEDIR="/$directory/ports/descent"
DEVICE_ARCH="${DEVICE_ARCH:-aarch64}"
GAME="d1x-rebirth"

cd $GAMEDIR

$ESUDO rm -rf ~/.$GAME
ln -sfv $GAMEDIR/config ~/.$GAME

export LIBGL_FB=4
export LD_LIBRARY_PATH="$GAMEDIR/libs.$DEVICE_ARCH:$LD_LIBRARY_PATH"
export SDL_FORCE_SOUNDFONTS=1
export SDL_SOUNDFONTS="$GAMEDIR/soundfont.sf2"

# Add some cheats
if [ ! -f "./cheats.txt" ]; then
    echo "Error: Cheats file not found. No cheats will be used." > /dev/tty0
else
    CHEATS=$(sed -n -E '/^[^#]*=[[:space:]]*1([^0-9#]|$)/s/(=[[:space:]]*1[^0-9#]*)//p' ./cheats.txt | tr -d '\n')
fi

export TEXTINPUTPRESET=$CHEATS

# Edit .cfg file to correct resolution
sed -i "s/^ResolutionX=640/ResolutionX=$DISPLAY_WIDTH/g" $GAMEDIR/config/descent.cfg
sed -i "s/^ResolutionY=480/ResolutionY=$DISPLAY_HEIGHT/g" $GAMEDIR/config/descent.cfg

# Setup controls
$ESUDO chmod 666 /dev/tty1
$ESUDO chmod 666 /dev/uinput

if [ $CFW_NAME == "ArkOS" ]; then
    $GPTOKEYB "$GAME.compat" -c "config/joy.gptk" & 
    SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
    ./$GAME.compat -hogdir data
else
    $GPTOKEYB "$GAME.$DEVICE_ARCH" -c "config/joy.gptk" & 
    SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
    ./$GAME.$DEVICE_ARCH -hogdir data
fi

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events & 
printf "\033c" >> /dev/tty1

Missing anything @unborn chasm ?

unborn chasm
#

yeah the new header

stable kayak
#

The what

#

Oh I see

unborn chasm
#

export LIBGL_FB=4 needs to go

#

that is handled in the libgl files

stable kayak
#

Ok, done

#

This looks correct but I get ./d1x-rebirth.aarch64: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

#

Oh...cd gamedir first

#

Ok, now ./Descent.sh: line 19: cd: //ports/descent: No such file or directory

stable kayak
#

Just above

#

Oh, order of operations again

unborn chasm
#

Hence why I asked for the new sh ^^

stable kayak
#

Got it

#

<@&1216123318122577972> A new version of these ports are available at https://github.com/JeodC/PortMaster-Descent and need testing. The following changes have occurred:

  • Bumped d1x-rebirth and d2x-rebirth to newer binaries
  • Changed packaging to account for new port standards
  • Added binaries for armhf, aarch64, and compat (for arkos)
  • Added new libmodplug library to attempt to fix soundfont issue with jelos/rocknix
  • Renamed conf folder to config (why shorten it anyway?)

Please test the following:

  • Port runs on armhf (RG35xx etc)
  • Port runs on ArkOS (should correctly find the compatibility binary)
  • Port plays soundfont on Jelos/Rocknix (no .dxa music addons in the data folder)

Thanks in advance!

stable kayak
#

Looks like it does not use XDG_DATA_HOME, will have to revert to symlink.

unborn chasm
#

Yeah not all use it

stable kayak
#

Reverted sh in github

leaden pivot
#

ArkOS compat is having a problem

#

./d1x-rebirth.compat: symbol lookup error: /lib/aarch64-linux-gnu/libGLX.so.0: undefined symbol: _XAsyncErrorHandler

rough granite
#

It crashed on ArkOS on RG351P and didn't create a log. I used ldd on d1x-rebirth.aarch64 from the terminal and it gives 'GLIBC_2.32' not found.

stable kayak
#

This game doesn't use libGLX afaik?

stable kayak
rough granite
#

Gotcha. I just got the same error that ZOMGUgoff got

stable kayak
#

Hmm the compatibility binary hasn't changed at all, just renamed it.

stable kayak
# leaden pivot ArkOS compat is having a problem
        linux-vdso.so.1 (0x0000007f855f8000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x0000007f84b20000)
        libphysfs.so.1 => /usr/lib/libphysfs.so.1 (0x0000007f84ad0000)
        libSDL2_image-2.0.so.0 => /usr/lib/libSDL2_image-2.0.so.0 (0x0000007f84a70000)
        libSDL2_mixer-2.0.so.0 => /usr/lib/libSDL2_mixer-2.0.so.0 (0x0000007f849e0000)
        libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x0000007f84690000)
        libGL.so.1 => not found
        libGLU.so.1 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000007f84440000)
        libm.so.6 => /usr/lib/libm.so.6 (0x0000007f843a0000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x0000007f84360000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000007f84330000)
        libc.so.6 => /usr/lib/libc.so.6 (0x0000007f84130000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0000007f840f0000)
        libmodplug.so.1 => /usr/lib/libmodplug.so.1 (0x0000007f83f30000)
        librga.so.2 => /usr/lib/librga.so.2 (0x0000007f83f00000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x0000007f83de0000)
        /lib/ld-linux-aarch64.so.1 => /usr/lib/ld-linux-aarch64.so.1 (0x0000007f855bb000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x0000007f83da0000)
#

What device?

leaden pivot
#

RGB30

stable kayak
#

Did you update portmaster?

#

You should have these in roms/ports/PortMaster

leaden pivot
#

I'll check for updates. I updated about a week ago

leaden pivot
#

Update fixed it. Resolution is being stretched to fullscreen. On 720x720 it's... not great. The HUD and rotation look weird. I hooked up a keyboard and set it to 720x540 at 4:3 aspect and that looks correct. It's just aligned to the bottom of the screen. Also, there is no binding for slide l/r set by default, which is arguably more important than roll controls

stable kayak
#

I'll double check the default bindings, I'm sure I have slide in there.

#

Oh, no I don't. Bank is default under joystick controls. You can change that ingame easily.

#

Do you mind sharing a pic of the 720x720 res?

leaden pivot
#

Yeah, just a minute

#

Hmm.. I guess it would be a photo. There's no native screenshot functionality

stable kayak
#

Yep.

leaden pivot
#

720x540 at 4:3 for contrast

stable kayak
#

Idk...it might be opinions there. It looks playable from the pic. Font not squished.

leaden pivot
#

The rotation is strange looking due to the vertical stretch

stable kayak
#

I'll change it anyway though.

# Edit .cfg file to correct resolution
if [ $DEVICE_NAME == "RGB30" ]; then
    # Maintain 4:3 aspect ratio
    sed -i "s/^ResolutionX=640/ResolutionX=540/g" $GAMEDIR/config/descent.cfg
    sed -i "s/^ResolutionY=480/ResolutionY=$DISPLAY_HEIGHT/g" $GAMEDIR/config/descent.cfg
else
    sed -i "s/^ResolutionX=640/ResolutionX=$DISPLAY_WIDTH/g" $GAMEDIR/config/descent.cfg
    sed -i "s/^ResolutionY=480/ResolutionY=$DISPLAY_HEIGHT/g" $GAMEDIR/config/descent.cfg
fi
leaden pivot
#

Can anything be done to get it centered?

stable kayak
#

I don't think so unfortunately.

leaden pivot
#

Hmm.. If you're going to change the resolultion, the AspectX/Y also need to be changed

stable kayak
#

On further thought I'm gonna leave it stretched. It's easily modified by the user.

#

If you leave it 720x720 but change aspect to 1:1 does it help any?

leaden pivot
#

1:1 alleviates the rotation weirdness

#

It defaults to 3:2

#

Also, I noticed the turn l/r control was inverted by default

stable kayak
#

If you put 1:1 it defaults to 3:2?

leaden pivot
#

I meant when starting it stock

stable kayak
#
DigiVolume=8
MusicVolume=8
ReverseStereo=0
OrigTrackOrder=0
MusicType=1
CMLevelMusicPlayOrder=0
CMLevelMusicTrack0=-1
CMLevelMusicTrack1=-1
CMLevelMusicPath=
CMMiscMusic0=
CMMiscMusic1=
CMMiscMusic2=
CMMiscMusic3=
CMMiscMusic4=
GammaLevel=0
LastPlayer=player
LastMission=
ResolutionX=480
ResolutionY=320
AspectX=3
AspectY=4
WindowMode=0
TexFilt=0
TexAnisotropy=0
MovieTexFilt=1
MovieSubtitles=0
VSync=0
Multisample=1
FPSIndicator=0
GrabInput=1

Welp, that's because I used my old descent.cfg in packaging by mistake. Oops.

#

Hm so I need to add aspedct ratio sed as well

leaden pivot
#

Descent 2's fonts are tiny

stable kayak
#

I disabled it in d1x but not d2x. Good catch.

leaden pivot
#

Otherwise, same resolution and control stuff I mentioned for d1x

stable kayak
#

The sh change:

# Calculate greatest common divisor (GCD) to simplify aspect ratio
gcd() {
  dividend=$1
  divisor=$2
  remainder=1
  until [ "$remainder" -eq 0 ]; do
    remainder=$((dividend % divisor))
    dividend=$divisor
    divisor=$remainder
  done
  echo $dividend
}

# Calculate greatest common divisor of width and height
GCD=$(gcd $DISPLAY_WIDTH $DISPLAY_HEIGHT)

# Calculate simplified aspect ratio
ASPECT_X=$((DISPLAY_WIDTH / GCD))
ASPECT_Y=$((DISPLAY_HEIGHT / GCD))

# Edit .cfg file with updated resolution and aspect ratio
sed -i "s/^ResolutionX=640/ResolutionX=$DISPLAY_WIDTH/g" $GAMEDIR/config/descent.cfg
sed -i "s/^ResolutionY=480/ResolutionY=$DISPLAY_HEIGHT/g" $GAMEDIR/config/descent.cfg
sed -i "s/^AspectX=.*/AspectX=$ASPECT_Y/g" $GAMEDIR/config/descent.cfg
sed -i "s/^AspectY=.*/AspectY=$ASPECT_X/g" $GAMEDIR/config/descent.cfg
leaden pivot
#

Oh, wait... Aspect is not honored on restarting either game

stable kayak
#

@trail timber The above snippet could go in device_info.txt :v

leaden pivot
#

Despite what AspectX/Y is set to in the file, it always defaults to fullscreen

#

Derp. Fullscreen setting

stable kayak
leaden pivot
#

It is if you want to run 4:3 at 720x540

#

The resolution setting is effectively ignored. Actually, that fullscreen setting isn't saving

stable kayak
#

WindowMode=1 in descent.cfg

leaden pivot
#

It's not updating

#

It's also being ignored

stable kayak
#

Yes, same.

#

In that case it's probably because we don't have x11

#

The rebirth engine thinks it can't do window mode

leaden pivot
#

I just noticed rebinding can be done as keyboard and joystick, which causes duplicate inputs if both are bound

#

Probably not much that can be done with that, but it will cause confusion for some

stable kayak
#

Nope, can't do a thing for it. Minimal keyboard controls are necessary for the menu.

leaden pivot
#

Is start+select exit not implemented?

stable kayak
#

It is

radiant flare
#

Its broken on arkos with the new naming scheme

stable kayak
#

^

leaden pivot
#

Did dpad control in the menu also break because of that?

stable kayak
#

Sounds like your gptokeyb isn't working period, so maybe it is.

leaden pivot
#

It's working if I bind them to controls in game

#

Oh, that was joystick input. Nevermind

#

I can bind other buttons as keys, just not dpad buttons

stable kayak
#

Anyone with jelos/rocknix able to test the soundfont?

leaden pivot
#

Is it just me, or is the lighting too bright in D2X? The Guide-bot becomes white when it gets close to light sources. I'm not seeing that on the PC version

stable kayak
#

Never noticed it

leaden pivot
stable kayak
#

Try messing with the gfx options

leaden pivot
#

Not seeing any change with the settings. Brightness(or I guess gamma?) is already at the lowest setting. Fun fact: Apparently the start+select combo is working. It kills gptokeyb so start and select stop functioning in game.

#

Just, doesn't kill the game

#

Confirmed, same issue on RG353m

stable kayak
#

Only in d2x?

#

And you're using the compatibility binary right?

#

I have a similar lighting on rg552, but it's not that bad.

#

I'll grab the windows build and see if there's a diff

#

Windows screencap comparison. I don't think this is anything due to rebirth, but gl4es.

stable kayak
#

Experimented with different options, don't think I can fix this.

leaden pivot
#

Makes sense. Something for the 'known issues' list, at least.

stable kayak
#

@leaden pivot Thanks to JohnnyOnFlame this new build fixes the lighting issue by dropping opengl layer entirely and solely using gl4es. I no longer have my arkos compatibility branch though and since I can't rebuild it atm I had to drop arkos support since the compat binary still relies on libGL.

leaden pivot
#

Lol... I run ArkOS exclusively

stable kayak
#

In that case, let me see what I can do. I still have the commit I branched from and the one modification I made.

paper quest
#

what's the "compat" binary

stable kayak
#

Arkos uses an older glibc so compatibility is compiled on bullseye instead of bookworm

#

I tried syncing some newer commits (notably since one fixes sound balancing) and it broke again.

paper quest
#

aaaaaaaaaahhhhhhhhhhhh sure

stable kayak
#

At some point I removed it since I figured it would be the last binary, but lo and behold opengles=1

paper quest
#

dxx requires newer GCC

#

which is annoying

stable kayak
#

Atm I'm trying to figure out how to restore my branch

#

I tried git checkout but

PS D:\GitHub\dxx-rebirth> git checkout -b compatibility c22de974133f407e6413dafde8c0769019881fec
fatal: reference is not a tree: c22de974133f407e6413dafde8c0769019881fec
#

Ok, got it.

leaden pivot
#

Are the .compat files supposed to be in the root of the game or under data?

#

Because the game's not launching with it in either location

stable kayak
#

root

#

Did you also copy the new sh files?

leaden pivot
#

Yes. I'm trying to run them via ssh to see what's going on

#

-bash: ./Descent.sh: /bin/bash^M: bad interpreter: No such file or directory

#

It ran with the old sh file, but had a .compat error

#

DOS/Unix formatting BS

stable kayak
#

lel

#

So it works now?

leaden pivot
#

Yes, and the lighting is normal

stable kayak
#

Perfect

inland forge
#

Is there a new zip for testing on arkos?

stable kayak
#

You can download the GitHub package it’s up to date

trail timber
#

@stable kayak is this needed anymore? I fixed the binary name issue with arkos.

if [ $CFW_NAME == "ArkOS" ]; then
    $GPTOKEYB "$GAME.compat" -c "config/joy.gptk" & 
    SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
    ./$GAME.compat -hogdir data
else
    $GPTOKEYB "$GAME.$DEVICE_ARCH" -c "config/joy.gptk" & 
    SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
    ./$GAME.$DEVICE_ARCH -hogdir data
fi
stable kayak
#

Never got wind of this update fixing soundfont in jelos/rocknix. Can anyone confirm?

leaden pivot
#

Since no one appears to be wiling to do this, I'm trying it. The soundfont is not functioning in Jelos

#

Bonus failure: Descent 2 fails with a missing lib: ```./d2x-rebirth.aarch64: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

unborn chasm
#

Doubt everyone is looking into all threads checking what still needs doing

leaden pivot
#

I wonder if there's a lack of interest in these titles anyway

unborn chasm
sterile bridge
#

I would like to play descent on my ogs jelos but it is not working at all. So I give up šŸ˜„ descent is a quality game anyway

sterile bridge
#

I think it was something about libGL too, I tried to remove it, to add libs path in jelos

#

#🩺|port-help message

#

oh, so it was running

#

but without video output (only sound)

#

I should finally give it another try

stable kayak
#

And did you get your files from here or from PM GUI?

royal ocean
stable kayak
sterile bridge
#

I`ll try again in a few hours

#

should I try portmaster version?

#

or something from this thread

stable kayak
#

PM version

leaden pivot
sterile bridge
#

I installed descent 2 from portmaster (demo files) and now I see this:

#

everything is flat

stable kayak
#

šŸ¤” arkos?

#

If it’s jelos then maybe a mainline issue

sterile bridge
#

jelos 😦

#

mainline

stable kayak
#

Welp

#

@unborn chasm idk enough about mainline but this port runs on just gles

#

Is mainline gonna demand libgl crap anyway?

unborn chasm
#

Gotta ask @ruby grail

stable kayak
sterile bridge
#

sounds not right

stable kayak
#

What’s the resolution?

sterile bridge
#

854 x 480

stable kayak
#

That math is done at the bottom of device_info

#

For 1920x1152 that comes to 5:3, your resolution gives a…weird aspect ratio

#

Literally 427:240

sterile bridge
#

nice

stable kayak
#

I don’t think the game engine reads that

sterile bridge
#

I'll try just for lulz

stable kayak
#

I’ll have to add something to check if aspect ratio x and y are both single integers and if not make it the default.

sterile bridge
#

need to bed my son first

stable kayak
sterile bridge
#

ah, I see

inland forge
#

When the screen is stretched it's quite disorienting imo

#

(I know from ps1 version)

royal ocean
#

sort of sickening

#

jeez imagine what that would be like in VR

inland forge
#

Yup

#

Lol

leaden pivot
stable kayak
#

Let’s see if it’s using jelos lib modplug or the provided one

leaden pivot
# stable kayak Ldd the binary please

Not seeing modplug listed in this output

        linux-vdso.so.1 (0x0000007f8d44a000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x0000007f8c8d0000)
        libphysfs.so.1 => not found
        libSDL2_image-2.0.so.0 => /usr/lib/libSDL2_image-2.0.so.0 (0x0000007f8c870000)
        libSDL2_mixer-2.0.so.0 => /usr/lib/libSDL2_mixer-2.0.so.0 (0x0000007f8c7f0000)
        libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x0000007f8c620000)
        libGLESv1_CM.so.1 => /usr/lib/libGLESv1_CM.so.1 (0x0000007f85ca0000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0000007f85a80000)
        libm.so.6 => /usr/lib/libm.so.6 (0x0000007f859d0000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x0000007f85990000)
        libc.so.6 => /usr/lib/libc.so.6 (0x0000007f85780000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0000007f85740000)
        librga.so.2 => /usr/lib/librga.so.2 (0x0000007f85700000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x0000007f855f0000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x0000007f855b0000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000007f85580000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x0000007f85550000)
        /lib/ld-linux-aarch64.so.1 => /usr/lib/ld-linux-aarch64.so.1 (0x0000007f8d40d000)
stable kayak
leaden pivot
# stable kayak You have gamelog.txt file on config folder?
14:51:39.712420 This is a MODIFIED version of Descent 2, based on Full Version v1.2.
14:51:39.712700 Copyright (C) 1994-1996 Parallax Software Corporation
14:51:39.712890 DESCENT is a trademark of Interplay Productions, Inc.
14:51:39.713045 Copyright (C) 1999 Peter Hawkins, 2002 Bradley Bell, 2005-2013 Christian Beckhaeuser, 2013-2017 Kp
14:51:39.812860 Using SDL_mixer library v2.6.3
14:51:40.077251 sdl-joystick: 1 joysticks
14:51:40.078193 sdl-joystick 0: retrogame_joypad
14:51:40.078456 sdl-joystick: 4 axes
14:51:40.078774 sdl-joystick: 17 buttons
14:51:40.078987 sdl-joystick: 0 hats
14:51:40.079167 sdl-joystick: 4 axes (total)
14:51:40.079307 sdl-joystick: 25 buttons (total)
14:51:40.127439 DXX-Rebirth: OpenGL: disabling automatic GL sync since VSync is turned off
14:51:46.994024 Music descent.hmp could not be loaded: ModPlug_Load failed
stable kayak
#

14:51:46.994024 Music descent.hmp could not be loaded: ModPlug_Load failed Yeah same problem. Hmm.

#

@leaden pivot Can you run the following in ssh and upload the log? After you cd to your roms2/ports folder.
LD_DEBUG=all ./"Descent 2.sh" > debug.txt

leaden pivot
stable kayak
#

That's not working. Is it really 6kB?

#

Ok, that's not the output I expected. One moment.

#

You should see debug.txt like

28504:    file=libc.so.6 [0];  needed by cat [0]
 28504:    find library=libc.so.6 [0]; searching
 28504:     search path=/home/bnikolic/s/lib/tls/x86_64:/home/bnikolic/s/lib/tls:/home/bnikolic/s/lib/x86_64:/home/bnikolic/s/lib:tls/x86_64:tls:x86_64::/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib/tls/x86_64:/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib/tls:/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib/x86_64:/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib        (LD_LIBRARY_PATH)
 28504:      trying file=/home/bnikolic/s/lib/tls/x86_64/libc.so.6
 28504:      trying file=/home/bnikolic/s/lib/tls/libc.so.6
 28504:      trying file=/home/bnikolic/s/lib/x86_64/libc.so.6
 28504:      trying file=/home/bnikolic/s/lib/libc.so.6
 28504:      trying file=tls/x86_64/libc.so.6
 28504:      trying file=tls/libc.so.6
 28504:      trying file=x86_64/libc.so.6
 28504:      trying file=libc.so.6
 28504:      trying file=/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib/tls/x86_64/libc.so.6
 28504:      trying file=/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib/tls/libc.so.6
 28504:      trying file=/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib/x86_64/libc.so.6
 28504:      trying file=/home/bnikolic/d/p/R-2.14.1bin/lib/R/lib/libc.so.6
 28504:     search cache=/etc/ld.so.cache
 28504:      trying file=/lib/x86_64-linux-gnu/libc.so.6
leaden pivot
stable kayak
#

wtf

#

LD_DEBUG=all ./$GAME.$DEVICE_ARCH -hogdir data > debug.txt 2>&1 Try this line instead

#
2>&1: Redirects stderr to the same location as stdout. This ensures that any error messages or additional debug output generated by the game binary are also captured in the same file.```
leaden pivot
#

There was a lot of console text that wasn't in the debug.txt

stable kayak
#

Yeah if it looked like the above then the 2>&1 should redirect that to file

leaden pivot
#

That was meant to be used in the script, right?

stable kayak
#

Yep

leaden pivot
#

Ehh... All it logged was a single line

#

-sh: ./.: Is a directory

#
        $GPTOKEYB "$GAME.$DEVICE_ARCH" -c "config/joy.gptk" &
        SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
        #./$GAME.$DEVICE_ARCH -hogdir data
        LD_DEBUG=all ./$GAME.$DEVICE_ARCH -hogdir data > debug.txt 2>&1
#

Right?

stable kayak
#

Should be t

leaden pivot
#

The game runs, but it logging that path error

stable kayak
#

It doesn't log anything else?

stable kayak
leaden pivot
#

It's in the script and I launched it from ES. Like I said, the game ran, but the log is just that one line

stable kayak
#
        $GPTOKEYB "$GAME.$DEVICE_ARCH" -c "config/joy.gptk" &
        SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
        #./$GAME.$DEVICE_ARCH -hogdir data
        LD_DEBUG=all ./d2x.aarch64 -hogdir data > debug.txt 2>&1

Let's try taking the variables out of it.

leaden pivot
#

Oh

stable kayak
#

Thanks for your patience.

leaden pivot
#

Apparently I have to update every instance of the variables. Gptokeyb is failing

#

No, I pulled a dumb move and re-installed the game which replaced the script

#

That's why it was weird

leaden pivot
stable kayak
#

In libs.aarch64 rename libmodplug.so.1 to libmodplug.so.1.0.0

#

Then try

#
     20919:    file=libmodplug.so.1.0.0 [0];  dynamically loaded by /usr/lib/libSDL2-2.0.so.0 [0]
     20919:    find library=libmodplug.so.1.0.0 [0]; searching
     20919:     search path=/roms/ports/descent2/libs.aarch64:/usr/lib/compat        (LD_LIBRARY_PATH)
     20919:      trying file=/roms/ports/descent2/libs.aarch64/libmodplug.so.1.0.0
     20919:      trying file=/usr/lib/compat/libmodplug.so.1.0.0
     20919:     search cache=/storage/.cache/ld.so.cache
     20919:     search path=/usr/lib        (system search path)
     20919:      trying file=/usr/lib/libmodplug.so.1.0.0
     20919:    
     20919:    file=libmodplug.so.1.0.0 [0];  generating link map

It sees it bit doesn't use it for some reason.

#

@leaden pivot In libs.aarch64 rename libmodplug.so.1 to libmodplug.so.1.0.0

#

You can comment out the ld debug line now šŸ™‚

leaden pivot
#

Done, but still no dice

stable kayak
#

Shoot.

#

What's debug.txt say now though?

#

I might just slap jelos on my rg552 spare sd and see what I can find.

leaden pivot
stable kayak
#
     40603:    find library=libmodplug.so.1.0.0 [0]; searching
     40603:     search path=/roms/ports/descent2/libs.aarch64:/usr/lib/compat        (LD_LIBRARY_PATH)
     40603:      trying file=/roms/ports/descent2/libs.aarch64/libmodplug.so.1.0.0
     40603:    
     40603:    file=libmodplug.so.1.0.0 [0];  generating link map
     40603:      dynamic: 0x0000007fa80e1cd0  base: 0x0000007fa8050000   size: 0x00000000001d1640
     40603:        entry: 0x0000007fa80570f0  phdr: 0x0000007fa8050040  phnum:    

Ok it uses the correct one now

#

Huh.

#

This is starting to look like a general libmodplug issue. Descent.hmp may be incompatible with it.

#

Amber uses pulseaudio for decoding iirc.

#

You can try adding this to the script:
export SDL_AUDIODRIVER=oss

leaden pivot
#

It's like it's trying to be a problem
similar/arch/sdl/digi_mixer.cpp:124: digi_mixer_init: error: SDL audio initialisation failed: Audio target 'oss' not available.

stable kayak
#

Well jelos probably doesn't use oss.

#

You can try pipewire or pulseaudio.

#

It looks like modplug has been an issue with rebirth for some time but has been ignored.

leaden pivot
#

Yup. Runs with both pipewire and pulseaudio, but no music

stable kayak
leaden pivot
#

That actually works

stable kayak
#

So jelos' libfluidsynth is broken

#

Because I stole that from my amber lib folder

leaden pivot
#

It sounds sort of distorted

#

Or off-key?

stable kayak
#

Well it's a dynamic lib renamed to a static lib.

#

Take a vid if you can

leaden pivot
#

I just tried it in the first game and it sounds normal. I might just not be used to the instrument sounds

stable kayak
#

PR submitted, thanks for testing so efficiently. šŸ™‚

paper quest
#

wtf

#

alsa (low level)/pulse (crusty)/pipe (new) are the usual suspects here

stable kayak
#

It’s already been fixed

lapis lantern
#

it's time to derail this thread with a question

unborn chasm
#

Currently 32 bit only and relies heavily on x11

#

Let them work on it a bit

stable kayak
#

The source needs major cleanup for modern systems and afterwards there's no guarantee we'll get gles and x11 removal without doing it ourselves.

stable kayak
#

Subtly pushing for embedded systems for descent 3

#

Long game

inland forge
stable kayak
#

Embedded systems = hardware display manager (no x11 or wayland) and gles.

stable kayak
stable kayak
#

Fixed mercenary features today.

#

Not ready for small-arm yet

inland forge
stable kayak
#

Slow

#

Linux has sdl2 now I haven’t tried it on small arm yet

#

Some folks got it running on rpi

inland forge
#

Any news on the new gptk level select stuff? @stable kayak

stable kayak
#

Nope

trail timber
#

Soon, sorry. šŸ˜„

inland forge
#

3142hmmmreverse
Man that d3 shit's bollox. Not really holding my breath for Monday's weekly update. Hey ho