Näytetään tekstit, joissa on tunniste symbian. Näytä kaikki tekstit
Näytetään tekstit, joissa on tunniste symbian. Näytä kaikki tekstit

torstai 5. marraskuuta 2026

Quake9500: id's Quake on a 150 MHz Communicator with no FPU

Last week I asked Claude whether Unreal Tournament could run on the Nokia 9500. The answer was no: a 150 MHz ARM9, no floating-point hardware and no source code. Quake 1, on the other hand, has its source under the GPL, and somebody had already got it to about 10 fps on an iPod Classic.

So now there's Quake9500: the whole game, software rendered, with sound, saves and the full menu, on the Communicator's 640×200 screen. As with NES9500, the code was written by Claude (Anthropic's AI). I built it on my Windows 2000 VM, ran it on the phone, sent back logs and complained. The first build that reached a level ran at about 3 fps. The timedemo now runs at 17.1 fps at full screen height, 4.5 of those from swapping the compiler in version 1.1, and the SIS is well under a megabyte, game data not included.

This post is about how it got there. It gets geekier than the NES one, because Quake fights back.

The patient

Here's the machine, as the game's own log sees it:

HAL display: mode 0, 640x200, 16 bpp
HAL display: memory 0x59912000, first pixel +32, line 1280 bytes
Base directory D:/Quake, hunk 12288 KB, 7740 KB RAM free
Video: 320x200 on a 640x200 screen, aspect 2,00, surface cache 600 KB

The CPU is an ARM925T with an 8 KB data cache, no FPU and no divide instruction. Every float operation is a function call, and so is every integer divide. Quake was written for the Pentium and leans hard on its FPU. The SDK's compiler is GCC 2.9-psion-98r2, so everything is C89.

Where the code comes from

Unlike NES9500, this one is a port with a long family tree. id Software released the source under the GPL, SDLQuake put it on SDL, Dan East's Pocket Quake added fixed-point paths to the renderer for PocketPCs, and Rockbox added ARM fixes for unaligned reads of map and model data. Rockbox gets about 10 fps on a 216 MHz iPod Classic. Quake9500 starts from Rockbox's tree at commit d54b9e6f, throws out SDL and Rockbox, and adds these:

FileLinesWhat it does
sys_epoc.c767Main loop, files, clock, the log, the frame time report
vid_epoc.c197Video driver: buffers, palette, handing frames to the blit
snd_epoc.c132Sound driver: Quake's DMA ring, emptied by the audio thread
softfloat.c1411Our own float helpers and integer divides, with ARM assembly fast paths
armrt.c17164-bit helpers that egcc.lib lacks
epocsys.cpp899Native layer from Doom9500: window, framebuffer, blit loops, keys, exception handler
epocaudio.cpp345Audio thread feeding CMdaAudioOutputStream

On top of that, 46 of the original files changed, for about 2800 changed lines in a diff. The heaviest are r_alias.c and r_draw.c.

Sound was a step backwards on purpose: id's original mixer is back. Rockbox mixed inside the SDL audio callback and needed mutexes everywhere. Now all Quake code runs on the game thread, and the audio thread only copies from the ring and plays silence for anything not mixed yet. The log from a real play session says 3795 chunks mixed, 1 underflows, 0 write errors.

Quake's 2D art is 320×200, doubled across. The menu comes out very wide.

Ways to kill a Communicator

The first days went into crashes, and some of them were spectacular.

  • Stack overflow reboots the phone. Quake likes big local arrays: 128 KB for the pak directory, about 130 KB for the edge and surface lists, 64 KB for the warp buffer. On Symbian an overflow takes the whole phone down. All of them are static now, and EPOCSTACKSIZE is 80 KB.
  • Software floats that trap. Symbian's float helpers raise exceptions where a PC returns NaN or infinity. CalcFov does a 0/0 before the view size is set. A handler installed with RThread().SetExceptionHandler now counts float errors and logs real faults with the QuakeC function and the entity it was working on.
  • A bug from 1996. An alias model frame's bounding box doesn't always hold all its vertices. The crucified zombie in start.bsp has one at y = −2, and D_PolysetDrawFinalVerts then indexes its row table with a negative number. Models with any vertex outside the view now take the clipped path.

3.2 to 1

Quake renders 320×200 and each pixel is doubled across, so a game pixel is twice as wide as it is tall. That's vid.aspect 2.0, and the picture keeps its true proportions. The catch is that the view is 3.2:1. With the usual 90° across, you only see about 35° up and down.



Top: true proportions, the default. Bottom: -aspect 0.83, the vertical field of a PC squeezed into the same 200 rows. You see more of the room, and everyone in it is squashed.

This aspect also broke things. Pocket Quake's 9.23 fixed-point x and y scales overflowed at 2:1 and drew grey bars across the view, so they're 10.22 now. It wasn't the last time this screen shape caused trouble.

The speed hunt

The first number I believed was 7.4 fps in timedemo demo1. Earlier builds reported 12, but they were drawing a broken world, which turns out to be faster.



Every point is a line from the quakelog.txt the phone wrote, like 969 frames 71,5 seconds 13,6 fps. Repeats and test runs are left out.

The first tool was a sampling profiler, and it lied. It put 19% of the time right after the blit, where the wall clock measured 0.1 ms. So it was replaced by timing every part of the frame with the clock: start with -parts and the timedemo writes this at the end. One of these came back after every build. This is the last full one:

Frame times, timedemo: 970 frames, 74.1 ms each
(fl = software float operations, div = integer divides, per frame)
      0.3 ms     55 fl     0 div  input, commands, server
      2.7 ms   1154 fl     0 div  client read
  3D view, of which:
        1.8 ms   1316 fl    19 div  view setup, mark leaves
        9.7 ms   2193 fl   688 div  BSP walk, edges
        4.9 ms   5426 fl    75 div  brush models (doors, lifts)
        5.4 ms   1988 fl     0 div  edge scan
        3.4 ms   2613 fl    23 div  surface cache (lighting)
        4.0 ms   4408 fl     0 div  surfaces: mip level, gradients, rotation
       10.8 ms    759 fl     0 div  texture spans
        2.3 ms    634 fl     0 div  z spans
        2.2 ms   1734 fl    55 div  sky, water, the rest of the surfaces
        2.4 ms   2441 fl     4 div  alias models: bounding box
        0.8 ms    743 fl     0 div  alias models: light point
        4.1 ms   4495 fl   298 div  alias models: setup, transform; sprites
        6.8 ms   1846 fl  1419 div  alias models: triangles (also the view model's)
        0.0 ms      0 fl     0 div  view model: the rest
        2.2 ms   2053 fl   100 div  particles
        1.5 ms      7 fl     0 div  lowres row doubling
        0.0 ms      1 fl     0 div  the rest
      0.3 ms     41 fl     1 div  2D and palette
      7.7 ms      1 fl     0 div  blit
      0.1 ms     76 fl     0 div  sound, rest of the frame

Half-height 3D. The biggest single win is a cheat. With r_lowres 1 the 3D view is drawn at 320×100 into every other row, and each row is then copied into the one below it. A game pixel is now as tall as it is wide, and there's half as much to draw. That took the timedemo from 8.1 to 9.9 fps, and I liked the look enough to make it the default.



Left: r_lowres 1. Right: r_lowres 0. Both zoomed 2×.

Our own soft float. GCC's float helpers on this SDK come from EUSER.DLL and go through Symbian's 96-bit TRealX. softfloat.c replaces __addsf3, __mulsf3 and the rest, with ARMv4 assembly fast paths that give up to C on anything unusual. How do you test hand-written ARM assembly on a PC? tools/armtest.py is a small ARMv4 interpreter that reads the assembly strings straight out of softfloat.c and runs them against a Python mirror, which is itself checked against exact fractions. Zero failures. The result on the phone: 9.9 to 10.2 fps. A small gain, so floats weren't the big lever.

Our own divides. Same treatment for __udivsi3: binary search for the top bit, then a computed jump into a chain of three instructions per bit. No speed change at all, libgcc's was already that good. But counting the calls gave us a new number: 21,661 integer divides per frame.

The divide that should have been a multiply. Most of those came from Pocket Quake's fixed-point edge code, which "multiplies" by dividing by a reciprocal:

transformed_fxp[0] = local_fxp[0]/vright_fxp[0]+local_fxp[1]/vright_fxp[1]+local_fxp[2]/vright_fxp[2];

That's 11 divides per vertex and 6 per clip-plane test, on a CPU with no divide instruction. It does have smull, which gives the high word of a 32×32 product and costs next to nothing:

transformed_fxp[0] = MulHi(local_fxp[0],vright_mul[0])+MulHi(local_fxp[1],vright_mul[1])+MulHi(local_fxp[2],vright_mul[2]);

BSP walk and edges went from 18.7 to 10.9 ms and from 12,614 divides per frame to 600. It's also more accurate: the worst projection error dropped from 0.8 to 0.03 pixels.

Spans without divides. D_DrawSpans8 did two divides per 16 pixels for perspective correction. Now it normalises 1/z, looks up a 256-entry reciprocal table and refines it with one Newton step:

r = span_rtab[(d >> 22) & 255];
e = UMulHi (d, r);                     // d*r/2^60 = 1 - error, as 2^28
r = UMulHi (r, 0x20000000u - e) << 4;  // r * (2 - d*r)

A Python check put the error at 0.004 of a texel, and the timedemo went from 11.0 to 11.4 fps.

Models and particles. Alias models got a fixed-point transform (a 16.16 matrix, smull, one 231/z per vertex), a fixed-point bounding box test with 64-bit edge compares, a matrix cached per entity per frame and a light point cache. AngleVectors reads a 16384-step sine table, because the SDK's double-precision sin and cos are slow. Particles went fixed-point too, from 4.7 to 2.3 ms. Together that's worth close to 2 fps.

A compiler bug. After the fixed-point bounding box went in, more models took the slow clipped path, and we couldn't see why. r_bboxfx 2 ran both tests and logged every disagreement. The fixed-point boxes were fine, and the float ones were nonsense: the grenade launcher pickup had a box like a 10-unit stick, and ogres had boxes pointing down. The float test had been wrongly rejecting models that should have been drawn. The culprit is this perfectly ordinary line from id's code, which GCC 2.9 gets wrong with soft floats:

basepts[0][0] = basepts[1][0] = basepts[2][0] = basepts[3][0] =
        (float)pframedesc->bboxmin.v[0];

Written out one value at a time, every disagreement disappeared from the log. The same pattern got split up in sv_move.c, sv_user.c and world.c, just in case.

The log file. My bug report said "Huuuuuuge lag in the beginning when picking up stuff". "You got the shells" goes to the console, and the console went to quakelog.txt with an fopen, an append and an fclose on the memory card, for every line. The log now goes to an 8 KB RAM buffer once the game is running. "Client read" went from 7.8 to 2.6 ms, the jitter vanished, and together with the bounding box fix that was the jump from 12.5 to 13.7 fps. It's the best return on effort in the whole project.

The blit. Each 8-bit pixel has to become two 16-bit ones. A second palette table holds every colour already doubled in a 32-bit word, so the loop is an and, a load with a scaled index and a four-word store:

"ldr r7, [%0], #4\n\t"
"and r4, r7, #0xff\n\t"
"ldr r4, [%3, r4, lsl #2]\n\t"
"and r5, r7, #0xff00\n\t"
"ldr r5, [%3, r5, lsr #6]\n\t"
"and r6, r7, #0xff0000\n\t"
"ldr r6, [%3, r6, lsr #14]\n\t"
"mov r7, r7, lsr #24\n\t"
"ldr r7, [%3, r7, lsl #2]\n\t"
"stmia %1!, {r4, r5, r6, r7}\n\t"

That took it from 9.3 to 7.7 ms. Two cleverer ideas gave nothing: looking up each doubled row only once, and skipping rows that hadn't changed. The limit is writing 256 KB per frame to screen memory, at about 34 MB/s.

Coarser mips. d_mipscale 2 picks the next smaller texture one step earlier. The surface cache went from 4.3 to 2.8 ms, and the timedemo from 14.7 to 15.0 fps.

Top: d_mipscale 1. Bottom: d_mipscale 2, the default. This is the worst wall I could find, and on a monitor the bigger blocks are easy to see. My verdict on the phone was "Not blurry at all!"

Knowing when to stop. A per-plane cache of the 1/z gradients cut the floats in the BSP walk from 3256 to 1945 per frame, and the time didn't move at all. One software float operation costs about 30–40 cycles, so removing more of them is close to pointless. What's left is integer work and memory: texture spans take around 30 cycles per pixel, most likely cache misses on texels in that 8 KB data cache.

Killing the status bar

The status bar takes 48 of the 200 rows, which hurts on this screen. It's gone, as in Doom9500. The 3D view always gets the whole height, and H draws the bar over the view when you want to know how much health you have left.

Without the bar and with it.

The key is bound with a new bindifunbound h togglestats after quake.rc, because default.cfg does an unbindall, and a plain bind would overrule your config. And since nearly any key during a demo opens the menu, keys.c now makes an exception for that one. Drawing 200 rows instead of 152 costs speed: the timedemo fell from 15.0 to 13.2 fps. Removing the dirty-row blit, which had nothing left to skip, brought back 13.6. That dip in the chart is one I chose on purpose.

The map called ",000000"

Saving took a very long time, and then this happened on loading:

Loading game from D:/Quake/id1/s0.sav...
FindFile: can't find maps/,000000.bsp
Couldn't spawn server maps/,000000.bsp
Couldn't load map
load failed.

The phone is set to Finnish, and the C library's printf follows the locale: "%f" writes something like 4096,000000. Its fscanf doesn't, and reads a %f only up to the comma. So the first number stopped at the comma, every later %f failed on it, and when the code then asked for the map name, it got the leftover ,000000.

There's now a small Q_ftoa that always writes a point and doesn't go through the library's slow float formatting. The loader reads numbers as words and parses them with Q_atof, which accepts both, so older saves should load too.

The slowness was id's code being careful: a fflush after every entity, several hundred times per save, on top of the library's 1 KB buffer. A 256 KB setvbuf and no flushes means the whole file goes to the card in one write.

While I was complaining, the volume got fixed too. The slider was linear, so its lowest step was only 20 dB down. It's now 5 dB per step, which makes 0.1 about −45 dB, and full volume is as loud as before.

The gun below the screen

Then I actually played it, and noticed that the axe was almost off the screen and the shotgun wasn't there at all. That's the screen shape again. Quake's weapons sit below the line of sight, and a PC's default view (320×152 at pixel aspect 0.83) sees about 59° up and down. Ours sees 35°, so the gun is simply below the bottom edge. A timedemo doesn't complain about that.

The fix gives the gun its own projection. All the alias code reads the scale and the centre from globals at draw time, so R_DrawViewModel swaps them while it draws the gun. fit makes the gun look as it does on the PC's view, fitted to our height. That looked small on such a wide screen, so r_gunscale (default 1.4) then grows it upwards from the bottom edge:

fit = verticalFieldOfView * (1.0f / GUN_PC_VFOV);    // 0.625 / 1.14
if (size > 0 && fit < 1)
{
    bottom = (r_refdef.vrect.y + r_refdef.vrect.height - 0.5f) * r_aliasuvscale;
    aliasxscale = xs * fit * size;
    aliasyscale = ys * fit * size;
    aliasycenter = yc + (bottom - yc) * (1 - size);
}

From the top: the axe in true perspective, the axe now, the shotgun in true perspective (yes, it's there, somewhere below the screen), the shotgun now.

Shadows on the barrels

Now that the guns were finally visible, the double-barrelled shotgun had dark patches all over the tops of its barrels. They were there all along, just below the screen.

Left: the bug. Right: the fix. Zoomed 3×.

To find it, Claude compiled the game's own d_polyse.c for the PC twice, once with Pocket Quake's integer gradients and once with id's original float version, and fed both the shotgun's triangles. The integer version showed the patches, and logging both versions side by side pointed straight at the depth steps:

tri 4 zx: int -13639920, exact 31570262 (dxdenom -95)
tri 5 zx: int 5803844, exact -19312923 (dxdenom -171)

Wrong by miles, and with the wrong sign. Each step is a difference of two products divided by twice the triangle's area, in 32-bit ints:

r_zistepx = (t1 * p01_minus_p21 - t0 * p11_minus_p21) / d_xdenom;

Here t0 and t1 are differences in 1/z, stored as 231/z. The gun's z is scaled 3× to keep it in front of the world, and it comes as close as 5 units, so those differences approach 230. Multiply that by a few dozen pixels and it no longer fits in 32 bits. The depth test then lets the dark wood behind the barrels win. A monster right in your face can hit the same overflow.

The fix drops just enough low bits first, so that the products fit. Screen distances are below 2048 here, so 20 bits always do. Small differences are calculated exactly as before:

m = (t0 < 0 ? -t0 : t0) | (t1 < 0 ? -t1 : t1);
if (m < (1 << 20))
{
    *stepx = (t1 * p01_minus_p21 - t0 * p11_minus_p21) / d_xdenom;
    *stepy = (t1 * p00_minus_p20 - t0 * p10_minus_p20) / ydenom;
    return;
}
sh = 1;
while ((m >> sh) >= (1 << 20))
    sh++;
t0 >>= sh;
t1 >>= sh;
*stepx = (t1 * p01_minus_p21 - t0 * p11_minus_p21) / d_xdenom * (1 << sh);
*stepy = (t1 * p00_minus_p20 - t0 * p10_minus_p20) / ydenom * (1 << sh);

On the default size the shotgun went from 263 pixels different from id's float code to zero. The test lives on in tools/polytest.

A debt from the NES9500 post

In the NES9500 post I said that Quake9500 still polled window server events the old way. It did, right up until writing this post. The loop looked at iEventStatus and never took the completed request's signal off the thread's semaphore, so every event left one stale signal behind, and every later wait had to spin through all of them. That may well be why the game got sluggish after a while. The fix is one line at the top of the poll loop:

while (w.iEventStatus != KRequestPending)
    {
    User::WaitForRequest(w.iEventStatus);
    TWsEvent event;
    w.iWs.GetEvent(event);
    w.iEventStatus = KRequestPending;
    w.iWs.EventReady(&w.iEventStatus);

How these screenshots were made

None of the game pictures in this post were taken on the phone. They come from the phone's code, though: the same C files compiled for a PC, with a stand-in for epocsys.cpp and epocaudio.cpp that has no window and writes frames to disk. Only the speed numbers and the logs come from the phone.

Quake isn't 64-bit clean, as it casts pointers to int and long all over the place. On 64-bit Windows both are 32 bits, so normally that would crash at once. The trick is to keep the whole process below 2 GB, where those casts lose nothing: link the image at 4 MB, turn off ASLR, and clear IMAGE_FILE_LARGE_ADDRESS_AWARE in the PE header with a few lines of Python, because this ld has no option for it. Add -fwrapv so ints wrap as they do on the ARM, and a virtual clock so every run gives the same frames. A small script says what happens at which frame, such as 120 cmd impulse 3 or 320 shot b_new. It ran on the first try.

The obvious question is whether a PC build really draws what the phone draws, since it uses the x86's floats and not softfloat.c. So we ran the same timedemo on it. Same 969 frames, and this line from the report is identical to the phone's, character for character:

Alias models per frame x10: 90 rejected, 8 clipped, 30 unclipped; 6 by the float test; 0 unclipped had to be clipped (r_bboxfx 1)

Timings are meaningless on the virtual clock, of course.

The console, on Chr+Z. timeframes starts and stops a speed report for real play.

The launcher and the icon

The same recipe as in the NES9500 post: a tiny app for the Desk that starts quake9500.exe and exits. This one also checks that pak0.pak exists and tells you where to copy it if it doesn't, because the game itself can only stop with an error.

The icons come from Quake's own console background. The Q is dark brown on brown there, so a Python script masks it out by brightness and redraws it in rust on the darkened texture, at 64×50 and 25×20.

Version 1.1: a compiler from this decade

Everything above was built by the SDK's GCC 2.9 from 1998. For my Resident Evil experiment, Claude had found a way to run code from a modern GCC on the 9500: build it on the PC as one flat block of ARM code, and have a small program built by the SDK load it. In 1.1 Quake works that way. quake9500.exe is still built by the SDK, but it only holds the native layer (window, blit, keys, the sound thread) and a loader. All of Quake's C is built by GCC 14 into quake9500.rbl, with newlib as its C library. The exe reads it into a chunk of memory, adds the load address to every pointer in its list, flushes the instruction cache, and calls it with a table of functions for everything the phone does, files included.

The two compilers agree on less than you'd hope. Only ints and pointers can cross between them, because GCC 2.9 stores a double with its two halves the other way round. GCC 14 expects the stack aligned to 8 bytes at every call and GCC 2.9 doesn't care, so calls into the game go through a few lines of assembly that align it. GCC 14 also makes enums as small as they fit, unless told not to, and that breaks the structs Quake reads straight out of its model files. And the 9500 kills a program that reads a word from an address that isn't a multiple of four. So before it went near the phone, Claude wrote an ARM interpreter in C that runs the whole .rbl through the timedemo and stops on anything that would kill it there. It found nothing, and neither did the phone.

The same timedemo, one run each:

Quake9500 1.0, GCC 2.9    969 frames  76,6 seconds  12,6 fps
Quake9500 1.1, GCC 14     969 frames  56.7 seconds  17.1 fps

That's 1.35 times as fast without touching the game's code. Every part of the report took 14 to 42% less time, while the blit, which is GCC 2.9 code in both builds, stayed the same, so it wasn't the phone having a good day. Claude's guess before the run was 10 to 20%. A profile-guided build gained nothing on top. (Yes, 1.0 is at 12.6 and not the 13.6 above: the gun fixes came after that number, and the model triangles part of the report doubled, from 6.8 to 12.9 ms.)

There's a bonus for the next round of speed work, too: a new build of the game no longer needs the VM. Any .rbl copied to the Quake folder and named with -blob in quakeargs.txt gets loaded instead, with a log of its own.

What's missing

  • Music. Quake's CD tracks could be MP3s through Doom9500's libmad.
  • Multiplayer and the mission packs.
  • ARM assembly for the span drawers. Rockbox's notes call those the big ones, and they're still among the biggest parts left in the report.
  • A proper number for real play. The timedemo never runs the game server, so there's no monster AI, QuakeC or physics in the 17.1 fps. It plays well enough for me.

The controls: arrows or the rocker move and turn, the rocker's middle, Enter or Ctrl fires, Space jumps, Shift runs, Alt strafes while held and Chr toggles strafing, Backspace or / changes weapon, H shows the status bar, Esc opens the menu and Chr+Z the console. Chr with Q W E R T Y U I A S D F gives F1 to F12, with F6 for quicksave and F9 for quickload.

Install the SIS, then copy id1\pak0.pak from the shareware or the full game (the full game also needs pak1.pak) to \Quake\id1\ on the memory card or to C:\Quake\id1\. Saves and config.cfg land next to it, and quakelog.txt goes in the Quake folder. Quake9500 is GPL like the code it's built on, so the source goes out with the SIS.

Thanks to id Software for Quake and for releasing its source, to SDLQuake, to Dan East for Pocket Quake and to the Rockbox people for their port.

Quake's box asked for a 75 MHz Pentium. The 9500 has twice the clock, no FPU, no divide instruction and a screen shaped like a letterbox. Seventeen frames per second, and it fits in a coat pocket.

I'll put the game pack here when it's finished.

sunnuntai 26. heinäkuuta 2015

Commander - a new communicator

Five years of silence is broken now.

Symbian is dead, but I still miss communicators, they were the best devices ever. That's why I've been designing my own dream phone, a new communicator which uses Android based UI. Its name is



Commander.







Commander's UI mechanics are exactly the same as the most powerful phone - Nokia 9210 Communicator - had.

Check it out and please let me know what you think!


http://symbioosi.net/commander/index.html



maanantai 26. lokakuuta 2009

My-Symbian.com-vetoomus / My-Symbian.com petition

ceroberts75 My-Symbian.com-foorumilla teki vetoomuksen sivuston puolesta Nokialle luettavaksi, eli kaikki jotka ovat sivuston puolesta, kannattaa kirjoittaa koska Nokian touhussa ei mielestäni ole mitään järkeä kohdella sivustoa kuin roskaa, kaiken sen jälkeen mitä ylläpitäjä on tehnyt Nokian ja Symbianin hyväksi. Kirjoitin itsekin vetoomuksen, mutta kommentistani taisi tulla liian pitkä, koska se ei näy allekirjoituksissa.


http://www.ipetitions.com/petition/my-symbian/index.html


ceroberts75 on the My-Symbian.com forum created a petition on behalf of My-Symbian.com to be read by Nokia, so everyone who is on the site's side, I ask you to sign the petition because there's really no sense in Nokia's way in which it treats the site and the administrator. Especially after what the site has done for Nokia and Symbian - promoted every Symbian device out there, but Nokia just ignores it. I signed the petition but my comment was probably to large so it doesn't show in the signatures. But here it is.


"This is truly the best Symbian site there is, and I really can't understand why Nokia treats the site like cr*p. Michal is always the last one who gets the review phones (or not at all), like the N900, which were given to 300 people at the Maemo Summit, but there's no unit left for him although he's been constantly asking Nokia for months if he could get one. 

My-Symbian has been on the net before Symbian was even born, and has ALWAYS promoted Nokia's products from the GEOS Communicator times, and has brought thousands of new customers for Nokia and has kept a thousand more as Nokia users. Somehow Nokia doesn't see it and leaves the site out of link lists (like in the case of Nokia Conversations), and the Maemo Marketing Manager doesn't even respond to his e-mails regarding a better N900 review phone than the one Michal had to obtain unofficially, with broken/ missing radio chip!?

Nokia acts very immaturely towards My-Symbian and Michal, and I'd like to hear a reason for this."



http://www.ipetitions.com/petition/my-symbian/index.html

sunnuntai 11. lokakuuta 2009

Symbian Foundation

S60 lopetetaan ja Qt tulee tilalle. Symbian-versiot nimetään periaatteella Symbian^1, Symbian^2 jne. Softakehittäjiä ja loppukäyttäjiä ajatellen on ihan hyvä ratkaisu korvata risainen ja vanhanaikainen Avkon miellyttävällä ja sutjakalla käyttöliittymällä. Edessä on kyllä todella kiintoisat ajat; saa nähdä mitä SF tuo vielä tullessaan kaikenlaisten uudistusten keskellä.

Melko surrealistisen teeman ovat ottaneet käyttöön, kun vertaa Symbianin aiempaa epämielikuvituksellista linjaa. Toivottavasti teema heijastaa Symbian Foundationin innovaatiotasoa.



S60 will be discontinued and Qt will replace it. Symbian releases will be named like Symbian^1, Symbian^2 etc. Thinking of software developers and end users this is good news because the current Avkon is somewhat outdated and scattered UI. It's really interesting to see what the future brings to us. SF may deliver some surprises for us.

At least the theme is currently very... surrealistic, compared to the earlier non-imaginary logos and general greyness. I hope the theme reflects the Symbian Foundation's innovation level.

sunnuntai 31. toukokuuta 2009

Jaksollinen järjestelmä / Periodic Table for S80

Vaikka Nokia 9210 onkin jo vuosia vanha laite, jolle ei ole tullut lainkaan uusia ohjelmia pitkään aikaan, tein sille alkuaineiden jaksollisen järjestelmän, joka näyttää aineen merkin, moolimassan, jakson, ryhmän, sulamis-/ kiehumispisteen, olomuodon huoneenlämmössä, nimen alkuperän ja erilaisia kuriositeetteja (missä ainetta käytetään, missä sitä tavataan etc.). Ja palkaksi tuli vielä kaikkien alkuaineiden merkkien tuntemus :) Toimivuus: Nokia 9210, 9210i, 9300, 9300i, 9500.

Nappaa SIS-tiedosto: PeriodicTable.sis, v1.03



Projektin sivu sijiaitsee täällä.



I have been making this freeware app for almost a year now - and here it stands proudly after all the work :) Works on S80 v1.0 (Nokia 9210 and 9210i) and also on later S80 v2.0 (9500, 9300 and 9300i).

So, for chemistry students and enthusiasts here's the essential application for Series 80 - the periodic table of the chemical elements.
It shows some basic and advanced information on the selected element - for example the group, period, block, symbol, atomic weight, CAS number, where its name comes from, and different curiosities, such as where it's used in and where it's found. Here are some screenshots (click to enlarge):

On a Nokia 9210 (v1.03):


On a Nokia 9210 (v1.01):


On a Nokia 9210 (v1.00):





On Nokia 9300i (v1.03):


On Nokia 9300i (v1.01):


On Nokia 9300i (v1.00):





Grab the SIS file:
PeriodicTable.sis, v1.03


The project's page is located here.

lauantai 27. joulukuuta 2008

id Tech 5 / Doom 4 ported to Symbian OS

How long will it take until this news is reported all over the net? Think about it, Quake I, II and III have already been ported. We will just see when Doom 3 and Quake 4 get their sources released, and finally Doom 4. Symbian OS is growing and expanding its capabilities all the time, and in the future it supports quad core (or even more) processor composition, so it's very likely that these games would be playable in the future devices.

Interesting to see what the future brings to us, eh?

perjantai 19. joulukuuta 2008

Uusi peli 9210(i):lle / New game for 9210(i)

Jos jollain sattuu olemaan vielä antiikkivehje Nokia 9210 tai sen i-malli, niin tässä olis uutta polttopuuta pelien saralle:



Porttasin SDL:ää käyttävän Dodgin' Diamond 2:n tälle alustalle, vaikka tiedän että kohderyhmä on todella, todella pieni. Sanokaa mua vaikka hulluksi tai jotain, mutta tämän siistin alustan ei pidä kuolla vielä :)
OPL runtime pitää olla asennettuna ennen pelin pelaamista.

Asennustiedosto

PS. Ei ole ääntä, ainakaan vielä, ja ampumisnappi on a.
Lisää osoitteesta

http://www.symbioosi.net/projektit.html


If someone still owns a Nokia 9210 or its i model (or 9290, or 9210c), he/ she might be interested in the recent port of Dodgin' Diamond 2 arcade space shooter game:

I ported the game which uses SDL although I know the user base is amazingly small. Call me crazy or something, but I think this platform is not yet to be buried.

Before you can play, you will have to install OPL runtime. The installation file is located here.

PS. The game lacks sound currently, and the shooting button is a.

More info at http://www.symbioosi.net/English/projects.html

perjantai 14. joulukuuta 2007

Uusi SDL:n versio S60:lle/ New version of SDL for S60

Lyhyestä virsi kaunis:
Markus Mertama on koostanut uuden version SDL:stä. Version päivämäärä on 26.11.2007 ja sen saa ladattua Markuksen SDL-sivulta.


The shortest hymns are the best:
Markus Mertama has compiled a new version of SDL. The version's date is 26.11.2007 and it's availlable for download at Markus' SDL page.

torstai 15. marraskuuta 2007

Nokia N800

Heh, päätökseni horjuvat puolelta toiselle kuin lipputangot syysmyrskyssä. Ensin ajattelin ostaa Nokia N93:n, sitten E90:n ja nyt olen tullut siihen päätökseen, että jos en ostaisikaan Symbian-pohjaista kännykkää, vaan siirtyisin Linux-laitteiden käyttäjäksi. Eli Nokia N800 ja siihen lisäksi puhelu- ja SMS-tarkoituksiin Nokian peruskännykkä 5110 tai vähän kehittyneempi 5510, jotka kummatkin omistan. Minusta Nokia N800:n tekniset tiedot ja hinta näyttävät niin hyviltä, että olisi melkein hullua ostaa sen sijaan Nokia E90, jossa saattaa vielä olla näytön naarmuuntumis- ja rasvoittumisongelmakin. Se ei olisi mukavaa puhelimessa, jonka OVH on tuhannen euron paikkeilla.

Nokia N800 kiinnostaa hyvien videonkatselu-, internet- ja pelimahdollisuuksiensa puolesta. Näyttö on 800 x 480 pikseliä, prosessorin taajuus saadaan uuden Maemo OS2008:n avulla kellotettua 400 MHz:iin, ja Youtuben videotkin toimii tässä uudessa käyttöjärjestelmässä lukemani perusteella niin kuin sen pitääkin eli pehmeästi. Doomia ja Quakea pystyy pelaamaan siististi ja kaikenlaista hyötyohjelmaakin löytyy tälle koneelle. Ja miksei sitä äkkiä vääntäisi itsekin jonkinlaista ohjelmaa äkkiä tolle, kun tarve tulee?

Joka tapauksessa erittäin siisti laite on kyseessä ja täytyy tarkkaan miettiä, josko tuon sitten ostaisi, kun on rahaa (vakiolauseeni, (c) Sami Vuori 2007-2008).

-----

Ajattelin tätä ennen ostaa ZTC ZT8380 -mallia olevan puhelimen, joka on erittäin hienon ja teknisen näköinen ja suhteellisen kehittynyt kiinalaiseksi "halpapuhelinmalliksi". Alle 180 €:lla saisin tilattua sen tänne Suomeen, jos tulliinjäämisriskiä ei oteta huomioon (silloinhan tulee lisäksi ALV 22 % + tullivero 3,5 % paketin arvosta), mutta silti aika huono malli: Kysyin Sourcinggaten asiakaspalvelulta tuon kännykän GPS:stä ja sieltä ilmoitettiin että valitettavasti GPS on hyödytön täällä Suomessa, koska puhelimesta ei löydy karttaa tänne.

Katselin myös Nokia E90 -kopiota, mutta se ei kyllä kiinnosta paljoa, kun molemmat näytöt ovat samankokoiset (320 x 240 pikseliä), ja lisäohjelmiakaan ei pysty oletettavasti asentamaan tuohon kännykkään.


Heh, my decisions wobble from one side to another like flagpoles in an autumn storm. At first I thought I'd buy Nokia N93, then E90 and now I have come to a decision, that I wouldn't buy a Symbian based phone, but transferred into Linux devices. So Nokia N800 and in addition to that I'd use for phone and SMS purposes Nokia 5110 or 5510, which I'm an owner of both. I think Nokia N800's technical specifications and price look so good that it would almost be madness to buy instead a Nokia E90, which could even have the screen scratching and smudging problem. It wouldn't be so nice in a phone, which has an SRP of about a thousand euros.

Nokia N800 interests me because of its good video viewing, internet and gaming possibilities. The screen is of 800 x 480 pixels resolution, the processor's frequency can be clocked up to 400 MHz with the new Maemo OS2008, and from what I've read, Youtube's videos work as they should, cleanly that is. Doom and Quake can be played decently and every kind of utility programs can be found for this device. And why not quickly code myself some kind of program for this apparatus, when the need hits?

In every way it's a very neat device and I have to think carefully, if I'd buy it when I have enough money (the basic phrase, (c) Sami Vuori 2007-2008).

-----

Before this I wondered if I should buy ZTC ZT8380 branded phone, which is looks very cool and technical and is relatively developed for being a "Chinese cheapie." For under 180 € I could order it right here to Finland, if the risk of being caught in the customs isn't taken into observation (because then comes the 22 % VAT and customs taxes of 3,5 % of the overall product's price), but the device is still somewhat bad: I asked about the GPS property from Sourcinggate's customer service and they said that unfortunately the GPS is useless here in Finland because the phone doesn't have maps for this country.

I also looked at the Nokia E90 rip off, but it doesn't interest me much, when both screens are equally sized (320 x 240 pixels), and extra applications can't assumably be installed onto the phone.

maanantai 10. syyskuuta 2007

Nokia E90:n emulaattori PC:lle?/ Nokia E90's emulator for PC?

Latasin S60 3rd Edition FP1 SDK:n ja käynnistin emulaattorin ja ihmetyksekseni huomasin, että Nokia E90:n näytön kokoista tilaa ei ollut saatavilla (800 x 352 pikseliä). Etsin tietoa netistä ja sain selville, että sellainen täytyy ostaa Forum Nokia S60 API Partnering Programin kautta.

Onnekseni SDL-peliohjelmoinnissa ei tarvitse E90:n APIa, koska pelin testaamisen voi hoitaa myös PC:n kautta (kiitos SDL-koodin alustariippumattomuuden).


I downloaded the S60 3rd Edition FP1 SDK and started the emulator and for my amazement I noticed, that there were no screen size available equal to the Nokia E90's (800 x 352 pixels). I searched the internet and found out that you have to buy one via Forum Nokia S60 API Partnering Program.

For my fortune, programming a game with SDL doesn't need the E90 API, as the testing can be done on the computer (thanks to SDL code's platform independency).

