COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 01-24-2009, 05:14 PM   #1
HatHead
Human being with feelings
 
Join Date: Oct 2008
Posts: 14
Default Can't connect but can change config file.

Hello,

I am able to change the BPM in my config file on the server and see that change when I start the ninjam server however I cannot connect from the client using the login credentials in the same file.

I can see in the ninjam server console on the unix server that there have been failed login attempts due to invalid user/password.

I am using the example.cfg file in this test and know I am using the right file as I see the BPM change when I re-start the ninjam server. What might be preventing me from using the login credentials in the config file?

Thanks for any help!
HatHead is offline   Reply With Quote
Old 01-25-2009, 02:17 AM   #2
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 597
Default

What happens if you change the config to allow anonymous logins and log in anonymously? Does it let you in then? (Not suggesting you leave it like that...) The only thing I can add is that it's case sensitive, but I guess you realise that. I'm struggling to think of anything useful, though!
__________________
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-25-2009, 06:10 AM   #3
HatHead
Human being with feelings
 
Join Date: Oct 2008
Posts: 14
Default

Hi pljones - thanks for your reply.

Yes, tried to connect anonymously but still get the same invalid login/password error. Understand the case sensitivity; it is not that.

Going to try an do another compile of the ninjam server.

Thanks for your help - I appreciate it.

Cheers!
HatHead is offline   Reply With Quote
Old 01-25-2009, 11:06 AM   #4
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 597
Default

If you've set it to allow anonymous logins but it isn't doing so, then I'm wondering if it's not picking up the config file you think it is...
__________________
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; 01-25-2009 at 11:17 AM.
pljones is offline   Reply With Quote
Old 01-25-2009, 11:10 AM   #5
HatHead
Human being with feelings
 
Join Date: Oct 2008
Posts: 14
Default

Thanks for your reply!

Good point yet still when I change the BPM in the same cfg file, it will be reflected when I start ninjamsrv - very odd.

This is why I think now that a recompile is necessary - I did not pay attention to any messages during the compile.

Cheers!
HatHead is offline   Reply With Quote
Old 01-26-2009, 03:39 PM   #6
HatHead
Human being with feelings
 
Join Date: Oct 2008
Posts: 14
Default

Still not resolved but an update - although my ninjam server starts up with no errors, there are some cryptic messages reported in the build (below). I can change the BPM in the config file but still not connect. When attempting to login, I get the license window and a report that the login has been requested and denied in the ninjam server console.

Here is the compile reporting, I note a few cryptic error messages:

