COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > NINJAM Discussion > NINJAM User Discussion

Reply
 
Thread Tools Display Modes
Old 01-20-2011, 05:20 AM   #1
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default 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.
Liquid_Metal is offline   Reply With Quote
Old 01-20-2011, 05:24 AM   #2
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default

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
Liquid_Metal is offline   Reply With Quote
Old 01-20-2011, 10:20 AM   #3
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 767
Default

Quote:
Originally Posted by Liquid_Metal View Post
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.
pljones is offline   Reply With Quote
Old 01-20-2011, 10:36 AM   #4
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default

Quote:
Originally Posted by pljones View Post
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.
Liquid_Metal is offline   Reply With Quote
Old 01-20-2011, 12:17 PM   #5
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default

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.
Liquid_Metal is offline   Reply With Quote
Old 05-28-2011, 02:53 AM   #6
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default

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)
Liquid_Metal is offline   Reply With Quote
Old 05-28-2011, 08:35 AM   #7
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 767
Default

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.
pljones is offline   Reply With Quote
Old 05-28-2011, 08:48 AM   #8
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default

Quote:
Originally Posted by pljones View Post
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.
Liquid_Metal is offline   Reply With Quote
Old 06-17-2011, 04:54 AM   #9
umma08
Human being with feelings
 
Join Date: Jun 2011
Posts: 18
Default

Quote:
Originally Posted by Liquid_Metal View Post
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!
umma08 is offline   Reply With Quote
Old 06-17-2011, 05:16 AM   #10
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default

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
Liquid_Metal is offline   Reply With Quote
Old 06-17-2011, 06:12 AM   #11
umma08
Human being with feelings
 
Join Date: Jun 2011
Posts: 18
Default

hmmm, i am on OSX, using terminal.....

but have the same error message - anyone know the command line to fix this on mac?!?
umma08 is offline   Reply With Quote
Old 06-17-2011, 06:17 AM   #12
Liquid_Metal
Human being with feelings
 
Join Date: Jan 2011
Posts: 8
Default

Well:

http://ilovethecode.com/Command_Line...ories_cd.shtml
Liquid_Metal is offline   Reply With Quote
Old 06-20-2011, 06:35 AM   #13
umma08
Human being with feelings
 
Join Date: Jun 2011
Posts: 18
Default

i still dont understand what i am trying to do with cd function though?!?
umma08 is offline   Reply With Quote
Old 06-20-2011, 10:54 AM   #14
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 767
Default

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.
pljones is offline   Reply With Quote
Old 06-21-2011, 02:04 AM   #15
umma08
Human being with feelings
 
Join Date: Jun 2011
Posts: 18
Default

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....
umma08 is offline   Reply With Quote
Old 06-21-2011, 04:09 AM   #16
umma08
Human being with feelings
 
Join Date: Jun 2011
Posts: 18
Default

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!?
umma08 is offline   Reply With Quote
Old 06-21-2011, 03:23 PM   #17
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 767
Default

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.
pljones is offline   Reply With Quote
Old 06-23-2011, 06:45 PM   #18
AndyMc
Human being with feelings
 
AndyMc's Avatar
 
Join Date: Dec 2006
Posts: 441
Default

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.
__________________
Latest Shit (looking for singers): http://www.soundcloud.com/AndyMcProducer
Twitter (@AndyMcProducer): http://www.twitter.com/AndyMcProducer
Facebook Page: http://www.facebook.com/AndyMcProducer
AndyMc is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.