Thursday, September 8, 2016

Coloring Terminal Text with ANSI Escape Sequences

If you have ever wondered how to print colored text to the command line, this is the post for you!

Pretty much all newer computers (including Windows 10 and above) allow for the use of ANSI escape sequences. ANSI escape codes are a holdover from the 1980's, but no one has come up with a better standardized way of modifying command line output, so they've stuck around long enough that even Windows has incorporated them. (Anyone, who is old enough to have dealt with IE6 gets that joke.)

Try typing the following into a terminal window.

printf "I'm \033[0;31mRED\033[0m"

Monday, September 5, 2016

Light for Rooms and Areas in CoffeeMud

Once you get CoffeeMud up and running, you're going to notice that during the game's night (hour 5) you can't see anything. Even as the Archon, you can't see anything. The easy solution as an archon is to type:

cast light

That makes it so you, as the CoffeeMud Archon can see. This, however, does not make life easier for your potential players. Imagine a first time player of MUD's logging in and all it says is, "You can't see anything." That's a horrible user experience for the first time player, and you can assume that it is the last time they will log into your MUD.

Saturday, August 13, 2016

CoffeeMud: Making Stats Trainers

So you've got CoffeeMud up and running, and you're an Archon. Cool. You're not done, yet.

When starting up a CoffeeMud based mud, you can go ahead and create your world, but you aren't done once you have a few areas for your players to wander around in and a few monsters to kill.

The issue is that players need trainers. Making a trainer isn't really obvious without a whole bunch of research. Here's the quick and simple steps for creating a trainer.

create mob genmob

Nice start. You should have got a response similar to the following

Monday, August 8, 2016

Professional Game Master (GM)

Time to make a MUD ...

Back in the day, I was huge into Dungeons and Dragons. I fell in love with the red box edition from the mid 1980's. That's Original Dungeons and Dragons, formerly called Basic Dungeons and Dragons for all you Role Playing Game (RPG) historians in the crowd.

Playing Dungeons and Dragons was fun, but I really loved designing adventures for other people to play. I loved being the Dungeon Master. The Dungeon Master (DM), or Game Master (GM) as he's called in many RPG's, is the player that acts as the story teller and rules enforcer for the Role Playing Game. One of the big roles of the DM or GM is to make maps of the world you're adventuring in.

Oh how I loved making fictional maps. In fact, I can remember drawing fictional maps from the time I was very young. Some how I thought it would be fun for people to imagine driving on the twisted, intertwining fictional road maps I drew. Drawing fictional maps are some of my earliest memories. (How's that for wierd ; - )

Wednesday, July 6, 2016

CoffeeMud Review

Multi-User Dungeons, A.K.A. MUD's, used to be more common than they are today.  A MUD is a fully, or at least mostly, texted based game. Think of it as an ongoing, interactive work of fiction.

Some people new to MUD's are probably thinking, "You mean like Twitter?"

Uh, ... well, ... minus the 140 character limitation, ... kind of.

MUD servers are commonly in the high fantasy genre, but don't have to be. They can be on any topic ranging from sci-fi, spy vs spy, romance, and even Sims style games. These days, most people play massive multi-player, 3D games. But it is quite relaxing to sit back and figure out a riddle, or slay dragons in a completely text based environment with no worries about the dexterity of your thumbs or mouse-hand. To quote CoffeeMud's website, "a MUD can be the most addictive, rewarding leisure experience of your life, if you give it a chance.  There are also numerous web sites and hundreds if not thousands of MUDs to play, each with their own special characteristics and twists to enhance the experience for all concerned."

Friday, February 6, 2015

Blazing Fast Clojure Command Line Tools

Clojure's a cutting edge lispy language, but has shared a common problem with Java. In the past, it took too long starting  up to use Clojure for creation of command line tools. When you type

ls -la

tail -f

cd /

or any other command, you expect immediate gratification, not ten seconds of painful lag. Clojure's finally on the command line train.

Now, I'm not the first coder to make fast command line apps with Clojure, but I'm still excited to share what I learned. So hold on tight. I'm going to give a very quick overview on how to create extremely fast command line tools with Clojure.