Sunday, August 25, 2013

Qt 4.7 on X1000

Today I wanted to take a look at the recently released Qt 4.7 framework for AmigaOS4 on the X1000.


So what is Qt? Qt is an application framework that is used by programmers to write applications for the modern platforms of today, like Windows, Mac OS X and Linux, amongst others.

You can find more information about Qt on Wikipedia entry here if you want to learn more about Qt.

Qt framework has been used for some well known applications such as Google Earth, Skype, VLC Media Player, and VirtualBox, amongst others.

This presents some exciting application porting possibilities into the future on AmigaOS with the availability of the Qt framework.

Qt is a free download and is available on www.os4depot.net. A number of programs have already been ported to AmigaOS and I will cover some of the applications released so far.

Note 7/10: QT Quickfix7 has been released to patch QT to the latest version with many bug fixes. It is available to download from here. I have written a separate blog entry how to install the quickfix here. Please note that you need to install Qt 4.7 as below first, before applying the quickfix.

Please note that some Qt applications (not all) requires 3D acceleration and as such requires the Dual graphic card setup on the X1000 in order to use it (or the Wazp3d acceleration) - for hardware support you need a Radeon 9250 graphics card which has hardware 3D support. I detailed how to set this up in an earlier blog posting I wrote here.

The main Qt archive is a very large 400MB download compressed, and expands to over 1GB of content once extracted. This is because it included the SDK (Software Development Kit) to develop Qt applications, as well as the binary files needed for the Qt framework.

The original Qt archive is a gzipped tar archive. This means you need to first extract the tar archive, and then extract that to the destination temporary folder for installation, as below.


Once this tar file is extracted (I did to WORK:Temp folder), you should get the Qt4.7 folder below:


The Qt4.7 installer is a fairly routine installation...


Note that you need to make a change to your s:User-Startup folder before you reboot after the install. When you see the screen below, DO NOT REBOOT YET.


Instead, open up your favourite editor and open s:User-Startup and scroll down to the end of the file. The line you need to add to the User-Startup is dir sobjs: >NIL: which needs to be inserted as highlighted below and then saved:


After this has been done, you can now reboot. If you don't insert this line you will get an error on reboot.

After the reboot, I opened up work:Qt-4.7 folder. I created an Apps folder here to store Qt applications I download. This should keep things clean when upgrading Qt in the future.


Note the SubDock.Docky icon. If you drag this into the AmiDock on your Workbench, you will get a new Sub dock (which I renamed to QT Apps). You can then put your favourite Qt applications there for easy access when needed. I show this below:


Ok, so let's take a look at some of the demo programs included in the Qt archive. As you can see below, there are quite a few to try out:


First up is QTextEdit, a Rich Text format text editor program. When I first ran it, I immediately saw a problem with the Menu bar over lapping the application AmigaOS title bar, as shown below:


I found this affected all the demo programs I tried. After some research, it turns out a setting needs to be modified in Qt Prefs in order to fix this. So, first close QTextEdit.

In the System:Prefs folder, there is now a Qt Prefs icon which, when run, appears as below:


You need to click on the Painting tab, and select the "Native Paint Engine" option, as shown below:


When I clicked Save and then re-ran QTextEdit, the application now appeared correctly:


So next I tried a few other simple demo programs included...

Books



Spreadsheet


Qt Demo Browser



I know it is a demo web browser, but I decided to try out YouTube anyway in HTML 5 mode, and found the browser is not HTML5 compliant.


Having explored a few of the demo programs, I was keen to try out some of the many released Qt ports on AmigaOS4. First I tried a program called qMetro.

Essentially this program is a route planner for train trips in various cities around the world. Initially it comes with Moscow and London, with Moscow the default map (Click to expand):


Keen to try out the optional Tokyo subway map (as I travel to Tokyo quite often), I downloaded the Tokyo map from their website:



After downloading the map, I then needed to extract it to the maps folder underneath the qMetro folder, as below:


I could then open the Tokyo map from the qMetro application as shown below:



Now I can see the Tokyo subway map as below:


I select Shirokane Takanawa as my starting point, and Akihabara (my favourite place in Tokyo) as the destination. It then plots the route for me as shown below:


Very useful. It shows me the transfer stations and trains, but doesn't explain the Mita to Ningyocho train line name! I guess this needs some more refinement but I do like the idea!

Next up I quickly took a look a Edyuk, an IDE for programmers to code in (I am not a programmer so I just show that it works!):


I noted that it took a long time to launch Edyuk the first time, building up some cache files, etc.

Next I tried out Gottet, a simple Tetris clone. It should be noted that this version of Qt does not have sound support, so games are completely silent at the moment...


This wasn't so interesting for me, so I tried Tanglet, a word game which I played for quite a while as it was quite a bit of fun trying to work out all the different words in the 4x4 letter grid puzzle....



Initially I was just looking left, right, up and down for words...


Then I realised you could do tricky combinations of nearby letters to form words:




I had a lot of fun playing this game, even with no sound effects! I found 57 words in total. I thought that was pretty good until I discovered there was actually 208 words in the puzzle I was playing...

I then tried Simsu, a Sudoku clone. Since I am terrible at Sudoku I just show below that it works!


The last game I tried was Tetzle, which take a picture and breaks it up into jigsaw pieces which you have to rearrange back into the original picture:



Hopefully this gives you a taster of some of the Qt applications already available for AmigaOS4 and encourages you to try them (and others) out for yourself!

I am sure there will be a lot more released for AmigaOS4 using the Qt framework over the next few months and beyond, and I am looking forward to trying them all out!

I want to take this opportunity to thank the developers who ported Qt, and those who are porting applications to AmigaOS using the new Qt framework. It is terrific to have even more applications to try out on the X1000! There is plenty more to look forward to in 2013!

Saturday, July 27, 2013

Catweasel MK2 on X1000

Ever since I read about the upcoming availability of X1000 support for the Catweasel Mk2 I was very excited to try it out with the many Amiga floppy disks I have - and today is the day!


For the last week or so I have been very sick with terrible food poisoning and unable to do anything at all. I feel a little bit better today and decided to tackle this project to try to take my mind off it!

So what is a Catweasel mk2? Well, it is a hardware device made by Individual computers and now available through Amigakit.com. It has the ability to present floppy drives of different formats (PC, Amiga, MAC, etc) to the AmigaOS4 (and Classic Amiga) to enable different formatted disks to be read.

With the X1000 there is no floppy drive or floppy drive port, so it is necessary to have a Catweasel installed in order to use a floppy disk drive under AmigaOS4. Until recently the only way to do this was by getting a Catweasel 4 PCI card, which is very hard to find anywhere nowadays - I certainly couldn't find it!

So recently AmigaKit.com released a package of CatWeasel Mk2 (still available to buy) with X1000 adaptor kit, which essentially is a special twisted IDE cable, and a CD containing updated drivers (not available elsewhere) to work with the X1000 IDE hardware to enable AmigaOS4 to see the Catweasel Mk2 when attached to the IDE port. I quickly ordered mine and got it this week.

The big positive for me is the ability to easily read my 25 year old plus floppy disks into ADF format using the X1000, and then use them via RunInUAE on the X1000!

So when I opened the package I got the floppy drive, a lot of floppy cables, power converters and a manual/floppy for Classic Amigas, and an unlabelled CD containing the X1000 drivers:


To read up how to wire this all up, you need to turn to the Classic Amiga manual included in the box, and specifically just one page which shows where to connect the various cables in:


For the X1000 just plug in the twisted IDE cable included to the Amiga-IDE port on the Catweasel, and the twisted end of the cable plugs into the X1000 IDE port.

I used a High Density PC floppy drive for this, and so you need to ensure the floppy drive is connected to the twisted floppy drive cable connector which tells it that the drive is drive 0.

Next, before installing in the X1000, I then inserted the CD to install the required drivers:


I read the readme_first file which contains important configuration information to make the Catweasel mk2 work with the X1000 (Click to expand):


Having taken note of what I have to do above, I got started with the installation:



The installation proceeds until the next screen without prompting for any more information:


Once I clicked Proceed above, I get the CatWeasel Prefs screen below, which needs to be modified (click to expand):


I modified it as per the Readme_first file, which ends up looking like this (click to expand):


Now it tells me the installation is completed and ready for reboot:


I powered off the X1000, and install the CatWeasel Mk2 and floppy drive. I will eventually mount it correctly against the hard disk bay wall, but for now it looks like this for testing:


I then powered on the X1000 and when the Workbench has loaded I now have a clicking floppy drive, ready for action! So first I try a Directory Opus 5.5 floppy disk:


And it comes up on the Workbench no problem. I open the Readme directly from the floppy disk no problems as below:


Next I had a look in the Shell to see the disk device, which is set to DF0:


Next I fired up DOpus4 and copied the files from the floppy disk to a temporary hard disk folder as a test and it worked well and fast for a floppy:



Excellent stuff, it works well!

Included with the software on the CD also is a program called SuperDisk - which is installed into the Utilities folder as part of the installation. This software allows you to read Amiga floppy disks to/from ADF format. Keen to try this out, I put in an old floppy disk application called PageSetter, from way back in 1986!


I ran SuperDisk (written by Ian Gledhill), and then typed in the image path name I wanted to be created, in this case "work:adf/PageSetter.adf". I then clicked on Read Disk the floppy drive got to work:


The floppy disk read was quite fast, and finished quickly:


The programs needs a "bing" sound or "Finished" dialog notice box in my opinion, but the visual green shows it is done I guess.

