Running on a Windows machine?

  • Sascha
  • Sascha's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
2 years 8 months ago #5731 by Sascha
Running on a Windows machine? was created by Sascha
I've seen some references to being able to run this mud code on a windows machine, but I haven't been able to find any clear instructions on how to do it - I'm looking for a "Installing tbamud for dummies" kind of thing.

I have a machine that I can dedicate as a server on site, but it is configured for windows, and it has to stay that way. Am I out of luck?

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #5735 by thomas
Replied by thomas on topic Running on a Windows machine?
It can run on windows. See the docs in github.com/tbamud/tbamud/blob/master/doc/README.WIN
The following user(s) said Thank You: Sascha

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago - 2 years 8 months ago #5736 by Rumble
Replied by Rumble on topic Running on a Windows machine?

Rumble
The Builder Academy
tbamud.com 9091
Last edit: 2 years 8 months ago by Rumble.

Please Log in or Create an account to join the conversation.

  • Sascha
  • Sascha's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
2 years 8 months ago #5746 by Sascha
Replied by Sascha on topic Running on a Windows machine?
Thank you both very much. I'll get those and start reading! I'm hoping to install and start moving forward on Monday. I'm very excited to make this work for my new project!

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

Please Log in or Create an account to join the conversation.

More
2 years 8 months ago #5747 by fade
Replied by fade on topic Running on a Windows machine?
Personally I wouldn't bother with Cygwin. Instead download and install the Visual Studio Community Edition.
www.visualstudio.com/en-us/products/visu...io-community-vs.aspx
You can use the files in the attachment to get it running.

TBA Windows.zip
Put TbaMud.sln, TbaMud.vcxproj, TbaMud.vcxproj.filters, TbaMud.vcxproj.user in the root TbaMud folder.
Rename conf.h.win to conf.h and replace the conf.h file in <tba root folder>\src
Attachments:
The following user(s) said Thank You: Sascha

Please Log in or Create an account to join the conversation.

  • Sascha
  • Sascha's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
2 years 7 months ago #5753 by Sascha
Replied by Sascha on topic Running on a Windows machine?
Has anyone tested either of those options on a Windows 10 machine?

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #5754 by fade
Replied by fade on topic Running on a Windows machine?
Yes, I'm running Windows 10 + TBAMud successfully.
The following user(s) said Thank You: Sascha

Please Log in or Create an account to join the conversation.

  • Sascha
  • Sascha's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
2 years 7 months ago #5755 by Sascha
Replied by Sascha on topic Running on a Windows machine?
You rock, thank you so much!

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #5756 by fade
Replied by fade on topic Running on a Windows machine?
No problem. If you run into any trouble drop by TBA or my MUD (aridmud.com 4000) and I'll see if I can help.

Please Log in or Create an account to join the conversation.

  • Sascha
  • Sascha's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
2 years 7 months ago #5759 by Sascha
Replied by Sascha on topic Running on a Windows machine?
I'm trying an install using CYGWIN since it was suggested first, by Rumble. I am getting this error:

configure: error: no acceptable cc found in $PATH

There's no reference to this in the README.CYGWIN or in README.WIN . I've googled it and while I can't find a specific reference to this when using CYGWIN it does come up in regards to other compilers.

Should I A) hit my head against the desk until the obvious thing staring me in the face turns into a DOH! moment that we all can laugh at (always amusing, but probably not productive unless I load up on some serious caffeine first); B) uninstall CYGWIN, do a fresh download, and start over, or C) go with Fade's alternate method with Visual Studio?

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago - 2 years 7 months ago #5760 by Rumble
Replied by Rumble on topic Running on a Windows machine?
You have to tell it where the tbamud directory(path) is. I last setup Cygwin about 3 years ago. So things may have changed. I actually agree with Fade and that a full fledged IDE like Visual Studio is better for Windows users than a unix emulator like Cygwin. Especially since VS is now free.

Rumble
The Builder Academy
tbamud.com 9091
Last edit: 2 years 7 months ago by Rumble.

Please Log in or Create an account to join the conversation.

  • Sascha
  • Sascha's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
2 years 7 months ago - 2 years 7 months ago #5761 by Sascha
Replied by Sascha on topic Running on a Windows machine?
For the record: Caffeine, a lot more google, and tackling it from a different direction solved it, no head bashing needed. If anyone ever comes up with this again, just go back to the cygwin install, search for gcc, download and install the related files, and then proceed...

...until you get to this: "NOW change to the /tbaMUD/src directory "cd src", and type "make" -- there is no "make" command to use, but there is a bunch of "makefile" commands in there.

More caffeine needed! I'm going to try a fresh download and install because I'm stubborn - thanks for your direct help in the academy, Rumble. :) Failing that, I'll move to VS.