keskiviikko 5. syyskuuta 2007

Quake 1 portattu S60 v3.1:lle/ Quake 1 ported onto S60 v3.1

Suomalainen hinkka-nimimerkillä (myös ohinkka) Internetissä tavattava ohjelmoija on portannut Quake 1:n Symbian S60 3rd FP 1:lle. Ainoa, mikä ei toimi, on verkkopelaaminen. Peli toimii täydellisesti Nokia N95:llä.

Hinkan kotisivut:
http://koti.mbnet.fi/hinkka/

Tulee ylpeä olo kun ajattelee, että suomalaiset ovat tuoneet Symbian-alustalle CDoomin (Hannu Viitala) ja C2Doomin(Markus Mertama) ja nyt vielä Quakenkin.


A Finnish programmer named hinkka, who can be met on the Internet, has ported Quake 1 onto Symbian S60 3rd FP1. The only thing, that doesn't work, is the netplay. The game works perfectly on Nokia N95.

Hinkka's home page:
http://koti.mbnet.fi/hinkka/

I feel proud, when I think that Finnish people have brought CDoom (Hannu Viitala) and C2Doom (Markus Mertama) and now also Quake onto the Symbian operating system.

maanantai 3. syyskuuta 2007

S60 SDL toiminnassa!/ S60 SDL working!

