HPC Doom
Having got HPC Quake (My CE2.11 PocketQuake port) sorted, I am now working on a Doom port for HPC's.
This will be based on Bruce Lewis's DoomCE code.
I quickly compiled it today and it runs fine. However everything is blue and white (Probably because it is written for 256 color devices) and it is quite slow because it uses the Windows GDI for graphics (Yuk!).
I am going to convert it to use GameX for SH-3 & MIPS and GAPI HPC for you 720 owners.
Well...just thought I would let you know...To the best of my knowledge, the only Doom port for CE2.11 HPC's is Hayes Huggen's Crash-a-minute port and ARM HPC's don't have anything at all.
I've got exams very soon so I can't work on it much until the 28th (My last exam

) But I'll have a tinker with it today.
ok, I have seen many blue and white screens in my day. You problem is probably that you are only copying part of the data to the screen (i.e. using a char instead of a short) or overlapping colors because of the 256 thing like you said..
Yeah thats right. It uses unsigned char (255 colors) to hold screen buffers...which is fine. But it has to copy as unsigned short. (65536 colors)
Ok, If Bruce Lewis (the author of the original Doom source port) sees what I have done to his code, he'll probably cry real tears.
All of that elaborate HDC code he wrote has been dumped in favor of direct screen access. I taken around 100 lines of code to around 20 and hell, it's fast, smooth and the floors and walls are drawn properly. Unlike DoomCE by Hayes Hugen. It also seems stable too. And thats on my crappy J680!
Sooooo...you J720 owners will at last, have a doom port. Hopefully by tommorow. Hehehehe...
"Should" work with Doom, Doom2, Plutonia, TNT etc...
any chance of a PPC port?
Never say never...but since PPC's aleady have a couple of doom ports im sure you'll understand me prioratising(sp) the HPC platform.
However, if anyone is interested in porting my HPC version to the PPC, then you are welcome to as I sold my PPC ages ago.
I don't have any show-off games on my new J710 so I look forward to trying Doom

Just like to point out, the 710 has an issue with gapi. I think that I have figured out a fix for it, but am unable to test it because I only own a 720.
Ok, somebody, try this. (if the guy(s) I sent the quake source code to could send me a copy back, that would be great, that way I can try this out).
1. get the screen address of the 720 (is the same for the 710, but don't get it from the 710!!!)
2. call GXBeginDraw, but don't set the return value to anything variable. Instead, hard code the video address. (If you don't call GXBeginDraw, you will get an access violation the first time you try to write to the screen.)
I beleive that this has the potential to work. The problem with the 710 is that after a soft reset the gapi for it returns the wrong value.
gtg to work, I can explain in greater detail later.
That's for the feedback.
Is it the bitbank GAPI for 720 you are using ?
I thought the J710 was identical to the 720 other than the modem? The OEM info returns Jornada 720 for instance.
I'm going to be working on Gapi for J720 for PocketFrog if I get time so the info about the GAPI properties bug is useful though I was goinf to hard code the video address anyway. ( PocketFrog already has Intel GAPI emulation )
I also heard that you could hard-code the video address too. Someone try it!!!
I am using GAPI HPC for direct screen access so presuambly there will be the same incompatibilitys with HPC Doom as Quake720. Sorry!
I would love to get my hands on a better GAPI for HPC's.
I've compiled my HPC Doom using both GameX and GAPI now and I'll put them on my site later.
There on my site now.
http://home.freeuk.com/gamefreaks/pql/
Tell me if it works...
It seems to work for me.
Any good?
If you go into the options menu, you can use the detail level toggle to change between full screen and 320x200.
Is it a J720 you are testing on?
I thought you meant test the website

Well...I have been know for messing up my sites...but I didn't think you had a HPC (you never said you did) that's why I asked what you tested...
Well...I have been know for messing up my sites...but I didn't think you had a HPC (you never said you did) that's why I asked what you tested...
I forgot to mention this. If you hardreset, your 710 will work, but it stops working after a soft reset.
Rob, does HPC Doom work on the J720? My GAPI HPC implementation is completely untested.
let me test it right now.
I am sending the wad file over as we speak. I ran it once without the wad, and I did get a message that said "Can't initialize GameX! I_GiveUp!" Did I get the wrong version?
Ok, just tried it with the wad, and I get the same message. Just a little not, GXOpenDisplay does not need to be called, and GXBeginDraw() only needs to be called once at the beginning.
If you want, I will be on AIM for the next 25 min. Message me, and maybe we can work this out.
Ok, I've uploaded a new version. I completely forgot that GXOpenDisplay does nothing on the HPC...
I don't have AIM. MSN anyone?
It's half-past midnight in the UK, im going to sleep now. Got to get up early...
Thanks for your help.
Ok, here is what happens. The game opens (full screen stretched) and starts the demo. The demo runs for like 2 seconds and the program closes without any errors. I tried starting a game (as quickly as possible) and it only made the program close more quickly.
Hmm...strange. Have you looked in the DoomCE.dbg file for clues?
If not, this will be difficult to debug because the GameX version I have on my device works fine.
Maybe I should treat myself to a new HPC anyway...
You can toggle between stretching and 320x200 using the detail setting in options.
I'll look more closely at the code after my exams.
Ok, I see no error messages, and the final item documented in it is R_InitTranslationsTable
Oh well...let's try again!!!
I've done a bit more coding today. Including plenty of work on the drawing routines.
Could you (or another 720 user) try it agin please.
Also, could you let me know what version of Doom wad you are using eg: Commercial (4 episodes) Doom2, Shareware etc...
Thanks.
I'll give it a shot right now. I am using the shareware wad from one of the pocketpc doom sites.
Ok, seems to work fine.
So can you have a whip round nd kick demon ass?
OHHHH YESSS!!!!
please try to make a 256 color 2.0 version
i want to play a good game on my hp 620