It's all worth it, to make a MUD worth playing, right? Right!

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...
Last edit: 2 years 7 months ago by Sascha.

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago - 2 years 7 months ago #5762 by thomas
Replied by thomas on topic Running on a Windows machine?
Missing "make" and "cc" seems to indicate you have not followed this section to the letter:

From README.CYGWIN(my emphasis)

Download from: cygwin.com/setup.exe
Select open.
Install from Internet.
Choose a root directory, I use C:\
Select "just me" "Unix / binary"
Select a local package directory, I use C:\WINDOWS\Temp
Leave Direct Connection selected.
Choose a download site.
You can either click the "circular arrow" next to All to install the whole
thing (it lags a bit, wait for it) or leave default and add the necessary
packages yourself by expanding devel and adding: autoconf, gcc, make, and
patchutils (choose the first one of each).
The all option requires
broadband and at least an hour to download. It will automatically install
once complete, just follow the prompts.


You need to make sure the gcc package (and the other mentioned here) are installed when installing cygwin. Good news, though - just run cygwin setup again, and tick the correct boxes (make sure not to have a cygwin prompt open when you do).

Edit: the "Makefile" is the configuration file for the "make" program. So yes, those are inthere :)
Last edit: 2 years 7 months ago by thomas.
The following user(s) said Thank You: Sascha

Please Log in or Create an account to join the conversation.

  • Sascha
  • Sascha's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
More
2 years 7 months ago #5763 by Sascha
Replied by Sascha on topic Running on a Windows machine?
Actually, I had a really incomplete download (despite clicking for all) from one of the sites. It should have tipped me off that the download only took an hour. I got a fresh download of everything from another site than the one I initially used, it took 6 hours to download, and now I have everything to the letter. Today I hope to have the time to reinstall and see where it takes me. :)

Thanks!

Dovie'andi se tovya sagain. After the Breaking MUD, now in beta testing...

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago - 4 months 2 weeks ago #6947 by Parnassus
Replied by Parnassus on topic Running on a Windows machine?

Fade wrote: Personally I wouldn't bother with Cygwin. Instead download and install the Visual Studio Community Edition.
www.visualstudio.com/en-us/products/visu...io-community-vs.aspx
You can use the files in the attachment to get it running.

TBA Windows.zip
Put TbaMud.sln, TbaMud.vcxproj, TbaMud.vcxproj.filters, TbaMud.vcxproj.user in the root TbaMud folder.
Rename conf.h.win to conf.h and replace the conf.h file in <tba root folder>\src


(Edit: I'm just going to point out here that 9 months and 3 weeks after I started posting in this thread, I worked out how to get TBA running on Windows 8.1 using Visual Studio. If this is what you're trying to do, check out my new thread if you haven't seen it already:
tbamud.com/forum/2-general/4436-running-...-using-visual-studio )

My computer broke down so I'm trying to get running on another computer and thought I'd try this. However, my problem, as always, is that I don't know anything about this. I downloaded the VS and the zip (there seems to be 2 zips there but they have the same things in them?) and followed the instructions in README.MSVC8. The only problem I had was in step 3: Select "Win32 Console Application." but used Console Application.

As the README says, I put all the .h files into HEADER FILES and all the .c files into SOURCE FILES. When I tried to build it, I got 74 errors that look like this:

Severity Code Description Project File Line Suppression State
Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?

The main window looks like this:
// Circle.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"


int main()
{
    return 0;
}

In SOLUTION EXPLORER my .h files have stdafx.h and my .c files have stdafx.cpp although I can't see either of those in my physical files. Am I supposed to put that in all my .c files? It isn't in there.

Thanks for all the help given so far and any help you can give me now.
Last edit: 4 months 2 weeks ago by Parnassus. Reason: Added link to newer thread

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #6956 by Parnassus
Replied by Parnassus on topic Running on a Windows machine?
I found some information here (if anyone is looking).

In the Visual Studio environment, use one of the following methods to resolve this error:
If you do not use precompiled headers in your project, set the Create/Use Precompiled Header property of source files to Not Using Precompiled Headers. To set this compiler option, follow these steps:
In the Solution Explorer pane of the project, right-click the project name, and then click Properties.
In the left pane, click the C/C++ folder.
Click the Precompiled Headers node.
In the right pane, click Create/Use Precompiled Header, and then click Not Using Precompiled Headers.