On kyllä syytä juhlia nyt, kun viimeinkin sain SDL:stä kaiken haluamani toimimaan S60-ympäristössä emulaattorille. Viimeinen ongelmani oli kuvan lataus, joka ei millään onnistunut. Yritin ladata sitä ohjelmassani komennolla:

  kuva = SDL_LoadBMP("kuva.bmp");

Tällöin kuva olisi ladattu oletushakemistosta eli SDK:n \epoc32\release\winscw\udeb\z\private\[UID] -kansion sisältä. Täältä se ei siis millään ilveellä latautunut, mutta kun muutin hieman polkua koodissa ja kopioin kuvan ko. kansioon:

  kuva = SDL_LoadBMP("C:\\kuva.bmp");

...niin johan alkoi tapahtua! Kuva näkyi hienosti näytöllä, eikä mitään virheellistä ollut havaittavissa. Kansio on tuossa tapauksessa \epoc32\winscw\c\.
Jotain ongelmaa sen kanssa tosiaan on silloin, kun tuolta UID-hakemistosta yritetään kuvaa ladata. Tulokseksi tulee siis tuolloin pelkkä musta ruutu. Nyt on kuitenkin kaikki hyvin ja voisi jotain peliä alkaa väsäämään SDL:llä.

Symbian-guru Markus Mertamalle vielä julkinen kiitos siitä hyvästä, että hän on auttanut minua paljon saadakseni tämän SDL:n toimimaan S60 3rd Edition -ympäristössä. Ja suuri kiitos siitä, että hän on portannut SDL:n Symbianille!


