The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2024, 08:07:36 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Windows Mobile port?
« previous next »
Pages: 1 ... 4 5 [6] 7 8 Print
Author Topic: Windows Mobile port?  (Read 57055 times)
ptx
Frungy champion
**
Offline Offline

Posts: 69


I love YaBB 1G - SP1!


View Profile
Re: Windows Mobile port?
« Reply #75 on: May 21, 2008, 07:22:06 pm »

Try this:
1. Get sdl.dll from http://rapidshare.com/files/116568260/SDL.dll.html
2. On your HP 210, create a new directory, and place the new sdl.dll there
3. Place keytest.exe there as well
4. Run keytest.exe and repeat the test (press the 4 keys and return)

The output file you will be looking for will be sdl_log.txt (it might be located in your "My Documents", or possibly in the root folder of the device).

The output format is as following:
"SYM:%d, VK:0x%02X, SC:0x%04X\n", keysym->sym, vkey, scancode
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Windows Mobile port?
« Reply #76 on: May 21, 2008, 07:23:15 pm »

That's the thing though - patch SDL to do what? I can't imagine that HP 210 would have non-standard d-pad codes.
There is a standard? I expect that the hardware just produces its own codes and that a windows driver translates those codes to those 0x2something codes.

Quote
There's something strange going on here. The uqm wince files from the wiki page has been confirmed to work with at least ability to navigate the main menu, on several PDA's. People reported being able to get into melee at least, and to get into melee dpad is required.

Plus, it looks like the low-level codes are already the correct ones.
Maybe SDL isn't using the windib driver. Setting the environment variable SDL_VIDEODRIVER to "windib" may help. It's likely to break the screen rotation though.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
ptx
Frungy champion
**
Offline Offline

Posts: 69


I love YaBB 1G - SP1!


View Profile
Re: Windows Mobile port?
« Reply #77 on: May 21, 2008, 07:35:38 pm »

Quote
There is a standard? I expect that the hardware just produces its own codes and that a windows driver translates those codes to those 0x2something codes.
Good point.

Quote
Maybe SDL isn't using the windib driver. Setting the environment variable SDL_VIDEODRIVER to "windib" may help. It's likely to break the screen rotation though.
Also good point. Here's a link to SDL.dll with hard-coded windb env var: http://rapidshare.com/files/116571038/SDL.dll.html
Logged
Islanti
Zebranky food
*
Offline Offline

Gender: Male
Posts: 8



View Profile
Re: Windows Mobile port?
« Reply #78 on: May 21, 2008, 07:44:29 pm »

1.2.13 is bundled with the latest SCUMMVM for Win32.  There's no SDL.DLL included in the WinCE port, though.  Maybe their WinCE distribution compiles a special version into the EXE?

For whatever it is worth I spoke with Sam Lantinga from the SDL project.  He wasn't sure who was even working on the WinCE version of SDL these days so he suggested was to post to the SDL development mailing list.  He also said that it should be possible to run SDL in debug mode and grab the raw key codes.

Keytest doesn't work with the distribution SDL 1.2.13 FWIW.
The first DLL you provided (http://rapidshare.com/files/116568260/SDL.dll.html) gave the same results as the first test.
The second DLL ran in a window (http://rapidshare.com/files/116571038/SDL.dll.html) and gave the same results as well.
« Last Edit: May 21, 2008, 07:47:16 pm by Islanti » Logged
Islanti
Zebranky food
*
Offline Offline

Gender: Male
Posts: 8



View Profile
Re: Windows Mobile port?
« Reply #79 on: May 21, 2008, 08:15:23 pm »

Here is the output from the sdl_log.txt file:
Quote
xyz: tlbr = 0/0/0/0
0x003B
SYM:106, VK:0x25, SC:0xC03B
SYM:44, VK:0x26, SC:0x0041
SYM:44, VK:0x26, SC:0xC041
SYM:103, VK:0x27, SC:0x0034
SYM:103, VK:0x27, SC:0xC034
SYM:0, VK:0x28, SC:0x0038
SYM:0, VK:0x28, SC:0xC038
SYM:0, VK:0x86, SC:0x0000
SYM:13, VK:0x0D, SC:0x0000
SYM:106, VK:0x25, SC:0x003B
SYM:106, VK:0x25, SC:0xC03B
SYM:44, VK:0x26, SC:0x0041
SYM:44, VK:0x26, SC:0xC041
SYM:103, VK:0x27, SC:0x0034
SYM:103, VK:0x27, SC:0xC034
SYM:0, VK:0x28, SC:0x0038
SYM:0, VK:0x28, SC:0xC038
SYM:0, VK:0x86, SC:0x0000
SYM:13, VK:0x0D, SC:0x0000
SYM:13, VK:0x0D, SC:0xC000
SYM:0, VK:0x86, SC:0xC000
SYM:106, VK:0x25, SC:0x003B
SYM:106, VK:0x25, SC:0xC03B
SYM:44, VK:0x26, SC:0x0041
SYM:44, VK:0x26, SC:0xC041
SYM:103, VK:0x27, SC:0x0034
SYM:103, VK:0x27, SC:0xC034
SYM:0, VK:0x28, SC:0x0038
SYM:0, VK:0x28, SC:0xC038
SYM:0, VK:0x86, SC:0x0000
SYM:13, VK:0x0D, SC:0x0000
SYM:13, VK:0x0D, SC:0xC000
SYM:0, VK:0x86, SC:0xC000
Logged
ptx
Frungy champion
**
Offline Offline

Posts: 69


I love YaBB 1G - SP1!


View Profile
Re: Windows Mobile port?
« Reply #80 on: May 22, 2008, 06:02:54 pm »

Now we are at a point where we got d-pad working on the HP 210.. Although now there is a different issue:
When pressing certain buttons, TWO keyboard events are generated... But only for certain buttons.

I was able to reproduce on my HTC Touch - only one button (Camera) does that:
SYM:334, VK:0xCC, SC:0x0000
SYM:323, VK:0xC1, SC:0x0000

The rest of the buttons seem to be behaving:

Talk:
SYM:284 VK:0x72, SC:0x0000

HangUp:
SYM:285 VK:0x73, SC:0x0000

volumeUp:
SYM:287 VK:0x75, SC:0x0000

VolumeDn:
SYM:288 VK:0x76, SC:0x0000

Although, interestingly enough, "Return" button gives two events (one seems to be unmapped 0x86):
Return:
SYM:0   VK:0x86, SC:0x0000
SYM:13  VK:0x0D, SC:0x0000
Logged
RichEtheridge
Zebranky food
*
Offline Offline

Posts: 3



View Profile
Re: Windows Mobile port?
« Reply #81 on: May 30, 2008, 04:07:55 pm »

I've tried the port on a couple of different Pocket PCs, a Jornada 565 and a Delll Axim v5. Both of these just sit at a spinning hourglass when the shortcut or executable is launched. I've read through this entire thread and believe I am going through the correct steps. Both of these Pocket PCs have 32MB. Is 64MB generally accepted to be the minimum requirement to run this on a pocket pc or is it possible to get the current build working on a 32MB pocket pc?

P.S. I just want to add my thanks to those who have been working to port UQM to other platforms. You guys are truly crazy, and it is appreciated.
« Last Edit: May 31, 2008, 07:43:59 am by RichEtheridge » Logged
NamelessPlayer
*Many bubbles*
***
Offline Offline

Posts: 104



View Profile
Re: Windows Mobile port?
« Reply #82 on: May 30, 2008, 05:22:41 pm »

I don't think this particular port will work on any OS older than Windows Mobile 5, given my own experiences with it. (It definitely doesn't seem to work under WM2003SE...)
Logged
RichEtheridge
Zebranky food
*
Offline Offline

Posts: 3



View Profile
Re: Windows Mobile port?
« Reply #83 on: May 30, 2008, 08:53:38 pm »

I don't think this particular port will work on any OS older than Windows Mobile 5...

Thanks for that info, NamelessPlayer, I'll stop trying to force it to work unless I can find a way to upgrade my Jornada. I just tried this on a Cingular 3125 and it works great. Should we be adding working devices to the wiki?
Logged
ptx
Frungy champion
**
Offline Offline

Posts: 69


I love YaBB 1G - SP1!


View Profile
Re: Windows Mobile port?
« Reply #84 on: June 01, 2008, 01:49:42 am »

Thanks for that info, NamelessPlayer, I'll stop trying to force it to work unless I can find a way to upgrade my Jornada. I just tried this on a Cingular 3125 and it works great. Should we be adding working devices to the wiki?

By all means!
Logged
ptx
Frungy champion
**
Offline Offline

Posts: 69


I love YaBB 1G - SP1!


View Profile
Re: Windows Mobile port?
« Reply #85 on: June 01, 2008, 01:50:33 am »

I don't think this particular port will work on any OS older than Windows Mobile 5, given my own experiences with it. (It definitely doesn't seem to work under WM2003SE...)

I'll see if I can recompile for WM2003 and will let you know when done so you can test it.
Logged
Islanti
Zebranky food
*
Offline Offline

Gender: Male
Posts: 8



View Profile
Re: Windows Mobile port?
« Reply #86 on: June 01, 2008, 08:52:25 am »

I added the two devices I successfully tested to the Wiki.  I'd like to add the keymap files as well since I had to do extensive tweaking to them.  Where should I post them (as an attachment on this forum?) and in what format?  By format I mean the filename as well as whether the original file should be updated or the post in-game configuration version is acceptable (which removes all the annotations).
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Windows Mobile port?
« Reply #87 on: June 01, 2008, 12:01:59 pm »

You could post them to the Ultronomicon itself. Annotated versions would be preferred.
Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
RichEtheridge
Zebranky food
*
Offline Offline

Posts: 3



View Profile
Re: Windows Mobile port?
« Reply #88 on: June 02, 2008, 03:03:22 am »

You could post them to the Ultronomicon itself. Annotated versions would be preferred.


Meep-eep, do mean just a note/comment column off to the right of "Device,OS, Memory, KeyFile", expanding the compatibility section more, or something else entirely?
Logged
ptx
Frungy champion
**
Offline Offline

Posts: 69


I love YaBB 1G - SP1!


View Profile
Re: Windows Mobile port?
« Reply #89 on: June 02, 2008, 05:37:45 am »

Meep-eep, do mean just a note/comment column off to the right of "Device,OS, Memory, KeyFile", expanding the compatibility section more, or something else entirely?

I would say upload the zipped starcon.key file (not the auto-generated one), then add a link to the .zip in the KeyFile column of the corresponding device line.
Logged
Pages: 1 ... 4 5 [6] 7 8 Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!