Archive for June, 2007

Modded vc_javascriptslideshow

Friday, June 15th, 2007

I’ve modified the TYPO3 extension vc_javascriptslideshow from ground up. The vc_javascriptslideshow is a javascript/css based slideshow that flips images and I needed to be able to control it fully from TS. That ended up in adding a few extras as well.

The extension now includes

  • added full support for TS configuration
  • added support for multiple slideshows on one page
  • Added settings for border and background for the slideshow (stylesheet settings on a surrounding div)
  • Changed the file rezise to use IMG_RESOURCE instead of custom exec of IM and now use width/height attributes there. This makes it also possible to define w/h as ie 200m or 200c for cropping or relative resize (see the static ts template).
  • added support to (in TS only so far) define a path from where all images should be taken.

TypoScript example setup, included via TV element:

  1.  
  2. lib.topBanner < plugin.tx_vcjavascriptslideshow_pi1
  3.  
  4. lib.topBanner {
  5.   //specify path from where to fetch images
  6.   imagesPath = fileadmin/bilder/banners/
  7.   //..or a use a specified list of images
  8.   //  imagesList = Vinter.jpg,Solnedgang.jpg
  9.   altText = informationsruta
  10.     imageWidth = 500
  11.   imageHeight = 70c
  12.   //override imagesList to fetch all images
  13.   getAllFromPath = 1
  14.   //number of millisecond for each transition
  15.   msTransitionDelay = 140
  16.   //background color for slider space
  17.   #backgroundColor = #ccc
  18.   //a possible border if you like
  19.   borderSize = 0
  20. }
  21.  

The extension probably contains some bugs, but works for my purpose. I will try to add some documentation soon.
I have e-mail the original author hoping that he will include it in the official release. Otherwise I’ll probably add a new ext.. (*hrhr*).

Download the modified ext. (unpack, upload and update ext in EM).

Running chatzilla on it’s own

Monday, June 4th, 2007

I’m using irc quite often and most of the time I use the ChatZilla client for that. Normally chatzilla is an extension to Firefox (-ish browsers), but it can be quite annoying to have it tied up to your browser. Quitting the browser quits your irc-session.. Now I found the cure for it – XULRunner. It seems to work like a charm and it’s easy to setup.

I did these steps in cmd shell (yes in Windows XP) after downloading XULRunner and solo ChatZilla zip packages:

  1. C:\Program>cd xulrunner
  2. C:\Program\xulrunner>xulrunner.exe –register-global
  3. C:\Program\xulrunner>xulrunner –install-app c:\download\chatzilla-0.9.78.1-xr.zip
  4. C:\Program\xulrunner>xulrunner –install-app c:\download\chatzilla-0.9.78.1-xr.zip "c:\Program\Mozilla Firefox" chatzilla

By this it ends up in it’s own folder in the Firefox structure.

finding an old cup of java..

Saturday, June 2nd, 2007

Actually, I didn’t find an old cup of coffee (even if that can happen once in a while) but while talking to some friends of mine today I got this stupid desire to do some java game development. As if I would have time to do that. Well, despite lack of time I’ve come to realise that I’m also lacking knowledge of java in general and game construction in specific. What an adventure.

The first thing I usually do when I’m about to start of with a new project based on technologies or ideas that’s normally of topic for me, I turn to my friend google. This time the search term was ‘java game development’ *puhe*. I found two rather interesting urls in the result – Robocode (http://robocode.sourceforge.net/?Open&ca=daw-prod-robocode) and and Light Weigh Java Game Library (www.lwjgl.com). Check ‘em out. I’m seriously thinking of getting into the lwjgl library, but honestly – how far do I really think my game dev plans will go? :S nahh. clasic double buffer repaint will do for me. :D The other link – Robocode – sound really nerdy and fun. Hopefully there will be time to play with that as well.

Ok. So what’s my big plans? The great game plot? Well first, or rather simultaneously, I will together with two other friends start to build a network camel racing game… and secondly I will try to revitalize an old game idea called TWISEM. I let you know the meaning of that acronym later.. ;)

So, stay tuned. Maybe an applet game or similar may popup here within a year or so..

Hm, yeah. I think I would make it with flash today and not java but it just ain’t as cool…