Palagpat Coding

Fun with JavaScript, game theory, and the occasional outbreak of seriousness

Saturday, February 13, 2010

MUGEN plugin for SyntaxHighlighter

Earlier today, I uploaded my first blog post that needed to include MUGEN source code. Between this site and my MUGEN-centric blog, I suspect it won't be my last. So, I took the time to put together a plugin for Alex Gorbatchev's excellent SyntaxHighlighter, and now I can post blocks of MUGEN code that get auto-magically highlighted, like this:

[State 1000, fireball]
type = Projectile
trigger1 = AnimElem = 1
ProjID = 1010
projanim = 1010
projhitanim = 1020
projremanim = 1020
projcancelanim = 1020
velocity = 6,0
offset = 0,-80
; HitDef
attr = S,SP
hitflag = MAF
guardflag = MA
animtype = medium
priority = 4,Hit
damage = 40,5
pausetime = 4,4
sparkno = S9992
guard.sparkno = 0
hitsound = S2,2
guardsound = S3,0
ground.type = Low
ground.slidetime = 8
ground.hittime  = 8
ground.velocity = -6,0
air.velocity = -2,-2

Anyway, I thought this was worth sharing, so for anyone interested, you can download a copy of the MUGEN brush for SyntaxHighter right here.

Labels: , ,

Sunday, January 17, 2010

Updated download: Bat'leth 3.1

This weekend I've been working with Bat'leth, a tool I wrote a number of years ago for text processing and data format manipulation, on a project for my Computational Linguistics graduate work that I'll be blogging about soon. As I worked with it, I noticed that it was looking quite dated. It didn't support XP-style controls, some of the button images were inconsistently styled and not properly masked, and so forth. (I also found a bug or two!)

As I wrote a few days ago, I have a love/hate relationship with my old Visual Basic code: I love how easy it is to hack together a "quick and dirty" tool when I need one, and I hate how hard it is to make it actually look polished and modern when finished. Then I stumbled across an add-on for VB called vbAdvance. It extends old-school VB in some very welcome ways, including the ability to compile an XP manifest file into your apps so that they support the newer visual styles (other cool features include the ability to create DLLs with function exports, console apps with no GUI, and several other nifty bits). Though originally commercial, it's now classed as "unsupported freeware," so if you or anyone you know does any work in classic VB, this is well worth your time.

Anyway, thanks to vbAdvance and a little surplus time this weekend, I've updated Bat'leth to version 3.1, now available on my downloads page as both an install package and full VB6 source code. Enjoy, and let me know if you find this at all useful.

Labels: , ,

Wednesday, January 13, 2010

Downloads: now with source code

I've fixed the broken links on my Downloads page. So far there are mostly only zip archives with the VB6 source code, with only one app that actually includes an installer. I intend to upload more binaries and/or installers soon; tonight I'm working on an update to Bat'leth that will help me do some work on my grad school project (I'll post more on that effort on my root blog in a day or two)

Labels: , ,

Broken downloads

So a few days ago I posted an update, in which I discussed moving the ancillary pages here on the site to PHP. Part of that update included a link in the titlebar to a refreshed version of my Downloads page, which includes a handful of tools of various levels of usefulness I've built over the years. Well, apparently I made the changes too late at night or too early in the morning, because I forgot to update the links to the actual downloads themselves! I'm at work now and can't access my FTP server, but I'll make the necessary changes tonight so that anyone who wants to download my tools... can actually do so.

Labels: ,