It's time to celebrate now when I finally got everything in SDL working on the S60 environment for the emulator. The last problem was loading the image, which didn't work at all. I tried to load it with the command:

  kuva = SDL_LoadBMP("kuva.bmp");

This way the image file would be loaded from the default directory, that is inside the SDK's \epoc32\release\winscw\udeb\z\private\[UID] folder. From there it didn't get loaded in any way, but when I changed the code a little bit and copied the image file into the folder:

  kuva = SDL_LoadBMP("C:\\kuva.bmp");

...something really started happening! The image showed up brilliantly on the screen, and nothing erroneus was in sight. The folder in that case is \epoc32\winscw\c\.
Some problems I had with it, when the image is tried to be loaded from the UID folder. The result will then be just a black screen. But, now it's all right and I could start to make some kind of game with SDL.

For the Symbian guru Markus Mertama I'd like to give a public acknowledgement for the good he has given to me by helping to get this SDL working on S60 3rd Edition environment. And a huge thank you for porting SDL onto Symbian!

sunnuntai 2. syyskuuta 2007

Symbian C++

Jos minulta kysyttäisiin, että mikä on mielestäni maailman vaikein ohjelmoitava ympäristö, niin vastaukseni olisi Symbian. En ole kyllä puoliakaan ympäristöistä nähnyt, mutta Symbian vaikuttaa siltä, että jumalat olisivat olleet koodaamassa sitä. Varmaan aika harva ihminen maailmassa pystyy lonkalta kirjoittamaan "Hello World!" -tyyppisen ohjelman graafisella käyttöliittymällä varustettuna Symbianille. Propsit ja kaurakeksi tällaisille henkilöille.

"Hello World!" konsoliympäristössäkin näyttää tältä, jos ei oteta huomioon C-kielisen koodaamisen mahdollistavaa OpenC-pluginia (joka sekin on vain S60 3rd Editionille):

LOCAL_C void doExampleL()
{
_LIT(KHelloWorldText,"Hello world!\n");
console->Printf(KHelloWorldText);
}

C:n ja C++:n "Hello World!" -esimerkki vielä menee helpostikin, mutta jos tuon haluaa ymmärtää niin on vähän tajuttava luokkien ja osoitinten päälle. Voi voi voi... Tietysti kannattaisi lukea aluksi Symbian OS Explained -kirja, jotta saisin vähän ymmärrystä siihen, miten Symbian OS:ssä jutut toimivat.

Loppusanasena kommentoin, että älyttömän kivuliaalta ja mieltämurtavalta tuo Symbian C++ näyttää. Mutta jotain juttua olen kuullut että Symbian-koodaajien palkkataso on siellä 3000 hujakoilla. Eipä ole ihme. Olisi mukava kuulla jonkun samankaltaisen ihmisen aatteita Symbian C++:sta. Samanlaisen Symbian-friikin kuin minun.


If someone would ask my opinion of what environment is the hardest to program onto, I'd say Symbian. I haven't seen even the half of all the environments, but Symbian appears to be like it was coded by gods. Surely pretty few people in the world can bluntly write a "Hello World!" type of program with graphical user interface for Symbian. All points and a cracker for this kind of person.

