Can't get 'debug\dawn --createdirs' to work

Posted by BishopOsiris on Wed 01 Jul 2015 06:42 PM — 11 posts, 42,707 views.

USA #0
I'm trying to get DoT dawn1.69s.beta6 up and when I get to here:

21 Press <ctrl>+F5 and click on yes to compile the code if required
MSVC++ will compile the Dawn code then attempt to run the code
we need to create the missing directories using the 'dawn --createdirs' command.
22 open a command prompt
23 c: (change into c:)
24 cd \dawn (change into the dawn directory)
25 debug\dawn --createdirs (run the dawn binary you just compiled in directory create mode)

I can't get debug\dawn --createdirs to work. I've tried every variation I can think of and I get 1 of 2 errors:

The system cannot find the path specified.
or
'dawn\debug\--createdirs' is not recognized as an internal or external command, operable program or batch file.

I'm using MS Visual Studio Community 2013 (free) and the source code compiles. I had to add:

#pragma warning(disable: 4996) to comm.cpp
#define _WINSOCK_DEPRECATED_NO_WARNINGS to comm.cpp
#define _WINSOCK_DEPRECATED_NO_WARNINGS to dawnstat.cpp
#define _WINSOCK_DEPRECATED_NO_WARNINGS to netio.cpp
#define _WINSOCK_DEPRECATED_NO_WARNINGS to resolve.cpp

I don't see a way to attach files but I'm using:

dawn1.69s.beta6-src.tgz
dawn1.69s.beta4-support.tgz

I can certainly send these if they would help you trouble shoot. Again, everything compiles fine I just can't get the --createdirs command to work. Any help would be appreciated.

Bishop
Australia Forum Administrator #1
First step is to make sure you have dawn.exe as an output from that compile.

Quote:

'dawn\debug\--createdirs' is not recognized as an internal or external command, operable program or batch file.


That's two words. The "--createdirs" is an argument to the program "dawn.exe". There should be a space there.
USA #2
Sorry, Nick. That probably did look a little confusing. What I meant when I said:

I've tried every variation I can think of and I get 1 of 2 errors:

The system cannot find the path specified.
or
'dawn\debug\--createdirs' is not recognized as an internal or external command, operable program or batch file.

is that I've tried all three separately and received:

dawn is not recognized as an internal or external command, operable program or batch file.

debug is not recognized as an internal or external command, operable program or batch file.

--creatdirs is not recognized as an internal or external command, operable program or batch file.

After you explained that I should be looking for dawn.exe file I realized that 1) it wasn't in the dawn directory at all because VS Community has a weird filing system and placed it somewhere else and 2) since I named the project DawnOfTime instead of dawn the file is actually called DawnOfTime.exe. So I found the file and ran the --createdirs command and it tells me it creates all the directories, directory creation completed successfully, and to start the mud normally to continue. So I follow the instructions in the start-up manual from Kalahn. I've tried ctrl-F5, Build Solution, Rebuild Solution, Build DawnOfTime, Rebuild DawnOfTime, and Compile. All come back with the same result. I get a DOS box that says all the directories I just created do not exist and it gives me instructions to go back and do exactly what I just did to create them.

What am I doing wrong?
Australia Forum Administrator #3
You've got the exe, great. As I recall you typed:


dawn --createdirs


... once only to create the directories, and then:


dawn 


(The same program) to start the MUD up. You don't need to recompile it at this point.
USA #4
Ok, I've got this working. Kalahn's Getting Started doc is a bit out of date so I made another up-to-date one. I don't see a way to post documents to this site so can I just email it to you? I imagine it will be handy for anyone trying to load up the Dawn codebase in the future.
Australia Forum Administrator #5
OK - I sent my email address by PM.
USA #6
Sorry, Nick. I've looked all over this site. I even did a search and I can't find the Private Message section anywhere. Can you point me in the right direction?
Australia Forum Administrator #7
You should have got an email from me via the forum. If you click on someone's profile you should see an option to send them a message.
USA #8
Nick Gammon said:

You should have got an email from me via the forum. If you click on someone's profile you should see an option to send them a message.


Nick, this is the email I got:

Quote:

This message is from Nick Gammon at Gammon Forum.

--------------------------------------------------------
> Kalahn's Getting Started doc is a bit out of date so I made another up-to-date one. I don't see a way to post documents to this site so can I just email it to you?

OK - send it to my email address.

--------------------------------------------------------
You can visit the forum at:

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

- Nick

- -
Nick Gammon - Gammon Software Solutions

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


As you can see, your email address is not there. I tried using the link in your profile but that wouldn't accept the image files in my document.

Just to make this easier, if anyone wants the document just email me and I'll send it to you.

bishoposiris@gmail.com
Australia Forum Administrator #9
Oops. OK I sent you another email from me personally.
Australia Forum Administrator #10
The "getting started" document that Bishoposiris has kindly provided is available for download from:

http://www.gammon.com.au/files/mushclient/How_to_Start_Up_Dawn_Of_Time.pdf (2.6 MB)

This is a 28-page PDF document which has a lot of helpful information.

I suggest you RH-click and select "save target as" or whatever your web browser offers, to make a local copy of it.