PocketMatrix forums

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

Pocket Hexen II

hi guys

A while ago, I thought I'd have a shot at making a PocketHexen2 exe based on the awesome work you've done on PocketQuake.
I know my way around PC programming, but this is my first CE attempt. I've got the code compiling, and it starts to run, but crashes before it hits the menu screen (so really early on).
I'm debugging now, but it's a slow and frutrating process 'cause I'm guessing or googling quite a bit of the time. :?

Does someone who actually knows what they're doing want to help a newbie out and let me know what I've stuffed up?

The code is on http://members.iinet.net.au/~JBeckingha ... exenII.zip
Ok, so I've made a bit of progress (slowly), but now I'm stuck again.

I can get the Hexen II main menu to come up, you can select New Mission, select a character, then select a difficulty level.
Once you select a difficulty level, I then get an "Access Violation" error, but it doesn't specify a line of code.

I've set the stack size to 0x3d090. Do I need to increase that again?
HI all,

I've hit an access violation error in mathlib.c on line:
forward[0] = cp*cy;

The valiables are set to the following:
angle 0.000000
cp 1.00000
cr 1.00000
cy 1.00000
- forward 0x00000100
CXX0030: Error: expression cannot be evaluated

Can anyone point me in the right direction to track this down?
Oops, should also mention that the Mathlib.c I'm using is the same as the pocketquake version.

I've also updated the code at the link in my first post.
:D
What is "forward" and where is it allocated? I would suspect a problem with that variable.

[edit]It's clear from your debug dump that forward's address is 0x100, which is not a valid memory address for a variable.[/edit]

Dan East
Yup, you're right.
Found it.
:)

Thanks for the help!
Hi guys,

I'm getting an error in CL_Parse.c in the CL_ParseServerMessage function.

I get the "CL_ParseServerMessage: Bad server message" error.

The debug goes quite a way through the while loop until it runs the "svc_clientdata" case (it runs CL_ParseClientdata successfully) then the next "SHOWNET(svc_strings[cmd])" line brings up an svc_bad command.

Can anyone let me know where I might track down why this is happening?
Success!!

I have Hexen II running on my Pocket PC!!
Of course there are still a few small bugs (like not being able to save or load a game), but hey, it's a start!
:D
Pocket Hexen II 1.00 is ready!

http://members.iinet.net.au/~JBeckingham/PHexenII.htm

It still has a few quirks that I need to iron out (like the character selection on the menu) but the gameplay's fine.
:D

I still need to add sound and music, plus I need to add the white screen fix, so I have some work ahead of me before it's 100%
i'm having the whitescreen, how to fix it. (on dell axim x50v (VGA).
Yeah, I would appreciate a whitescreen fix too. But no hurry :D
OK, so I've finally gotten around to releasing an update. There are speed improvements (all reports I've had have told me it's much faster) and there's also sound now. No music though, sorry.

Available for download at www.jamesbeckingham.com.au (just follow the link to Pocket Hexen II)

Also, you can check out my Pocket Eye of the Beholder page while you're there. The demo should be a matter of weeks away.
:D