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
➜ Score table
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #15 on Fri 31 Oct 2003 09:50 PM (UTC) |
| Message
| Maybe you shouldn't be using Cygwin...... but, well, if you insist. :)
I think that Nick has a guide here that gives a pretty good explanation of how to set things up.
http://www.gammon.com.au/smaug/installingcygwin.htm
http://www.gammon.com.au/smaug/howtocompile.htm
I suggest that if you truly do want to venture down this path, you read those FULLY and follow them to the letter.
To answer your question, no, don't put the SMAUG stuff into Cygwin's source dir... that's the source dir for Cygwin stuff. You probably want to make a subdir "smaug" inside your home directory, and stick things in there.
MCCP is MUD client compression protocol, or something like that. It takes text, compresses it, sends out the compressed version, and the client decompresses it. It saves bandwidth (both on server and client) and so is generally a good thing. It's also fast enough where the extra processor load on the server is not signficiant. It just needs to be implemented... and that's not always easy, especially if you don't know how to code. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| USER007
(124 posts) Bio
|
| Date
| Reply #16 on Sat 01 Nov 2003 12:44 AM (UTC) |
| Message
| Thanks for the address but I keep getting these errors on cygwin:
$ tar xzf smaug1.4a_mxp.tar
tar (child): smaug1.4a_mxp.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Any help on how to fix this or what to do? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #17 on Sat 01 Nov 2003 01:37 AM (UTC) |
| Message
| If you can't open the file because it can't find the file, then obviously it's not there and you should put it there. :)
Put the tar file wherever it is you're running that command. To find out, type "pwd" at the Cygwin prompt - that will give you the Cygwin path. You'll need to translate that into a Windows path. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| USER007
(124 posts) Bio
|
| Date
| Reply #18 on Sat 01 Nov 2003 01:53 AM (UTC) Amended on Sat 01 Nov 2003 02:41 PM (UTC) by USER007
|
| Message
| | Lol. I put it in the home/owner direc and I typed ls and it found the file but it still gaves me the errors when I typed the tar thing. And I did what the guide told me to do, any other help? And what do you mean by translate windows path, as in: C:\cygwin... etc.? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #19 on Sat 01 Nov 2003 09:53 AM (UTC) |
| Message
| Well obviously you didn't do something right, since it's not working...
Could you paste what you get when you typed ls? You're probably not entering the tar command in the right spot, or you're not using the right file, or something to that effect.
ls isn't a search command, by the way, it just lists the directory contents.
Translating paths means changing:
/home/myUser/something
to
c:\[cygwin]\home\myUser\something
or something similar. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| USER007
(124 posts) Bio
|
| Date
| Reply #20 on Sat 01 Nov 2003 01:31 PM (UTC) |
| Message
| Heres what it says:
Owner@Anavel~
$ls
smaug1.4a_mxp.tar
Owner@Anavel~
$ tar xzf smaug1.4a_mxp.tar
tar (child): smaug1.4a_mxp.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Do I have to type the direc and then the tar thing? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #21 on Sat 01 Nov 2003 09:06 PM (UTC) |
| Message
| Just look at what it's telling you... it's saying it can't open smaug1.4a_mxp.tgz, not smaug1.4a_mxp.tar - which means that your file is not there.
You probably unzipped the .tgz file and put the tar file there.
If you don't have a .tgz file and can't find one (even though that should be the standard Unix distribution format), you can try entering
tar xf smaug1.4a_mxp.tar
instead. Note that without the z, it won't think it's zipped.
Here, you have a .tgz file, which is probably the one you downloaded but unzipped:
http://www.gammon.com.au/downloads/dlsmaug.htm
So you might want to check that out. You'll obviously have to adjust your file accordingly. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| USER007
(124 posts) Bio
|
| Date
| Reply #22 on Sat 01 Nov 2003 11:46 PM (UTC) |
| Message
| Thanks that solved that problem but I hate to say this, it gave me another error. : |
Owner@Starblazer ~
$ tar xf smaug1.4a_mxp.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 hea
tar: Error exit delayed from previous errors | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #23 on Sun 02 Nov 2003 01:03 AM (UTC) |
| Message
| | Then use the .tgz file and use the original instruction, like the guide says. I'm not sure how you got the .tar there instead of the .tgz in the first place... |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #24 on Sun 02 Nov 2003 09:24 PM (UTC) |
| Message
| Despite the suffix it might still be compressed. Try:
tar xzf smaug1.4a_mxp.tar
rather than
tar xf smaug1.4a_mxp.tar |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Samson
USA (683 posts) Bio
|
| Date
| Reply #25 on Mon 03 Nov 2003 11:32 AM (UTC) |
| Message
| | And it's entirely possible his browser renamed it on him. If you don't watch, sometimes that will happen when there's something on the system that's associated with the particular type of file. Winzip associations for .tgz, .gz, and .tar.gz often end up trying to be named with just a .tar extention. Leaving you with what Nick said. A .tar file that's actually still compressed. Rather annoying behaviour :P | | Top |
|
| Posted by
| USER007
(124 posts) Bio
|
| Date
| Reply #26 on Mon 03 Nov 2003 07:49 PM (UTC) |
| Message
| I tried what Nick said and I got this:
Owner@Starblazer ~
$ tar xzf smaug1.4a_mxp.tar
Owner@Starblazer ~
$
This is all it did. It took 5 secs for it to proccess the tar thing with no result. :| | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #27 on Tue 04 Nov 2003 04:13 AM (UTC) |
| Message
|
Quote:
And it's entirely possible his browser renamed it on him. If you don't watch, sometimes that will happen ...
It almost always happens to me. One of Windows' quirks. The "rename the file to something you didn't want" function. :P
Quote:
I tried what Nick said and I got this:
Owner@Starblazer ~
$ tar xzf smaug1.4a_mxp.tar
Owner@Starblazer ~
$
No error message? Sounds like it worked. Do a "ls" and see if the directory that was in the archive is now there. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| USER007
(124 posts) Bio
|
| Date
| Reply #28 on Tue 04 Nov 2003 03:50 PM (UTC) Amended on Tue 04 Nov 2003 06:47 PM (UTC) by USER007
|
| Message
| OMG! It worked! Thanks :o Ok now I'm going to use smaugwiz instead of the one that I just opened. Just one problem... I can't open the SmaugWizard Builder folder even though I type ls. I typed cd SmaugWizard Builder and it gave me something about bash. Do I have to tar a file for cd to work on it?
=Edit= Ok nvm for some reason it wasn't working th first time now it is... :o | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #29 on Tue 04 Nov 2003 07:33 PM (UTC) |
| Message
| On Unix based systems you need to be exact. This is a problem most notably for case-sensitive files:
cd MyDirectory
is NOT the same at all as:
cd myDirectory
is not the same as
cd mydirectory
So you just need to watch out for that. It's probably why your directory wasn't working.
I would suggest that you do all file manipulation under Windows explorer, in your cygwin/home/myuser/blablabla directories, and then only use cygwin to compile and run. No point in creating additional headaches for yourself. |
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.
98,082 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top