Temple of The Roguelike Forums

Development => Programming => Topic started by: Nekoninja on April 15, 2013, 07:13:52 AM

Title: Most popular IDE and curses library?
Post by: Nekoninja on April 15, 2013, 07:13:52 AM
Hello RPG programmer,

I am a newbie when it come to programming a RPG game.  I am wondering what is the popular IDE and curses library to use to create RPG games? I have MSVS 2010, and Netbeans on my computer. Does any one ever use PDcurses or libtcod with MSVS 2010 and how to do it?  :o

Much appreciate for your time helping me,
Title: Re: Most popular IDE and curses library?
Post by: Ex on April 15, 2013, 07:50:43 AM
I use MSVC. It's my favorite environment to develop in because it allows me to be very lazy while still writing code at a fast pace. The way that it automatically shows what variables and functions are a part of a class whenever you put in a . or -> is very, very nice. Also the ease of debugging, finding of every reference to anything with two clicks, and other such features are nice. I've also used it for so long that I know the ins and outs of configuring it pretty well. Having said that, emacs is a damn nice development environment, but it lacks the user friendliness that MSVC has.

Anyway, I've used both pdcurses and libtcod with MSVC. It's the same as using any other library. Just include the library in the project settings, and set up the include directories for the library and the headers in the project settings, and you're pretty much good to go. Remember to copy the DLLs to the debug and release directory. Of course, you might need to alter how you're declaring main, or what type of thing you're compiling (multithreaded dll, console project vs. windows, etc.), but that's pretty minor. Look at the library documentation if you run into trouble.

I would recommend libtcod over pdcurses. Pdcurses works, but it's slow and antiquated. Libtcod is one of the best libraries I've ever used. It is really, really nice.
Title: Re: Most popular IDE and curses library?
Post by: TheCreator on April 15, 2013, 08:41:49 AM
Whether you are creating RPG or anything else, MSVC is the best IDE ever, so stick to it and you'll be happy :).
Title: Re: Most popular IDE and curses library?
Post by: eclectocrat on April 15, 2013, 02:54:53 PM
I have an irrational hatred of MS, and yet I have to concede that Visual Studio really is the best general purpose IDE ever. Credit where it is due...
Title: Re: Most popular IDE and curses library?
Post by: Nymphaea on April 15, 2013, 04:15:00 PM
IDE's are very personal, kind of like graphic editors and pretty much any other tool. I personally have been using Eclipse for a long time, and prefer it over VS. My main selling point is portability, I use both Linux and Windows, so I need something that can work on both.

And using libraries is generally IDE specific, but I'm sure it can be done with any IDE if you know how to set it up.

More important though is how much experience you have with programming, and what language you use.
Title: Re: Most popular IDE and curses library?
Post by: requerent on April 15, 2013, 06:48:44 PM
I have an irrational hatred of MS, and yet I have to concede that Visual Studio really is the best general purpose IDE ever. Credit where it is due...

I hate how true this is. The engineers behind VS are very very clever. I use it for Python and UnrealScript mainly, but C# with LINQ is a joy to work with.


Oh, but FlashDevelop is as awesome if you work in Flash or HaXe- you can natively load libtcod or curses into HaXe and develop native Apps in a manner that is very 'C# w/out .NET'~ish.
Title: Re: Most popular IDE and curses library?
Post by: Krice on April 15, 2013, 07:42:52 PM
I personally have been using Eclipse for a long time, and prefer it over VS. My main selling point is portability, I use both Linux and Windows, so I need something that can work on both.

I have set up some of my projects for both VS and Code::Blocks (with gcc) at the same time, so VS doesn't really take away portability, at least not with C++. The recent C::B is a lot like VS by the way, but VS is still better.