I'm now down to 2 errors and 18 warnings:
Severity	Code	Description	Project	File	Line	Suppression State
Warning	C4090	'function': different 'const' qualifiers	Circle	f:\games\tbawindows\src\dg_triggers.c	406	
Warning	C4018	'>': signed/unsigned mismatch	Circle	f:\games\tbawindows\src\dg_scripts.c	2424	
Warning	C4013	'close' undefined; assuming extern returning int	Circle	f:\games\tbawindows\src\comm.c	420	
Warning	C4308	negative integral constant converted to unsigned type	Circle	f:\games\tbawindows\src\act.wizard.c	1786	
Warning	C4307	'*': integral constant overflow	Circle	f:\games\tbawindows\src\act.wizard.c	1786	
Warning	C4308	negative integral constant converted to unsigned type	Circle	f:\games\tbawindows\src\act.wizard.c	1789	
Warning	C4307	'*': integral constant overflow	Circle	f:\games\tbawindows\src\act.wizard.c	1789	
Warning	C4308	negative integral constant converted to unsigned type	Circle	f:\games\tbawindows\src\act.wizard.c	1824	
Warning	C4307	'*': integral constant overflow	Circle	f:\games\tbawindows\src\act.wizard.c	1824	
Warning	C4308	negative integral constant converted to unsigned type	Circle	f:\games\tbawindows\src\act.wizard.c	1827	
Warning	C4307	'*': integral constant overflow	Circle	f:\games\tbawindows\src\act.wizard.c	1827	
Warning	C4308	negative integral constant converted to unsigned type	Circle	f:\games\tbawindows\src\act.wizard.c	2025	
Warning	C4307	'*': integral constant overflow	Circle	f:\games\tbawindows\src\act.wizard.c	2025	
Warning	C4308	negative integral constant converted to unsigned type	Circle	f:\games\tbawindows\src\act.wizard.c	2027	
Warning	C4307	'*': integral constant overflow	Circle	f:\games\tbawindows\src\act.wizard.c	2027	
Warning	C4013	'_chdir' undefined; assuming extern returning int	Circle	f:\games\tbawindows\src\act.wizard.c	4000	
Warning	C4013	'execl' undefined; assuming extern returning int	Circle	f:\games\tbawindows\src\act.wizard.c	4003	
Warning	C4013	'getpid' undefined; assuming extern returning int	Circle	f:\games\tbawindows\src\act.comm.c	167	
Error	LNK2005	_main already defined in comm.obj	Circle	F:\Games\TBAWindows\Circle\Circle\Circle.obj	1	
Error	LNK1169	one or more multiply defined symbols found	Circle	F:\Games\TBAWindows\Circle\Debug\Circle.exe	1

I think I'm getting closer :)

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #6958 by fade
Replied by fade on topic Running on a Windows machine?
Hi Parna,

If you log into tbamud I can probably help you. It's easier to chat about it in real time though :)
(feel free to delete this message once you've read it, I couldn't work out how to PM you)
- Fade

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago - 4 months 4 weeks ago #6959 by Parnassus
Replied by Parnassus on topic Running on a Windows machine?
I've now forced my way past the errors using information from here .
### To set this linker option in the Visual Studio development environment  
  
1.  Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../Topic/Working%20with%20Project%20Properties.md).  
  
2.  Click the **Linker** folder.  
  
3.  Click the **Command Line** property page.  
  
4.  Type the option into the **Additional Options** box.
     *Edit: the option is "/force" without the brackets of course*

Me being me, I don't understand what all this means. I just know that I got lots of warnings and messages followed by:
1>Done building project "Circle.vcxproj".
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

I put circle.exe into the root, as instructed and it actually works! I don't know if the warnings will affect anything later but for now, I've got a place to go wandering!
Last edit: 4 months 4 weeks ago by Parnassus. Reason: I forgot to mention the main point!

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #6991 by Parnassus
Replied by Parnassus on topic Running on a Windows machine?
I realized that the mud I compiled was an old copy so I downloaded a copy of 3.68 and started over. I again read README.MSVC8 for the main information. Before getting out of properties, I did as I indicated earlier,
In the left pane, click the C/C++ folder.
Click the Precompiled Headers node.
In the right pane, click Create/Use Precompiled Header, and then click Not Using Precompiled Headers.
However, this time I got a lot of errors. Fortunately, Todd has already posted these errors and Thomas has replied.
tbamud.com/forum/2-general/3820-do-these...apply-to-tbamud#4889
Unfortunately (sorry, Thomas) I don't know how to do that.

What is an MSSP-patch, please?

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #6993 by thomas
Replied by thomas on topic Running on a Windows machine?
There is a patch in the downloads section, called "TBAmud 3.66 changes for windows" (here : drive.google.com/open?id=0B40XbRH2Qbx5MFQ4SzNBSkViS0k ) .

This patch adds a new conf.h.win file - which will need to be copied to src/conf.h and which has a bug. It lacks the necessary import for winsock in the MSVC part, which is what the previous answer tells about.

It also includes the necessary MS VS project files to get started.

Unfortunately something is still not right after one does this - the mud has a bug with these settings causing it to crash after a couple of minutes. I have still not been able to pin it down - apparently somewhere we're either clobbering memory or freeing something we're not supposed to. This doesn't happen on linux or when compiled in cygwin, so it might be some library included by visual studio that's causing it.

So, I recommend that instead of going through all that trouble, you run tbamud under cygwin.

Please Log in or Create an account to join the conversation.

Time to create page: 2.926 seconds