Server Help

ASSS Questions - Problems with asss on win 98?

wEaViL - Wed Mar 01, 2006 4:15 am
Post subject: Problems with asss on win 98?
I recently dragged my old subgame server out of the closet and hooked it up. I sent a copy of my dev asss zone to it and can't get it to run from that system. It worked (still runs) fine on my XP pro system but I get "Bad command or filename" when I run the bat file on win 98. Is there anything I need to download to fix this or do I need to upgrade the os? If I need to upgrade will win 2k be enough to run it?
Smong - Wed Mar 01, 2006 9:03 am
Post subject:
It should work on win98. Open the .bat file in wordpad and save it to convert the unix line endings to windows line endings.
wEaViL - Thu Mar 02, 2006 7:22 am
Post subject:
I just tried that and it didn't work... I put a new copy of asss on there and it didn't give that error but had a couple module errors... imma see if i can't fix that now


Edit* This is what the asss window says

Code: Show/Hide
asss 1.1.8pre built at Apr 27 2004 17:06:50
Loading Modules...
I <cmod> loading C module 'deadlock' from 'internal'
E <cmod> error in GetProcAddress: The specified procedure could not be found.

Unrecoverable error (5) : Error in loading module 'deadlock'
Press any key to continue . . .


Edit 2* I tried to disable that module then it gives me another module error. Going to try setting up a fresh server and see how that goes.

Edit 3* Ok that failed... currently this is what it is showing

Code: Show/Hide
asss 1.1.8pre built at Apr 27 2004 17:06:50
Loading Modules...
I <cmod> loading C module 'prng' from 'internal '
I <cmod> loading C module 'logman ' from 'internal '
Unrecoverable error (5) : Error in loading module 'scoring:presist'
Press any key to continue . . .

Smong - Thu Mar 02, 2006 7:52 am
Post subject:
I'm not sure what you meant by 'sent a copy' but you should at least get the latest version (which currently is 1.4.2) from http://sscx.net/asss.

