Role Playing | Technology

November 10th, 2007 by Daniele Muscetta

Role Playing | Technology

Role Playing | Technology, uploaded by Daniele Muscetta on Flickr.

I had not been playing Role Playing Games anymore for nearly 15 years. My wife recently thought that Joshua would be big enough to try, so I am trying to introduce him to the world of RPGs. This, as you can imagine, after all of that time, took back memories, ideas, and also made me think of how much the technology changed this all.

I am not at all referring to VIDEO or ONLINE games, even those that are marketed as being RPGs: most of them are not "real" RPGs anyway, they merely borrow some rules. I am saying that technology changed the way people ORGANIZE and prepare their role playing gaming experience (=the one played with real RPGs where you have to ACT a character), and how they interact with each other, and how the "knowledge" spreads.

When I was playing RPG a lot, in the 80's and early 90's, everything was paper-based, no Internet and technology in sight. For example, we photocopied a lot of stuff back then, as opposed to today when I just downloaded and printed a character sheet. But it was not just printed material that was being photocopied: in those years I remember myself handwriting my own extended set of rules, manuals, scenarios, description of places (I even kept and found back some of those!). Everything was handwritten: text, drawings, maps. A lot of work, very hard to mantain. But passion was driving me (and my friends at that time too). That has also been a big enabler in how I taught myself to read and write english: by translating handbooks that nobody had translated in italian. But I digress.

We use to go to a couple of highly specialized shops that were able to import and resell one or two copies of some rare handbooks of a strange game that would otherwise not sell at all. Sometimes even the specialized shops did not manage to get the originals of some of those rare books. Therefore, some of the expansions were sold as photocopies.
Some other times there had been some guy somewhere who did have one copy bought in the US and he took the effort to make an UNofficial translation and TYPEWRITE it in italian. Photocopies of this "product" was all that was circulating.

I am not talking or caring of copyright or "pirate" issues here. We were not "avoiding" the original stuff: if anybody would have told us that the stuff we wanted was actually available in its original format, we would have bought it. But it just wasn't available at all, and we wanted it. This kind of material was really close to impossible to get, with high costs, and all that us busy kids wanted was books with descriptions of imaginary fantasy worlds to place our characters in, and improvise and narrate our stories and saga's…

Also, all in paper format, what was circulating was a certain number of fanzines, also photocopies of an original, wonderful, "master copy" that someone had made with a typewriter and sticking pictures with glue on the paper. Desktop publishing was not that common nor easy yet. But the layout is not really what interested me, it was the CONTENT that was hard to spread.

At one stage, the thing improved slightly: I finally managed to convince my parents that I was allowed to get a modem, so I started using it to connect to various BBS. A couple of those BBS of the time were related to RPGs or had a related discussion area. I was interested in technology and in knowing how it was doing its magic, but most of all I was also pretty excited at the possibilities I saw for the technology as an enabler in connecting people. Just like I am now.
I have met some good friends on BBS's at that time. I'm still in contact with some of them, I've lost some other ones, like it happens in life anyway. But the possibility was showing quite clearly: those BBS were mostly text-based, with high connection costs (in italy were you pay every call, also local ones, per minute)… even in those circumstances they were managing to aggregate some people and were used as vehicles to spread the knowledge.
In Italy, thought, they were mostly local. International calls were prohibitively expensive. Of course we did hear of what happened to similar BBS in the US.

In fact, after pencil and paper, through a typewriter, the revolution started there: being able to type stuff on a computer and pass your file over to someone else made it easier for it to spread. But again, I am not talking about copyrighted material. I am mostly talking about self-produced material. I still remember I had troubles with digitalizing maps because I did not own a scanner… on some of the BBS people were sharing their works, and you could find good adventures and extra stuff on them. I also got to publish somewhere a couple of those I had written, and they even made it on a fanzine first, and then on a real magazine.

At one stage, though, I really got distracted. I probably thought I was "big enough", or I got too interested in the "serious" computing business, or I was too busy with other stuff. Probably a combination of many factors. So I sort of abandoned playing for a long time.

Now, looking back at that world, more than a decade later, I can see how it all changed: you go to the Internet, use any search engine and find dozen if not hundred of sites with forums, people playing online using Live Messenger, people sharing their adventures or their stories of the adventures they have played, other sites that collect all of the covers and information about all the booklets and manuals ever existed for any possible version of any game. Even the vendors are giving out stuff to play for free.

PCs and the Internet DID change the world, if anyone was still doubting. And yes, Role Playing Games and computing ARE related interests.

The world changed, yet it stayed the same: you still play those games with people, with the help of your imagination. It's the resources that are now at your fingertips.

Monitoring Syslog with OpsMgr 2007

November 9th, 2007 by Daniele Muscetta

I had missed it… finally guidance on how to collect and monitor UNIX syslog in System Center Operations Manager 2007 has been published!

This is much more sysadmin-oriented than what was availble before (that remais of course still relevant, but more from a Management Pack developer's point of view, who wants to know how things work "behind the hood").

Using Live ID to authenticate to WordPress

November 2nd, 2007 by Daniele Muscetta

Yesterday I've been hacking a bit with the Windows Live ID SDK and I wrote a very small and simple plugin for WordPress that enables you to login in to WordPress with your passport Live ID.
I had read in various places that such a plugin would be welcome… I looked around and found none yet (if anyone has instead already written something like this and I missed it I will happily waste the simple stuff I did for something more advanced/well written… just let me know :-) ).
I took a look at a similar experiment, and eventually even found that there is some conceptually similar plugin written to work with OpenID. The wordpress openid plugin is much more complex and much more advanced than what I did, tough. It will let you log in with just ANY OpenID user, it will automatically create a user for you on that wordpress installation and associate it with your ID, even just for the purpose of commenting, etc.

But in my blog I don't require or need people to actually log in to do anything. I actually like anonymous/free comment. A CAPTCHA takes care of spammers and I am fine with it so far. Probably for a big site with a lot of users it might make sense, but for my blog so far it doesn't. But there's one thing for which this is instead useful: I have always been worried, when logging in through HTTP (thus, without SSL) to my blog from networks I don't manage or completely trust, that my password could be sniffed over the wire and stolen. Live ID solves my problem by letting Microsoft validate my identity: I have associated my Live ID to the blog's main user account(=myself), the one writing this post. So the plugin in its current form is used as a replacement of the login form (the standard wp-login.php wordpress form CAN still be used if you like, of course, you just don't HAVE to. Also the use of xmlrpc will still require local user/pwd combination.). Anyway, this new form will authenticate you thorugh Live ID and then check if your Live ID is associated to any local user. If it is, it will log you on to wordpress with that account. Otherwise it will inform you that you are successfully logged on to passport Live, but unfortunately there is no corresponding local account for you, and that it would need to be set up. Setting it up is as difficult as adding a line to the database… probably adding a form or a property page would be nice, but in my case I just did it with a query:

INSERT INTO `wordpress`.`wp-usermeta` (
`umeta_id` ,
`user_id` ,
`meta_key` ,
`meta_value`
)
VALUES (
NULL , '1', 'LiveID', 'f11fa1d3e82c68776f94a3a5c459b70b'
);

which adds an extra "property" for the first user (admin) called 'LiveID' which contains your Live ID (the one above is not my real one, in case you were wondering). When you are authenticated by LiveID and you get back this value, the plugin checks in this table which WordPress userid in the database has been associated with this Live ID and – if it finds one – it authenticates you as that user. Of course you should not have duplicates.

My code is mostly based on the SDK PHP Sample, with some modification to integrate it in WordPress as a plugin. Of course I removed the file that is used as "user database" and used wordpress DB instead.

There's a ton of things that could be improved. I just did not put any more effort and time in it. As you might know if you read this blog, I am not a full time developer. Actually I shouldn't write code at all for work and I am mainly considered an "infrastructure" guy. Anyway, I would like to code more and even if I am not supposed to, I always try to find stimulating situations that require a bit of integration, thinking out of the box, some scripting, etc…

[updated: november 3rd 2007] You can download the sample plugin "AS-IS" here: liveauth.zip . This has only been tested and only works with Wordpress 2.3.x serie (but should also work with earlier versions – not tested)

[updated: march 30th 2008] Wordpress 2.5 has changed the way the authentication cookie is generated, therefore here is an updated version of the plugin that works with the new secure cookies: liveauth02.zip
I should really invest some more time in this and clear up the code. I should also make an interface to make the configuration easier, and maybe make a version that works on both 2.3 and 2.5 branches. I am not sure when I will have time for that, though…

[updated: april 20th 2008] I have released version 0.3c of the plugin which now finally includes a simple configuration page, and should work on both WordPress 2.3 (and older) and on the 2.5 brach. Please visit the new Windows Live ID Authentication WordPress Plugin Page.

Disclaimer:
The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my own personal opinion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
THIS WORK IS NOT ENDORSED AND NOT EVEN CHECKED, AUTHORIZED, SCRUTINIZED NOR APPROVED BY MY EMPLOYER, AND IT ONLY REPRESENT SOMETHING WHICH I'VE DONE IN MY FREE TIME. NO GUARANTEE WHATSOEVER IS GIVEN ON THIS. THE AUTHOR SHALL NOT BE MADE RESPONSIBLE FOR ANY DAMAGE YOU MIGHT INCUR WHEN USING THIS PROGRAM.