| 1   2   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   XMoto running on N900 now in Repos [Launch from desktop with QueenBeeConWidgets] (https://talk.maemo.org/showthread.php?t=63780)

MINKIN2 2010-10-13 21:22

XMoto running on N900 now in Repos [Launch from desktop with QueenBeeConWidgets]
 
Hi guys, It has been a couple of weeks since I first posted this original topic and since then divan has made some fantastic changes in order to make this version finger friendly for hildon AND added it to the Repo's too.

Due to this game being designed for the Diablo/N800 platform, there were some settings that needed to be tweeked and divan did some excellent work changing the menu screens and adding Accelerometer controls for N900. There is currently no native launch icon from the desktop however using the QueenBeecon Widgets below you can launch from the desktop as you would expect to.


Installing the game


This is now in Repos, so feel free to open Application Manager http://maemo.org/packages/package_in.../0.2.6-maemo2/


http://i178.photobucket.com/albums/w...eenshot0a2.png

http://i178.photobucket.com/albums/w...nshot0a1-1.png

http://i178.photobucket.com/albums/w...toTryAgain.png

http://i178.photobucket.com/albums/w...evelselect.png




Controls: Comination of Keyboard and Screen

In Game
Up = Accelerate
Down = Brake
Left+Right = Shift Weight

Menu
Curser/Select =Touchscreen

Other
SIXAXIS with Select button for Enter (if paired to N900)


:DHappy playing. There are 130+ levels to enjoy. :D



Adding the QueenBeeCon Snippet

Ok so having to enter Xterm every time you want to launch the game will probably become a little tedious, so I have put together a couple of little icons to enable the game to launch from the Desktop using the Awesome QueenBeeCon Widget creator.

http://i178.photobucket.com/albums/w...QBWwidgets.png

There are two Icons to choose from for you liking

x-moto.png
http://i178.photobucket.com/albums/w...uff/x-moto.png

x-moto2.png
http://i178.photobucket.com/albums/w...ff/x-moto2.png


If you need to download the Queen BeeCon Widget creator the please see here http://wiki.maemo.org/Queen_BeeCon_Widget

Now most of you who have the AWESOME QBWcreator will no doubt now how to do this already, but I will still continue with my newbie friendly how-to.


Download either of the two X-moto.ping images above and save them to /home/user/.queen_beecon_dir

Return to the N900 home screens and add a new QueenBeeCon Widget (Desktop Menu > Add Widget > QueenBeeCon Widget).

Click on the Spanner Icon of the new QBWiget and enter the following settings

Type: Snippet
Command Selection: Blank

Widget Size & position tuning
Width: 83
Height:83


Statuses Backgound colours and imaging

Snippet Background Colour: User the sliders to choose the colour best suited to your desk top

Command Title settings
Change the queen-beacon.png to the name of image you saved to the .queen_beecon_dir location (x-moto.png or x-moto2png).


Command Results settings
Delete the line queen-beeconresimg.png and leave feild blank.

Now click on "Add command", leave the Title field blank and enter "xmoto" in the Command field

Then tap Save, Save again and Done to exit the Desktop Menu. THe Icon Snippet should now be set up for you to launch X-Moto from the desktop.

:DEven Happier Gaming:D



A few other things...

You can manually edit the config.dat and tweak the settings, controls, sound and graphics in the following location with your favorite text editor. (I use Midnight Commander)

Path: /home/user/.xmoto/config.dat

An example would be If you wish to run the game in window mode, change the Display lines to read like so...

<var name="KeyDrive1" value="X"/>
<var name="KeyBrake1" value="Down"/>
<var name="KeyFlipLeft1" value="Left"/>
<var name="KeyFlipRight1" value="Right"/>
<var name="KeyChangeDir1" value="Space"/>

You can leave everything else, save and close the file or try tweaking other settings if you want to?


Inside here is the original Tuxfamily Repo for xmoto on the N800http://talk.maemo.org/showpost.php?p=44645&postcount=5

To install the original file in Application Manager, create a new catalogue entry

Catalogue name: Xmoto
Web address: http://download.tuxfamily.org/xmoto/maemo/
Distribution: it2007 testing/

Refresh your catalogues, search and install Xmoto.


I have found some issues with this as it is, a few of which have already been discussed firther in the thread.

  • Some screen tearing in game
  • Button mapping missing Esc key and Enter key not working in game. (This is not an issue with the version in the Repo as the Death Animation has been turned off)
  • Performance issues with some of the user created levels when running at 600mhz. (OC@850mhz seems to be fine)

In closing, I just want to say Thanks to the original poster if you are reading this and to divan for his great work and for getting this in to the Repos for everyone to enjoy.

Thank you for reading

MINKIN2

taril 2010-10-13 21:48

Re: XMoto running on N900
 
Finally!
Does it follow the development changes?

Aranel 2010-10-13 21:57

Re: XMoto running on N900
 
More importantly, is it optified? I guess not?

MINKIN2 2010-10-13 22:00

Re: XMoto running on N900
 
Quote:

Originally Posted by taril (Post 840392)
Finally!
Does it follow the development changes?

If there were any I don't think it has been updated since 2007. It is a pretty old repo.


Quote:

Originally Posted by Aranel (Post 840396)
More importantly, is it optified? I guess not?

Lol, I can safely say it is not.

divan 2010-10-14 09:36

Re: XMoto running on N900
 
Thanks! Seems it really nice choice to port under maemo, so someone should port latest version =)
BTW, it works fine in fullscreen for me.