"Hello World!" in colsole environment looks like this, if the OpenC plugin (which is only for S60 3rd Edition) that enables the coding with C language:

LOCAL_C void doExampleL()
{
_LIT(KHelloWorldText,"Hello world!\n");
console->Printf(KHelloWorldText);
}

I understand C's and C++'s "Hello World!" example quite easily, but if you want to comprehend that, you must have some knowledge of classes and pointers. My oh my... Naturally you would expect me to read the book Symbian OS Explained to shed some light onto how things work on the Symbian OS...

As a final word I'll comment that unbelievably painful and mind-crushing that Symbian C++ seems. But some stories I've heard that Symbian programmers' wage level is somewhere near 3000 euros per month. No wonder. It would be nice to hear someone same kind of person about Symbian C++. Another Symbian freak like me.

lauantai 1. syyskuuta 2007

iPhone-klooni Nokialta/ iPhone clone from Nokia


Nokia paljasti 29. päivä tätä kuuta GoPlay-tapahtumassaan uuden kännykkämallinsa, joka on erehdyttävän saman näköinen kuin eräs toinen puhelinmalli - nimittäin iPhone! Kun Nokian multimediayksikön johtajalta, Anssi Vanjoelta, kysyttiin iPhonen ja tämän "iPhonyn" samanlaisuudesta, niin hän vastasi: "Jos maailmassa on jotain hyvää, kopioimme sitä ylpeydellä." Mmm... Eh? Mielestäni tuo on aikamoinen kunnianosoitus iPhonelle - Applen ensimmäiselle kännykkämallille. Niin suuri, että maailman kännykkäjätti haluaa kopioida sen ominaisuuksia uuteen kännykkäänsä.

Tuo iPhony toimii S60-alustalla ja käyttää kiihtyvyyssensoria ja lukemani mukaan pystyy reagoimaan kahden sormen painallukseen yhtä aikaa. Kiinnostavaa nähdä, miten tuo menee kaupaksi sitten, kun iPhone on jo kauan ollut myynnissä. Eli ensi vuonna jossain vaiheessa.
Itse en varmaan koskaan osta iPhonea enkä tuota kopiotakaan, vaan pysyttelen tavallisissa näppäinkännyköissä.


Oh please, just read the English article from one of the thousands of other blogs you think are superior to mine =)
http://www.engadget.com/2007/08/29/nokias-iphone-no-seriously/