g++ -O2 -s -Wall -pthread -c -o ../../WDL/jnetlib/asyncdns.o ../../WDL/jne
tlib/asyncdns.cpp
g++ -O2 -s -Wall -pthread -c -o ../../WDL/jnetlib/connection.o ../../WDL/j
netlib/connection.cpp
g++ -O2 -s -Wall -pthread -c -o ../../WDL/jnetlib/listen.o ../../WDL/jnetl
ib/listen.cpp
g++ -O2 -s -Wall -pthread -c -o ../../WDL/jnetlib/util.o ../../WDL/jnetlib
/util.cpp
g++ -O2 -s -Wall -pthread -c -o ../../WDL/jnetlib/httpget.o ../../WDL/jnet
lib/httpget.cpp
g++ -O2 -s -Wall -pthread -c -o ../../WDL/rng.o ../../WDL/rng.cpp
g++ -O2 -s -Wall -pthread -c -o ../../WDL/sha.o ../../WDL/sha.cpp
../../WDL/sha.cpp: In member function `void WDL_SHA1::reset()':
../../WDL/sha.cpp:68: warning: comparison between signed and unsigned integer
expressions
g++ -O2 -s -Wall -pthread -c -o ../mpb.o ../mpb.cpp
../mpb.cpp:889:2: warning: no newline at end of file
g++ -O2 -s -Wall -pthread -c -o ../netmsg.o ../netmsg.cpp
g++ -O2 -s -Wall -pthread -c -o usercon.o usercon.cpp
g++ -O2 -s -Wall -pthread -c -o ninjamsrv.o ninjamsrv.cpp
g++ -O2 -s -Wall -pthread -o ninjamsrv ../../WDL/jnetlib/asyncdns.o ../../WD
L/jnetlib/connection.o ../../WDL/jnetlib/listen.o ../../WDL/jnetlib/util.o ..
/../WDL/jnetlib/httpget.o ../../WDL/rng.o ../../WDL/sha.o ../mpb.o ../netmsg.
o usercon.o ninjamsrv.o

Thanks for any help!

Last edited by HatHead; 01-26-2009 at 03:44 PM.
HatHead is offline   Reply With Quote
Old 01-27-2009, 12:41 AM   #7
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 597
Default

Quote:
Originally Posted by HatHead View Post
Here is the compile reporting, I note a few cryptic error messages:
...
g++ -O2 -s -Wall -pthread -c -o ../../WDL/sha.o ../../WDL/sha.cpp
../../WDL/sha.cpp: In member function `void WDL_SHA1::reset()':
../../WDL/sha.cpp:68: warning: comparison between signed and unsigned integer
expressions
g++ -O2 -s -Wall -pthread -c -o ../mpb.o ../mpb.cpp
../mpb.cpp:889:2: warning: no newline at end of file
...
Nothing crypytic and no errors. Comparing a signed variable (one that can go from, say -128 to 127) with an unsigned variable (0 to 256) generates a useful warning. Telling you there's no newline on the end of a file is also potentially useful, if that file got truncated somewhere. However, here, there isn't a problem.

Your compile is fine.

Have you done anything yet to prove that changes to the config file you think you're using are affecting NINJAM when you run it? For example, changing the licence file?
__________________
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-27-2009, 06:38 AM   #8
HatHead
Human being with feelings
 
Join Date: Oct 2008
Posts: 14
Default

hello pljones - thank you kindly for your reply.

Glad to hear the compile is fine.

I am able to change the port number and bpm. There is also only one .cfg file - it is the example.cfg

Many thanks!
HatHead is offline   Reply With Quote
Old 01-28-2009, 01:10 PM   #9
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 597
Default

Sorry, missed your earlier reply where you said that.

Are you trying to login from the same machine NINJAMSVR is running on or remotely? If remotely, can you try getting the NINJAM client up and running on the server machine and then try logging in locally (127.0.0.1 and the port number).
__________________
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-29-2009, 07:52 PM   #10
AndyMc
Human being with feelings
 
AndyMc's Avatar
 
Join Date: Dec 2006
Posts: 441
Default

Hiya HatHead,

You can rename the config or rather copy it then rename the copy to what ya like, then on the command line u give the config file name.

So for example, I made a small *.bat that looped and in there I just put:

ninjamserver.exe ninjamserver.cfg

Then this runs the server using the config file I named ninjamserver.cfg


For passwords as you see from the cfg file it looks like this:
#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)


The Admin password it ends with *
The Moderator password ends with CBTKRM
And Standard User password ends with nothing, which you would use if you disabled Anonymous Login.

You also need to remove the # before each line as this indicates a REM (remark) and anything after it on the same line is disregarded and not acted on when read.

So if you wanted 2 Moderator type Admins in your server you would put something like this:

User FredBloggs toung CBTKRM
User KarlFisher potatoes CBTKRM

This would create 2 moderator accounts, so then a user would connect with the user name FredBloggs and the password toung and the other would use KarlFisher and potatoes.
The password is case sensitive but the user name isn't.
__________________
Latest Shit (looking for singers): http://www.soundcloud.com/AndyMcProducer
Twitter (@AndyMcProducer): http://www.twitter.com/AndyMcProducer
Facebook Page: http://www.facebook.com/AndyMcProducer

Last edited by AndyMc; 01-29-2009 at 07:57 PM.
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 12:46 AM.


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