I think one of the best features of VS is the debugger. It's much better than gdb in C::B.
Title: Re: Most popular IDE and curses library?
Post by: Quendus on April 15, 2013, 08:45:23 PM
The problem with VC++ is that it's very permissive about code that's not standards-compliant. If you spend too long on a project in VS without trying to compile it in g++, chances are you'll end up with a mass of incomprehensible errors and a project that should in theory be portable to linux is locked into windows.
That said, VS is an excellent IDE.
Title: Re: Most popular IDE and curses library?
Post by: Krice on April 15, 2013, 09:34:53 PM
chances are you'll end up with a mass of incomprehensible errors and a project that should in theory be portable to linux is locked into windows.

It's possible if you use a lot of C-style library functions and programming. The only place where I had problems in Teemu was filetool.cpp (make and change directory) and in that case it was Linux that needed some extra non-standard stuff.
Title: Re: Most popular IDE and curses library?
Post by: TheCreator on April 16, 2013, 05:50:14 AM
The problem with VC++ is that it's very permissive about code that's not standards-compliant. If you spend too long on a project in VS without trying to compile it in g++, chances are you'll end up with a mass of incomprehensible errors and a project that should in theory be portable to linux is locked into windows.

Not a big problem since g++ is available for Windows, too. And, of course, frequent checking if the code compiles on the other platform is a good idea. I often forget about it because I really hate Linux, and indeed, I often end up with some errors (those are usually easy to fix, but very annoying). It is also worth mentioning that VS gets improved in this field (compliance) from version to version. And that you should never use goto ;).
Title: Re: Most popular IDE and curses library?
Post by: ekolis on April 16, 2013, 07:01:49 AM
Surprised there are so many people singing the praises of Visual Studio, so I won't bother jumping on that bandwagon. Instead I'll also mention Eclipse. You can program in pretty much language under the sun (ha ha) with Eclipse and the right plugin. Except C#, it seems, which happens to be my favorite language, explaining why I don't use Eclipse all that much. :P But I do use it for this one Perl project that I'm involved in...
Title: Re: Most popular IDE and curses library?
Post by: TheCreator on April 16, 2013, 07:24:42 AM
One bad thing about Eclipse is that it relies so heavily on plugins. With VS you can start programming right away after installing it, but Eclipse lacks some basic stuff like debugging support for STL - yes, you have to install a plugin for that! This is insane. But the worst thing is that Eclipse stores its settings per workspace. I don't know what could be the reason to have different font settings for every project, but that's Eclipse programmer's world. And you can't just copy the settings from one workspace to another because each of the thousand plugins stores its settings separately... Plugins here, plugins there, I'm almost glad that in VS Express you are not even allowed to install any plugins :).
Title: Re: Most popular IDE and curses library?
Post by: daver64 on April 16, 2013, 11:39:27 AM
I've been happily using QTCreator for a long time now. It's very good if you do a lot of cross platform work between *nix and windows as I do :)
Title: Re: Most popular IDE and curses library?
Post by: cupcake on April 16, 2013, 05:08:46 PM
The problem with VC++ is that it's very permissive about code that's not standards-compliant. If you spend too long on a project in VS without trying to compile it in g++, chances are you'll end up with a mass of incomprehensible errors and a project that should in theory be portable to linux is locked into windows.
That said, VS is an excellent IDE.

You may use the /Za (http://msdn.microsoft.com/en-us/library/0k0w269d.aspx) switch to disable Microsoft specific language extensions.
Title: Re: Most popular IDE and curses library?
Post by: jlund3 on April 18, 2013, 06:47:50 PM
Vim + Unix toolchain anyone?
Title: Re: Most popular IDE and curses library?
Post by: Krice on April 19, 2013, 12:59:47 PM
Vim + Unix toolchain anyone?

It's the least popular.
Title: Re: Most popular IDE and curses library?
Post by: Nekoninja on May 23, 2013, 02:41:37 AM
Thank you everyone who replied. I appreciated it. I was able to get the PDCurses to work with my MSVC 2010. Found some games that use PDCurses to read the codes and learned from them.

Thanks everyone again.