perjantai 31. elokuuta 2007

OPL:n tulevaisuus/ OPL's future

Koodaaminen on jännää ja hauskaa puuhaa. Kun taannoin koodailin OPL:llä ohjelmia, se oli todella helppoa ja vaivatonta. Toimiva käyttöliittymä oli helppo rakentaa ja koodailu onnistui puhelimellakin. Nyt OPL on suuren kuolemisuhan alla S60 3rd Editionin binääriyhteensopimattomuuden ja projektin ylläpitäjien vähyyden (kaksi aktiivista ohjelmoijaa) vuoksi.

Itse koodailin alaani liittyvää laskinohjelmaa S80-alustalle, joka auttoi minua melkoisesti opiskelupaikassani. Ohjelmassa täytyi syöttää vain luvut dialogiboksiin ja ohjelma tulosti näytölle tuloksen (esimerkiksi ideaalikaasun lain lasku, pV = nRT). Hauskaa oli. Ja nopeaa koodaamista, kun kielenä toimi OPL. Nyt täytyy sitten alkaa vähitellen opetella Symbian C++:aa, jotta pystyy jotain tuollaista tekemään. Tai no, onhan noita Pythoneita ja muitakin kieliä, joista valita. Olisi ehkä järkevämpää opetella niitä ennen "hirviöön" siirtymistä...

Tässä kun kirjoittelen niin alkaa hirmuisesti kasvamaan taas koodailuinto. Pythonin alkeita siis opettelemaan.


Coding is exciting and fun. When I some time ago coded applications with OPL, it was very easy and painless. A working interface was easy to build and coding could be done on the phone also. Now OPL is under a threat of dying completely because of the binary uncompatibility with S60 3rd Edition and the project administrators' fewness (two active developers).

I myself coded for S80 platform a calculation application connected to my occupation, which helped me a lot in my school. In the program there was meant to enter only the figures into a dialog box and then the application printed the result onto the screen (for example the ideal gas law, pV = nRT). It was fun. And quick coding, for that matter, when the language was OPL. Now I must step by step learn Symbian C++ to be able to do that kind of applications. Well, there are these Python and other languages to choose from as well. It might be reasonable to learn them before moving onto the "monster"...

Now when I'm writing this, the coding enthusiasm begins to rise up extensively. So let's go to learn Python's ABC.

Nokia N93

Olen nyt muutaman viikon katsellut Nokia N93:lla otettuja kuvia ja laitteen speksejä sun muuta ja olen vakaasti päättänyt että sellaisen hankin. Sitten kun on rahaa. Laite on oiva pelipuhelin, koska suuntanäppäimistö on sen vasemmalla puolella silloin, kun pelataan vaakanäyttötilassa. Yleisin paikka peliohjaintenkin suuntanäppäimistölle on juuri vasemmalla puolella. TV-out-mahdollisuus on tietenkin plussaa, mutta en usko käyttäväni sitä kovinkaan usein. Kameraa sitten taas käytän hyvinkin usein. N93:n kuvat ja video sekä muutkin speksit näyttävät olevan samaa tasoa kuin ensimmäisessä digikamerassani, HP PhotoSmart M307:ssa.

SDL:llä pystyy myös tekemään pelejä tälle kännykälle, ja se onkin yksi kriteeri, jonka vuoksi hankin ko. puhelimen. Joskus sitten tulevaisuudessa varmasti tulee tehtyä jonkinlaista hyötyohjelmaakin Symbian C++:lla, mutta nyt tiedot ja taidot ovat liian heikot sellaiseen.


Lately I have been viewing photos taken with Nokia N93 and its specifications and else and I've firmly decided to get one. When I have the needed amount of mone, of course. The device is a brilliant gaming phone, because the directional pad is on its left side when the landscape mode is used for playing. The most common place of game controllers' d-pad is on the left side. TV-Out possibility is of course a plus side, but I'm not sure if I will use it very often. Then again I use the camera very often. N93's photos and video and other specs seem to be of the same quality as in my first digital camera, HP PhotoSmart M307.

One can make games with SDL for this phone, and it is one criterion, which affects to my decision to get this phone. Somewhere in the future I will surely make some utility programs with Symbian C++, but right now the knowledge and skills are too weak for that.

Capcomilta pelejä Symbianille/ Games from Capcom onto Symbian

Uusi Nokian N-Gage-alusta puhuttaa nyt maailmalla. Nokia on maininnut että se ei enää ole vain yksi laite, vaan palvelu, josta voi hankkia pelejä S60 3rd Ed. -laitteille. Tuetut laitteet ovat ainakin Nokian mukaan "yhteensopivat Nseries-laitteet". Tällä tarkoitetaan laitteita, joissa on mm. rautatason 3D-kiihdytys (käyttää PowerVR:n piiriä ja ohjelmointi tapahtuu käyttäen OpenGL ES:iä ja M3G:tä). Palvelu on siis saatavilla marraskuusta 2007 lähtien seuraaville laitteille:
- Nokia N73
- Nokia N81
- Nokia N81 8GB
- Nokia N93
- Nokia N93i
- Nokia N95
- Nokia N95 8GB

Tälle Nokian uudelle N-Gage-konseptille on lupautunut mittava määrä pelintekijöitä tekemään pelejä, mm. Capcom (tunnettuja pelisarjoja mm. Mega Man, Street Fighter ja Resident Evil), Vivendi Games (Crash Bandicoot, jonka tulo on varmistettu mobiilialustalle), Electronic Arts (FIFA 08, The Sims 2 Pets, Tetris ja Tiger Woods PGA TOUR, jotka ovat varmistettuja) ja Nokia itse (Bounce Boing Voyage ja Snakes Subsonic, jotka ovat tulossa hyvää vauhtia).

N-Gage-konseptin pelit maksavat 6-10 euroa ja maksutapana voi käyttää operaattorin laskua tai luottokorttia. Taas on vanhemmilla yllätys odottamassa kuun lopulla, kun poika on ladannut 20 kännykkäpeliä uuteen älypuhelimeensa.


