Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: creating script/symlink for my desktop to access dosbox duke1.exe

  1. #11
    Join Date
    Feb 2009
    Location
    Slovenija
    Beans
    Hidden!

    Re: creating script/symlink for my desktop to access dosbox duke1.exe

    Yes, I agree with LostFarmer , there might be something in nukem.bat that is preventing you to correctly launch the game. Here is the full autoexec line from my GoG version of the game:

    Code:
    [autoexec]
    # Lines in this section will be run at startup.
    @echo off
    mount C "/media/Podatki/Igre/3DRealms/Duke Nukem 1+2/"
    c:
    cls
    ECHO ษออออออออออออออออออออออออออออออออออออออออออออป
    ECHO บ ------------------------------------------ บ
    ECHO บ Duke Nukem Pack                            บ
    ECHO บ ------------------------------------------ บ
    ECHO บ  1) Duke Nukem Ep.1: Sharpnel City         บ
    ECHO บ  2) Duke Nukem Ep.2: Mission: Moonbase     บ
    ECHO บ  3) Duke Nukem Ep.3: Trapped in the Future บ
    ECHO บ                                            บ
    ECHO บ  4) Duke Nukem 2                           บ
    ECHO บ ------------------------------------------ บ
    ECHO บ  5) exit program                           บ
    ECHO บ ------------------------------------------ บ
    ECHO ศออออออออออออออออออออออออออออออออออออออออออออŒ
    
    choice /c12345 /s Which game do you want to run? [1-5]: /n 
    if errorlevel 5 goto exit
    if errorlevel 4 goto dn2
    if errorlevel 3 goto e3
    if errorlevel 2 goto e2
    if errorlevel 1 goto e1
    
    :e1
    @echo off
    dn1.exe
    exit
    
    :e2
    @echo off
    dn2.exe
    exit
    
    :e3
    @echo off
    dn3.exe
    exit
    
    :dn2
    @echo off
    CONFIG -set "cycles=8000"
    cls
    nukem2.exe
    exit
    
    :exit
    exit
    nukem.bat probably contains something similar.

  2. #12
    Join Date
    May 2007
    Location
    Ontario
    Beans
    375
    Distro
    Ubuntu

    Re: creating script/symlink for my desktop to access dosbox duke1.exe

    Lost Farmer's suggestion is what worked. I now have Duke Nukem 1 and 2 running flawlessly whilst starting them from my Gnome 3 Activities search menu.

    My thanks goes out to Lost Farmer, R33D3M33R + MikeCyber for all your help.

    I have one further query.

    Duke Nukem Wikia says that to get cheats working, you have to pass the asp parameter to the launch command in DOS. I can't figure out the equivalent on Ubuntu. I tried adding asp after nukem.bat in my DN.conf. No dice. Where else would be an appropriate place to try?
    My rig:
    IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
    1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)

  3. #13
    Join Date
    Mar 2011
    Location
    Idaho
    Beans
    239

    Re: creating script/symlink for my desktop to access dosbox duke1.exe

    I can only make a guess not knowing what is in the 'bat' file, but if it looks like the one 33D3M33R posted would put the code after the exe. The bat file is what is calling the program.exe.


    Code:
    :e1
    @echo off
    dn1.exe   'duke1 asp'
    exit
    Drone4four, I want to thank you for the .desktop file, I did not know how to do that . I was using dosbox-0.74.conf file limiting me to one dos program.

  4. #14
    Join Date
    May 2007
    Location
    Ontario
    Beans
    375
    Distro
    Ubuntu

    Re: creating script/symlink for my desktop to access dosbox duke1.exe

    I tried adding 'duke1 asp' next to the dn1.exe which didn't work. Then I tried just dn1.exe asp and that worked. Here is my nukem.bat for reference:
    Code:
    @echo off
    cls
    echo. 
    echo       Duke Nukem - For Steam
    echo       by Interceptor Entertainment                                                   
    echo. 
    echo       1. Episode 1 - Shrapnel City
    echo       2. Episode 2 - Moonbase
    echo       3. Episode 3 - Trapped in the Future
    echo       4. Exit
    echo 
    choice /c1234 /s Choose your episode:  /n 
    
    
    
    if errorlevel 4 goto exit
    if errorlevel 3 goto e3
    if errorlevel 2 goto e2
    if errorlevel 1 goto e1
    
    
    :e1
    @echo off
    dn1.exe asp
    exit
    
    :e2
    @echo off
    dn2.exe asp
    exit
    
    :e3
    @echo off
    dn3.exe asp
    exit
    
    :exit
    exit
    I hope someone else trying to get the original Duke Nukem running through dosbox on Ubuntu finds this thread as helpful for them as it was for me.

    Thanks LostFarmer.
    My rig:
    IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
    1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •