[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  Compiling Icy Depths

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Compiling Icy Depths
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 08 Feb 2006 04:20 AM (UTC)  quote  ]
Message
It could mean that the port is already in use for some reason. Try using a different port. Also make sure that you don't have software running that shuts down connection attempts it doesn't know about (although it should at least *ask* you...)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Primoperfect   (4 posts)  [Biography] bio
Date Wed 08 Feb 2006 03:43 AM (UTC)  quote  ]
Message
*sigh* Now I'm getting the init_socket error (it's like reliving what everyone else posted a year ago!) ... I changed the IP to my computer's IP on the line:

sa.sin_addr.s_addr = inet_addr( " <IP> " );

But I'm still getting the error.

Spear said he copied over the init_socket method from SMAUG, but Zsuzsu didn't mention it; anyone know how to fix the error?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 08 Feb 2006 03:38 AM (UTC)  quote  ]
Message
What an annoying feature of C. C++ is smart enough to realize that the two functions are in fact different, because of their different arguments.
int foo() {                       
    return 0;
}       
        
void foo(int i) {               
    return;     
}               
                
                
int main() {               
    foo();      
    foo(2);
}
This compiles perfectly using g++, but gcc gives the same error you got.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Primoperfect   (4 posts)  [Biography] bio
Date Wed 08 Feb 2006 03:17 AM (UTC)  quote  ]

Amended on Wed 08 Feb 2006 03:19 AM (UTC) by Primoperfect

Message
sorry, I posted the code from string_edit.c twice. It's edited now.

Ah...I found out that the getline method defined in string_edit was just a local method, so I renamed it to getline_two and it compiles now.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 08 Feb 2006 02:15 AM (UTC)  quote  ]
Message
I suppose just comment out the getline in string_edit.c.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Primoperfect   (4 posts)  [Biography] bio
Date Wed 08 Feb 2006 02:12 AM (UTC)  quote  ]

Amended on Wed 08 Feb 2006 03:11 AM (UTC) by Primoperfect

Message
I recently downloaded this codebase and cygwin, and patched the files as per the diff, but I'm getting a similar error to the strlwr one lumpei got:

string_edit.c:462: error: conflicting types for 'getline'
/usr/include/sys/stdio.h:31: error: previous declaration of 'getline' was here


The offending lines...

in string_edit.c are:
const char *getline(const char *str, char *buf)

in /usr/icnlude/sys/stdio.h:
ssize_t _EXFUN(getline, (char **, size_t *, FILE *));


Apparently the sys/stdio.h is something that comes with cygwin...but I'm not sure what to do to fix this without busting something.
[Go to top] top

Posted by Thornan   (8 posts)  [Biography] bio
Date Thu 27 Oct 2005 03:47 AM (UTC)  quote  ]
Message
Compiling Icey Depths on FreeBSD is what I started on. It worked fine. I then switched over to Red Hat Enterprise Linux 4 which required some fine tuning. But I have had Icey Depths codebase for the past 6.5 yrs up and running as a playable mud. And as far as compiling on Cygwin if you can get it to work more power too you. If not then buy the Norton Partition magic and partition your hdd give it atleast 10 gigs partition space for your linux distro. Then install Linux on the 10 gig partition and you now have dual booted windows/linux computer. I would reccomend Suse Linux 9 or Red Hat or Debian Sarge or FreeBSD or SlackWare. As far as compiling/running the codebase without the language support I am not sure that is possible without recoding the entire codebase. Icedepths was coded by a drunk russian I am assuming. We have done so much work to our distro that it does not even look like IceyDepths code anymore. We also have the startup file. If you need any of those Linux distro's let me know I can make ISO's of the CD's and put them on my ftp site for you to download. But if you would like to see a very good and very nice Icey Depths mud with Dual Language support for English and Russian then go here:

http://www.legendsandlore.org

or telnet too:

legendsandlore.org Port: 9999
[Go to top] top

Posted by Zsuzsu   USA  (4 posts)  [Biography] bio
Date Tue 26 Apr 2005 08:24 PM (UTC)  quote  ]
Message
I'm the head coder at Dungeons & Dragons Mud. We run a heavily modified Icey Depths codebase. Spear is a player on our mud, and told me about this thread. So, just for giggles, i decided to give it a whirl.

I DLed the distro from the link above. After correcting the source code formatting errors with the diff offered above, I compiled. make install.

muddy 4000
I got the binding error.

I changed the IP in comm.c

Now I got the lang.lst file error.
The lang.lst file is located in ./lang/ (go figure)

So now I the mud from . (the base directory)
./bin/muddy 4000

This time I got the gender.rus file error.
looking in ./lang/russian.lang I find
GendersFile genders.rus~
CasesFile cases.rus~

Not wanting to waste any time, and just to see if I can get this distro-codebase running, I just gave full pathnames for the files:

GendersFile /home/zsuzsu/muddy/lang/genders.rus~
CasesFile /home/zsuzsu/muddy/lang/cases.rus~

After that I ran the mud from the base directory, and those there are a lot of warnings in the logfile, it came up and I logged in with a first user.

I think this is a much easier way to go about things than the language hacks mentioned above. This way only took me about 30mins to figure out.

Obviously, this codebase needs a lot of work. I've spent a lot of time ridding this codebase of bugs -- not sure how many were made by the coders before I got on board with D&D.

Anyway, that should help you all get up and running with this codebase.

Zz

Adorable head coder @ DnD: Legends & Lore
legendsandlore.org 9999
[Go to top] top

Posted by Spear   (4 posts)  [Biography] bio
Date Tue 26 Apr 2005 12:09 PM (UTC)  quote  ]
Message
After further inspecting comm.c i have found that init_socket function that was giving that error "Cannot assign requested address" , and i have copy+pasted the one from SMAUG code. This problem was fixed and now i am at the same point with lang.lst absense problem. Does anyone know if i can get it somewhere, or at least in what format are there records in it, so that i can manually create it?
[Go to top] top

Posted by Spear   (4 posts)  [Biography] bio
Date Tue 26 Apr 2005 11:20 AM (UTC)  quote  ]
Message
But i saw many muds running on this codebase and i dont have the problem with this lang.1st file. It compiles w/o errors, i think there should be just slight adjustment made somewhere.
[Go to top] top

Posted by Robert Powell   Australia  (349 posts)  [Biography] bio
Date Tue 26 Apr 2005 10:49 AM (UTC)  quote  ]

Amended on Tue 26 Apr 2005 10:52 AM (UTC) by Robert Powell

Message
I knew icey depths sounded familuar. Something about mudmagic that is good is the fact that we all can make reviews about code and codebases.
Quote:

Don't bother to download this, there has been many atempts to get this code base running. The error is with the lang.lst file not being found. I have see alot of coders try to fix this with out any sucess.

The fact that Samson can make some hack to get it to work says lots about his skill as a programer. Sometimes the best advice is to follow and beleive the review.

Peace.

Oh AreaEditor is great for converting Rom to Smaug, with some files you might need to change the #AREADATA section to be like the older #AREA area section, but aside from that, it rocks.

EldhaMUD Game Developments
The_Fury: Lead Developer, Head Coder
http://fury.eldhamud2.org
[Go to top] top

Posted by Spear   (4 posts)  [Biography] bio
Date Tue 26 Apr 2005 10:37 AM (UTC)  quote  ]
Message
I am also playing at dungeons and dragons mud , based on Icey Depths codebase :) I have decided to test my coding skills, as well as try to implement several ideas, so i downloaded it from http://ftp.game.org/cgi-bin/directory?/pub/mud/diku/merc/rom/anatolia/iceydepths
as well as Cygwin.
I have done that before i actually found this place (A Great one, i should admit), so i solved those problems with typos in the source, on my own and successfully compiled the code, receiving muddy.exe as the output.
But here i get the problem, not mentioned in this topic above - when i try to run this program, i get a message:
"init_socket: bind: Cannot assign requested address"
I have searched the net for such message, and as far as i understand it has smth to do with problems with networking, i tried to run it with port argument, but the error message is the same. I did that at work, where i have LAN and lots of programs installed, and thus using many ports, so i tried to take the source to home, where have less programs, that can prevent muddy.exe from using network, and besides that, i dont have LAN at home, but the problem was still the same.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Sun 20 Jun 2004 03:34 AM (UTC)  quote  ]
Message
Could you show the lines of code along with the surrounding lines? (Make sure you tell us which one has the error)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Hashard   (1 post)  [Biography] bio
Date Sun 20 Jun 2004 03:31 AM (UTC)  quote  ]
Message
I've done that patch.. And this is what I've got....
Can anyone help me?


$ make
gcc -Wall -O -I . -I ../msgdb -DLINUX -DNOCRYPT -c act_comm.c
In file included from act_comm.c:55:
merc.h:49: error: syntax error before '!' token
In file included from merc.h:67,
from act_comm.c:55:
str.h:43: error: syntax error before '!' token
act_comm.c: In function `do_quit_org':
act_comm.c:1096: warning: suggest explicit braces to avoid ambiguous `else'
make: *** [act_comm.o] Error 1

[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Fri 12 Mar 2004 02:59 AM (UTC)  quote  ]
Message
If it's stock ROM, my editor will convert reasonably well, load as ROM, save as SMAUG. Just copying the area files will not work.

Make sure you have the flag meanings set up correctly (in the configuration file) otherwise various flags may switch meanings.

Failing that, you can hack out the "load area" code and make it re-save as SMAUG (or stock ROM or whatever).

One day I'm planning to do a generic area editor that can be customised to (virtually) any area file format, but it isn't started yet. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


7,500 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]