The new Nokia's N-Gage platform gets talked about currently. Nokia has stated that this concept isn't just one device any more, but a service where one can obtain games for some S60 3rd edition devices. The supported devices are, according to Nokia, "compatible Nseries devices." This concern devices that have at least hardware 3d acceleration (uses PowerVR's chip and programming is based on OpenGL ES or M3G). The service is obtainable from November 2007 for following devices:
- Nokia N73
- Nokia N81
- Nokia N81 8GB
- Nokia N93
- Nokia N93i
- Nokia N95
- Nokia N95 8GB

A noteworthy amount of game developers have pledged to make games for this Nokia's new N-Gage concept. For example Capcom (famous game series include Mega Man, Street Fighter and Resident Evil), Vivendi Games (Crash Bandicoot, whose arrival is confirmed), Electronic Arts (FIFA 08, The Sims 2 Pets, Tetris and Tiger Woods PGA Tour, that are all confirmed) and Nokia itself (Bounce Boing Voyage and Snakes Subsonic, that are proceeding with substantial speed).

N-Gage concept's games cost 6 to 10 euros and paying methods accepted are operator's bill or credit card. Again the parents have quite a surprise waiting for them at the end of the month, when the boy has downloaded 20 games onto his brand new mobile phone.

torstai 30. elokuuta 2007

Simple DirectMedia Layer (SDL)

Kyllä täytyy nostaa oikein kunnolla hattua eräälle peliohjelmoijalle - nimittäin Sam Lantingalle. Hän on helpottanut peliohjelmointia huomattavasti tuomalla vuonna 1998 SDL-nimisen ohjelmointirajapinnan julki, jossa esimerkiksi kuvan lataus on erittäin nopeaa ja helppoa, mutta silti hyvin nopeaa, kun kielenä käytetään C:tä. Itse opettelen tällä hetkellä kuumeisesti ohjelmointia SDL:llä, sillä SDL:n funktioita käytettäessä koodia voi ajaa niissä laiteissa, joille SDL on julkaistu (eli Windows, Linux, Windows CE, Mac OS, Symbian OS + monia muita).

Käytän Markus Mertaman porttaamaa SDL-versiota Symbianille (käytän S60 3rd Edition Maintenance Release -softakehityspakkausta (SDK)), ja alkukankeuksien jälkeen olen saanut ajettua mm. XFlame-, Newvox-projektit emulaattorilla. Kyllä se on mahtava tunne kun saa jotain tuloksia Symbianille. Työn hedelmiä jaksaa katsella pidemmän aikaa, kun on yrittänyt ja yrittänyt ja lopulta onnistunut. Markus on paljon auttanut minua näissä jutuissa ja jaksanut uhrata aikaansa melko paljon viime aikoina kysymyksilleni. Olen hänelle todella, todella kiitollinen. Hän on kyllä Symbian-ihmemies.

Yritin taannoin S80-ympäristössä (v2 eli Nokia 9500, 9300 ja 9300i) saada SDL:ää toimimaan. Kokeilin peräti neljää SDL:n versiota, jotka ovat portattu Symbianille mutta eipä syntynyt tuloksia. Tai no, tuloksina olivat musta ruutu kännykässä tai koko projektia ei pystynyt kokoamaan Series 80-alustalle virheiden vuoksi (joita minä en ymmärtänyt ainakaan). Päätin luopua yrittämisestä ja myin Nokia 9500:ni pois, koska en enää yritä tehdä sille ohjelmia. S80 on niin epätuettu käyttöliittymä verattuna S60 v3:een. Jälkimmäinen on tulevaisuus. All roads lead to S60 3rd edition. Antaa S80:n kuolla rauhassa. Itse ajattelin, että olisin vielä aktiivinen S80-koodaaja vuosienkin päästä (ja loistokkaasti nimeni näkyisi my-symbian.comin S80-osaston uutissivulla monen monta kertaa, heh), mutta tähän on nyt tultu. S60 vei minut mennessään.


I must give some big credits for one particular game programmer - Sam Lantinga that is. He has made game programming way easier by bringing in the year 1998 to publicity an application programming interface named SDL, where, for example loading an image is very fast and easy, but still very efficient when the used language is C. I'm currently learning hectically programming with SDL, because when its functions are used, the code can be driven in all the devices that SDL has been published (Windows, Linux, Windows CE, Mac OS, Symbian OS + many others).

I'm using the SDL version that Markus Mertama has ported onto Symbian (I use S60 3rd Edition Maintenance Release software development kit (SDK)), and after some troubles at the beginning I have successfully driven XFlame and Newvox projects on the emulator. It sure is a wonderful feeling when one gets working results onto the Symbian. The work's products can be preferably viewed for a long time, when you have tried and tried and at last succeeded. Markus has helped me a lot in these things and managed to sacrifice quite much time for my questions lately. I'm very, very grateful for him. He sure is a Symbian MacGyver.

Not long ago I tried to get SDL working on the S80 environment (v2 (Nokia 9500, 9300 and 9300i)). I tried altogether four SDL versions that had been ported onto Symbian but results weren't born. Or better, the results were yet black screen on the phone or the whole project couldn't be compiled onto the Series 80 UI because of the errors (that I didn't understand at all). I decided to give up trying and sold my Nokia 9500 away, because I'm no longer going to try making applications onto it. S80 is so unsupported platform compared to S60 v3. The latter is the future. All roads lead to S60 3rd edition. Let S80 die in peace. I thought I'd be an active S80 coder for years after (and gloriously my name would show up on my-symbian.com's S80 section news page for many, many times, heh), but here I have come. S60 took me with it.

C++-ohjelmointi/ C++ programming

Nyt kolme kuukautta tosissaan opeteltuani C++:aa (aiemmin lainailin kirjoja mutta ne eivät oikein auenneet silloin) voisin sanoa, että perusasiat on oppinut älyttömän nopeasti kun on noin vuoden koodaillut OPL:llä ohjelmia Symbianille (S80-alustalle). Luokkajuttuja pitää vielä kerrata ennen kuin ne aukeavat kunnolla, jos aukeavat. Sitten siirrytään taas eteen päin kohti vaikeampia asioita. Vapaan itseopiskelun merkeissä tietysti, mitä nyt jonnekin tunneille tämän vuoksi vaivautua, kun kotona kaiken saa tehdä omaan tahtiin ja yritys-erehdyssilmukkakin pääsee täällä oikein perusteellisesti valloilleen.

Jos luet tätä etkä ole koskaan ohjelmoinut ja haluaisit aloittaa, en suosittele C++:aa, vaikka se kuulostaisikin kivalta. Kannattaa aloittaa esim. BASIC:n kaltaisesta helposta kielestä, jossa ei ole sekaannuttavia ominaisuuksia (puolipilkut, kaarisulut yms.) ja jossa vähäisellä koodimäärällä voi saada kiinnostavia tuloksia aikaan.


Now when I have been learning C++ seriously for three months (formerly I borrowed books but they didn't open up then), I'd say that I have learnt basic things really fast, because I have been programming applications for Symbian (S80 user interface) with OPL. I need to rehearse class things before they open up completely, if they ever will. Then I'll move forward towards more difficult things. Of course this is done by private studying; why bother going to some class for this, as one can progress at his own rhythm, and the trial and error loop gets loose here very thoroughly.

If you read this and have never programmed before and would like to start, I don't recommend C++, although it may sound like a nice option. You should start with, for example BASIC-like rather easy language, which has no confusing properties (semicolons, parentheses and others) and a little amount of code can produce some interesting results.

Blogin ja bloggaajan esittely/ Introduction

Bloggaus on nyt sitten aloitettu. Ajattelin tänne laittaa asiaa ainakin
- PDA- ja kännykkäaiheista
- ohjelmoinnista (C/C++, OPL + mahdollisesti muistakin)
- Symbian-käyttöjärjestelmästä ja sen ohjelmoinnista.

Lisää aiheita on mielessä, mutta ne tulevat sitten jos tulevat. Tällä hetkellä suurimmat kiinnostukseni ovat noissa aiheissa.

Joku esittelykin voisi olla kohteliasta, eli olen laborantin ammattiin valmistunut supisuomalainen mies, vuosikertaa 1988. Kiinnostuksina voisi mainita noiden ylempien aiheiden lisäksi valokuvauksen, yleisen tekniikan ja tieteen sekä hämähäkkieläimet.

Käännän blogia nyt englannin kielelle, koska se saattaa sisältää arvokasta tietoa kansainvälisille Symbian SDL -kehittäjille ja ehkä myös muillekin. Korostan englanninkielisen tekstin sinisellä värillä.


So, blogging has been started now. I thought I'd put here at least subjects about
- PDA and mobile phones
- programming (C/C++, OPL and possibly others as well)
- Symbian operating system and its programming.

More subjects are in my mind but they will come here if will. Currently my biggest interests are in these subjects.

Some kind of introduction would be appropriate, so... I'm a Finnish man born in 1988, who has graduated to laboratory assistant profession. In addition to those topics I mentioned, I could also name photographing, general technology, sciences and arachnids.

I have now started to translate this blog into English, as it may contain some valuable information for international Symbian SDL developers and maybe for others as well. I'm going to highlight the English text with blue colour.