|
01-20-2011, 05:20 AM
|
#1
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
Cannot open config.cfg to setup server
Hey guys,
When I run CMD and insert C:\Server\ninjamserver config.cfg (the names of my server.exe and config-file) the CMD says the following:
Quote:
NINJAM Server v0.06 built on May 3 2007 at 17:09:02 starting up...
Copyright <C> 2005-2007, Cockos, Inc.
[config] error opening configfile 'config.cfg'
Error loading config file!
|
Anyone recognizing this problem? How should I solve it?
btw if I only open the config.cfg in the Command Shell, it opens the file in notepad. So it actually recognized the file. I edited the file in Notepad so it now opens it in Notepad by default.
Last edited by Liquid_Metal; 01-20-2011 at 05:33 AM.
|
|
|
01-20-2011, 05:24 AM
|
#2
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
By the way, this problem occurred with the example.cfg as well as the file that I modified slightly. This is my own config.cfg:
Quote:
# only one port line allowed (last one will be used)
# these are comments
Port 2049
ServerLicense cclicense.txt
# limit connections of normal users to 10
MaxUsers 10
# limit normal users to 32 channels each, anonymous users to 2
MaxChannels 32 2
SetLog testlog
SessionArchive patch inverval
DefaultTopic "Welcome to NINJAM. Please play nicely."
DefaultBPM 120
DefaultBPI 8
#anonymoususers yes or no, or multi (to allow multiple users of the same name from the same IP)
AnonymousUsers yes
AnonymousUsersCanChat yes
AnonymousMaskIP yes # shows just the nn.nn.nn.x instead of full IP.
AllowHiddenUsers no # set to yes to allow people without channels to not appear in the user list
#user/password/permissions sets
User administrator myadminpass * # allow all functions
User booga anotherpass CBTKRM # allow chat, bpm/bpi, topic changing, and kicking, a reserved slot, and multiple logins
User myuser mypass # allow default functions (chat, no topic)
#ACL list lets you specify in order a list, first match is used
ACL 10.0.0.0/8 deny
ACL 192.168.0.0/16 reserve # reserve slots for local
ACL 0.0.0.0/0 allow # allow all
SetKeepAlive 3
SetPID testfile
|
|
|
|
01-20-2011, 10:20 AM
|
#3
|
Human being with feelings
Join Date: Aug 2007
Location: London, UK
Posts: 768
|
Quote:
Originally Posted by Liquid_Metal
Hey guys,
When I run CMD and insert C:\Server\ninjamserver config.cfg (the names of my server.exe and config-file) the CMD says the following:
|
The error means the program can't find the file. Have you tried giving the full path to the file? Alternatively, CD into the folder the config file is in and before running the server.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
|
|
|
|
01-20-2011, 10:36 AM
|
#4
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
Quote:
Originally Posted by pljones
The error means the program can't find the file. Have you tried giving the full path to the file? Alternatively, CD into the folder the config file is in and before running the server.
|
EDIT: Changing the working directory actually seemed to work. Thanks!
Now I need to find out why I cannot connect to my own server. I do not know if port 2049 is open and cannot change or check it (campus internet).
Last edited by Liquid_Metal; 01-20-2011 at 11:30 AM.
|
|
|
01-20-2011, 12:17 PM
|
#5
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
I tried to connect via my own home network IP-adress and that actually did work . So the server is setup and I can connect on the network. Now need to find out how and why I can connect with the outside world.
|
|
|
05-28-2011, 02:53 AM
|
#6
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
I am retrying setting up a Ninjam server atm and I managed to get it working with my network/LAN IP-address. Of course I want to connect with my internet-IP but it doesn't seem to work. The server does not get incoming responses so it seems that I cannot connect as a client. Gives error "Error connecting: can't connect to host!", either as anonymous or registered user.
I allowed the firewall on my computer to access port 2049 but I cannot access the router (campus internet still).
According to this website the port is indeed closed. Is there a way to see which ports are open? (instead of randomly typing in ports)
|
|
|
05-28-2011, 08:35 AM
|
#7
|
Human being with feelings
Join Date: Aug 2007
Location: London, UK
Posts: 768
|
Ask the site admin?
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
|
|
|
|
05-28-2011, 08:48 AM
|
#8
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
Quote:
Originally Posted by pljones
Ask the site admin?
|
Site admin? You mean the network administrator that regulates the campus internet? I can guarantee you they will not change port forwarding. Besides, I'm leaving this place in a few weeks and at home I should be able to open ports.
|
|
|
06-17-2011, 04:54 AM
|
#9
|
Human being with feelings
Join Date: Jun 2011
Posts: 18
|
Quote:
Originally Posted by Liquid_Metal
EDIT: Changing the working directory actually seemed to work. Thanks!
Now I need to find out why I cannot connect to my own server. I do not know if port 2049 is open and cannot change or check it (campus internet).
|
hi, how did you change the working directory? i am having the same problem. terminal cannot find my config.cfg file....
thanks!
|
|
|
06-17-2011, 05:16 AM
|
#10
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
If you open the command shell (CMD) you can type "cd <path>" so if you want to use Program Files as working directory you have to type the following:
cd c:\Program Files
|
|
|
06-17-2011, 06:12 AM
|
#11
|
Human being with feelings
Join Date: Jun 2011
Posts: 18
|
hmmm, i am on OSX, using terminal.....
but have the same error message - anyone know the command line to fix this on mac?!?
|
|
|
06-17-2011, 06:17 AM
|
#12
|
Human being with feelings
Join Date: Jan 2011
Posts: 8
|
|
|
|
06-20-2011, 06:35 AM
|
#13
|
Human being with feelings
Join Date: Jun 2011
Posts: 18
|
i still dont understand what i am trying to do with cd function though?!?
|
|
|
06-20-2011, 10:54 AM
|
#14
|
Human being with feelings
Join Date: Aug 2007
Location: London, UK
Posts: 768
|
The "working directory", "current working directory" or "CWD" is the directory (or "folder") in which programs look for files without any leading path specification. The "change directory", "chdir" or "cd" command sets the current working directory from the command line (for that command line session). (There are other ways to set the working directory. For instance, on Windows, a short cut can specify the working directory.)
So if you run the ninjam server and pass it the name of the configuration file without telling it the directory, it will look in the current working directory at the time you ran the server.
There are, thus, two possible alternatives:
1) run the ninjam server and specify the location of the configuration file with a leading path specified. If the path has spaces in, however, this could be an issue (even if you put quotes around the filename).
2) set the working directory to where the configuration file is and run the server from there.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
|
Last edited by pljones; 06-20-2011 at 11:17 AM.
|
|
|
06-21-2011, 02:04 AM
|
#15
|
Human being with feelings
Join Date: Jun 2011
Posts: 18
|
ok pljones, so basically i need to run the cd line first, and then run the server line?
so like this
cd users/computername/desktop/ninjam test.cfg
and then
users/computername/desktop/ninjam/ninjamsrvr test.cfg
in that order - is that all i need to do?
thanks....
|
|
|
06-21-2011, 04:09 AM
|
#16
|
Human being with feelings
Join Date: Jun 2011
Posts: 18
|
i got this working alright! here is the code
rrmacbook:~ robinrenwick$ cd /Users/robinrenwick/Desktop/ninjam/ninjamserver
rrmacbook:ninjamserver robinrenwick$ ls
cclicense.txt example.cfg.txt ninjamsrv
config.cfg.txt license.txt test.cfg.txt
rrmacbook:ninjamserver robinrenwick$ /Users/robinrenwick/Desktop/ninjam/ninjamserver/ninjamsrv test.cfg.txt
NINJAM Server v0.01a ALPHA built on Jul 7 2005 at 14:26:31 starting up...
Copyright (C) 2005, Cockos, Inc.
Server starting up...
Port: 2049
Using defaults 120 BPM 8 BPI
but how do i stop the server from running? is there a stop command for the ninjamserver? or do i just quit terminal - as that stops all processes!?
|
|
|
06-21-2011, 03:23 PM
|
#17
|
Human being with feelings
Join Date: Aug 2007
Location: London, UK
Posts: 768
|
You can run a file in the CWD by using "./file" rather than the full path, to save typing. See other thread for details of stopping the server. Best to keep things in a single thread, really.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
|
|
|
|
06-23-2011, 06:45 PM
|
#18
|
Human being with feelings
Join Date: Dec 2006
Posts: 441
|
if ya have hassle with cd or get confused with the command just do path:/ninjamserver.exe "fullpath:/server.cfg"
or try path:/ninjamserver.exe /server.cfg
u could also do it in quotes if ya get a prob.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:20 AM.
|