Make sure to get the full windows version and to unpack it preserving path names.
wEaViL - Thu Mar 02, 2006 7:54 am
Post subject:
can't remember where I downloaded this one from... was either shanky.com or subspacedownloads.com I'll give that a try, thanks
wEaViL - Thu Mar 02, 2006 8:04 am
Post subject:
1.4.2 still gives Bad command or file name
Dr Brain - Thu Mar 02, 2006 8:40 am
Post subject:
Open up the .bat file, and type it in manually into a command window (After cd'ing to the right spot). See what command is giving you trouble.
wEaViL - Thu Mar 02, 2006 8:51 am
Post subject:
ok I guess I did this right. I went into run and typed command. In the command window I changed the directory to the server and then typed asss.bat and it says bad command or file name
Dr Brain - Thu Mar 02, 2006 3:02 pm
Post subject:
Open asss.bat in notepad. Type THOSE commands in.
wEaViL - Fri Mar 03, 2006 12:28 am
Post subject:
ok i'm getting confused... sorry but what I see on the screen is giberish to me...

Open asss.bat in notepad - ok understood that
Type those commands in - This is where im lost... what commands? Also where do I type them in at?


It just seems to me that its got to be something with win 98 seeing that the exact copy of the asss server works on my XP Pro system. Is there a possible missing file or program needed to run it?
Smong - Fri Mar 03, 2006 4:53 am
Post subject:
I think what he's trying to say is type 'bin\asss.exe' into the command prompt.

My first thought was you didn't have the complete distro or correct directory layout, since it can't find a file it needs (such as one of the .dll's containing the modules).

Alternatively you could try a version between 118pre and 142.

And if it is missing a system .dll such as msvcr71.dll it usually pops up a message dialog.
Dr Brain - Fri Mar 03, 2006 9:06 am
Post subject:
Ok, I think I know your problem.

Open asss.bat in WORDPAD. Then hit the save button.

Try it again.
Smong - Fri Mar 03, 2006 11:47 am
Post subject:
This seems to be getting into a loop...
Dr Brain - Fri Mar 03, 2006 12:53 pm
Post subject:
By try it again I mean running the server.

I think his issue is Windows 98 doesn't like unix linebreaks in its batch files.
wEaViL - Fri Mar 03, 2006 5:29 pm
Post subject:
Dr Brain wrote:
Ok, I think I know your problem.

Open asss.bat in WORDPAD. Then hit the save button.

Try it again.


Already tried that one a few times... still no luck
Dr Brain - Fri Mar 03, 2006 11:15 pm
Post subject:
If your asss.bat makes no sense, then something is wrong.
wEaViL - Sat Mar 04, 2006 2:51 am
Post subject:
I still thinks its something with win 98... perhaps a missing file or something... I install perl to see if that fixed it and it didn't... not sure whatelse to try
Dr Brain - Sat Mar 04, 2006 10:14 am
Post subject:
Do the following in a command prompt:

cd C:\place\where\you\put\the\asss\folder
bin\asss.exe

See if that works. If it does, copy and paste (don't attach) the contents of your asss.bat.
wEaViL - Sun Mar 05, 2006 12:58 am
Post subject:
Ok this is odd.... its in C:\asss\bin\ but when I do that in command it says Invalid Directory even though that is the exact location of it.

Ok now if I do it like this it worked as far as finding it...
cd c:\
cd asss
cd bin
asss.exe

Now in the prompt it says
Code: Show/Hide

asss 1.4.2 built at Jan 14 2006 17:09:24
Loading modules...
Unrecoverable error (5): Error in modules.conf: Can't open file 'conf/modules.conf' for reading


So somethings wrong with modules.conf... odd though, last time I did this it just said Bad command
Cyan~Fire - Sun Mar 05, 2006 10:45 am
Post subject:
No, you're just loading it from the wrong directory. You need to be in C:\asss and then run asss.bat.
Dr Brain - Sun Mar 05, 2006 11:40 am
Post subject:
Gah, cyan. You need to read the original topic.




Cd C:\asss
bin\asss

(LIKE I SAID)

When that works perfectly, maybe you'll start believing me that it's an issue with your unix linebreaks?

If I'm a little ansy, it's because I gave you the correct solution 10 posts ago.
Smong - Sun Mar 05, 2006 5:23 pm
Post subject:
I already stopped replying to this topic.</irony>
wEaViL - Sun Mar 05, 2006 6:04 pm
Post subject:
Like I said... if I type asss.bat while command is in C:\asss\ I get Bad command or file name

If I do it like Dr said then I get Can't open file 'conf/modules.conf' for reading

Open and save asss.bat with win 98 does no good either... So if the comment about unix headers or whatever is right, then why doesn't it fix it when I save it with windows?
Smong - Sun Mar 05, 2006 6:14 pm
Post subject:
I really hope you mean 'opened it with wordpad' not opened with windows...

Did you follow the error's advice? Check to see if a conf/modules.conf files exists and say so here. You might use past knowledge learned and re-save it in wordpad (although that shouldn't matter for this particular file).

"Unrecoverable error (5): Error in modules.conf: Can't open file 'conf/modules.conf' for reading" Can occur when you are executing asss.exe from within the bin directory.
wEaViL - Sun Mar 05, 2006 6:19 pm
Post subject:
Yes I opened asss.bat with wordpad and saved it, also tried that with modules.conf... both failed

whether I double click asss.bat or use command prompt to open it it always says bad command or file name... Only time I get the error about modules.conf is if I cd to bin and type asss. All files are in there so its not a missing file.


Guess i'll just save a little cash and get a 128 pc100 chip and upgrade to either xp pro or server 2003 since it works fine on xp.
Smong - Sun Mar 05, 2006 7:35 pm
Post subject:
I wrote a small java program that might help find the error.
Download the attached zip file, unpack, place nat.class in the root asss folder (same folder as asss.bat, LICENSE, etc). Then with cmd/command navigate to that folder and type 'java nat', paste the results here.

I did experiment with making java execute asss.bat, but the results weren't good, the output from asss wasn't given to java until the server exited, and even then I had to kill the java program, then asss otherwise it keep restarting itself... So much for my plan of making a java gui'd asss noob admin tool.
Dr Brain - Sun Mar 05, 2006 9:13 pm
Post subject:
Weavil, for the record, you didn't do what I asked. You CDed into the bin directory, which you shouldn't do (look at both of my posts explaining it).
wEaViL - Sun Mar 05, 2006 9:49 pm
Post subject:
Brain.... i really have no clue what your saying... i've done what you've said and told you what the dos prompt says each time and its always the same. I'll post the info from the bat file in here in just a sec.
wEaViL - Sun Mar 05, 2006 9:53 pm
Post subject:
Code: Show/Hide
@echo off

ECHO starting asss...

GOTO START

:START

bin\asss.exe

IF ERRORLEVEL 5 GOTO MODLOAD
IF ERRORLEVEL 4 GOTO MODCONF
IF ERRORLEVEL 3 GOTO OOM
IF ERRORLEVEL 2 GOTO GENERAL
IF ERRORLEVEL 1 GOTO RECYCLE
IF ERRORLEVEL 0 GOTO SHUTDOWN

ECHO unknown exit code: %ERRORLEVEL%.

GOTO END

:SHUTDOWN
ECHO asss exited with shutdown.
GOTO END

:RECYCLE
ECHO asss exited with recycle.
GOTO START

:GENERAL
ECHO asss exited with general error.
GOTO END

:OOM
ECHO asss out of memory. restarting.
GOTO START

:MODCONF
ECHO asss cannot start. bad modules.conf.
GOTO END

:MODLOAD
ECHO asss cannot start. error loading modules.
GOTO END

:END


Ok I dont know if this makes a different but when I look at it in win 98 its all in a single line. But when I copy and paste it here on the xp system it took the single line and added the spaces between everything.
wEaViL - Sun Mar 05, 2006 10:00 pm
Post subject:
Smong wrote:
I wrote a small java program that might help find the error.
Download the attached zip file, unpack, place nat.class in the root asss folder (same folder as asss.bat, LICENSE, etc). Then with cmd/command navigate to that folder and type 'java nat', paste the results here.


Ok I did that and here's the results.
Code: Show/Hide

nat v1 running on Windows 98 4.10, machine: x86
cwd: C:\asss
cwd: C:\asss
asss.bat found
asss.exe found
security.dll: found
modules.conf: found
asss.bat: unix line endings

wEaViL - Sun Mar 05, 2006 10:04 pm
Post subject:
Ok i've fixed it... on my xp pro system I made a new txt file and copied the asss.bat info from my earlier post into it. Then sent it to the server running win 98 and made sure it stayed in tact. Ran asss.bat and it worked. Thanks for the help you 2
Dr Brain - Mon Mar 06, 2006 12:08 am
Post subject:
You Did:
Quote:
cd c:\
cd asss
cd bin
asss.exe


I said:
Quote:

cd c:\
cd asss
bin\asss.exe


Notice a difference?


Glad you fixed it though.
wEaViL - Mon Mar 06, 2006 12:31 am
Post subject:
I did it the way you said to and it came back with Bad command or file name... thats why I cd bin... but it doesn't matter now.. it works.. thanks for everything though
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group