maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Playable Quetoo (Quake2) port for N800 (https://talk.maemo.org/showthread.php?t=10459)

ZerionSeven 2007-10-19 10:22

Re: Playable Quetoo (Quake2) port for N800
 
Fifth release is now available at http://www2.lut.fi/~thietan1/quetoo/ as usual.

For this I optimized the RGB->YUY2 conversion a fair bit, and I'm now getting higher fps with it at 400x240 than with the XSP pixel doubling, so the XSP doubling has been removed.

Also, the game saving support was dropped in 0.5.0 upstream, but I've reimplemented it based on the quetoo 0.4.0 sources and it would appear to be working. Though I did notice the savegames don't appear to be compatible with any other quake2 builds (including quetoo 0.4.0). The game is now automagically saved when you quit, and should continue again from that point, when next launched. There's also a new delete button in the launcher, that can be used to clear the current save game.

tobiasj 2007-10-19 19:20

Re: Playable Quetoo (Quake2) port for N800
 
Thanks for all the great work and time your putting into this, it has to be barr none, the best game I have played yet on the n800.

I just updated to the 5th release and it is even smoother and faster than it was, I even tried it in 800x480 (just to see what it was like) and it looked great, a bit slow on my n800(of course!) but very nice.

The only question I have is, why take away the option to choose your map from the launcher? I know you can still when launching it via xterm, but I really liked the ability to pick a level and just go from the launcher.

Saving is great, I tend to die a lot and the save is very bennificial..

So all in all, things just keep getting better and better, thanks again for making what has become the biggest time waster I have on the n800!

-John

torx 2007-10-20 03:28

Re: Playable Quetoo (Quake2) port for N800
 
I wonder how much faster it would run when the new firmware unlocks 400mhz! That's almost a 20% increase in speed!

ZerionSeven 2007-10-21 16:10

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Originally Posted by tobiasj (Post 84465)
The only question I have is, why take away the option to choose your map from the launcher? I know you can still when launching it via xterm, but I really liked the ability to pick a level and just go from the launcher.

Saving is great, I tend to die a lot and the save is very bennificial..

I thought maybe the map selection would not be needed anymore, now that saving works, but yeah, I do think it would be better to still have it, so I'll be putting it back for the next release. I seem to also have forgotten an important part of the savegame code, in that with the current release, when you die, the game just clears all data and restarts the map, and you lose all weapons and items, when I think it should load the current savegame (that is either the state when the game was launched, or the last time the map changed).

Quote:

Originally Posted by torx (Post 84638)
I wonder how much faster it would run when the new firmware unlocks 400mhz! That's almost a 20% increase in speed!

I'm currently getting around 6-7 fps at 800x480, which is just a bit too low to really play the game at. But a 20% speed increase might just be enough to make the game playable even at that and I'm hoping OS2008 would have some optimizations to screen update stuff as well. Though perhaps I'm hoping for a bit much, but currently I'd already consider the game playable at 480x288, so I'd think atleast 560x336 should become usable.


I've also been trying to think of a good way to handle items in the game and as far as I can think of, there's really no way to handle everything with the amount of buttons the device has, so I've been thinking of adding an onscreen list of items and weapons, where they could be activated by clicking. I've been thinking of having it on the left side of the screen. There you'd have to use your left hand to select them and could not move simultaneously, but atleast I like to do all looking around at the right edge of the screen and having the list there, I think would interfere with that too much. But what do you think would be best?

Edit: I haven't really noticed this before, but are others having trouble moving and turning the camera at the same time? It's looking like as if the device would be having trouble detecting keypresses the same time as the touchscreen is being used, but I don't know why I would not have noticed this at all before, or if maybe I've just messed up some setting or other in my device.

tobiasj 2007-10-22 12:12

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Edit: I haven't really noticed this before, but are others having trouble moving and turning the camera at the same time? It's looking like as if the device would be having trouble detecting keypresses the same time as the touchscreen is being used, but I don't know why I would not have noticed this at all before, or if maybe I've just messed up some setting or other in my device.
I have not noticed this as a problem, I can move and turn the camera at the same time, I think I can anyway. At least I have not noticed anything I couldnt do..

I am glad your putting the map selection back on the launcher, sometimes I just wanna play a particular level and I only have a few minutes and there is nothing quick about launching it in xterm.. ;)

Quote:

I've also been trying to think of a good way to handle items in the game and as far as I can think of, there's really no way to handle everything with the amount of buttons the device has, so I've been thinking of adding an onscreen list of items and weapons, where they could be activated by clicking. I've been thinking of having it on the left side of the screen. There you'd have to use your left hand to select them and could not move simultaneously, but atleast I like to do all looking around at the right edge of the screen and having the list there, I think would interfere with that too much. But what do you think would be best?
Yeah, the left side would be better, and if it isnt too hard to accomplish, make it selectable on and off, that way when I am using my BT keyboard, and dont need the list it isnt taking up space. Certainly it will be a welcome addition for example when (much like this weekend) I am sitting at the theater waiting for a movie (that I dont particularly want to see) to start and I am slicing and dicing my way through QuakeII I can access the really cool stuff. ;)

On a side note, is there some reason there isnt a hand and a gun sticking out? I think there is a console command to turn it on (I would have to look for sure) but was it turned off on purpose (for example because the screen is so small)?

-John

CobraKC 2007-11-13 06:20

Re: Playable Quetoo (Quake2) port for N800
 
Hi, I am trying to get Quetoo to work on my N800. I have the full version files, but can't seem to put it in the right folder, or which folder to point it too, and also the files that need to be in that folder. Can U tell me what files are needed? When I hit launch, it does nothing... Also when I point to a folder I notice there is an add or remove button on the left side???

Please help! Thanks!:confused:

convulted 2007-11-13 08:15

Re: Playable Quetoo (Quake2) port for N800
 
Please insert an option for the menu to be on the left/right hand side of the screen for us lefties :) I dunno if it's because I'm left handed or not, but I'd rather have an on-screen menu on the right. Of course, a total 180-degree screen rotation would be the best thing, but it would take too much of your time I think!
Thanks for boosting the geek-factor of the N800 :D

PS: Oh, and (yes I know I'm very demanding!) is there a way of turning off the clicks generated when the touchscreen generates an event? Using the touchscreen and buttons simultaenously (which, BTW, works very well on my unit) sends it on a clicking frenzy which takes some of the effect away from the game.

pipeline 2007-11-14 00:14

Re: Playable Quetoo (Quake2) port for N800
 
The ticking sounds can be fixed as detailed below (allow myself to introduce myself ;P )

Quote:

Originally Posted by pipeline (Post 82191)
The most important tweak was to go into maemo control panel and under sounds, Disable the Key sounds.

You notice how buttons make a noise when pressed as 'feedback'... well in the game when you keep a key held down and move the stylus its like re-registering the key event, causing a barrage of sound interruptions... as if only one input (button or touchscreen) allowed at a time. By disabling the key sound its probably just avoiding cpu burden/interrupting to play that sound... which may be helping responsiveness but if for anything it just helps me keep my sanity. The hardware limitation (hack?) is probably still there... it just doesnt burden machine to 'notify' you falsely about it being a 'new' button press 10 times a second... when you actually never released it.


hordeman 2007-11-14 04:22

Re: Playable Quetoo (Quake2) port for N800
 
2008 OS is out! can someone test this port on it? thx!

iball 2007-11-14 04:29

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Originally Posted by hordeman (Post 94425)
2008 OS is out! can someone test this port on it? thx!

I won't be able to get a round tuit until this weekend. ;)
Currently reinstalling a slew of apps on my N800-mit-OS2008.

CobraKC 2007-11-14 07:00

Re: Playable Quetoo (Quake2) port for N800
 
Hi. Could someone please tell me which files are needed for quetoo to work. Their names, and where to put them???

Thanks alot! I Cant seem to get it running...

hordeman 2007-11-14 18:19

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Originally Posted by CobraKC (Post 94460)
Hi. Could someone please tell me which files are needed for quetoo to work. Their names, and where to put them???

Thanks alot! I Cant seem to get it running...

The first post should give you all the info you need to get it running. After that, you may need to go through the thread to figure out how to tweak things.

torx 2007-11-17 13:52

Re: Playable Quetoo (Quake2) port for N800
 
I don't think quetoo works on the OS2008.

After jumping through lots of hoops to get the required packages, it fails with this error.

Nokia-N800-:/usr/lib# quetoo
Quetoo 0.5.0
using /root/.quake2/baseq2/ for writing
couldn't exec quetoo.cfg
Console initialized.

------- sound initialization -------
loading snd_alsa.so sound driver
load /usr/lib/quetoo/snd_alsa.so failed: /usr/lib/quetoo/snd_alsa.so: cannot open shared object file: No such file or directory

------- video initialization -------
loading vid_softsdl.so video driver, ok
recursive shutdown
Error: Couldn't load pics/colormap.pcx

pipeline 2007-11-17 14:01

Re: Playable Quetoo (Quake2) port for N800
 
that final error (colormap.pcx) just means basedir not set right.

also, not positive but i know the build of quetoo which i did would have used sdl sounds driver (snd_sdl? sdl_snd?)

i havent tried on 2008 but i heard there was issue with glade so the launcher might not work but the actual game should (if you launch using command line)

torx 2007-11-18 06:44

Re: Playable Quetoo (Quake2) port for N800
 
any ideas when this glade problem will be fixed?

pipeline 2007-11-18 07:16

Re: Playable Quetoo (Quake2) port for N800
 
Oh.. well just to clarify quetoo is entirely built/ported by zerion, but since the latest os radically reworked the gtk version, it seems i heard glade was impacted.

Since i havent done much glade development i will defer to others who might know a real answer.

torx 2007-11-18 17:29

Re: Playable Quetoo (Quake2) port for N800
 
Got it running under console and if my eyes do not lie, it seems to be really playable at the default resolution (420x240) now.

however, i could not really get around to playing it as i can't seem to change the sensitivity.

yelvington 2007-11-18 18:13

Re: Playable Quetoo (Quake2) port for N800
 
Subscribing. Upgraded to OS2008 and I need to shoot something. :D

ZerionSeven 2007-11-18 22:40

Re: Playable Quetoo (Quake2) port for N800
 
I haven't had much time to work on quetoo lately, and what work I've done, I've been trying out a few things, most of which I've had to revert back and the saving still doesn't quite work fully.

But I did update to OS2008 on my N800, and the game runs really nicely now if started from xterm, but the launcher does not work at all since glade seems to have been removed entirely (which I used to build the ui). I suppose we should now be using GtkBuilder, but I've had no luck trying to convert and haven't found any tools, I could use to rebuild the thing easily. Though I think I did see some libglade packages maybe in extras for chinook, so python bindings may not be that far behind either.

I could build some quick packages for OS2008, that don't have the launcher at all if you'd like to, but I think the current latest one should work fine too, or atleast I think there weren't any changes that would break the game itself and I haven't made any really useful changes since then either.

You should use something like
Code:

quetoo +set snd_ref sdl +set vid_width 400 +set vid_height 240 +set vid_gamma 0.8 +set m_sensitivity 15 +set cl_showfps 1 +set basedir /media/mmc2/quake2/ +map base1
to start the game. The m_sensitivity sets the mouse look sensitivity, with 15 being the default I had in the launcher. Or to load the game that gets autosaved on exit, replace '+map base1' with '+load game'.

pipeline 2007-11-18 23:12

Re: Playable Quetoo (Quake2) port for N800
 
Odd, i was pretty impressed with the glade code you were able to generate... i was happy to see linux had something like that. Hopefully they will provide alternative (gtkbuilder?).

Perhaps interim solution is to make a launch script which has all that and adds a few user defined $1 $2 vars to launch like :
quetoo-launch +set map base2

Or you might (temporarily) use Linkmaker (if python installed) to make a menu link with the static launch commands shown above http://www.internettablettalk.com/fo...ad.php?t=11093

ZerionSeven 2007-11-19 00:02

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Originally Posted by pipeline (Post 96859)
Odd, i was pretty impressed with the glade code you were able to generate... i was happy to see linux had something like that. Hopefully they will provide alternative (gtkbuilder?).

Perhaps interim solution is to make a launch script which has all that and adds a few user defined $1 $2 vars to launch like :
quetoo-launch +set map base2

Or you might (temporarily) use Linkmaker (if python installed) to make a menu link with the static launch commands shown above http://www.internettablettalk.com/fo...ad.php?t=11093

I'm fairly new to all this development stuff myself and was quite happy to discover glade too, the launcher was actually my first application I've ever used it with. I'm not really sure why, but there apparently now is something called GtkBuilder as part of gtk itself, which is supposed to replace glade. But I think it's still fairly new, and atleast I couldn't find any interface designer that would actually support it yet and having to write the definition files by hand imho somewhat rather defeats the purpose of using such a tool in the first place. There is an python script for converting glade ui's to the new format, but that fail's before it even start's parsing the file on my system.

I'll see about making some chinook packages tomorrow, that just have maybe two menu links for starting a new game and loading a game, and also some wrapper script, that would have all the needed parameters and allows additional user parameters for easier launching from console too.

ZerionSeven 2007-11-19 19:25

Re: Playable Quetoo (Quake2) port for N800
 
As promised, I build a package for OS2008 and have put it up at http://www2.lut.fi/~thietan1/quetoo/.

As far as I can remember, the only change to the game itself compared to last version is again maybe a bit faster color conversion. As said, the launcher has been removed, and there are now just two menu links for starting from the first map, and for loading the game. The menu links set the basedir to /media/mmc2/quake2/, so they'll only work if the content is there. I didn't include any wrapper script after all, since if you're launching the game from xterm, you probably wan't to control everything I could have put into one yourself.

pipeline 2007-11-19 19:45

Re: Playable Quetoo (Quake2) port for N800
 
Working good here, thanks!

tobiasj 2007-11-26 19:32

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Originally Posted by pipeline (Post 96274)
also, not positive but i know the build of quetoo which i did would have used sdl sounds driver (snd_sdl? sdl_snd?)

Odd you should mention that... I have not run QueToo in a couple weeks now, and I am getting this when I try to run it...

Couldn't open SDL audio: No available audio device

And I get no sound. I am still running ver 5 on os2007 launching from both the launcher and via xterm with no difference. I am using
+set snd_ref sdl in xterm and whatever the launcher does. Still no sound. Anyone got any ideas?

-John

qole 2007-12-19 23:11

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Originally Posted by hordeman (Post 94425)
2008 OS is out! can someone test this port on it? thx!

Quetoo runs nicely (good framerate) at 520x312 under OS2008 on N800. Didn't try higher resolution.

Is there a way to get the framerate on the screen while playing?

Slixor 2008-01-03 00:50

Re: Playable Quetoo (Quake2) port for N800
 
Hey im like such a noob i bet, but i need some help.

Ive installed the latest version of quetoo on my n800 with os2008 installed. the icon to launch it appears in my extras menu, but when i click it nothing happens, how do i run it?

CHEERS =]

pipeline 2008-01-03 00:55

Re: Playable Quetoo (Quake2) port for N800
 
You need data files in quake2 directory on mmc2... do you own quake2? If not you might try putting the shareware paks in /quake2/baseq2 on mmc2.

Slixor 2008-01-03 00:59

Re: Playable Quetoo (Quake2) port for N800
 
Ive played quake 2 ages ago, but havent got now. can you explain a bit better what i have to do? get the data files and put them where?

bartsimpson123844 2008-01-03 01:09

Re: Playable Quetoo (Quake2) port for N800
 
Is that it? Just copy over the PAK file and it should run? I also downloaded the "Mission Pack 1" whatever that is? It has the same PAK file name. Can I just rename it to something else and use both of them? (like switching between them on an SD card or something?)

Thanks.

Slixor 2008-01-03 01:31

Re: Playable Quetoo (Quake2) port for N800
 
if anyone could give me a step by step from when you install i would be so happy, either post it here or add me on msn: slixor@gmail.com

Please help, as this game looks so ausome!!

penguinbait 2008-01-03 01:40

Re: Playable Quetoo (Quake2) port for N800
 
neat to shoot the monsters and all, but is multiplayer in the future, or is there a way to make it work? Can games be joined from console?

pipeline 2008-01-03 01:58

Re: Playable Quetoo (Quake2) port for N800
 
Quake 2 on n800 and i guess n810 is awesome... he did a great port... i only hope he is able to add the front end launcher back to OS2008 builds at some point.

Penguin : He had multiplayer working in 2007 but without the launcher its not practical... so yes technically you could join from command line... ctf even!

Slixor:
I just verified that yes it does seem to work with demo files but process is a little involved. I hope you are able to follow this :
- Download the demo on desktop... heres one source http://fileshack.com/file.x/64/Quake+2+Demo+v3.14
- If on windows xp, run the self extractor and set directory to something like \q2inst
- If on linux try opening the self extracting arcive (q2-314-demo-x86.exe) in an archive program... i just opened with FileRoller and it reads just fine.
- Dont bother installing on desktop, just navigate that extracted directory and in the q2inst/Install/Data directory copy the baseq2 folder over into mmc2 /quake2 directory so that mmc2 has /quake2/baseq2. If using something other than mmc2, just change that also in next step.
- Edit the /usr/share/applications/hildon/quetoo.desktop file, changing the base1 to demo1 (need to be root, let me know if you dont know how to do this)
- Start game from menu link

Bart : as for mission packs i would try adding as subdirectory (maybe /quake2/xatrix ?) first and modify desktop to set game xatrox but i havent tested that so not sure how well that would work. If you ever get that to work you could make a new link with LinkMaker (search)... otherwise you could try replacing paks in baseq2 as workaround and change start map to one of the mission packs as workaround.

Slixor 2008-01-03 02:34

Re: Playable Quetoo (Quake2) port for N800
 
whats mmc2? except for that i think i understand everythingn else

pipeline 2008-01-03 02:39

Re: Playable Quetoo (Quake2) port for N800
 
On the n800, the internal memory slot is mounted to /media/mmc2 and that is what he hardcoded his desktop (link) to point to for data.

You have internal memory card with around 50megs free space? If so set up /quake2/baseq2 there.

Slixor 2008-01-03 02:45

Re: Playable Quetoo (Quake2) port for N800
 
is there a file viewer anywhere where i can view these directorys? cos when i connect it up to my pc i dont see them

penguinbait 2008-01-03 02:53

Re: Playable Quetoo (Quake2) port for N800
 
Quote:

Originally Posted by pipeline (Post 119698)
Quake 2 on n800 and i guess n810 is awesome... he did a great port... i only hope he is able to add the front end launcher back to OS2008 builds at some point.

Penguin : He had multiplayer working in 2007 but without the launcher its not practical... so yes technically you could join from command line... ctf even!

What is the launcher, is it something I can compile myself. Is it quake2world?

pipeline 2008-01-03 02:59

Re: Playable Quetoo (Quake2) port for N800
 
Penguin, launcher is python (glade) front end launcher... not sure if that would be kde compatible. Just try the latest non-chinook build or grab the python files from 2007 build and use executable from 2008 version if kde shares same lib dependencies which required the 2008 build in first place.

The memory cards are mounted as drives (at least on xp)... what is your desktop ... windows xp?

Slixor : Have you installed becomeroot and set root password yet?

Slixor 2008-01-03 03:04

Re: Playable Quetoo (Quake2) port for N800
 
when i open it in windows xp its just got nothing usefull in it

and no i havent isnstaled any of that stuff, should i? and where can i do that?

pipeline 2008-01-03 03:14

Re: Playable Quetoo (Quake2) port for N800
 
Well you should know if you put memory cards in the device, even if they are empty just throw them on there if the drives show up on desktop as removable devices. This only takes care of the /quake2/baseq2 stuff though, not the editing of the quetoo_new.desktop file.

You should install becomeroot from the application manager under settings menu on n800... if you dont see it then click this link (from n800 browser) to add the repository which contains it :
http://www.gronmayer.com/it/dl.php?id=10

After you have installed it then open xterm and type :
sudo gainroot
passwd root

then set your root password, preferably to something you will remember :)

Once thats done you have two choices (or two i will mention), SSH and emelfm2.

SSH access is best because you can remotely access the entire device from a destop... i would recommend eventually learning this. Install SSH Server on device and a utility like WinSCP for Windows XP or gFTP for linux. I'm out of breath and too tired to explain this further though, you could search though.

An easier solution (after setting up root) for this one task would be to install emelfm2 from here :
http://www.internettablettalk.com/fo...84&postcount=1

and then in xterm (as root) run emelfm2... then browse to /usr/share/applications/hildon and highlight quetoo_new.desktop and click the edit icon (looks like a notepad with pencil)... change settings as previously mentioned.

Slixor 2008-01-03 03:31

Re: Playable Quetoo (Quake2) port for N800
 
i cant find it in the app manager, and when i try to install that url it says "unable to install (null). Incompatible application package"


All times are GMT. The time now is 02:15.

vBulletin® Version 3.8.8