256 should be very easy to make, since there was already a drawling routine for 256 colors, but I am not sure what else has been done to the source.
The 265 color bit should be a doddle. GameX definatly works on a HP620LX...but the CE2.0 Bit...
I think that to compile for earlier versions of WindowsCE IE: 2.0 & 1.0, you need an add-on for Visual Studio 5. And it's a commercail product.
I'd love to support more devices, so if anyone knows how to get around this problem, let me know.
Expect a load of updates on 29th June.
-Storage Card loading.
-Gamma function.
-Support for Ultimate Doom, Doom2, Plutonia etc.
-Resolved Windowing issues.
-Tidied up interface.
Rob, I've been thinking about your idea of hard-coding the video address instead of using GAPI-HPC to get around the bugs.
Could you tell me the address?
Also, could you test this build of HPC Doom, but you need to know the following...
1) Name the wad according to what it is:
Doom1.wad = Shareware
Doom.wad = Registered (3 episodes)
Doom2.wad = Doom2
plutonia.wad = Plutonia exp
tnt.wad = tnt
2) Put the file in a folder called 'HPC Doom' (minus the speech marks) which can be on a storgage card if you wish.
So it could be: /Storage Card2/HPC Doom/doom1.wad
or
/HPC Doom/Doom1.wad
I think thats it...
Download it at:
http://home.freeuk.com/gamefreaks/d_arm.zip
I want to make sure it works before releasing it on saturday.
Also, any other comments/feedback...
I've updated HPC Doom.
Updates 0.91:
-Fixed gamma correction.
-Warns when battery is low.
-Checks for available memory.
-Better IWAD detection.
-Added -fixvid command-line parameter for troubleshooting purposes. (ARM only)
-Overlay automap. ZDoom style
If you are having problems with HPC Doom, use the -fixvid command-line parameter. This will use a pre-defined series of settings that should work on all Jornada 710/720/728.
http://home.freeuk.com/gamefreaks/pql/
Only 1 suggestion, since I'm on a PocketPC. If you can, try not to scale the hud, or the weapon sprite, it'll look a lot nicer in the wide video mode.
I'm gunna try it on my iPaq anyway, maybe it will only need a couple changes for it to be playable (damn 1 button limit) :P
You'd be supprised, Doom is hard-coded to use 320x200.
A wide aspect ratio would also lower the frame rate...
Ah true. If this were one of the more advanced source ports, you could probably play with FOV, but this looks like your stock WinDoom/Doom95 to me. Legacy has a multimon feature, but I think that's if you have multiple computers networked.
Can't even get a title screen running it on my iPaq. Ah well.. maybe a playable Doom port will come eventually. *cough* *cough* :P
Whats wrong with Doom4CE?
I heard it's a bit crappy. Why?
Oh, HPC Doom is actually based on WinDoom.
Multimonitor support could work on a HPC. 3 Screens packed onto the wide display...Never say never

I referred to multimonitor as in my suggestion of streching the display but not the sprites.. but I think it just renders 3 viewports in slightly different positions on 3 different computers instead of *true* multimonitor games, which do the same thing as what I suggested for HPC Doom.
The problem with Doom4CE is that it's unplayable on the 1 button iPaqs, and the keyboard buttons can't be rebound to boot. But if instead of a keyboard there was an interface like PocketQuake's, it would actually be more playable than Quake. *hint hint* :P All you'd need is mlook and a couple virtual buttons and it would be perfect. A decent Doom port for all.
If there are any programmers that would be willing to hack a decent control scheme into Jimmy's Doom, we could e-mail Carmack to see if he can get the source out of Jimmy. He seems to be a great person to deal with when it comes to engine, and source issues.
I tried it on my Intermec 6651 HPC 2000 and it runs pretty fast at 640x240. I was wondering if you could allow it to run 800x480 or if not then 640x480(The Intermec has an 800x480). Does anyone know if the Stinger Driver is also available for HPC's.
Hey Gamefreaks ive got a J710 if ya need a guinea pig
BTW I downloaded a version of doom of yer site about a month ago and it work's fine with a playable frame rate, even when full screen, and with sound.....but for some reason I cant make the program exit. I have to do a soft reset!?
Nice work tho!
