Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Running SWR on a Windows machine.

Running SWR on a Windows machine.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Marowi   (65 posts)  Bio
Date Fri 05 Mar 2004 02:13 PM (UTC)
Message
I have had a reasonable amount of coding experience on SMAUG muds, and some on SWR muds. I recently decided to heavily modify an SWR codebase to a theme I deisgned personally. Unfortunately, soon after, my linux machine/server died, big-time.

I'm using my Windows machine to run the code. I downloaded swr102port.zip (can't remember where from) and placed the cygwinb19.dll in the location that the readme in the swr folder requests. It runs perfectly, I can load up the mud all day, HOWEVER; any changes I make to the code are not taken into account when I run the server next. Any idea how I can get this to work; I'm REALLY stuck.

This could be considered unwise, but PLEASE contact me at my personal email 's2161808@student.griffith.com.au' if you have ANY solutions.

Even if it means downloading a different codebase, I am willing; the changes lost would take less time to amend than i've already spent fiddling with this problem.

Thanks,
Marowi
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Fri 05 Mar 2004 04:08 PM (UTC)
Message
This has nothing to do with the codebase. What method are you using for compiling? Are you sure your using the right .exe file? There is another post going about the hassle of trying to run inside of cygwin. With some more information we might be able to help you more.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #2 on Fri 05 Mar 2004 04:17 PM (UTC)
Message
Basically, i'm running an SWR codebase that came with an exe called 'swreality.exe'. When I tried to run it, it asked for 'cygwinb19.dll' so I placed it in the correct folder and reran; it worked.

The mud functions as it should, but the changes I make to the source aren't included when I reboot the 'exe', probably because I haven't compiled it. I have Visual C++, if that helps at all.

Also, is there any way to do a hotboot/copyover of an '.exe' mud?

Thanks, in advance.
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #3 on Fri 05 Mar 2004 05:26 PM (UTC)
Message
On an added note.

I've only done about 8 hours on this particular codebase, so if anyone knows of a very reliable SWR codebase, i'd be willing to use it; if they could help me with ths dilemna.

Thanks!
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #4 on Fri 05 Mar 2004 05:32 PM (UTC)
Message
I recommend using SWRFUSS (Star Wars Reality Fixed up Star Wars Sourse). It has many, many bug fixes, as well as instructions to get it to work in windows, I beleive.

If you do not compile your changes, you will not get any results. If you change your source code (*.c), this will not affect your object files (*.o), and consequently the .exe. To compile, create a probject and choose compile. I don't know turbo that well, but if you add all the files into the project, it should work ok. If you have actual error messages we could help you better.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #5 on Fri 05 Mar 2004 05:57 PM (UTC)
Message
I downloaded the SWRFUSS and it only have 1 x 5mb file with no accompanying instructions.

The options for a new project are as follows:
ATL COM AppWizard
DevStudio Add-in Wizard
ISAPI Extension Wizard
Makefile
MFC ActiveX Control Wizard
MFC AppWizard (dll)
MFC AppWizard (exe)
Utility Project
Win32 Application
Win32 Console Application
Win32 Dynamic-Link Library
Win32 Static Library

Any suggestions?
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #6 on Fri 05 Mar 2004 06:03 PM (UTC)
Message
I tried the "Makefile" project, and it requested the '.mak' file, which I placed in there. An error came up when I tried to run it, however.

swreality.mak(36) : fatal error U1086: inference rule cannot have dependents
Stop.
Error executing nmake.

29 |swreality: $(O_FILES)
30 | rm -f swreality
31 | $(CC) $(L_FLAGS) -o swreality $(O_FILES) -lm
32 | chmod g+w swreality
33 | chmod g+w $(O_FILES)
34 |
35 | .c.o: mud.h
36 | $(CC) -c $(C_FLAGS) $<
37 |
38 | clean:
39 | rm -f $(O_FILES)
EOF|

Ideas?
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #7 on Fri 05 Mar 2004 06:12 PM (UTC)
Message
Would downloading CYGWin solve this problem? I'm on dodgy dial-up, but i'm prepared to download 400mb if that's what it takes.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #8 on Fri 05 Mar 2004 07:10 PM (UTC)
Message
What's the 5 mb file that came with the SWRFUSS package? Chances are it's a .tar.gz or something like that, which you can open up in WinZip.

As far as I know, getting copyover to work in Windows is extremely difficult, even in Cygwin. See:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3882

However it seems to be generally accepted that Cygwin is "nicer" than straight Windows to run a MUD in. I'd still recommend staying as far away from Windows servers as possible, though, if you ever get your Linux box back. What happened to it?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #9 on Fri 05 Mar 2004 07:19 PM (UTC)
Message
I'd love to be running it on Linux, just.. can't..

Basically, cross a really bad smell with a 'gooey' motherboard. I went away for the weekend; the hottest three days we've had in at least 8 years. My linux computer sat behind my windows computer in a little alcove called 'under my desk with all the other junk'. Power surge caused the machine to turn on. I come home and my room smells real bad-like, and the motherboard was off-colour and, as I said, 'gooey'.

It's not coming back.
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #10 on Fri 05 Mar 2004 07:28 PM (UTC)
Message
CYGWin is 25% downloaded. I've read about people using that sort of a copyover too; creating a different exe file with the copyover, then copying it over the first exe and running again. Personally, I would have thought having 'server1.exe' and 'server2.exe' would have been easier.

Anyway, if you have any idea how to make either possible i'll erect a shrine or three in your name.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #11 on Fri 05 Mar 2004 08:56 PM (UTC)
Message
You want "Win32 Console Application".

You basically add into the project all (or almost all) the .c files. After that you follow your nose. ;)

However Cygwin is probably easier, and if you are used to Unix it should be simple enough to use.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #12 on Fri 05 Mar 2004 08:56 PM (UTC)
Message
I've solved the problem. With a bit of fiddling, Cygwin was able to run the mud. I can't be bothered trying to get copyover to work, unless someone has a snippet; after all, this is only for me to keep working on until I can afford to pull together a Linux machine.

I thank you for your assistance, and I'm sure i'll be back around here some other time. :-)

Thanks,
Marowi
Top

Posted by Marowi   (65 posts)  Bio
Date Reply #13 on Fri 05 Mar 2004 10:09 PM (UTC)
Message
In actual fact, the folder that cygwin compiles to and runs from are different, so the psuedo-copyover looks to have a chance of working. I'll probably have a look at it if/when I get too frustrated with copy-pasting the *.exe after every change I make.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


32,715 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.