"When you have it all working and the code compiled and running, you can connect to the running server vie any client in windows using the IP 192.168.11.150 and whatever port your using."
I have in fact read your compiling overview when I started out using cygwin, but i was receiving errors exactly matching those of the following thread:
So I moved researched and found no answers. I moved on and decided to use andLinux. After installing and messing with it, the 'make' command didn't even work without downloading g++ which I don't see why I need since this is C and not C++.
Anyhow, I installed that g++ add-on and started playing with make. I don't know if I'm just missing libraries or requisite add-ons that I need to compile correctly but somehow I can't get a good compile.
When I use the gcc commands I get a huge list of errors. Using make, I can make the .o files from the corresponding .c files but no executable comes with it [edit: the smaug executable is in fact created when i 'make smaug'].
And yes, the files, after inputing 'ls -l" are years old - at least most are. Some are of today's date, including smaug. However, the .o files I created are of the correct date [today].
[edit] Do i have to make any changes to the makefile depending on what programs I use? I noticed some things are commented when it says 'uncomment if using cygwin' for example, which I never bothered to look at.
The command "ps" shows which processes are running, you type that from a command prompt. To narrow it down, you could type:
ps -waux | grep smaug
That would show processes with smaug in the name.
Quote:
is this 'smaug' file that I am running something that came with the code i downloaded or did I actually compile this
From the command prompt, type "ls -l". Does the date/time on the smaug file agree with when you compiled it, or is it years old? (that is -L in lower case, not the number "one").
Amended on Thu 19 Mar 2009 12:31 AM (UTC) by DemiGod
Message
ps?
I am using mushclient, but telnet doesn't work either.
here's the end of the command:
Tue Mar 18 15:11:55 2008 :: Initializing socket
Tue Mar 18 15:11:55 2008 :: IMC: Loading IMC2 command table...
Tue Mar 18 15:11:55 2008 :: IMC: Loading IMC2 network data...
Tue Mar 18 15:11:55 2008 :: IMC: Loading IMC2 help file...
Tue Mar 18 15:11:55 2008 :: IMC: Loading IMC2 color table...
Tue Mar 18 15:11:55 2008 :: IMC: Loading IMC2 who template...
Tue Mar 18 15:11:55 2008 :: IMC: imcfread_word: EOF encountered on read.
Tue Mar 18 15:11:55 2008 :: IMC: IMC2 network data loaded. Autoconnect not set. IMC2 will need to be connected manually.
Tue Mar 18 15:11:55 2008 :: (Name Not Set) ready on port 4000.
also, is this 'smaug' file that I am running something that came with the code i downloaded or did I actually compile this? I ask because once i change some code, i want to know if i will be back to square one with all these compiling issues.
I found one decent article about compiling but it doesn't really help me too much and I can't find anything else.
Amended on Wed 18 Mar 2009 06:24 PM (UTC) by Nick Cash
Message
If you ran the Makefile it should have produced an executable for you. Try running the default startup script and see what happens. The default binary should be named 'smaug' if I recall correctly.
Yes, that is the most current, I just wasn't sure if it was what you were using. (usually the first thing to say in a question like this is what codebase/version you're using, where you got it, etc.)
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
It's fairly likely that the compilation errors are coming from the code itself, not from the environment (AndLinux vs. Cygwin vs. ...)
If you're using a SMAUG base, or an older FUSS base, it's likely that you're getting the (in)famous constness errors. My suggestion would be to upgrade to the latest version of SmaugFUSS -- it's technically better than vanilla SMAUG anyhow.
As for your question, Nick is right, you can probably put it wherever it makes sense to you, but you'll have to hook into the standard mechanisms. For instance you'll need to add your new do_function to the skill table, and create your skill using the OLC commands.
If you're messing with skills, it's usually better to not play many games with renaming existing skills since they could be referenced in area files, for example. It's easiest to create new ones, and then just disable the old ones from the OLC commands.
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
i can't find and sources on using andlinux, but cygwin just wasn't working for me. I was having the same errors come up as the other post by dbaker that had to do with none of the commands working in game.
I decided to install andlinux. Does anyone have experience with smaug and andlinux? For the life of me, I can't find any good information on how to go about compiling this code. I just get errors upon errors.
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.