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 ➜ ROM ➜ Compiling the server ➜ Compiling Icy Depths

Compiling Icy Depths

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


Pages: 1  2 

Posted by Spear   (4 posts)  Bio
Date Reply #15 on Tue 26 Apr 2005 12:09 PM (UTC)
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?
Top

Posted by Zsuzsu   USA  (4 posts)  Bio
Date Reply #16 on Tue 26 Apr 2005 08:24 PM (UTC)
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
Top

Posted by Thornan   (8 posts)  Bio
Date Reply #17 on Thu 27 Oct 2005 03:47 AM (UTC)
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
Top

Posted by Primoperfect   (4 posts)  Bio
Date Reply #18 on Wed 08 Feb 2006 02:12 AM (UTC)

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.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #19 on Wed 08 Feb 2006 02:15 AM (UTC)
Message
I suppose just comment out the getline in string_edit.c.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Primoperfect   (4 posts)  Bio
Date Reply #20 on Wed 08 Feb 2006 03:17 AM (UTC)

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.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #21 on Wed 08 Feb 2006 03:38 AM (UTC)
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
Top

Posted by Primoperfect   (4 posts)  Bio
Date Reply #22 on Wed 08 Feb 2006 03:43 AM (UTC)
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?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #23 on Wed 08 Feb 2006 04:20 AM (UTC)
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
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.


85,422 views.

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

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.