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

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

sunnuntai 27. heinäkuuta 2008

Sihdissä Nokia 9210(i)/ Nokia 9210(i) in sight

Nyt on sen verran hulluksi mennyt tuo kännyköiden vaihtelu että pitää vähän vaihdella lisää. Nokia 9210 tai sen i-malli on siis hankinnassa, vaikka onkin älyttömän vanha puhelinmalli. Käytin sitä joskus nuoruusvuosinani, ja haluaisin vielä kerran saada sen henkilökohtaiseksi data-avustajalaitteekseni. Oli se sen verran hyvä kännykkämalli, kun sille tehtiin sen kultavuosina raivokkaasti erilaisia ohjelmia, mm. kaksi Doom-versiotakin (Hannu Viitalan ja Wildpalmin).

Pääsen myös jatkamaan puolitoista vuotta sitten stopanneita OPL-projektejakin. OPL-ohjelmointi on hauskaa, toisin kuin C++:n. Ai niin, C++:sta tulikin mieleen, että Hannu Viitalan sivuillahan on SDL-julkaisu Nokia 9210:lle, joka toimii (toisin kuin Nokia 9300:n ja 9500:n sekä 7710:n versiot). Tarjoa Nokia 9210:aasi minulle, jos sinulla on sellainen ja haluat päästä siitä eroon. Mailia vain osoitteeseen sambonenpoistatämäosa@gmail!!!PISTE!!!com


All this changing phone model too often has gone so crazy that I must practice it some more. I'm currently looking for Nokia 9210 or its i model although its a really old model. I used it in my younger years, and would like to get it to act as my personal data assistant once more. It was such a good phone model because in its golden years it got made all these wonderful applications, and even two Doom versions (Hannu Viitala's and Wildpalm's).

I can also continue my OPL projects which ended some year and a half ago. OPL programming is fun, unlike C++. Oh yes, C++ reminds me the fact that in Hannu Viitala's site there is the SDL release for Nokia 9210 which actually works (unlike Nokia 9300's and 9500's or 7710's versions).

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.

lauantai 24. marraskuuta 2007

Linux ennen XP:tä/ Linux over XP

Kun olin jonkin aikaa lueskellut Nokia N800:n käyttäjäkommentteja ja arvosteluja, päätin ottaa selvää Linux-käyttöjärjestelmästä. Totesin, että sitä kannattaa aikakin kokeilla, ja varsinkin sen vuoksi, että Windows XP rullaa tässä tietokoneessa (500 MHz, 320 MB RAM) aivan liian hitaasti. En ainakaan menettäisi mitään.

Päätin valita Ubuntun (7.10, Gutsy Gibbon) jakeluversioksi. Se osoittautuikin todella hyväksi valinnaksi, koska nyt tietokoneen käyttö on todellakin nopeutunut huomattavasti. Tietokoneessa on vielä hieman liian vähän muistia, koska Operan ollessa päällä (monta välilehteä samaan aikaan) on vapaata muistia noin 10 megatavua. Mutta emolevylleni saa laajennettua muistia 3 x 256 MB:n verran eli 768 MB:iin, joten siihen tähdätään. Jos sinulla on myytävänä PC100-yhteensopivia 256 MB:n kokoisia DIMM-muisteja halvalla, niin olisin kiinnostunut :)

Linux on kyllä erikoinen järjestelmä, ja olen todella vaikuttunut Lisää/poista-ohjelmasta. Siellä on massiivinen lista ohjelmista, jotka sopivat tähän jakeluversioon ja riittää, kun rastitat listasta haluamasi ohjelmat ja sitten ohjelma asentaa ne järjestelmään. Lisäksi Pääte-sovellus (Windowsin Komentoriviä muistuttava ohjelma) on todella hieno, koska siinä on C- ja C++-kääntäjä integroituna ja kirjastoja (esim. SDL) voi lisätä haluamansa mukaan.

Olen todella tyytyväinen Windows XP:stä Linuxiin siirtymiseen. Vielä täällä on toinen (tai oikeastaan kaksikin) kone, jossa on Windows XP, eli XP:n ominaisuuksia tarvittaessa ei tarvitse asentaa uudelleen sitä tähän tietokoneeseen.


When I had some hours read Nokia N800's user comments and reviews, I decided to read some information about Linux operating system. I discovered that I should give it at least a try, and especially for the reason that Windows XP runs just too slow on this computer (500 MHz, 320 MB RAM). At least I wouldn't lose anything.

I determined to single out Ubuntu (7.10, Gutsy Gibbon) as the distribution. It showed to be a very good choice, because now using the computer has become noticeably faster than before. There's still a bit too little memory, because when Opera is on (many tabs at the same time), the amount of free memory is about 10 MB. But my motherboard can hold up to 3 x 256 MB amount of memory, so I'm aiming at 768 MB of RAM. If you have PC100-compatible 256 MB -sized DIMM memory modules for sale, I'd be interested :)

Linux sure is a extraordinary system, and I am very impressed by the Add/remove program. There's a massive list of applications that are compatible with this distribution and it's enough to check the boxes of desired programs. Then the application installs them onto the system. In addition to that, the Terminal-application (equivalent to Windows' Command line) is very neat, because there's an integrated C and C++ compiler and one can add libraries (e.g. SDL) into it when the person wants.

I'm most satisfied for the transference from Windows XP to Linux. Yet here is another computer (actually two), where there is Windows XP, so when I need XP:s properties, I don't have to reinstall it onto this computer.

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).

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!

perjantai 31. elokuuta 2007

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.

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.