Quote:

Locate the config.bat here /home/user/.xmoto/config.bat
File name is config.dat, not .bat :)

UPD. Sound works if enable EngineSoundEnable in config.dat

<var name="EngineSoundEnable" value="true"/>

MINKIN2 2010-10-14 11:32

Re: XMoto running on N900
 
Thanks divan we now have sound :)

I will update the original post and sort out my typo a littlte later when I get more time.

How are you getting it to play in full screen btw?

Sash 2010-10-14 12:51

Re: XMoto running on N900
 
Good work. Would be good if it works with Accelemymote too.

HtheB 2010-10-14 12:54

Re: XMoto running on N900
 
Any possibility to add this into the Maemo repos? :)

divan 2010-10-14 12:59

Re: XMoto running on N900
 
Quote:

How are you getting it to play in full screen btw?
It was enabled by default - and it did work great. But I prefer windowed mode anyway.

Here are the options I've modified:
<var name="DisplayHeight" value="420"/>
<var name="DisplayWindowed" value="true"/>
<var name="DeathAnim" value="false"/>
<var name="EngineSoundEnable" value="true"/>
You could add the command to the top post which does this in a single line:

Code:

sed -i -e '/DisplayHeight/s:480:420:' -e '/DisplayWindowed/s:false:true:' -e '/DeathAnim/s:true:false:' -e '/EngineSoundEnable/s:false:true:' /home/user/.xmoto/config.dat
Also, the directory .xmoto is created only after first launch(and you must quit gracefully for that).

Andy1210 2010-10-14 14:11

Re: XMoto running on N900
 
the latest version isn't support software rendering, so ...

thp 2010-10-14 14:33

Re: XMoto running on N900
 
Quote:

Originally Posted by Andy1210 (Post 840966)
the latest version isn't support software rendering, so ...

Well, we have OpenGL ES 1 and 2 on the N900... I've tried building from source, but lua 5.0 seems to be missing and needs to be built first. lua 5.1 is available, but I haven't bothered trying to use 5.1 instead of 5.0. Just saying.. if anybody wants to try, it might compile and run with a bit of work ;)

divan 2010-10-14 15:38

Re: XMoto running on N900
 
Quote:

I've tried building from source, but lua 5.0 seems to be missing and needs to be built first. lua 5.1 is available, but I haven't bothered trying to use 5.1 instead of 5.0. Just saying.. if anybody wants to try, it might compile and run with a bit of work
thp, I've managed lua dependencies - it's not a problem. I've compiled latest XMoto with OpenGL renderer, but I got transparent window, so maybe it worth playing with OpenGL implementation libs or try to compile with SDL-Gfx support(as older version). I choose the latest, but seems the SDL-Gfx renderer code is obsolete, had a lot of errors. Will fight more, maybe it will work.

