Thunderforce IV (Lightening Force) freeze

Having trouble with your GBZ build? Ask your questions here!
User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Thunderforce IV (Lightening Force) freeze

Post by YaYa » Sat Nov 11, 2017 6:41 am

ok switched sources for the packages

Code: Select all

sudo nano /etc/apt/sources.list
commented

Code: Select all

#deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
as main source (default universal mirror)
and added this source from oxford university :mrgreen:

Code: Select all

deb http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian jessie main contrib non-free rpi
now Dgen is installed.

and..... errrr... what the hell did the developers do ????

The sound is like remastered and sounds very rubbish... like cheap electronic music :(

Now struggling to set the controls as this a non retroarch emulator :twisted:
Follow me on instagram Image

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Thunderforce IV (Lightening Force) freeze

Post by YaYa » Sat Nov 11, 2017 9:36 am

what a #|@^&# !!!! :evil:

this is driving me crazy... It was working and the game was smooth and no freeze even if the sound is somehow remixed and not original one...

I then wanted to configure the exit action to bind SELECT + START for this job... couldn't get it work. The bad thing is that i messed up the config file.
No problem, i had a backup ! Nope, no way... Replacing the config file won't get back controls to a working state.
Reinstall DGEN neither. Update from source neither. Delete everything and start from neither...

It's as if there was a config file somewhere that was continuously overwriting my settings... My config file is there, i can put whatever i want inside, it is like it was never read.

The emulator configuration is telling to load my config file but this is not happening...

Anyone with an idea ?
I'm not the kind of guy to easily abandon but here i'm really stuck... this has no sense
Follow me on instagram Image

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Thunderforce IV (Lightening Force) freeze

Post by YaYa » Sat Nov 11, 2017 10:59 am

Pfff what a pain...

I found a workaround for the inputs,
i have modified the install script provided with retropie to inject the right inputs to DGen. Nothing else is working. Very strange because the hardcoded information is written to the file i'm trying to configure. When hardcoded from install, it's working, after install, any changes is not affecting the emulator.

Here is the install script

Code: Select all

#!/usr/bin/env bash

# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
#

rp_module_id="dgen"
rp_module_desc="Megadrive/Genesis emulator DGEN"
rp_module_help="ROM Extensions: .32x .iso .cue .smd .bin .gen .md .sg .zip\n\nCopy your  Megadrive / $
rp_module_licence="GPL2 https://sourceforge.net/p/dgen/dgen/ci/master/tree/COPYING"
rp_module_section="opt"
rp_module_flags="dispmanx !mali"

function depends_dgen() {
    getDepends libsdl1.2-dev libarchive-dev
}

function sources_dgen() {
    downloadAndExtract "$__archive_url/dgen-sdl-1.33.tar.gz" "$md_build" 1
}

function build_dgen() {
    local params=()
    isPlatform "rpi" && params+=(--disable-opengl --disable-hqx)
    # dgen contains obsoleted arm assembler that gcc/as will not like for armv8 cpu targets
    if isPlatform "armv8"; then
        CFLAGS="-O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard" ./configure --prefix="$md_inst"
    else
        ./configure --prefix="$md_inst"
    fi
    make clean
    make
        md_ret_require="$md_build/dgen"
}

function install_dgen() {
    make install
    cp "sample.dgenrc" "$md_inst/"
    md_ret_require="$md_inst/bin/dgen"
}

function configure_dgen() {
    local system
    for system in megadrive segacd sega32x; do
        mkRomDir "$system"
        addEmulator 0 "$md_id" "$system" "$md_inst/bin/dgen -r $md_conf_root/megadrive/dgenrc %ROM%"
        addSystem "$system"
    done

    [[ "$md_mode" == "remove" ]] && return

    mkUserDir "$md_conf_root/megadrive"

    # move config from previous location
    if [[ -f "$configdir/all/dgenrc" ]]; then
        mv -v "$configdir/all/dgenrc" "$md_conf_root/megadrive/dgenrc"
    fi

    if [[ ! -f "$md_conf_root/megadrive/dgenrc" ]]; then
        cp "sample.dgenrc" "$md_conf_root/megadrive/dgenrc"
        chown $user:$user "$md_conf_root/megadrive/dgenrc"
     fi

    iniConfig " = " "" "$md_conf_root/megadrive/dgenrc"

    if isPlatform "rpi"; then
        iniSet "int_width" "320"
        iniSet "int_height" "240"
        iniSet "bool_doublebuffer" "no"
        iniSet "bool_screen_thread" "yes"
        iniSet "scaling_startup" "none"

        # we don't have opengl (or build dgen with it)
        iniSet "bool_opengl" "no"

        # lower sample rate
        iniSet "int_soundrate" "22050"

        iniSet "emu_z80_startup" "drz80"
        iniSet "emu_m68k_startup" "cyclone"
    fi

    iniSet "joy_pad1_a" "joystick0-button2"
    iniSet "joy_pad1_b" "joystick0-button1"
    iniSet "joy_pad1_c" "joystick0-button0"
    iniSet "joy_pad1_x" "joystick0-button3"
    iniSet "joy_pad1_y" "joystick0-button6"
    iniSet "joy_pad1_z" "joystick0-button7"
    iniSet "joy_pad1_mode" "joystick0-button5"
    iniSet "joy_pad1_start" "joystick0-button4"
    iniSet "joy_pad1_up" "joystick0-hat0-up"
    iniSet "joy_pad1_down" "joystick0-hat0-down"
    iniSet "joy_pad1_left" "joystick0-hat0-left"
    iniSet "joy_pad1_right" "joystick0-hat0-right"

    iniSet "joy_pad2_a" "joystick1-button0"
    iniSet "joy_pad2_b" "joystick1-button1"
    iniSet "joy_pad2_c" "joystick1-button2"
    iniSet "joy_pad2_x" "joystick1-button3"
    iniSet "joy_pad2_y" "joystick1-button4"
    iniSet "joy_pad2_z" "joystick1-button5"
    iniSet "joy_pad2_mode" "joystick1-button6"
    iniSet "joy_pad2_start" "joystick1-button7"

    setDispmanx "$md_id" 1
}
Follow me on instagram Image

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Thunderforce IV (Lightening Force) freeze

Post by YaYa » Sat Nov 11, 2017 11:01 am

Now i need to figure out how to inject the hotbinds for save/load states and for exit and reset...
The above method is not functioning :evil:
Follow me on instagram Image

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: Thunderforce IV (Lightening Force) freeze

Post by YaYa » Sat Nov 11, 2017 1:54 pm

pfff what a #|@^&# !!!!

unless you have a single button for load and a single button for save, combos does not work. so no way for me to save and load...

i'm disappointed. The only game not working (so far) with picodrive is my favorite one. lr-genesis is very laggy. Dgen works great but the music and the sound is not original (i definitely need to try another game to see if it's only a Thunderforce IV issue)

pffff
Follow me on instagram Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest