Smaug 1.4 win32 IMC

Posted by Corey on Mon 26 Nov 2007 08:20 PM — 25 posts, 89,123 views.

#0
How do you activate IMC in Nick's port of this?
I tryed the -DUSE_IMC in the makefile, but the IMC
commands still don't work, all I get in the game after
a command is HUH? I even joined the IMC network on server01.

Corey


USA #1
IMC always seemed a little broken to me in SMAUG1.4, you may instead want to look at SMAUGFuss or AfkMud.
Check here: http://www.gammon.com.au/forum/?id=8322&page=999
#2
ok, I got smaugfuss 1.8 and the imc works with very little work. but can't compile with borland c or msvc6. did/will nick do a port of this code to compile with these?

I did get it to compile with cygwin on win32, but it won't run in cygwin and only in a reg win32 prompt. so one env to run and one to develop in is a real pain. and it won't run as a service. any ideas?

Corey
USA #3
SmaugFUSS runs just fine in Cygwin.
#4
just not as a service.
that was a good feature nick did.
USA #5
Grab the services.c from Nick's SMAUG, and shoehorn it into SMAUGFuss. There are other changes needed by WIN32, but they are easy enough to find (look for '#ifdef WIN32'). As for cygwin, check out mingw32. It should compile with minimal changes. www.mingw.org
I myself can't say how hard it may be as I've always just ripped IMC and ICE out.
Australia Forum Administrator #6
Quote:

I did get it to compile with cygwin on win32, but it won't run in cygwin and only in a reg win32 prompt. so one env to run and one to develop in is a real pain. and it won't run as a service. any ideas?


You should be able to run it as a daemon, which means it is just in the background. The only real problem with that is that services can start when you boot the PC, but without logging in, it depends how often you do that. Probably not that often if you are running a MUD 24/7.
#7
no, I mean nt services don't work in smaugfuss 1.8
if I type smaug /install, it just says, smaug {port}
or something. the services.c is there and compiles and links in, but don't work. i.e. HELP!

Corey
USA #8
What exactly are you trying to do? Why do you need to make it a service? If you want to keep it running, just run the startup script.
#9
because I run winxp sp2.
how do I run the script?
all my cygwin seems to make is win32 exes.
USA #10
I'm not sure cygwin defines WIN32. Try adding some printf statements to the main function in services.c it may not be calling the correct main (the non-win one is in comm.c)
USA #11
./startup &

That's how you run the script in Cygwin.
#12
still it runs as a app and not a service.
USA #13
Like I asked because, why do you wish to make it a service? "because I run winxp sp2" doesn't tell me anything.
#14
so I don't see the app window on the desktop.
USA #15
You mean the Cygwin command prompt?
#16
yes, the window.
USA #17
You shouldn't need to keep that open though. Run the startup script, and close Cygwin. It should still run.
#18
nope, I thought of that. process dies when I close the window. wish I was better at C to see why it won't use services. might go back to the smaug 1.4a nick did where the services worked and the IMC didn't.
ARG! I just want one good fully working system!
Amended on Tue 27 Nov 2007 11:05 PM by Corey
USA #19
How are you running the startup script?

Try this way:
nohup ./startup &
#20
yep, just like the docs say.
is my startup script suppost to be in the src dir?
USA #21
Yes, the startup script is normally in the src dir, but it might not matter if it changes to the right directory on its own.
#22
well, I seem to like the Smaugfuss the best. even if it don't run as a nt service, I can run it as a app. the area files are easier to understand for me. I wonder who is maintaining the code, I can complain loudly to them to fix the nt services code. or learn C and fix it myself.
I compaired smaug 1.4a comm.c with this code and can't see the error. anyone here want to take a stab at it for me?

Corey

USA #23
The SmaugFUSS code is maintained by the SmaugFUSS project, primarily by Samson; here's their forum: http://www.smaugmuds.org/index.php?a=board

I'm not sure how much support you'll get for the services code, though. At least, if you're asking other people to code it for you, that is. :-)
#24
someone said, cygwin won't support nt services, hence none.