maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Mame Download with caveat (https://talk.maemo.org/showthread.php?t=1383)

mlvj 2006-10-29 08:28

i got tab by remapping it in the conf file, search forum for details.

i use bt gamepad

insert_nick 2006-10-29 14:56

Quote:

Originally Posted by mlvj
i got tab by remapping it in the conf file, search forum for details.

Thanks, post found. BTw I can't find the xmamerc file in the 770 (which should be the xml file to modify, if I understand well), I hav a home/user/.mame directory, but it contains nothing but other four dirs. The cfg directory inside contains some .cfg files (with a "default.cfg" too), but they are not in plain text format so I suppose I should not touch them. Could you suggest where the xml file should be located?
Quote:

Originally Posted by mlvj
i use bt gamepad

Yes, already seen: nice work! Anyway I'd like those software buttons, almost like someone has already suggested assigning the stylus tap to the button 1...

mlvj 2006-10-29 19:33

the xmame 58, which is on what this is based, does not support xml config sadly.

the file i edited is this one; /usr/lib/xmame/xmamerc

insert_nick 2006-10-29 19:46

Quote:

Originally Posted by mlvj
the file i edited is this one; /usr/lib/xmame/xmamerc

good, thanks. As suggested from you, I've added the following line at the end of the file:

sdlmapkey 0x0073,0x000f

so, which is the hardware key I have to press to simulate the tab button and change my keymap settings?

---
EDIT: I suppose there's something wrong in what I'm doing, as it seems that nothing has changed: I've tried all the buttons but no options menu popping up... (help?)
----

EDIT 2: Got my mistake: I believed the first code was for one of the hardware keys, I realize it is for the "s" key you mapped with your gamepad. Which are all the available strings I can write as a first parameter in order to use a hardware key?
----

EDIT 3: Will these be fine?

HILDON_HARDKEY_UP
HILDON_HARDKEY_LEFT
HILDON_HARDKEY_RIGHT
HILDON_HARDKEY_DOWN
HILDON_HARDKEY_SELECT
HILDON_HARDKEY_HOME
HILDON_HARDKEY_ESC
HILDON_HARDKEY_FULLSCREEN
HILDON_HARDKEY_INCREASE
HILDON_HARDKEY_DECREASE
HILDON_HARDKEY_MENU
---

EDIT 4: tried with the following line in xmamerc but nothing happens:

sdlmapkey HILDON_HARDKEY_INCREASE,0x000f

tried with the following too, no way again:

sdlmapkey GDK_HARDKEY_INCREASE,0x000f

any clues?

insert_nick 2006-10-30 12:08

Notice: related topic opened - Suggestion: auto key remapping
 
Notice: I've opened a topic to collect suggestions of playable games without external pad.

Suggestion: when the rotate screen checkbox is unchecked, the keymapping remains the same so the directions are "mind-scrambled". It would be nice to have a wiser xmaeme to automatically switch for another xmamerc configuration file when the rotation is activated/deactivated, of course with proper keys remapped. Or at least letting the user choose it manually from a dropdown list (just like the one made to browse for roms in the default roms dir) - I suppose a simple approach could be letting the chosen file overwrite the existing "xmamerc" in order to let xmame load and use it, but sure it can be done better without stressing the mmc card with those unnecessary overwrites (maybe xmame can be called with a parameter specifying the configuration file name?)

mlvj 2006-10-30 13:52

Hiya, I did a search on the interweb which resulted in the keycodes for s etc.

Not sure what the keycodes are for actual hardware keys on the 770 though; I did keep a list of the websites I searched on the 770 - but I'm at work now with no 770!

It's all findable; it took me about 2 hours on a Thursday evening in front of the TV, eventually resulting in the right solution for my external gamepad, where I'd set the driver to map the "start" button on the gamepad to "s".

Further to what you are trying, it's probably correct (or at least on the correct track) - may I assume that you're putting the hex values in the xmamerc file instead of the literal text? If not, I'd suggest you try the hex values.

insert_nick 2006-10-30 15:19

Quote:

Originally Posted by Tak
This has always annoyed me - I suppose I could set the default config to have one of the zoom in/out keys as "tab" ...

Definetely: this would open the way to let the user easily set his favourite settings. I don't know if they would be saved for each game, or as a global configuration though. Btw, use the zoom out (EDIT: mistake, it was supposed to be "zoom in") button for the TAB, as it is closer to the OFF button so it would not interfere while playing.
Quote:

Originally Posted by mlvj
Further to what you are trying, it's probably correct (or at least on the correct track) - may I assume that you're putting the hex values in the xmamerc file instead of the literal text? If not, I'd suggest you try the hex values.

No, I'm writing exactly as I've written. You've used the hex value corresponding to the ASCII code of the "s" char, it's no problem; but what about 770's hardware keys? Are there any "conventional" ASCII codes used to address them?

penguinbait 2006-10-30 15:59

off subect
 
Hey mlvj, I messaged you, any chance for that driver for bt gamepad?

Thanks,

pb

Quote:

Originally Posted by mlvj
Hiya, I did a search on the interweb which resulted in the keycodes for s etc.

Not sure what the keycodes are for actual hardware keys on the 770 though; I did keep a list of the websites I searched on the 770 - but I'm at work now with no 770!

It's all findable; it took me about 2 hours on a Thursday evening in front of the TV, eventually resulting in the right solution for my external gamepad, where I'd set the driver to map the "start" button on the gamepad to "s".

Further to what you are trying, it's probably correct (or at least on the correct track) - may I assume that you're putting the hex values in the xmamerc file instead of the literal text? If not, I'd suggest you try the hex values.


mlvj 2006-10-30 17:01

Hi pb,

I emailed it to the email address you pmd me... no dice?

mlvj 2006-10-30 17:05

Quote:

No, I'm writing exactly as I've written. You've used the hex value corresponding to the ASCII code of the "s" char, it's no problem; but what about 770's hardware keys? Are there any "conventional" ASCII codes used to address them?
The hardware keys are just keys like any other, high number F keys as I recall. So do your searches, and you should get an include file definition at some point with hex codes (that's what I did)

...and in the meantime maybe Tak will oblige with a default setting for tab to something!

I quite like playing scramble just before bed.

penguinbait 2006-10-30 17:49

I got it!!
 
Thanks for sending it, I will try it out and let you know what happens.

I think it came in the mail at home today, so I can't wait to go try it.


Thanks again,

mlvj 2006-10-30 21:14

forwarded!

insert_nick 2006-11-07 22:34

Quote:

Originally Posted by mlvj
The hardware keys are just keys like any other, high number F keys as I recall. So do your searches, and you should get an include file definition at some point with hex codes (that's what I did)

Thanks, but still I can't find them :(

insert_nick 2006-11-07 22:37

Quote:

Originally Posted by Tak
This has always annoyed me - I suppose I could set the default config to have one of the zoom in/out keys as "tab" ...

Tak, what about this improvement?

Besides, have you considered my previous suggestion of rotating keypad mappings depending on the display rotation?

mlvj 2006-11-08 12:41

insert_nick, I just did this:

http://www.google.co.uk/search?hl=en...DECREASE&meta=

clicked on first link

I see #define HILDON_HARDKEY_UP GDK_Up

So do this
http://www.google.co.uk/search?hl=en...UK%7CcountryGB

And you see in the first link without even visiting it

#define GDK_Up 0xFF52

Also check out http://www.gvu.gatech.edu/ccg/people...k/gdkkeysyms.h seems to have the 073 for s in it as well as a full list
I'd suggest trying that?
...so try that perhaps?

sdlmapkey 0xFF52,0x000f

insert_nick 2006-11-08 15:31

Thanks for the detailed explanation of your path for finding the needed info, it can be very useful in other similar situations. Unfortunately, following the suggestion, I've tried with no luck:

sdlmapkey 0xFF52,0x000f

...which should map the TAB key to the zoom out button (-), and still with no luck:

sdlmapkey 0xFFC4,0x000f

...which should map the TAB key to the zoom in button (+).

Tak, I'll wait for your update on the xmame package with the TAB key mapped on the zoom in button (+). And don't forget the xmaeme update with the rotated keymaps on screen rotation ;)

insert_nick 2006-11-09 16:56

Quote:

Originally Posted by Tak
Meaning that I'd just have to copy in new versions of the config file at launch time. For those people who have gamepads, custom settings, and the like, that would mean overwriting their settings.

I understand. Maybe an explicit checkbox in xmaeme to trigger this behaviour, with an alert that checking the box will backup the current eventual custom settings in a file and use "forever" the (alternating two) predefined settings according to rotation, could solve the issue. I don't know how hard it is, or if others agree, though, so I will ask for it no more. Just consider it please.

Quote:

Originally Posted by Tak
I will eventually get the tab button mapped.

Thanks! This is on top on the wishlist!

insert_nick 2006-11-10 11:16

Yeeeh! Can't wait to try all of that! Damn I have to wait until Sunday...

TT! (Thanks Tak!)

insert_nick 2006-11-12 23:09

tested: good. And two suggestions
 
Tested: GREAT! Now with the tab key mapped the rotation is no more a problem, and freedom of keymapping is wonderful. The possibility to map tapping is worth alone the upgrade, it's like having another free button, and much more comfortable!

I'd like to write two requests, but if Tak or anyone else wants not to take the pain of implementing them, I want to say it's just good as is: just consider them as suggestions please.

So here they are: it would be better to map the exit key (home) to the zoom-out button, or the on/off button if possible: it's a pity the home key cannot be used for playing, it's on the front side and comfortable, distant enough from the pad.
And the other suggestion: it would be nice in xmaeme an input field (along with the existing select field) where a game name can be directly written: if something is written, xmaeme uses that string to load the corresponding game, instead of the select-field's selection. And useful if its content is remembered on exit, too.

insert_nick 2006-11-15 09:29

Quote:

Originally Posted by Tak
The home key can't be used for anything else, because it always drops to the desktop and isn't overridable (as far as I know).

Ok, thanks.

Quote:

Originally Posted by Tak
A future version of xmaeme will save the "browsed-to" games in the list, provided they still exist. Is there a specific instance where putting text into a freeform fields is quicker than browsing to a location? (If you put your rom in "roms" on the memory card (roms/nes or roms/gba for other systems), they will be preloaded into the list at startup.)

Yes I know that, that feature is very useful and I use it that way of course, thank you for it. But the direct input field would be a lot useful: scrolling a long list searching for the right name is somewhat ugly if you already remember the game name (or if you have a printed list of favourite and working games' long names with their corresponding mame names), so allowing to just type 8 chars into an input field would often save time and annoying stylus' scrolls.

insert_nick 2006-11-19 18:53

Quote:

Originally Posted by Tak
New feature: Onscreen A and B buttons for fceu.

Cool! Is there any hope for this to be added in xmame too?

insert_nick 2006-11-21 10:55

Quote:

Originally Posted by Tak
Hmm...unlikely. FCEU basically runs games at one guaranteed resolution, with one guaranteed orientation, so I know I have Z amount of screen space at position (X,Y) to place the buttons, and that they'll be usable if I place them there.

IMO it would be very difficult to find space to place them in a consistent and helpful manner with xmame.

Yes, that's right. Btw it's good as it is, now that the TAB has been mapped so the tap can be a button.

Quote:

Originally Posted by Tak
However, there is hope for a snes emulator if I can do something similar with zsnes or snes9x.

I think it will be unusably slow, if ever you'll succeed in porting. Btw I remember zsnes was really fast on my pentium 100, more than snes9x, Don't know which is faster now, though.

insert_nick 2006-11-26 22:34

look at this portable nes emulator: infoNES
 
I've looked around for some alternative to FCEUltra, and maybe it's interesting this nes "portable" emulator: infoNES.

They say:
Quote:

InfoNES is an open-sourced NES emulator, that runs on Win32, x86/Linux, PS2/Linux, WinCE(H/PC, P/PC, P/PC2002, l'genda, BE-300, BE-500), GBA(GameBoy Advance), GP32(GamePark 32), Zaurus/Linux, N-Gage(Nokia s60), OSASK, Pekoe, and PlayStation2. If you plan to create a NES emulator for embedded devices (i.e. Palm, Nokia 7650, SmartPhone 2002, etc.), InfoNES is one of the best choices.
Tak, what about trying this one and see if it's better? (it seems you do have the skills, and there are already ports for other devices so it should not be harder than the fceultra port you've done)

insert_nick 2007-01-18 10:59

Re: look at this portable nes emulator: infoNES
 
Quote:

Originally Posted by Tak (Post 30162)
I looked at infones a bit; the emulation doesn't seem nearly as good as FCEU's. Particularly now with accelerated 2x scaling, FCEU is very playable, and IMO it's worth having good support for a ton of games.

I see, thanks for having looked at it

Quote:

Originally Posted by Tak (Post 30162)
BTW, new xmame release (0.58.1-6), with support for accelerated 2x scaling.

Hurray! Nice to see you're still active on the project. I hope some day to find the time for a web page advertising your n770 emu ports ;)

Rocketman 2007-01-21 00:04

Re: Mame Download with caveat
 
I have just tried the NES emulator component on my n800 and it doesn't appear to work very well. The sound is quite choppy and the onscreen A and B buttons don't appear to work at all in any of the games I have tried. The Save button produces a "State 0 Save Error"

tprincipio 2007-09-01 22:55

Re: Mame Download with caveat
 
I've got roms that work fine with mame 0.118 under Windows. Why don't these roms work with xmame 0.58 on my N800? I get lots of errors about missing files in the zip file. Where can I find roms that will work?

ArnimS 2007-09-02 07:05

Re: Mame Download with caveat
 
Quote:

Originally Posted by tprincipio (Post 72712)
I've got roms that work fine with mame 0.118 under Windows. Why don't these roms work with xmame 0.58 on my N800? I get lots of errors about missing files in the zip file. Where can I find roms that will work?

Romsets can change with mame version. So not every rom set will work with every mame version. For some you can just rename files to the expected names and they will work, but figuring out which file maps to which name can be tricky.

Yacob 2007-09-02 16:08

Re: Mame Download with caveat
 
Quote:

Originally Posted by ArnimS (Post 72760)
Romsets can change with mame version. So not every rom set will work with every mame version. For some you can just rename files to the expected names and they will work, but figuring out which file maps to which name can be tricky.

Interesting...

So even if you have a complete/stable version of MAME running on the 770/n800 you would still need to configure each Rom individually before they would work?.....

Sorry for butting in, but I have been looking around the web for any info on a MAME port for the nokia 770. Which lead me to these forums. I saw the progress geekdoc had made with it, but it seems he hasn't updated for a while..Dose anyone know if he or anyone else has made any further progress with it at all?..The only other info I found was a reference on some German site, which lead me back here. I did a full circle!...Thanks in advance for any info....

ArnimS 2007-09-04 11:25

Re: Mame Download with caveat
 
https://garage.maemo.org/projects/xmame/

tablethelp 2007-10-10 21:13

Re: Mame Download with caveat
 
Hi Guys, After fighting with XMAEME on the N800 for a few hours I started working the XMAME directly on the command-line. I don't think XMAEME works with arcade ROMs with the latest updates to the N800.

I was getting the same "Unable to load ROM" message that you've been seeing. Short answer: it's not the ROMs.

Hopefully this site will help some people: http://tabletwiki.blogspot.com/

Direct link to instructions: http://tabletwiki.blogspot.com/2007/...ade-games.html

If anyone has any corrections or updates to my notes, I'm more than happy to incorporate improvements to the text.

tablethelp 2007-10-19 04:49

Re: Mame Download with caveat
 
Every ROM I tried would not work via XMAEME: starcas, startrek, asteroid, frogger, etc

I first assumed it was a problem with the location of the ROM zip. Initially I tried with the "Browse" feature in XMAEME which I thought must be passing the full path to XMAME. Then I tried looking for the XMAME config file and putting the ROM zip in the default path. This caused the ROM to appear in the XMAEME pulldowns as "known" games but still resulted in "Unable to load ROM" for every ROM zip I tried.

However, when I launch XMAME from the command line, whether passing the option with the absolute path to the ROM zip or putting the ROM zip in the default path, every ROM I tried runs fine.

Is there a log file somewhere that I can post that will give you more precise information and help you pinpoint the problem?

tablethelp 2007-10-19 04:52

Re: Mame Download with caveat
 
Google "starcas rom" and download from the first link in search results. This works fine for me with XMAME on the command line but XMAEME says "Unable to load ROM"

tablethelp 2007-11-04 02:38

Re: Mame Download with caveat
 
Here is what I get when I launch xmaeme in xterm and then try to launch starcas. Please note, the initial error messages come up before I even try to launch the ROM:

BusyBox v1.4.1 (2007-03-12 19:00:25 EET) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ xmaeme
xmaeme[2188]: GLIB CRITICAL ** GLib-GObject - g_object_unref: assertion `G_IS_OBJECT (object)' failed
xmaeme[2188]: GLIB CRITICAL ** GLib-GObject - g_object_unref: assertion `G_IS_OBJECT (object)' failed
xmaeme[2188]: GLIB CRITICAL ** GLib-GObject - g_object_unref: assertion `G_IS_OBJECT (object)' failed
xmaeme[2188]: GLIB CRITICAL ** GLib-GObject - g_object_unref: assertion `G_IS_OBJECT (object)' failed
Error opening /media/mmc1/roms/mame/: No such file or directory
Error opening /media/mmc1/roms/: No such file or directory
Error opening /media/mmc2/roms/mame/: No such file or directory
Error opening /media/mmc2/roms/: No such file or directory
Error opening /home/user/MyDocs/.documents/.games/: No such file or directory
xmaeme[2188]: GLIB WARNING ** Gtk - gtksettings.c:826: an rc-data property "gtk-file-chooser-backend" already exists
SCANNING FOR VISIBILITY
SCANNING FOR VISIBILITY
xmaeme[2188]: GLIB CRITICAL ** Gtk - gtk_tree_model_filter_convert_child_iter_to_iter: assertion `path != NULL' failed
xmaeme[2188]: GLIB CRITICAL ** Gtk - gtk_tree_model_filter_get_path: assertion `GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
xmaeme[2188]: GLIB CRITICAL ** Gtk - gtk_tree_view_expand_to_path: assertion `path != NULL' failed
xmaeme[2188]: GLIB CRITICAL ** Gtk - gtk_tree_view_set_cursor_on_cell: assertion `path != NULL' failedxmaeme[2188]: GLIB DEBUG ConIc - con_ic_connection_send_event(0xd41d0, AMDNET, WLAN_INFRA, 0)
SCANNING FOR VISIBILITY
SCANNING FOR VISIBILITY
xmaeme[2188]: GLIB CRITICAL ** Gtk - gtk_tree_model_filter_row_has_child_toggled: assertion `elt->visible' failed
xmaeme[2188]: GLIB CRITICAL ** Gtk - gtk_tree_model_filter_row_has_child_toggled: assertion `elt->visible' failed
Child: running xmame /home/user/MyDocs/.games/mame/roms/starcas -fullscreen -ror -scale 2 (null) (null)
SDL: Info: SDL initialized
info: trying to parse: /usr/lib/xmame/xmamerc
error: unknown option artwork_directory, on line 10 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option cheat_file, on line 11 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option hiscore_file, on line 12 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option history_file, on line 13 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option mameinfo_file, on line 14 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option inipath, on line 17 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option ctrlr_directory, on line 18 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option cfg_directory, on line 21 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option nvram_directory, on line 22 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option memcard_directory, on line 23 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option input_directory, on line 24 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option hiscore_directory, on line 25 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option state_directory, on line 26 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option snapshot_directory, on line 27 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option diff_directory, on line 28 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option skip_disclaimer, on line 35 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option skip_gameinfo, on line 36 of file: /usr/lib/xmame/xmamerc
ignoring line
error: unknown option bios, on line 37 of file: /usr/lib/xmame/xmamerc
ignoring line
info: trying to parse: /home/user/.xmame/xmamerc
info: trying to parse: /usr/lib/xmame/xmame-SDLrc
info: trying to parse: /home/user/.xmame/xmame-SDLrc
info: trying to parse: /usr/lib/xmame/rc/starcasrc
info: trying to parse: /home/user/.xmame/rc/starcasrc
Mouse/Trakball selected.
loading rom 0: starcas3.t7
loading rom 1: starcas3.p7
loading rom 2: starcas3.u7
loading rom 3: starcas3.r7
done
SDL: Info: Video mode set as 800 x 480, depth 16
Using dirty_buffer strategy
Using 16bpp video mode
Game uses 3 colors
SDL: sysdep_display_alloc_palette(32768);
error: /dev/dsp: No such file or directory
info: sysdep_dsp: using esound plugin
info: dsp: using timer based audio
info: sysdep_mixer: using oss plugin
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

Right after the segfault I xmaeme displays "unable to load ROM" message.

tablethelp 2007-11-06 19:59

Re: Mame Download with caveat
 
That gives a segfault as well.

After doing a little playing around with the command-line params it looks like the offending item is "-scale 2". fullscreen works. ror works. but not scale 2.

tablethelp 2007-11-08 14:49

Re: Mame Download with caveat
 
I think that's it. It looks like a LOT of roms are too big to be double-sized. I don't know what exit code xmame is returning but.. it would be very helpful if xmaeme could display something descriptive of the problem. Otherwise, I think a lot of people will just give up on xmaeme (and probably xmame in the bargain).

On a related point, xmaeme doesn't seem to be checking the xmamerc file for rom and sample paths. I've updated my own xmamerc so xmame knows where to find my roms and samples (not the original paths) but in xmaeme I still have to "browse" to find them.

Anunakin 2010-01-07 19:59

Re: Mame Download with caveat
 
I just compiled here xmame 0.106 for maemo 4 and this working... I m testing it now ...


All times are GMT. The time now is 13:25.

vBulletin® Version 3.8.8