Next, I checked the destination folder, and sure enough the PageSetter.ADF is there:


When I double click on it, it launches via RunInUAE automatically and soon I am looking the PageSetter Workbench 1.2 screen:


I then ran the PageSetter program and it works well (well, as well as a Desktop Publishing Program from 1986 works!):



So now I have my first converted Amiga floppy disk to ADF format on the X1000 thanks to the Catweasel Mk2 and new drivers from AmigaKit.com.

If you want to read more on how to use SuperDisk there is a great guide here.

If you need to do this kind of conversion of old floppy disks to ADF, or just want to be able to copy Amiga files from your floppy disks to/from your X1000 this is perfect and works very well.

I will of course play around with it some more yet (I haven't tested writing ADF to disk or other formatted disks like PC disks), but hopefully this gives you a feeling for how the CatWeasel Mk2 works on the X1000.

Sunday, July 14, 2013

Huenison on X1000

Today I am taking a look at the newly released game Huenison for AmigaOS4 on the X1000.



BTW I should explain that work has been busy for the last few weeks including weekends, making it hard for me to spend much time playing with the X1000! Apologies for not updating the blog more often...but, enough of that, let's take a look at Huenison!

It was developed by Simone Bevilacqua for AmigaOS4 (and also available on Windows), released under the name "Retream". Simone also previously released the game BOH on AmigaOS4.

Their website is here if you want to learn more about the game! You can download the demo from there for free, and the full version is available for purchase for around $6 AUD.

Essentially the game is a shoot-em-up in the classic 8/16 bit era style, complete with Commodore 64 style SID music, spot speech effects, dot matrix display (similar to the scoreboard on Pinball Fantasies on the Classic Amiga.

There is a lot of variety in this game, with your Cannon able to rotate colours to fire that colour bullets. Kind of reminds me of switching colours on a BIC 4 colour pen! When you fire a bullet of a certain colour, it allows you to destroy blocks coming down that are of the same colour.

This is an interesting dynamic in the game which makes it differ a lot from most shoot em ups I have played on the Classic Amiga and other platforms in the past!

A Windows version is included in the AmigaOS4 version of the game too, which is a bonus if you want to try it on there too, but of course our focus is on the AmigaOS4 version! When you install the game you get the following folder:


The manual is in PDF format and explains the game much better than I can so here is some excerpts from the manual to explain the game (click to expand):





Once you launch the game, you get a similar audio sample from Impossible Mission on the Commodore 64 (which for those who don't recall it said "Another visitor, stay a while, stay forever") and a retro Commodore 64 style intro tune, setting the tone for the intentionally retro feel of this game as you navigate the Main Menu with the keyboard:


From the Main Menu you have the options, put in a password to start from a later level, and New Game to get started. The options allows you to alter whether the game runs in a window or full screen, and the dot level which is relevant on slower AmigaOne systems, but not needed to be adjusted on the X1000.


The first time you start the New Game, it gives you the option to put in an email address for submitting your high scores to a global high score table available for viewing on the ReTream website (you can also choose to just have local scores):


An activation is sent to your email address after this is done - you need to click on the activation link provided in the Email for your scores to be counted. When you close the game your high scores are sent to the ReTream website and displayed for the world to see how good you are!

You can use the keyboard to play the game too but definitely for me the usb Amiga Joystick was the way to go, allowing me to switch colours and fire easily.

Lets take a look at some screenshots from the game itself. The music is all retro and Commodore 64 style in feel, which suits the game perfectly:


Level 1 starts off simple enough but very quickly gets harder and faster. As the bricks come down and reach the bottom of the screen, they create an increase of the land that your ship moves left to right on, making it more difficult to shoot and quicker for enemies to increase the height even further:


The different brick types are important to getting rid of bricks quickly and efficiently. The manual explains all these types well, their characteristics and how they are deployed depending on the type of level being played in the game:


Didn't take long to be killed:


Ok, let's try again!


I felt more confident the next time through but it gets hard very quickly and a lot of action happens on the screen at the same time!


After a few more goes I managed to get a bit further into the game, and things continue getting harder:


It is hard to remember all the different blocks - I expect there is a strategy to dispatch these quickly but I admit I haven't worked it out yet - I just change colours and shoot like mad!


Some enemies require multiple shots to kill and others just a single shot. Some constantly change colour and can't be destroyed, and their are many other varieties as well as the game goes on.

I will be the first to admit I am not very good at this game but I will keep trying to get further into it!

The game costs around $6 AUD which is a bargain and the game has excellent sound, graphics and interesting gameplay that will ensure you don't get bored quickly and keep coming back for a higher score! I tried the demo first, and was very happy to buy the full version of the game.

Well done Simone, this game is original in concept, pays homage to the retro era of Classic Amiga and Commodore 64 gaming, and is a lot of fun to play too! I recommend it for X1000 owners!