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 ➜ SMAUG coding ➜ Using the Win32 port for a Linux server (after development)

Using the Win32 port for a Linux server (after development)

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


Posted by Seveian   (1 post)  Bio
Date Wed 07 Jan 2004 08:44 PM (UTC)
Message
Hello there. This is a bit of an odd question, so please bear with me.

A few months ago a friend of mine downloaded the SMAUG win32 port from your website, and since then we have been putting day after day of work into preparing it to move onto a real server which unfortunately for us, 99% of which run linux os's :) We would really prefer not to start over, so I'm wondering if you can offer any advice on re-porting the codebase to Linux. I have heard from some that it may be as simple as altering the make file, but I can't be sure.

If you could share any insight whatsoever on this I would be very greatful.

Thanks.
Mike
----------------------------------------------------------

Entered by Gammon Software support on 7 Jan 2004 4:37 PM

It's not an odd question - sounds perfectly normal to me. :)

It is easy to do - however I prefer to answer general SMAUG question on my forum:

http://www.gammon.com.au/forum

That way the answer can help others as well.

When you do, can you indicate whether the problem is the area files (which you should be able to copy over virtually unchanged) or whether you have made code changes as well. If so, which compiler did you use?

---------------------------------------------------------

The problem lies within the fact that we have made some extensive code changes already to the MUD, but nothing that is involved with WINSOCK or whatever is used in the win32 port. We used Cygwin to compile it.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Wed 07 Jan 2004 10:36 PM (UTC)
Message
The Win32 port is actually a version that technically runs on both Linux and Windows. There should be a lot of "#ifdef WIN32" in the code for instance; those give away the portability tweaks.

So, unless you wrote platform specific code, which is quite unlikely, your code should run without a hitch on Linux - especially if you were running on Cygwin. :)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Samson   USA  (683 posts)  Bio
Date Reply #2 on Wed 07 Jan 2004 11:36 PM (UTC)
Message
And yes, there's usually some sort of flag in the Makefile to tell it which to use. If not, then it's probably safe to assume it'll work. But if not, it won't take much to fix :)
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.


11,047 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.