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).
Näytetään tekstit, joissa on tunniste Simple DirectMedia Layer. Näytä kaikki tekstit
Näytetään tekstit, joissa on tunniste Simple DirectMedia Layer. Näytä kaikki tekstit
maanantai 10. syyskuuta 2007
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:
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:
...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:
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:
...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!
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!
Tunnisteet:
3rd,
edition,
guru,
Markus Mertama,
S60,
SDK,
SDL,
Series 60,
Simple DirectMedia Layer,
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.
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.
Tunnisteet:
c++,
hp,
m307,
n93,
Nokia,
pelipuhelin,
photosmart,
SDL,
Simple DirectMedia Layer,
symbian
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.
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.
Tilaa:
Blogitekstit (Atom)