Andy1210 2010-10-14 17:19

Re: XMoto running on N900
 
OpenGL != OpenGL ES
the latest source no longer support SDL-Gfx renderer! I asked this on xmoto forum, cuz i tried compile too... (a few months ago)!

divan 2010-10-14 17:34

Re: XMoto running on N900
 
Quote:

the latest source no longer support SDL-Gfx renderer! I asked this on xmoto forum, cuz i tried compile too... (a few months ago)!
I saw your post, but I managed that compilation issue(and a few more) and compiled it successfully with SDL_GFX renderer. The menu works fine, except of font rendering(I can't see text at all). Now fighting with this issue - hope to get it working...

Andy1210 2010-10-14 17:52

Re: XMoto running on N900
 
good luck :)

MINKIN2 2010-10-15 01:04

Re: XMoto running on N900
 
Quote:

Originally Posted by thp (Post 840989)
Well, we have OpenGL ES 1 and 2 on the N900... I've tried building from source, but lua 5.0 seems to be missing and needs to be built first. lua 5.1 is available, but I haven't bothered trying to use 5.1 instead of 5.0. Just saying.. if anybody wants to try, it might compile and run with a bit of work ;)

Great work there mate.

Hope things are going well for you so far :)

Kevstacey 2010-10-15 15:02

Re: XMoto running on N900
 
big thanks :D
been waiting for a game like this for a while

working great :D

MINKIN2 2010-10-15 18:50

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Updated with new desktop launch Icons.

Unfortuanety with the images being enlarged on the forum it is showing some inperfections in the icons. These are not so evident on the N900 screen.

Feel free to create and upload your own if you wish? :)

Kevstacey 2010-10-15 19:54

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by MINKIN2 (Post 842121)
Updated with new desktop launch Icons.

Unfortuanety with the images being enlarged on the forum it is showing some inperfections in the icons. These are not so evident on the N900 screen.

Feel free to create and upload your own if you wish? :)

can i do a normal update via app manager?

cheers

MINKIN2 2010-10-15 20:19

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by Kevstacey (Post 842169)
can i do a normal update via app manager?

cheers

Unfortunately not as the QueenBeecon Widget creator that the Icons run from is a separate Application altogether.

That said though you should be able to add the icons and launch the game from them without having touch, reinstall or modify your original installation of the game.

Hopefully the game will make it to extras-testing one day and updates will become easier for everyone :)

divan 2010-10-16 14:13

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
I failed to compile the latest version of XMoto(my quick port to OpenGL ES don't work, and SDL_GFX renderer vode seems to be really obsoleted). So I end up with the same version as in the top post (0.2.6) with some changes:

* Recompiled for Maemo5 with latest versions of libraries.
* Package optified (xmoto.bin moved to /opt/xmoto)
* Default parameters are optimized for N900 (no need to edit config.dat manually)
* Removed profile edit/create/select dialog
* Cleaned up Menu UI - now there are less buttons, but their size is bigger - better for touchscreen.
* Removed LevelsPack window and replaced with All Levels - so you're ready to play without clicking small-size lists of levels packs.
* Rewritten Finished and Dead dialogues - now they are usable and pretty.
* Added .desktop and icon files.
* Fixed keys (Space works now to change directions)

TODO:
* Add accelerometer support
* Add pause functionality
* Clean up levels list (there are some problems with it now)
* Edit Options menu (it's pretty unusable now)

And then I'll add it to the repository, but now need to test it and check whether everything is ok(dependencies, bugs, etc)
Deb file is available here:
http://divan0.org.ua/maemo/xmoto_0.2.6_armel.deb
Please, remove /home/user/.xmoto dir if you did try previous (N800) binary.

MINKIN2 2010-10-17 09:32

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
WOW, That sounds like awesome work there divan. I am looking forward to seeing your work in the Maemo repos :)

I tried to install your .deb but it keeps failing as the following files are missing?

liblua5.1-0
libode1sp
libsdl-gfx1.2-4
libsdl-ttf2.0
liblua5.1-0
libsdl-gfx1.2-4
libode1sp

Shame really cos some of those changes in the menus sound great. I will keep trying.
l

Dousan 2010-10-17 10:04

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by MINKIN2 (Post 843174)
WOW, That sounds like awesome work there divan. I am looking forward to seeing your work in the Maemo repos :)

I tried to install your .deb but it keeps failing as the following files are missing?

liblua5.1-0
libode1sp
libsdl-gfx1.2-4
libsdl-ttf2.0
liblua5.1-0
libsdl-gfx1.2-4
libode1sp

Shame really cos some of those changes in the menus sound great. I will keep trying.
l

Just type in xterm as root:

Apt-get 'type all names with spaces between'

It worked for me ;)

(only missed liblua5.1-0 and libode1sp)

F2thaK 2010-10-17 11:13

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
tried the above, didnt work for me

also i have no icon ?

tried to launch from xterm it says libde1sp is missing and i cant install it

moepda 2010-10-17 11:16

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
tried apt-get but getting invalid command for the lib files .here output:

Nokia-N900:~# apt-get liblua5.1-0 apt-get libode1sp apt-get libsdl-gfx1.2-4 apt-get libsdl-ttf2.0 apt-get liblua5.1-0 apt-get libsdl-gfx1.2-4
E: Invalid operation liblua5.1-0
ny idea ?

MINKIN2 2010-10-17 11:20

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by Dousan (Post 843194)
Just type in xterm as root:

Apt-get 'type all names with spaces between'

It worked for me ;)

(only missed liblua5.1-0 and libode1sp)

Thanks for the advice Dousan, all but one package is now installed :)

When I try to install the libsdl-ttf2.0, I am getting the following error...

http://i178.photobucket.com/albums/w...reenshot05.png
Not sure what this means, has anyone else come across this?

MINKIN

MINKIN2 2010-10-17 11:24

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by moepda (Post 843233)
tried apt-get but getting invalid command for the lib files .here output:

Nokia-N900:~# apt-get liblua5.1-0 apt-get libode1sp apt-get libsdl-gfx1.2-4 apt-get libsdl-ttf2.0 apt-get liblua5.1-0 apt-get libsdl-gfx1.2-4
E: Invalid operation liblua5.1-0
ny idea ?

I installed these one by one as apt-get install liblua5.1-0

All installed ok except the ttf2.0 as I put in the above post

hope this helps :)

Sash 2010-10-17 12:18

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
"apt-get -f install" solved the dependencies for me.

moepda 2010-10-17 12:21

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
cheers minkin2 that fixed it , game installed and playing now. no problems so far , with the ttf install my xterm told me the newest version is already installed so not need installing .only extra ttf i had are from conky app if that helps .

MINKIN2 2010-10-17 13:41

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Thanks for the suggestions guys but I am still unable to get the ttf to install, even -f gives me the same message.

I have found the files on my device and there are a number of ttf files already installed? When I try to remove them xterm says that there ttf is no ttf20. installed and when I try to delete the from the folder itself, I get "permission denied (13)" message.

Something is conflicting here but I have no idea what.

Dousan 2010-10-17 14:08

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
@minkin2 theres a lot of people that encountered that problem encluding me. I just got the file of here (link below) and did a dpkg -i install through xterm ;)

http://maemo.org/packages/package_in....9-1osso0+0m5/

If that won't work theres a thread on TMO about that problem ;)

@f2thak theres no icon you have to make a QBW to launch it from desktop, check post one for icons - don't know about your missing dependency ;)

nesrazz 2010-10-17 15:49

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
key x may be the key driving

played on a vote of better



http://img301.imageshack.us/img301/4...intcmds1sm.jpg

MINKIN2 2010-10-17 16:00

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by Dousan (Post 843338)
@minkin2 theres a lot of people that encountered that problem encluding me. I just got the file of here (link below) and did a dpkg -i install through xterm ;)

http://maemo.org/packages/package_in....9-1osso0+0m5/

If that won't work theres a thread on TMO about that problem ;)

Thanks for the heads ups there Dousan, the .deb did not install straight away but from the ttf thread I found the following fix http://talk.maemo.org/showpost.php?p...1&postcount=56

The game works great and to divan, your additions look beautiful mate. It's very finger friendly.

Thanks guys :D

Originally Posted by nesrazz http://talk.maemo.org/maemo/images/buttons/viewpost.gif
key x may be the key driving

played on a vote of better



http://talk.maemo.org/images/statusicon/wol_error.gifClick this bar to view the full image.http://img301.imageshack.us/img301/4...intcmds1sm.jpg
Good idea mate, I have just been playing with the X key and it certainly does give you more control and is alot more comfortable IMO.

If anyone wants to try this and tell us how much better/worse this to play with the please enter this in to Xterm

sed -i -e '/KeyDrive1/s:Up:X:' /home/user/.xmoto/config.dat

Or you could manually change the KeyDrive1 line in config.dat as in first post.

nesrazz 2010-10-17 18:56

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by minkin2 (Post 843412)
thanks for the heads ups there dousan, the .deb did not install straight away but from the ttf thread i found the following fix http://talk.maemo.org/showpost.php?p...1&postcount=56

the game works great and to divan, your additions look beautiful mate. It's very finger friendly.

Thanks guys :d

originally posted by nesrazz http://talk.maemo.org/maemo/images/buttons/viewpost.gif
key x may be the key driving

played on a vote of better



http://talk.maemo.org/images/statusicon/wol_error.gifclick this bar to view the full image.http://img301.imageshack.us/img301/4...intcmds1sm.jpg
good idea mate, i have just been playing with the x key and it certainly does give you more control and is alot more comfortable imo.

If anyone wants to try this and tell us how much better/worse this to play with the please enter this in to xterm

sed -i -e '/keydrive1/s:up:x:' /home/user/.xmoto/config.dat

or you could manually change the keydrive1 line in config.dat as in first post.



thanks.....

F2thaK 2010-10-18 01:03

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

Originally Posted by Dousan (Post 843338)
@f2thak theres no icon you have to make a QBW to launch it from desktop, check post one for icons - don't know about your missing dependency ;)

I installed newer version thru dpkg..... when I attempt to run in xterm, I get error:
error load while loading shared libraries: libode.so.1sp: cannot open shared object file: no such file or directory

F2thaK 2010-10-18 01:25

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
ooooh I see its now in repos !!


http://maemo.org/packages/package_in.../0.2.6-maemo2/

F2thaK 2010-10-18 01:33

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
works now! but dont alter graphic settings !!!!

divan 2010-10-18 05:19

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
f2thak, yes, I've added it today into repository with some modifications:

* added Accelerometer support
* cleaned up Options menu
* default Graphics and Menu GFX settings set to High
* fixed bug with lists (selected items was not visible)
* changes sorting in Levels list

When using accelerometer, shake it to change direction.
Honestly, it's pretty hard to me to play with accel. Keyboard is much better :)
Also, there seems to be a segfault sometimes on Quit - it's hard to reproduce for me, but I'm trying to investigate this. Feel free to help and send patches though.

And please delete original /home/user/.xmoto dir before installing to avoid confusions.

F2thaK 2010-10-18 05:59

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
can we change controls in game, for each key i mean ? thanks

divan 2010-10-18 06:24

Re: XMoto running on N900 [Launch from desktop with QueenBeeConWidgets]
 
Quote:

can we change controls in game, for each key i mean ? thanks
Sure.
Open /home/user/.xmoto/config and edit these values:
Code:

        <var name="KeyDrive1" value="Up"/>
        <var name="KeyBrake1" value="Down"/>
        <var name="KeyFlipLeft1" value="Left"/>
        <var name="KeyFlipRight1" value="Right"/>
        <var name="KeyChangeDir1" value="Space"/>



| 1   2   | Next
All times are GMT. The time now is 11:56.

vBulletin® Version 3.8.8