LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-18-2016, 06:01 PM   #1
seannachie
Member
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Debian
Posts: 41

Rep: Reputation: Disabled
DOSBox refuses to load any conf file except original


I'm trying to setup a script to run DOSBox using a specific conf file. It was easy enough in Windows with batch files, and most of the Linux distros I've run since then weren't much different by comparison (as far as the process goes). But now when running Debian version, the console simply reads loading the default. I've made sure the paths are correct, but no change. Yes, I know how to create a conf, and I know where to find it. But when I 'Save as' and try to load it (for example, arena.conf), DB doesn't even acknowledge it - it simply loads the default.
 
Old 06-19-2016, 04:46 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
shows us what you have - scripts written, files edited, commands issued, messages received.
 
Old 06-19-2016, 11:01 AM   #3
seannachie
Member
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: Disabled
At one time, what worked for me was the syntax in the form dosbox -conf path-to-game.conf. Sometimes the OS required the path-to-dosbox in order to function. But now if I run the script, it returns the DB window with the Z:\ prompt.

#!/bin/bash
#

dosbox -conf ~./arena.conf

exit

Running the script (as in clicking on it) has the same result whether I run it from the desktop or game folder - the Z: prompt. Running it in a terminal (from either place) says 'Command not found' or 'No such file or directory'.
I changed bash in the first line to sh and now it runs in either place by clicking on it - but I still get the Z prompt and it still won't run in the terminal. I have chmodded it (both +x and u+x) with no change.
I have tried this with the arena.conf in the default ./dosbox folder and in the game directory and editing the conf path accordingly - still no change.
I've found that opening the game directory in a terminal and running 'dosbox -conf arena.conf' loads correctly - but why doesn't the script work? Why is it that this is the only instance where DOSBox recognizes the game.conf file as opposed to the default?

Anyway - even if this isn't resolved... thanks for responding.
 
Old 06-22-2016, 01:36 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by seannachie View Post
~./arena.conf
this is nonsense.
if arena.conf is at the base of your $HOME folder, it should read:
Code:
dosbox -conf ~/arena.conf
 
Old 06-22-2016, 01:48 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Seems your confused about what each shortcut mean. The . can either mean hidden or current working directory. if it leads the directory name i.e. .dosbox the directory is hidden. If it leads the path i.e ./ then it refers to the current working directory i.e. the directory where the terminal is currently located. Look at the output of the pwd command.

The ~ is a shortcut for your home directory i.e. /home/username. To make things simple use the absolute path to the arena.conf file without any shortcuts i.e

dosbox -conf /home/username/.dosbox/arena.conf

It works because the arena.conf file is located in the same directory where you start dosbox.

Last edited by michaelk; 06-22-2016 at 02:44 PM.
 
1 members found this post helpful.
Old 06-24-2016, 10:39 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
But the tilde ~ is just used like ~/ to specify the users home. I do not know what ~./ even means. Each directory has at least 2 hidden links . and .. The single dot is a link to the directory it's in. The dotdot is a link to the directory one level higher. The / means path. ./ means CWD path. ls ./ is the same as ls.

But, if a command program or file is not in a directory included in the $PATH environment variable, then you must specify the path to the file. If the file is in the CWD, all you must do is type ./file.
 
Old 06-25-2016, 11:42 AM   #7
seannachie
Member
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: Disabled
Solved?

Long story short (which due to some 'site error' failed to post):

dosbox -conf ~/.dosbox/arena.conf works - either sh or terminal command.

dosbox -conf ~/.dosbox/noctis.conf doesn't.

Putting /Noctis in my username directory works - for @ a minute. Why is it I can run -

mount c ~/Games

c:

cd DOSSET

chdir Arena

ARENA.BAT

but DB won't recognize /modules if /Noctis is in my DOSSET directory? Loading the conf in a terminal has DB exit with "Segmentation Fault". I've had enough experience with developer admin to know that there is about as much chance of this getting fixed as there is that the Slitaz team will fix the Alsa bug (which they've been farting around with for a number of years now).

Thanks to all who responded.
 
Old 06-25-2016, 12:59 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Is noctis.conf in your .dosbox directory?

Not familiar with the game. Without knowing your directory structure or what the game expects its impossible to answer your questions. All I can say is that there is something in the conf file that DosBox does not like...
 
Old 07-06-2016, 02:43 PM   #9
seannachie
Member
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: Disabled
DOSBox

Quote:
Originally Posted by michaelk View Post
Is noctis.conf in your .dosbox directory?

Not familiar with the game. Without knowing your directory structure or what the game expects its impossible to answer your questions. All I can say is that there is something in the conf file that DosBox does not like...
NOCTIS.EXE (as far as running the game) expects to be found in NOCTIS/modules/.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Original .conf file for Custom Kernel compile steve_pa Gentoo 4 01-29-2012 12:18 PM
Retain original squid.conf file ALInux Linux - Networking 1 06-02-2006 10:16 PM
Copied xorg.conf file, now X won't load Shaw-n Linux - Newbie 6 04-19-2006 12:54 AM
dosbox.conf missing DJOtaku Linux - Games 2 03-10-2005 03:45 PM
DOSBox command and conf question,... JaseP Linux - Games 4 01-10-2005 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration