PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Pocket Quake port for ps/pc

hi guy's, i've made a pocket quake port for ps/pc
but my probleme is, it doesn't work on anything else but emulation.
could someone help me?
I guess Dan is the one who can help.

An other question. Is it possible to port Pocket Quake to the PC. Would be really cool to play a Pocket Quake version that runs fullscreen at 640x480... :D
yes, my port works under emulation
both ps/pc and h/pc
1. set te h/pc screen size to 640 * 480 (emulation)
2. change the size values inside my code (vid_ppc.h)
3. put pak0.pak in C:\
4. empfile -c C:\pak0.pak wce:\windows
5. open qdef.h, or was it quakedef.h?
well well..open it up and change run dir or game name or what ever it was to windows
and my real email is 'chriva404@edu.linkoping.se'
Perhaps you don't have enough free RAM on the actual device.

Dan East
abannedguy wrote:
yes, my port works under emulation
both ps/pc and h/pc
1. set te h/pc screen size to 640 * 480 (emulation)
2. change the size values inside my code (vid_ppc.h)
3. put pak0.pak in C:\
4. empfile -c C:\pak0.pak wce:\windows
5. open qdef.h, or was it quakedef.h?
well well..open it up and change run dir or game name or what ever it was to windows


I was actually trying to make a joke...I mean what is the point of porting Pocket Quake to the PC when it allready is a port FROM a PC game...
Malmer: you ruined the joke now that you explained it :P
(TSC)Bender · 14 Nov 2002, 21:42 UTC
Emulate an emulated version of a game on the platform with the original version. Kinda doesn't make sense :?
Quake isn't being emulated on the PocketPC, it's ported.
Things will get quite interesting for new readers if I remove my post...
Ok then. I can help as I have ported PocketQuake to CE2.11 devices myself. (HPC's)

Probably the reason that it wont work is that for the _X86_ (emulation) targets, Dan has used the GDI to blit the screen because GAPI isn't supported on the emulator. GAPI was only introduced to the PocketPC (CE3.0) and not for the Ps/PC (CE2.11).

You have a choice. You can either use the GDI to blit the screen or you can use an API called GameX. I can post a copy if you don't have it.

Its best to use GameX as it is faster and works very similar to GAPI.

Hope this helps.
i get unresolved externals when i compile it for anything else but emulation.
all gapi call are removed.
fread and fwrite are two of the unresolved externals.
as far as I know the f... functions are not supported on Palm PC target - you'll have to write wrappers around them using the standard Windows API (CreateFile for fopen, ReadFile for fread ...)
IT WORKS UNDER PS/PC EMULATION BUT NOT ON A REAL DEVICE BECAUSE I GET UNRESOLVED EXTERNALS, AND ALL #IFDEF X86 / #IFNDEF ARE REMOVED

ALL GAPI CODES ARE REMOVED.
ALL TASKBAR CODES ARE REMOVED.
I'M USING SOFTWARE RENDERING.
FREAD AND FWRITE WORKS UNDER EMULATION BUT NOT ON A REAL DEVICE, WHY?
because

Code:


[lemure@FireLemure Windows CE Tools]$ cd "wce211/MS HPC Pro/lib/sh3"
[lemure@FireLemure sh3]$ grep fread coredll.lib
Binary file coredll.lib matches
[lemure@FireLemure sh3]$ cd ../../../..
[lemure@FireLemure Windows CE Tools]$ cd "wce211/ms palm size pc/lib/sh3"
[lemure@FireLemure sh3]$ grep fread coredll.lib
[lemure@FireLemure sh3]$

ummm...err...

I did have this problem (link errors) with the atof() function on the emulation. (CE2.11 HPC) (but not on device builds!)
Turned out to be the calling convention...worked fine when I added '__cdecl' to the prototype...

Oh yeah...why (o why?) is there DirectX headers in my HPC PRO include folder? Im pretty sure i've not inadvertantly installed them there...
i've allready tried __cdecl,it helps to fix atof, as you told me, thanks
I suppose it was worth suggesting...bet it'll be something really stupid...

I can send you the HPC Quake sources if it may help you. (but you've all solved the problems I came across)

Good luck!